WIP: Header: show the logged-in user with an OIDC / local badge #22

Closed
claude Bot wants to merge 0 commits from feat/header-user into main
pull from: feat/header-user

Requested by Cédric

Before: the header gave no sign of who is logged in; the user name only appeared in the logout button's tooltip.

After: the header shows the user name next to the logout button, with a small "OIDC" (accent colour) or "local" badge. When authentication is off it shows "(no auth)" in grey.

How: frontend only. /auth/me already returns mode and user in every mode (none comes from the guard), so app.js fills a new #whoami element from it. Long names are cut with an ellipsis (18 characters, 12 on phones).

Checked: go vet, go build, go test -race; header rendered for the three cases in a static preview.

🤖 Generated with Claude Code

<!-- ccr-projects-attribution: {"github_login":"vblogio"} --> _Requested by **Cédric**_ Before: the header gave no sign of who is logged in; the user name only appeared in the logout button's tooltip. After: the header shows the user name next to the logout button, with a small "OIDC" (accent colour) or "local" badge. When authentication is off it shows "(no auth)" in grey. How: frontend only. `/auth/me` already returns `mode` and `user` in every mode (`none` comes from the guard), so `app.js` fills a new `#whoami` element from it. Long names are cut with an ellipsis (18 characters, 12 on phones). Checked: go vet, go build, go test -race; header rendered for the three cases in a static preview. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude Bot added 1 commit 2026-10-04 17:25:31 +02:00
claude Bot added 1 commit 2026-10-04 17:27:42 +02:00
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
cedric closed this pull request 2026-10-05 10:58:23 +02:00

Pull request closed

Please reopen this pull request to perform a merge.
This pull request is marked as a work in progress.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vLab-BZH/logstream#22