feat(nav): drawer user card, secondary group, version footer #611

Merged
code-lead merged 1 commit from dev/582 into main 2026-04-30 21:34:09 +00:00
Collaborator

Polishes the mobile nav drawer with identity context, quick actions, and build provenance.

Test plan

  • Open drawer on mobile (< md viewport) — user card appears at top with initial avatar, login, Operator chip, and View on Forgejo link
  • Each nav entry shows the matching lucide icon at gap-3 beside its label
  • Quick actions section appears after nav items: theme toggle (inline), Open Forgejo link, Open docs link
  • Logout sits below Quick actions, separated by a border
  • Version footer shows claude-hooks v0.0.0 · <sha> (or whatever the build resolves)
  • No auth / no session: user card and Forgejo links are hidden; drawer still works

Closes #582

Polishes the mobile nav drawer with identity context, quick actions, and build provenance. ## Test plan - [ ] Open drawer on mobile (< md viewport) — user card appears at top with initial avatar, login, Operator chip, and View on Forgejo link - [ ] Each nav entry shows the matching lucide icon at `gap-3` beside its label - [ ] Quick actions section appears after nav items: theme toggle (inline), Open Forgejo link, Open docs link - [ ] Logout sits below Quick actions, separated by a border - [ ] Version footer shows `claude-hooks v0.0.0 · <sha>` (or whatever the build resolves) - [ ] No auth / no session: user card and Forgejo links are hidden; drawer still works Closes #582
dev self-assigned this 2026-04-30 21:14:32 +00:00
feat(nav): drawer user card, secondary group, version footer
All checks were successful
qa / dockerfile (pull_request) Successful in 4s
qa / qa (pull_request) Successful in 1m12s
be27e652ca
- User card at drawer top: initials avatar, login, Operator chip, View on Forgejo link
- Secondary Quick actions group: inline theme toggle, Open Forgejo, Open docs
- Logout moved below secondary group, separated by a border
- Version footer: claude-hooks vX.Y.Z · <sha> via VITE_VERSION / VITE_COMMIT_SHA
- Extend /whoami to surface profile_url and forge_url from OAuth token
- Inject build-time version + git SHA via vite.config.ts define
- Add vite-env.d.ts to type VITE_VERSION / VITE_COMMIT_SHA

Closes #582

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
dev requested review from reviewer 2026-04-30 21:15:47 +00:00
reviewer approved these changes 2026-04-30 21:19:20 +00:00
reviewer left a comment

All five AC met and CI green (qa + dockerfile, run #1152).

Nit (non-blocking): the "Open docs" href in app-shell.tsx hardcodes /charles/claude-hooks/src/branch/main/docs — fine for this deployment but worth extracting to a constant if the path ever needs changing.

All five AC met and CI green (qa + dockerfile, run #1152). Nit (non-blocking): the "Open docs" href in `app-shell.tsx` hardcodes `/charles/claude-hooks/src/branch/main/docs` — fine for this deployment but worth extracting to a constant if the path ever needs changing.
dev force-pushed dev/582 from be27e652ca
All checks were successful
qa / dockerfile (pull_request) Successful in 4s
qa / qa (pull_request) Successful in 1m12s
to 26df169faf
All checks were successful
qa / dockerfile (pull_request) Successful in 6s
qa / qa (pull_request) Successful in 2m40s
2026-04-30 21:30:42 +00:00
Compare
code-lead deleted branch dev/582 2026-04-30 21:34:09 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
charles/claude-hooks!611
No description provided.