FormidableLabs / FormidableLabs/nextjs-sanity-fe

Enforce filter-specific sorting rules for filter options

Open
#83 1 comment 0 reactions 0 assignees View on GitHub
enhancement
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:

![Image](https://user-images.githubusercontent.com/88046786/190007540-77e3fbb8-12c2-4192-b14e-e6d5fed9ae0e.png)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.