Repository navigation
Mobile polish, phase 2: Plan and Calendar as a day view on phones - #24
Merged
Merged
Conversation
Phones (≤ 720px) show one day of the week instead of a sideways-scrolling board/grid; desktop and iPad are unchanged. - DayStrip (Mon–Sun, sliding pill, one dot per day) + DaySwipe (pointer swipe ±1 day with axis lock, follow and slide-in; tap equivalents: strip, week arrows). Selected day in ?day= (client-only), pure helpers in #lib/day-view.ts and #lib/swipe.ts. - Plan: only the selected column, full width; compact card meta row; calm empty day with a primary "Add a task"; backlog in a bottom sheet with "Move to <selected day>". - Calendar: WeekGrid takes `selected` (CSS shows one column), compact day header with the total, now line only on today, per-day scroll target. - Menu opens as a popover inside open dialogs (menus/quest picker in sheets). - Fix: the calendar slot took the touch press scale, shifting tapped times. - Unit tests for day-view/swipe, e2e day-view.spec.ts (@mobile). 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 2 of the iPhone PWA polish. On phones (≤ 720px), Plan and Calendar now show one day instead of a sideways-scrolling week. Desktop and iPad are unchanged.
What changes
DayStrip.svelte): Mon–Sun under the header.?day=, so it survives reloads and form actions (formAction()). Changing the day replaces the history entry instead of adding one.DaySwipe.svelte, rules in#lib/swipe.tsand#lib/day-view.ts):touch-action: pan-y, so vertical scrolling stays native;PlanColumn, with ▶ ↑ ↓ ⋯ on one row per card;WeekGridnow takesselectedand a column count, and phones show the selected day full width;Menuopens as a popover inside an open dialog. Before this, menus and the quest picker could not be used inside sheets.Decision: Both pages still render the whole week, and CSS shows only the selected day on phones. The server can't know the screen size, so this avoids a flash on load and leaves desktop untouched.
Screenshots
iPhone 390×844 (Chromium emulation).
Desktop is unchanged: plan · calendar
Video (swipes across the week boundary, strip taps, backlog sheet, Calendar swipes): after-swipe.webm
Tests
day-view.test.tsandswipe.test.ts.bun run testreports 388 pass.e2e/specs/day-view.spec.tswith four@mobiletests, passing with--repeat-each=3.?day=survives a reload.?day=ignored, no axis lock, slot press-scale), then passed again.test:e2e87 passed, 6 skipped.test:e2e:mobile47 passed, 7 skipped.check,lintandbuildare clean.🤖 Generated with Claude Code