Repository navigation
Mobile polish, phase 1: sheets, mini-player, Next up, micro-interactions - #23
Merged
Merged
Conversation
- Motion tokens (--ease-out/-in/-spring, --dur-press/-pop/-sheet, --press-*) and #lib/motion.ts (CSS time/easing parsing, token-driven Svelte transitions); a global prefers-reduced-motion rule. Touch press feedback for controls, iOS callout/selection off on controls, touch-action. - Dialog becomes a bottom sheet on phones: slides up/down, drag the header to dismiss (#lib/sheet.ts), anchored above the iOS keyboard via visualViewport, sticky .dialog-actions with a full-width primary button; exit animation for every way of closing, `onclosed`. - Mini-player above the tab bar while a timer is active (phones), one big pause/resume/start/skip button (primaryTimerAction); the top-bar chip is hidden on phones. - Home on phones: "Next up" card with Start focus (stays on Home) and an empty state that focuses the add input; one compact summary row (today vs goal + streak). - Task completion animation (check pop, tick draw, strike-through), animated tab indicator, today's value ticks in. Focus: Resume is primary when paused; Screen Wake Lock while the clock runs (#lib/wake-lock.ts). Review KPIs compact on phones; quest form stacks. - Styleguide: sheet + mini-player. Unit tests for the new pure logic, e2e mobile-polish.spec.ts. ROADMAP section and mobile UX principles in AGENTS.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… in use on phones Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured mid-animation, the header has moved on when the pointer goes down, so the drag started on the sheet body and never dismissed (failed in CI). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 1 of the iPhone PWA polish. Three goals: the next tap should always be obvious, interactions should feel tactile, and phones should show less.
What changes (phones ≤ 720px unless noted)
Dialog.svelte):visualViewport), usedvhinstead of100vhand respect the safe area;prefers-reduced-motionswitches all animation off;/focuswhile the clock runs. It is feature-detected and never logs console errors.Next up and the mini-player are phones only. On iPad and desktop they would compete with the task cards' ▶ and the timer chip.
Not in this PR: Phase 2 (Plan and Calendar as a day view with swipe) and Phase 3 (Web Push and the app-icon badge). WebKit in Playwright was tried but not added: the browser needs system libraries here, and CI installs none for e2e.
Screenshots
iPhone 390×844 (Chromium emulation).
Desktop is unchanged: after-home-desktop.png
Video (sheet drag-dismiss, task check, Start focus → mini-player, pause/resume; recorded before the add-form disclosure commit): after-interactions.webm
Tests
motion,sheet,next-up,wake-lock, andprimaryTimerActionintimer.test.ts.bun run testreports 366 pass.e2e/specs/mobile-polish.spec.ts(@mobile). Both tests were checked to fail with the bug reintroduced.test:e2e87 passed, 2 skipped.test:e2e:mobile43 passed, 3 skipped.check,lintandbuildare clean.:activefeels, and Safari's animation rendering.🤖 Generated with Claude Code