feat(nav): collapse settings, theme and log out into a user menu #63
No reviewers
Labels
No labels
bug
docs
duplicate
enhancement
help wanted
invalid
nice-to-have
pre-1.0
question
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/lamplighter!63
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/59-user-menu"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
Same branch the Prover passed (feat/59-user-menu @
7fc4950), now pushed as PR #63 into main as Jeremy asked, with screenshots (C11). Forgejo CI is green on it, and it still merges cleanly after #60's merge (e07248f).Fixes #59
Red, then green
export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && mix test test/lamplighter_web/components/user_menu_test.exs169940c): exit 181314e7): exit 0Checks
export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && mix precommit 2>&1 | tail -3, exit 0timeout 120 ~/.venvs/pw/bin/python /home/peak/work/lamplighter-v1-2/checks/user_menu_browser.py, exit 07fc4950(Chromium, dev server :4127) passes at 390px and desktop: Enter opens the menu, Tab goes Settings → theme (system/light/dark) → Log out, Escape closes, the menu stays open across a LiveView re-render and a theme pick, it fits the viewport in dark theme, and Log out signs out. (Nye):cd /tmp && python3 /home/peak/work/lamplighter-v1-2/review59/nye_check.py, exit 07fc4950: Escape, click-away, Settings navigation and a patch link all close the menu, and the theme toggle switches, at 390px and desktop. (Nye):cd /tmp && python3 /home/peak/work/lamplighter-v1-2/review59/uw_check.py, exit 07fc4950, clean tree); existing #current-user/#nav-settings tests still hold. Untested: browser behavior (relied on C3/C7/C8), the named a11y nits, Safari/touch. (Prover):export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && cd /home/peak/work/lamplighter-v1-2/lamplighter && mix test, exit 07fc4950into main, mergeable after #60's merge, with the 390px and desktop screenshots (closed and open) in a comment. (Upper Wolfjaw):curl -sf --noproxy '*' https://git.knope.dev/api/v1/repos/jfro/lamplighter/pulls/63 | jq -e '.state=="open" and .mergeable==true and .head.ref=="feat/59-user-menu" and (.head.sha|startswith("7fc4950")) and .base.ref=="main"' && curl -sf --noproxy '*' https://git.knope.dev/api/v1/repos/jfro/lamplighter/issues/63/comments | jq -e '[.[].body|contains(" and contains(" and contains(" and contains("]|any', exit 0export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && cd /home/peak/work/lamplighter-v1-2/lamplighter && mix test test/lamplighter_web/components/user_menu_test.exs, exit 0Risks
Nye's optional a11y nits aren't taken: tabbing past Log out leaves the menu open, the button has no aria-haspopup, and Escape doesn't move focus back to the button. Safari and touch aren't tested.
Prover
Passed (Sonnet): Read the 3-file diff against the merge base and re-ran the user-menu tests (6 pass); the full suite and browser checks (C2, C3, C7, C8) back it. Untested: the named a11y nits (no aria-haspopup, no focus return on Escape, Tab past Log out leaves the menu open), Safari, touch.
Every command above was run by Fortysix's Basecamp itself, on the branch named.
Screenshots at feat/59-user-menu @
7fc4950(Chromium):390-closed

390-open

desktop-closed

desktop-open
