Repository navigation
refactor: simplify management navigation updates - #4938
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Real local management navigation proof. The three tested source blobs match signed head The Chromium scenario visited all 15 accepted views, checked the 10 sidebar labels and links, group/order/active state, placeholders, and selected skill/plugin precedence with actual seeded details. It passed with zero page errors; the shared runtime-error gate passed. Screenshots show the overview/sidebar, selected Promotions section, Settings placeholder, and selected skill. Runtime: The original unsupported Validation: 118 focused tests; 10,524 full-unit tests passed with 6 skips; static, app/package typechecks and build passed. Independent full-owner P0–P3 review found no actionable issues. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|




What Problem This Solves
Adding a management section currently requires repeating its name in the accepted-view list, view type, breadcrumb labels and sidebar. Recent download analytics and search intelligence additions each had to update those definitions separately.
User Impact
No user-visible change. Management keeps the same 15 accepted views, labels, sidebar order, badges, staff visibility, URLs and selected-item precedence.
Why This Change Was Made
Use the existing shared labels as the single source for view names and their type. Keep the handwritten sidebar and its conditions, and remove its duplicate label prop. This removes 46 production lines. Queries, actions, confirmations and role checks are unchanged.
Evidence
The browser uses the existing local catalog/admin fixture at
http://127.0.0.1:4173/management. Visiting Search intelligence invokes its existing local report-start effect; there are no manual administrative mutations or role/fixture changes. External model calls were not enabled.Known unchanged routing behavior:
view=constructorproduces an empty breadcrumb and no active section despite the validator rejecting it. A focused baseline probe confirmed this before the final candidate check; this refactor preserves it. Other unsupported values are tested at the validator boundary. The initial browser assertion incorrectly expected a default section, and the failing trace is retained separately.AI-assisted. I reviewed the change and validation, understand it, and can maintain it.