Skip to content

Mobile: floating icon-only tab bar with the avatar - #25

Merged
antonsxh merged 1 commit into
mainfrom
mobile-nav-capsule
Nov 22, 2026
Merged

antonsxh merged 1 commit into
mainfrom
mobile-nav-capsule

Conversation

@antonsxh

@antonsxh antonsxh commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

On phones (≤ 720px) the full-width, labelled bottom tab bar becomes a floating capsule with icons only, closer to current iOS apps. Desktop and tablet are unchanged: a pixel diff of desktop Home differs only in the "now" line, because the clock moved.

What changes (phones only)

  • Capsule:
    • 16px from the sides, a gap above the home indicator (--safe-bottom), at most 440×60px, fully rounded;
    • translucent glass with backdrop-filter and a hairline border, with a solid fallback where blur isn't supported;
    • content scrolls visibly underneath it.
  • Slots: Home, Plan, Calendar, Quests, Review, and the avatar with the daily-goal ring at the far right, which opens the account menu (upwards, kept on screen).
    • Labels are kept for screen readers, so the tabs keep their names (in German too) and aria-current.
  • Focus is no longer a phone tab. It's reachable from the mini-player, Home's Next up, ▶ on task cards and the command palette.
  • Active indicator: one neutral pill slides between tabs with the spring easing, and the active icon gets brighter and bolder. With reduced motion the pill jumps. On /settings the pill rests on the avatar.
  • Top bar: only the logo and search remain, 56px tall.
  • Mini-player: now a capsule too, with the same width and glass, 8px above the tab bar. Page padding and the Calendar day-view height account for both.
  • Menu gets two optional props, anchor and gap, so it can open upwards from a bottom trigger.
  • New tokens for the bar's size, spacing, glass, shadow and pill. The tab list and active-slot logic is in #lib/nav.ts, with tests.

Screenshots

iPhone 390×844 (Chromium emulation, GPU flags so the blur renders).

Before After
Tab bar
Home
Timer running
Plan
After: account menu Calendar Capsule + mini-player

Desktop is unchanged: after-home-desktop.png

Video (tabs and the sliding pill, press feedback, scrolling under the glass, account menu, mini-player): after-tabbar.webm

Tests

  • mobile.spec.ts:
    • the five tabs navigate by name, with exactly one marked as current;
    • new @mobile-only test: the tab-bar avatar opens the menu above the bar and on screen, and Settings navigates.
  • i18n.spec.ts: the old check that German labels weren't cut off no longer applies; it now checks that the German tab names exist and navigate.
  • Each of these tests failed with its bug put back in: no upward placement, labels hidden with display: none.
  • Results: check 0 errors / 0 warnings; test 393 pass; lint clean; build OK. test:e2e 87 passed, 6 skipped. test:e2e:mobile 48 passed, 8 skipped.
  • Not tested on a real iPhone: the blur in Safari and in the installed app, the real safe-area gap, how the spring feels, and landscape.

🤖 Generated with Claude Code

Phones (≤ 720px) get a compact floating capsule instead of the full-width,
labelled six-tab bar: icons only (labels stay as accessible names), a soft
pill that slides to the active slot, and the account avatar (with the
daily-goal ring) as the last slot, opening the account menu upwards. Focus
is no longer a phone tab (mini-player, Next up, ▶ and the palette reach it).
The top bar on phones keeps brand + search. The mini-player floats above the
capsule with the same insets and glass. Desktop/tablet are unchanged.

- #lib/nav.ts: TAB_ITEMS, activeTab() (+ nav.test.ts)
- Menu: optional anchor/gap props (placed against the capsule)
- tokens: --tabbar-*, --tab-icon, --glass-*, --shadow-float, --tab-pill
- e2e: tab bar navigation (5 tabs), avatar → account menu → Settings,
  German accessible names on the icon-only bar
- docs: ROADMAP section, CLAUDE.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@antonsxh
antonsxh merged commit 4ed3eb4 into main Nov 22, 2026
6 checks passed
@antonsxh
antonsxh deleted the mobile-nav-capsule branch November 22, 2026 14:32
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