Repository navigation
fix: show the default management view for unsupported links - #4947
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Real local browser proof at On the same 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. |




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
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.