Skip to content

fix(nav): bring back category pills on category hub pages + drop sub-nav strip - #684

Merged
Flotapponnier merged 1 commit into
devfrom
fix/restore-category-pills
Jun 24, 2026
Merged

fix(nav): bring back category pills on category hub pages + drop sub-nav strip#684
Flotapponnier merged 1 commit into
devfrom
fix/restore-category-pills

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

The CMC-style sub-nav strip added recently duplicated the pill row already in BenchmarkGrid, with a less legible text + underline style. Users prefer the original pill UI from prod.

Changes:

  • Remove SiteSubNav strip from site-header (and the now-unused file)
  • Always render pill row inside BenchmarkGrid, even when a lockedCategory is set
  • Category hub pages pass allCategories so the pill row shows the full taxonomy instead of just the single locked category derived from the pre-filtered benchmarks prop
  • Pill clicks navigate naturally on locked pages, in-place filter on /benchmarks root

Typecheck + lint clean.

…drop sub-nav strip
The header sub-nav strip added in the CMC redesign duplicated the
pill row that already exists in BenchmarkGrid, with a less legible
text + underline style. Reverting:
- Drop the SiteSubNav strip from the header.
- Always render the pill row inside BenchmarkGrid, even when the page
passes a lockedCategory (category hub routes).
- New allCategories prop so the hub routes pass the full taxonomy
even though their benchmarks prop is pre-filtered to one category.
- On locked pages pill clicks navigate naturally (no preventDefault)
so users move between /benchmarks/category/<slug> URLs.
@Flotapponnier
Flotapponnier merged commit aa41084 into devJun 24, 2026
1 check passed
@Flotapponnier
Flotapponnier deleted the fix/restore-category-pills branch July 17, 2026 14:42
Sign up for freeto 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.

1 participant

@Flotapponnier