Move admin links into an admin menu in the titlebar (#66) #70

Merged
miko merged 2 commits from feature/66-admin-menu into development 2026-11-04 10:53:32 +01:00
Owner

Closes #66.

Admins get a wrench dropdown "Administration" (de: "Verwaltung") beside the user menu, holding Settings, Pages and Deleted guides. It replaces the separate icon buttons in the titlebar. On phones only the wrench shows; the label stays sr-only.

  • Pages is in the menu too: #64 was merged first and had added its own button.
  • Each entry is gated by its own permission (isAdmin, canManagePages, canRestoreGuides); the menu is left out when none applies, so authors, viewers and guests don't see it.
  • User menu and admin menu share one disclosure, TitlebarDropdown: it closes on Escape, a click or focus outside, and when a link in it is followed (the titlebar stays mounted across navigation).
  • E2E: admin reaches all three pages and closes the menu; no menu for author, viewer, guest; no overflow at 375px. pages.spec.ts now goes through the menu.

🤖 Generated with Claude Code

Closes #66. Admins get a wrench dropdown "Administration" (de: "Verwaltung") beside the user menu, holding Settings, Pages and Deleted guides. It replaces the separate icon buttons in the titlebar. On phones only the wrench shows; the label stays sr-only. - Pages is in the menu too: #64 was merged first and had added its own button. - Each entry is gated by its own permission (`isAdmin`, `canManagePages`, `canRestoreGuides`); the menu is left out when none applies, so authors, viewers and guests don't see it. - User menu and admin menu share one disclosure, `TitlebarDropdown`: it closes on Escape, a click or focus outside, and when a link in it is followed (the titlebar stays mounted across navigation). - E2E: admin reaches all three pages and closes the menu; no menu for author, viewer, guest; no overflow at 375px. `pages.spec.ts` now goes through the menu. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Settings, Pages and Deleted guides leave the bar for a wrench dropdown
beside the user menu, shown only to admins. Both menus now share one
disclosure, which also closes when a link in it is followed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
miko merged commit 98213ca70e into development 2026-11-04 10:53:32 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MassiveDynamic/kataba!70
No description provided.