Admin item/tag edit pages weren't rendering because TanStack Router treated them as children of the list route (which had no Outlet). Moving to directory-based routing (items/index.tsx + items/$itemId.tsx) makes them siblings that render directly in the admin layout. Also adds UAT results for phases 35-38 and backlog item 999.12 (Admin UX Polish). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
43 lines
1003 B
Markdown
43 lines
1003 B
Markdown
---
|
|
status: complete
|
|
phase: 36-admin-role-panel-foundation
|
|
source: [36-01-SUMMARY.md, 36-02-SUMMARY.md]
|
|
started: 2026-04-20T00:02:00.000Z
|
|
updated: 2026-04-20T00:03:00.000Z
|
|
---
|
|
|
|
## Current Test
|
|
|
|
[testing complete]
|
|
|
|
## Tests
|
|
|
|
### 1. Admin Link in UserMenu
|
|
expected: As an admin user, clicking the avatar/user menu shows an "Admin" link at the top of the dropdown (with a shield icon). Non-admin users do not see this link.
|
|
result: pass
|
|
|
|
### 2. Admin Panel Access and Guard
|
|
expected: Navigating to /admin as an admin user shows the admin panel with a sidebar. Non-admin users are redirected to /.
|
|
result: pass
|
|
|
|
### 3. Admin Sidebar Navigation
|
|
expected: The admin sidebar shows "Items" and "Tags" links. Both are clickable (not disabled/greyed out).
|
|
result: pass
|
|
|
|
### 4. Admin API Protection
|
|
expected: Hitting /api/admin/ as a non-admin user returns 403 Forbidden. Unauthenticated requests return 401.
|
|
result: pass
|
|
|
|
## Summary
|
|
|
|
total: 4
|
|
passed: 4
|
|
issues: 0
|
|
pending: 0
|
|
skipped: 0
|
|
blocked: 0
|
|
|
|
## Gaps
|
|
|
|
[none]
|