PAR-161
0
Consolidate admin tools into an "Admin" mode with its own sub-navbar
DoneNormalUnassignedEconomy Explorer
Why
The main header nav had grown 5+ admin links (Transactions, Audit, API keys, Groups, Webhooks — and /admin/backfill wasn't even surfaced). Collapse them into a single Admin entry that opens a dedicated admin section with its own sub-navbar.
Change (economy-explorer)
components/HeaderNav.tsx: replace the 5 admin links with one Admin →/admin(highlights for/admin/*and/transactions).components/AdminNav.tsx: the admin sub-navbar (Overview, Transactions, Audit, API keys, Groups, Webhooks, Backfill) with active-highlighting.app/admin/layout.tsx: gates the whole/admin/*area to admins (non-admins never see the tool list) and rendersAdminNavabove each page.app/admin/page.tsx: an admin landing/overview with a card per tool./transactions(admin-gated but lives outside/admin, since its[txnId]detail isn't admin-only) rendersAdminNavitself so the admin section feels continuous.- CSS:
.admin-subnav+.admin-tool-gridinexplorer.css.
Individual admin pages keep their own gate as defence-in-depth. Follow-up to PAR-160 (which added /admin/webhooks).
Resources
- PR · merged#19 Release: webhooks documentation (player guide + admin page) (PAR-162)MCCitiesNetwork/economy-explorer
- commit38564a5 Merge pull request #18 from MCCitiesNetwork/developMCCitiesNetwork/economy-explorer
- commit5350153 Consolidate admin tools into an Admin section with its own sub-navbar (PAR-161)MCCitiesNetwork/economy-explorer
- PR · merged#18 Release: consolidate admin tools into an Admin section + sub-navbar (PAR-161)MCCitiesNetwork/economy-explorer
- PR#17 Release: admin webhooks page + consolidated Admin section/sub-navbar (PAR-160, PAR-161)MCCitiesNetwork/economy-explorer
Comments
No comments yet.
Activity
- ParadauxIO linked a pull request — PR #19 merged — Release: webhooks documentation (player guide + admin page) (PAR-162)
- ParadauxIO linked a pull request — PR #19 open — Release: webhooks documentation (player guide + admin page) (PAR-162)
- ParadauxIO linked a pull request — PR #19 open — Release: admin mode + webhooks documentation (PAR-161, PAR-162)
- ParadauxIO linked a commit — Commit 38564a5 — Merge pull request #18 from MCCitiesNetwork/develop
- ParadauxIO linked a commit — Commit 5350153 — Consolidate admin tools into an Admin section with its own sub-navbar (PAR-161)
- ParadauxIO changed status to Status → Done
- ParadauxIO linked a pull request — PR #18 merged — Release: consolidate admin tools into an Admin section + sub-navbar (PAR-161)
- tesks changed status to Status → Pending Release
- ParadauxIO linked a pull request — PR #18 open — Release: consolidate admin tools into an Admin section + sub-navbar (PAR-161)
- ParadauxIO linked a pull request — PR #17 open — Release: admin webhooks page + consolidated Admin section/sub-navbar (PAR-160, PAR-161)
- ParadauxIO linked a commit — Commit 5350153 — Consolidate admin tools into an Admin section with its own sub-navbar (PAR-161)
- tesks created the issue