Skip to content

Swap Books/Plan tab order; add segmented control to switch plans - #16

Merged
bmingles merged 1 commit into
mainfrom
claude/book-group-tags-bckdee
Jul 16, 2026
Merged

Swap Books/Plan tab order; add segmented control to switch plans#16
bmingles merged 1 commit into
mainfrom
claude/book-group-tags-bckdee

Conversation

@bmingles

Copy link
Copy Markdown
Member

Summary

  • Primary nav order is now Plan, Books, History, Settings (was Books, Plan, History, Settings) — swapped the Plan and Books tab positions.
  • Added PlanToggle, an iOS-style segmented control shown above the day list on the Plan tab, for switching api.activePlanId() between api.plans() entries. Hidden when there's only one plan (a toggle with a single, permanently-selected option isn't useful).
  • The toggle scrolls away with the page content rather than staying pinned at the top — ChapterGroup's own day headers are already position: sticky; top: 0 inside the same scroll container, and that component is shared across the Books/Plan/History routes, so pinning the toggle at the same offset would visually collide with the day headers once you scroll.

Test plan

  • npm run build passes
  • tsc --noEmit passes
  • Verified in a headless browser: tab bar hrefs are now [/plan, /, /history, /settings] in that order
  • Verified the toggle is hidden with one plan, appears with two plans (showing both names), correctly reflects/switches activePlanId (confirmed the switch is visible in Settings' "Reading Plan — {name}" title too, not just local UI state), and is absent on the Books/History tabs
  • Scrolled the Plan tab with two plans and confirmed no visual overlap between the toggle and the day headers' own sticky behavior

Generated by Claude Code

Primary nav is now Plan, Books, History, Settings (was Books, Plan,
History, Settings).

Plan tab now shows an iOS-style segmented control above the day list
for switching api.activePlanId() between api.plans() entries. Hidden
when there's only one plan, since a toggle with a single, permanently
-selected option isn't useful. It scrolls away with the page content
rather than staying pinned, since ChapterGroup's own day headers are
already sticky at top:0 in the same scroll container and that
component is shared across the Books/Plan/History routes — pinning
the toggle at the same offset would visually collide with them.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K2wCTwwVhhkSDxQxWo7UoH
@bmingles
bmingles merged commit 48dfeed into main Jul 16, 2026
1 check passed
@bmingles
bmingles deleted the claude/book-group-tags-bckdee branch July 16, 2026 22:09
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.

2 participants