Skip to content

Phones: the tab bar avatar opens Settings directly - #29

Merged
antonsxh merged 1 commit into
mainfrom
phone-avatar-settings
Nov 22, 2026
Merged

antonsxh merged 1 commit into
mainfrom
phone-avatar-settings

Conversation

@antonsxh

@antonsxh antonsxh commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

What

On phones (≤ 720px, the iPhone PWA) tapping the avatar in the floating tab bar now goes straight to Settings. The account menu is gone there (Edit profile / Settings / Pair new device + the streak line). All three items led into Settings anyway.

  • AppNav.svelte: the tab bar's avatar is a link to /settings. It keeps the account label with the daily-goal progress as its accessible name, gets aria-current="page" on /settings (where the sliding pill already rests) and the press scale.
  • Desktop and iPad (> 720px) keep the top-bar avatar's menu unchanged.
  • On phones, pairing a device is Settings → Devices and the streak is on Home.

Tests

  • mobile.spec.ts (@mobile-only, iPhone): the avatar is a link (no button left in the tab bar), it opens Settings with no menu, and it is aria-current there.
  • profile.spec.ts / streak.spec.ts @mobile: the avatar is found as a button or a link. The account menu is only checked above 720px.
  • bun run check 0/0, lint, test (471) green; e2e mobile profile streak i18n on desktop + iPhone + iPad: 32 passed.

Screenshots (iPhone, 390×844)

Before: tap on the avatar After: tap on the avatar

🤖 Generated with Claude Code

On phones (≤ 720px, the iPhone PWA) the avatar in the floating tab bar is now a
link to /settings instead of an account menu (Edit profile / Settings / Pair new
device + streak line): all three items lead into Settings anyway. Desktop and
iPad keep the top-bar avatar's menu. The link keeps the account label (with the
daily-goal progress) and gets aria-current on /settings, where the pill rests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@antonsxh
antonsxh merged commit 81b14f6 into main Nov 22, 2026
6 checks passed
@antonsxh
antonsxh deleted the phone-avatar-settings branch November 22, 2026 21:01
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