Skip to content

feat(home): switch Ready to watch between cards, a compact list and a carousel - #101

Merged
mathieuletyrant merged 3 commits into
mainfrom
claude/friendly-wozniak-ck7kav
Nov 11, 2026
Merged

mathieuletyrant merged 3 commits into
mainfrom
claude/friendly-wozniak-ck7kav

Conversation

@mathieuletyrant

Copy link
Copy Markdown
Owner

Closes #100

What

On a phone (and a portrait iPad), "Ready to watch" gets a 3-way switch under its title, beside I have N min:

  • Cards: today's grid, unchanged (ReadyCard).
  • List (ReadyRow): one ~50 px row per series in a rounded panel. Backdrop thumbnail with its progress bar, the full title, S01E08 · 1 left, New / Saved up as an accent dot before the title, ▶︎ when a TV is open, ✓ drawn 32 px in a 44 px target.
  • Carousel (ReadyCarousel): pages of two rows of cards, swiped one whole page at a time (snap-mandatory + snap-always, a page is exactly the section's width, so there's no peek). 1 / 3 is at the right of the title, and the dots below can be tapped to change page. The section never grows past two rows, so Upcoming stays close.

From 1024 px wide (computer, landscape iPad), it's always the cards grid: four per row fit well, the list would stretch with an empty middle, and the carousel saves little. The switch is hidden there and "I have N min" goes back beside the title.

How the choice is kept

useReadyLayout() (components/series/ready-layout.tsx) keeps the layout in localStorage under snug.readyLayout, the same way as the time budget (snug.timeBudget): read once when the page mounts, written on each tap, both in try/catch (private browsing can throw). An unknown value falls back to Cards. It's per device on purpose (a list on the phone, cards on the iPad), so the server and Preferences don't change. The carousel's current page isn't kept: it restarts at page 1.

useColumns() follows the grid's breakpoints with matchMedia through useSyncExternalStore, so a carousel page holds as many cards as two rows of the grid at that width, and Home knows when the screen is wide.

Checks

  • bun run typecheck, bun test, bun run build: pass.
  • Looked at in Chromium with a mocked API, at 390 px (all three layouts) and 1280 px (List chosen, so the cards are forced). Not tried with a finger on a real iPhone.

Generated by Claude Code

… carousel

A 3-way switch under the section title, beside "I have N min":
- Cards: today's grid.
- List: one 50 px row per series, full title, thumbnail with its
  progress, New/Saved up as a dot, the ✓ drawn 32 px in a 44 px target.
- Carousel: pages of two rows of cards, swiped one page at a time
  (scroll snap, no peek), "1 / 3" beside the title and dots below,
  so Upcoming stays close.

The choice is kept per device in localStorage, like the time budget.

Refs #100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqWWDXV3uMXzdtaekU8hQ2
From 1024 px wide, the cards grid already shows four per row: the list
stretches with an empty middle and the carousel saves little. The
switch is hidden there and "I have N min" goes back beside the title;
the layout chosen on the phone is kept for the phone.

Refs #100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqWWDXV3uMXzdtaekU8hQ2
From review:
- The page is read from the scroll position only, inside the carousel,
  and re-read on resize and when a page disappears: switching layouts,
  a ✓ emptying the last page or turning the phone no longer leaves the
  counter on the wrong page.
- useColumns builds its media queries once (it resubscribed on every
  render) and moves to its own file.
- Dots are 28 px tap targets; pages are labelled groups; the title's
  counter is hidden from screen readers, the dots say it.
- Reuse the no-scrollbar utility and the global focus ring, drop the
  unreachable lg columns in the carousel, text-base in the list.

Refs #100

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqWWDXV3uMXzdtaekU8hQ2
@mathieuletyrant
mathieuletyrant merged commit 2bc3b08 into main Nov 11, 2026
1 check passed
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.

Home: switch how "Ready to watch" is laid out (cards, compact list, carousel)

2 participants