Skip to content

fix: keep installation pages in their authored order in the sidebar - #19

Merged
Arifulislam5577 merged 1 commit into
mainfrom
fix/installation-nav-order
Sep 28, 2026
Merged

Arifulislam5577 merged 1 commit into
mainfrom
fix/installation-nav-order

Conversation

@moshiur01

Copy link
Copy Markdown
Contributor

What

The sidebar sorted every section alphabetically, so the new MCP page showed above Setup Guide under Installation. Now only the catalog sections (Components, Blocks) are sorted by name and get their item count. Guide sections like Installation keep their numbered file order (1.setup-guide, 2.mcp).

Why

Setup Guide is the first step, and the MCP page assumes you have read it, so it has to come first.

Notes for review

  • The change is only in flattenSections in lib/navigation.ts. Catalog labels and sorting are unchanged (Components (18), Blocks (23)).
  • Added tests/navigation.test.ts, covering both cases.
  • Verified with typecheck, the full test suite (751 passing) and next build. In the built page, Setup Guide now comes before MCP in the sidebar

The sidebar sorted every section alphabetically, which put MCP above
Setup Guide. Only the Components and Blocks catalogs are sorted now;
guide sections follow their numbered file order.
@vercel

vercel Bot commented Sep 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tween-ui Ready Ready Preview Sep 28, 2026 6:46am UTC

@Arifulislam5577
Arifulislam5577 merged commit d4b2c19 into main Sep 28, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 723e1bdc Deployed Sep 28, 2026 by vercel[bot]
Sign up for free to 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.

2 participants