Skip to content

feat: added normalize category name service for proper dcns on columns - #271

Open
OwenCoogan wants to merge 1 commit into
masterfrom
oc/DRA-5517
Open

feat: added normalize category name service for proper dcns on columns#271
OwenCoogan wants to merge 1 commit into
masterfrom
oc/DRA-5517

Conversation

@OwenCoogan

Copy link
Copy Markdown
Contributor

What does this PR do?

Related to : #

What are the observable changes?

🧑‍💻 Developer Heads Up

⚡ Since we are using Ember Octane now:

  • Feel free to migrate existing components to Glimmer Components.
  • Write new ones exclusively in it.

Useful Resource : Ember Octane vs Classic Cheat Sheet

Good PR checklist

  • Title makes sense
  • Is against the correct branch
  • Only addresses one issue
  • Properly assigned
  • Added/updated tests
  • Added/updated documentation
  • Migrated touched components to Glimmer Components
  • Properly labeled

Additional Notes

@OwenCoogan
OwenCoogan requested review from a team and phndiaye as code owners July 31, 2026 13:16
@OwenCoogan
OwenCoogan requested review from edouardmisset and olxmpe and removed request for a team July 31, 2026 13:16
@linear-code

linear-code Bot commented Jul 31, 2026

Copy link
Copy Markdown

DRA-5517

Comment on lines +3 to +8
export function normalizeCategoryNameHelper(params: any[]) {
const [category] = params;
return category.toLowerCase().replace(/\s+/g, '_');
}

export default helper(normalizeCategoryNameHelper);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually see helpers defined this way :

  formatError = helper((_, { step }: { step: Step }): string => {
    return this.errorMessage(step);
  });

Is there a specific reason why you wrote this one as a function and exported it as a helper instead? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants