Repository navigation
feat(home): switch Ready to watch between cards, a compact list and a carousel - #101
Merged
Merged
Conversation
… 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
This was referenced Nov 11, 2026
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.
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:
ReadyCard).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.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 / 3is 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 inlocalStorageundersnug.readyLayout, the same way as the time budget (snug.timeBudget): read once when the page mounts, written on each tap, both intry/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 andPreferencesdon't change. The carousel's current page isn't kept: it restarts at page 1.useColumns()follows the grid's breakpoints withmatchMediathroughuseSyncExternalStore, 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.Generated by Claude Code