Skip to content

ui(nav): admin escape links, exercise back link, stats tab scroll-into-view (revertable)#57

Merged
rwlove merged 1 commit into
mainfrom
ui/nav-consistency
Jul 1, 2026
Merged

ui(nav): admin escape links, exercise back link, stats tab scroll-into-view (revertable)#57
rwlove merged 1 commit into
mainfrom
ui/nav-consistency

Conversation

@rwlove

@rwlove rwlove commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • /admin/ header links to all five main pages (was a dead-end)
  • /exercise/ gets a "Back to workout" link
  • Stats tab bar scrolls the active tab into view on selection (12 tabs overflow on phones)

Deviation from plan

Skipped converting /admin/ to the shared Bootstrap navbar + tabs: the admin panel is deliberately dependency-free (no Bootstrap loaded), and importing it would restyle the whole diagnostic UI with real regression risk for cosmetic gain. The dead-end complaint is fixed by the links.

Test plan

  • All 5 links render on /admin/; back link on /exercise/; scroll handler shipped in stats.js
  • html5lib: still 0 parse errors on touched pages

🤖 Generated with Claude Code

…tab scroll-into-view (revertable)

- /admin/ header now links to today / wall / health / stats / settings
  (was a dead-end with only wall + today). Deliberately NOT adopting
  the shared Bootstrap navbar there: the admin panel is a
  dependency-free dark diagnostic UI and pulling in Bootstrap CSS
  would restyle all of it for zero functional gain.
- /exercise/ gets a 'Back to workout' link above the edit card.
- Stats: the selected tab scrolls itself into view (smooth, centered)
  — with 12 tabs the bar overflows on phones and the active tab could
  sit off-screen.

Revert this commit alone to undo all three.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@rwlove rwlove merged commit 27b016d into main Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant