-
Notifications
You must be signed in to change notification settings - Fork 4
feat: Add hold state filters (Starting, Hand, Foot, Finish) to climb … #492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…search Extend the hold filter dropdown to include specific hold states beyond Include/Exclude. Users can now filter climbs that have specific holds marked as Starting, Hand, Foot, or Finish holds. - Add STARTING, HAND, FOOT, FINISH options to filter dropdown - Add color configuration for each hold state filter - Update tag display to show counts for all selected hold states - Add holdStateFilters support to backend package to match web package
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Claude Reviewpackages/web/app/components/search-drawer/climb-hold-search-form.tsx
packages/backend/src/db/queries/climbs/create-climb-filters.ts
|
- Use themeTokens for UI colors (ANY/NOT) and HOLD_STATE_MAP for board-specific hold state colors - Replace emoji icons with consistent Ant Design icons - Import HoldState from @boardsesh/shared-schema instead of duplicating - Update ClimbSearchInput in shared-schema to support all hold states
Claude Reviewpackages/backend/src/db/queries/climbs/create-climb-filters.ts:141-147
packages/backend/src/db/queries/climbs/create-climb-filters.ts:23
packages/web/app/components/search-drawer/climb-hold-search-form.tsx:15-22
packages/shared-schema/src/types.ts:7
|
- Add type guard validation for hold states before SQL query to prevent injection (VALID_HOLD_STATE_FILTERS const with isValidHoldStateFilter) - Simplify ClimbSearchParams.holdsFilter type to Record<string, HoldState> - Use board-specific colors via getHoldStateColors(boardName) instead of hardcoded kilter colors - Document that OFF state is intentionally excluded from filter options
Claude ReviewPotential SQL Injection Risk - Type Mismatch - Missing OFF handling - |
…search
Extend the hold filter dropdown to include specific hold states beyond Include/Exclude. Users can now filter climbs that have specific holds marked as Starting, Hand, Foot, or Finish holds.