Skip to content

fix: show the default management view for unsupported links - #4947

Merged
vincentkoc merged 1 commit into
mainfrom
fix/management-invalid-view-fallback
Nov 24, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/management-invalid-view-fallback

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Management links with an unsupported view, such as /management?view=constructor, show an empty page instead of the default section. The router retains the raw search value even though the route validator omits it.

User Impact

Staff opening an unsupported view now see Publisher abuse. Supported views and selected skill/plugin links keep their existing behavior, and the URL stays unchanged.

Why This Change Was Made

The existing view resolver now applies the existing membership check before selecting a section. This keeps the fallback in the owner of view selection without changing search validation, other search fields, roles, permissions or backend operations.

This contribution was AI-assisted. I reviewed the change and its validation, understand it, and can maintain it.

Evidence

  • On the unchanged baseline, 11 malformed retained-value cases failed and 82 controls passed. The candidate passes all 134 focused tests across six management suites.
  • The real local baseline showed an empty breadcrumb and no active section on the unsupported URL; all 15 supported views and selected skill/plugin precedence passed.
  • Required static, full unit (10,560 passed, 6 skipped), type/build, schema, CLI and admin CLI gates passed. Full-owner P3 review found no actionable issues.

The candidate browser run shows Publisher abuse and its active sidebar link on the same unsupported URL, with all 15 valid views and selected-item precedence preserved. It passed with zero page errors and an empty shared runtime-error collection. Screenshots show the before/after page and both selected-item controls.

The browser used the existing local admin and catalog fixtures at http://127.0.0.1:4173. Opening Search intelligence starts its normal local report; no manual moderation, role changes or external-model calls were part of the proof. Existing moderator visibility is covered by component tests; browser proof uses the admin fixture. A first candidate run stopped at test discovery because retained baseline evidence was collected as a test; the local proof config was corrected, with product code unchanged.

@vercel

vercel Bot commented Nov 24, 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 24, 2026 7:35am UTC

Request Review

@clawsweeper

clawsweeper Bot commented Nov 24, 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 browser proof at http://127.0.0.1:4173, using the existing admin and catalog fixtures.

On the same /management?view=constructor URL, the baseline shows empty content and no active section; the candidate shows Publisher abuse and its active sidebar link. All 15 supported views and selected skill/plugin precedence pass in both phases. The candidate passed with zero page errors and an empty shared runtime-error collection.

The four captures show the baseline, corrected default view, selected skill and selected plugin. Opening Search intelligence ran its normal local report effect. No manual moderation or role changes were performed. Existing moderator visibility is covered by component tests; browser proof uses the admin fixture.

Before: unsupported view leaves the page empty

After: same URL shows Publisher abuse

Selected skill keeps precedence

Selected plugin keeps precedence

@vincentkoc
vincentkoc marked this pull request as ready for review November 24, 2026 07:34
@vincentkoc
vincentkoc merged commit 6b91b63 into main Nov 24, 2026
35 checks passed
@vincentkoc
vincentkoc deleted the fix/management-invalid-view-fallback branch November 24, 2026 07:39

This branch was successfully deployed

1 active deployment
Preview – clawhub — 1a4de053 Deployed Nov 24, 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