Skip to content

feat: implement game categories filter - #23

Merged
diiabblo merged 15 commits into
mainfrom
feat/game-categories-filter
Feb 12, 2026
Merged

feat: implement game categories filter#23
diiabblo merged 15 commits into
mainfrom
feat/game-categories-filter

Conversation

@diiabblo

Copy link
Copy Markdown
Owner

Summary

Implements a comprehensive category filtering system allowing users to select specific trivia categories for personalized gaming experiences.

Changes

  • Added category type definitions and constants for 10 categories
  • Created useCategoryFilter and useCategoryStats custom hooks
  • Implemented category UI components (CategoryCard, CategoryGrid, CategoryFilterHeader, SelectedCategoryTags, CategorySearch, CategoryStatsCard)
  • Added localStorage utilities for persisting category preferences
  • Created dedicated categories page with search and filter functionality
  • Added comprehensive documentation

Categories Available

  1. General Knowledge
  2. Science
  3. History
  4. Sports
  5. Entertainment
  6. Geography
  7. Art & Culture
  8. Technology
  9. Literature
  10. Music

Features

  • Multi-select category filtering
  • Visual category cards with icons and colors
  • Search functionality for quick category lookup
  • Persistent user preferences via localStorage
  • Category performance statistics tracking
  • Responsive design for all screen sizes
  • Selected category tags with remove functionality

Components Added

  • CategoryCard: Individual category display with selection state
  • CategoryGrid: Responsive grid layout for categories
  • CategoryFilterHeader: Header with selection count and clear button
  • SelectedCategoryTags: Removable tags for selected categories
  • CategorySearch: Search input with real-time filtering
  • CategoryStatsCard: Performance metrics per category

Closes #3

@diiabblo
diiabblo merged commit 8801f1b into main Feb 12, 2026
4 of 19 checks passed
@diiabblo
diiabblo deleted the feat/game-categories-filter branch February 12, 2026 10:03
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.

feat: add game categories filter

1 participant