Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@teles
Copy link
Owner

@teles teles commented Oct 5, 2025

Multi-Category Filter Feature

  • Added support for multi-category selection and filtering in AwesomeSEOApp.
  • Refactored state and types to use category arrays for flexibility and future-proofing.
  • Updated UI components: Category filter now allows multiple selections with badges for each category and easy removal.
  • Improved filter logic, backwards compatible with single category selection.

Tests and Compatibility

  • Updated and expanded tests for multi-category selection and backward compatibility.
  • Ensured all features and tests are passing and fully integrated.

Why?

This update makes filtering tools much more powerful and user-friendly, enabling users to select multiple categories and improve workflow for SEO analysis.

teles added 8 commits October 5, 2025 19:27
Updates AppState interface to support multiple category selection by changing selectedCategory type from string to string[].
…lity

Updates CategoryFilter to accept both string and string[] for selectedCategories parameter. Maintains backward compatibility while enabling filtering by multiple categories simultaneously.
Updates state initialization, setSelectedCategory method signature, and clearFilters to work with string[] instead of string for category selection.
Updates selectedCategory state to use string[] type and initializes with empty array. Updates clearFilters to reset to empty array.
Implements multi-category selection in SearchAndFilters component:
- Adds category toggle functionality allowing multiple selections
- Displays selected categories as removable badges with X icon
- Shows count of selected categories in dropdown
- Includes 'Clear all' button when multiple categories are selected
- Adds checkmark indicator for selected items in dropdown
Adds comprehensive test coverage for multi-category filtering:
- Tests filtering with empty array
- Tests filtering with single category (both string and array)
- Tests filtering with multiple categories
- Tests cases where none of the categories match
- Adds eslint-disable comments for type assertions
Updates all test cases in AwesomeSEOApp to use string[] for category selection:
- Changes setSelectedCategory calls to pass arrays
- Updates assertions to use toEqual for array comparisons
- Ensures all tests pass with new category array type
Regenerates production bundle and CSS with multi-category selection functionality.
@teles teles merged commit 6537646 into main Oct 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant