feat: implement puzzle list page with grid display and filtering#283
Merged
A6dulmalik merged 3 commits intoMindBlockLabs:mainfrom Feb 25, 2026
Merged
Conversation
- Create PuzzleCard component with type, difficulty badges, description, category, and time limit - Rewrite puzzles page with responsive 1/2/3 column grid layout - Wire FilterBar with category and difficulty filters into usePuzzles query params - Add skeleton loading grid, error state with retry, and empty state UI
- Fix useReducedMotionCheck to import usePrefersReducedMotion from local hooks, not framer-motion - Fix usePrefersReducedMotion return type by coalescing null to false so boolean is satisfied
React Query hooks (useQuery) require a QueryClientProvider in the tree. Create QueryProvider wrapper and add it to the root layout so all pages including /puzzles can use usePuzzles and useCategories without crashing during prerender.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements the Puzzle List Page with a responsive grid layout and filter capabilities, replacing the empty stub page that previously only rendered
<div>page</div>.Changes
frontend/components/puzzles/PuzzleCard.tsx— New reusable card component with:line-clamp-2)/puzzles/:idborder-gray-600, slightly lighter card bg) and keyboard focus ringfrontend/app/puzzles/page.tsx— Full page implementation with:FilterBarwired viauseState<PuzzleFilters>— category and difficulty selections feed directly into theusePuzzles()query paramsrefetch()Test plan
/puzzles— grid renders with puzzle cards/puzzles/:idbg-[#050C16],bg-[#0A1628],border-gray-800)Closes #254