Skip to content

refactor: simplify management navigation updates - #4938

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/management-view-labels
Nov 23, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/management-view-labels

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

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

  • Baseline and candidate management contracts pass: all accepted labels, validator rejection of unsupported values, skill/plugin precedence, sidebar order and queue badges. The focused suites pass 118 tests.
  • Required static checks, 10,524 full-unit tests (6 skipped), app/package typechecks, schema/CLI/admin types and the production build pass.
  • Independent full-owner P0–P3 review found no actionable issues.
  • Real local admin browser proof covers all 15 views, navigation labels and URLs, placeholders, and selected skill/plugin details. Zero page errors; the shared runtime-error gate passed. Moderator visibility is covered by component tests, not a browser persona.

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=constructor produces 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.

@clawsweeper

clawsweeper Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc

Copy link
Copy Markdown
Member Author

Real local management navigation proof. The three tested source blobs match signed head 85dc8c1ddf10b45b01eb6669b6be170a4b024fd4.

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: http://127.0.0.1:4173/management, fresh local Convex and the existing admin/catalog fixtures. The normal Search intelligence report-start effect ran locally; no manual administrative action, role change or custom fixture mutation was used. External model calls were not enabled. Moderator visibility was proved by component tests, not a browser persona.

The original unsupported view=constructor expectation was checked against the unchanged baseline. Both baseline and candidate show an empty breadcrumb and no active section; that routing behavior is preserved. Other unsupported values are covered at the validator boundary. The earlier failing trace and baseline observation remain separate from this passing scenario.

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.

Admin management navigation

Promotions selection and sidebar badges

Settings placeholder

Selected skill takes precedence

@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
clawhub Ready Ready Preview Nov 23, 2026 12:21am UTC

Request Review

@vincentkoc
vincentkoc marked this pull request as ready for review November 23, 2026 00:20
@vincentkoc
vincentkoc merged commit c30d473 into main Nov 23, 2026
35 checks passed
@vincentkoc
vincentkoc deleted the refactor/management-view-labels branch November 23, 2026 00:26

This branch was successfully deployed

1 active deployment
Preview – clawhub — 85dc8c1d Deployed Nov 23, 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.

1 participant