-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Problems
-
The
categoriesarray, which defines filter groups and their options, is currently duplicated in three different places within the codebase. This leads to:- Increased maintenance effort (changes must be made in multiple locations)
- Higher risk of inconsistencies and bugs
- Reduced code clarity and reusability
-
Further, each type definition includes the primitive
string[]. This is too broad, and may lead to unexpected assignments.
Proposed Solution
- Refactor the codebase to define the
categoriesarray in a single, dedicated file (e.g.,src/components/filters/filterCategories.ts) without including primitives. - Import and use this shared definition wherever filter categories are needed.
Benefits
- Easier maintenance and updates
- Consistent filter group definitions across the app
- Improved code readability and organization
Action:
Refactor the code to centralize the categories array and to remove duplicates and primitives.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels