FormidableLabs / FormidableLabs/nextjs-sanity-fe
Enforce filter-specific sorting rules for filter options
- Dominant language
- TypeScript
- Stars
- 31
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
When a user views the list of options for filtering by size, the sort appears to be random:

For some options like shoe size, we can get away with filtering the options numerically. However, t-shirt size has a bespoke sort that all users expect: XS > SM > MD > LG > XL . The CMS should have this capability, and all filters for our final product set should be sorted in a way that users expect. This could possibly be an admin capability if it isn't already?
Contributor guide
No contributing guide indexed for this repository
Research direction
No files, tests, or entry points are named. Start by locating the filter-option list and the CMS configuration for filter values, then verify the expected ordering for numeric sizes and XS > SM > MD > LG > XL; done means every final-product filter displays a predictable, user-expected order.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100