Repository navigation
feat(web): make Continue Watching posters open the item page - #118
Conversation
Clicking a Continue Watching / Next Up poster previously started playback immediately, which made it hard to reach an item's detail page from the home screen. Posters now navigate to the item page and playback moves to an explicit play button layered over the artwork (hover/focus-revealed on desktop, always visible on touch, matching the existing card menu pattern). The card title is now its own link: for episodes it goes to the series page via series_id, for movies to the movie page. Also mocks the playback context in SectionRow.test.tsx, fixing two pre-existing failures unrelated to this change. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughContinueWatchingCard component is refactored to extract series metadata and restructure navigation: the poster image now links directly to the item page, the play button becomes an independent overlay linking to watch, and the heading link routes to the series page for episodes or item page otherwise. ChangesCard Navigation and Layout Restructuring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 11734a2b61
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| to={card.watchHref} | ||
| onClick={handleWatchClick} | ||
| aria-label={`Play ${heading}`} | ||
| className="bg-primary text-primary-foreground absolute top-1/2 left-1/2 flex h-11 w-11 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full opacity-100 shadow-lg transition-all duration-200 md:opacity-0 md:group-hover/media:opacity-100 md:focus-visible:opacity-100" |
There was a problem hiding this comment.
Keep the play button visible on touch tablets
On touch-only devices whose viewport is at least the md breakpoint (for example many tablets), this class changes the new explicit play link from opacity-100 to md:opacity-0, and the only rule that restores it before focus is md:group-hover/media:opacity-100. Because these devices do not provide a reliable hover affordance, the poster now visibly opens details while the resume/play control can be invisible, leaving playback discoverability dependent on tapping an unseen 44px target in the center of the card.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 93b68ca — the hide/reveal is now gated on pointer-fine: (pointer capability) instead of the md: width breakpoint, so coarse-pointer tablets at desktop widths keep the always-visible play button while mouse/trackpad devices get the hover reveal.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@web/src/components/ContinueWatchingCard.tsx`:
- Around line 248-253: The play-overlay link (ViewTransitionLink) in
ContinueWatchingCard is visually hidden with md:opacity-0 but still receives
clicks; update its class and attributes so it's non-interactive when hidden by
adding responsive pointer-events rules (e.g., md:pointer-events-none) and
re-enabling on hover/focus (e.g., md:group-hover/media:pointer-events-auto and
md:focus-visible:pointer-events-auto), ensuring handleWatchClick only runs when
the link is actually interactive; adjust aria attributes if needed to reflect
non-interactivity.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 71d46c47-3523-46e9-88e2-952b3fa31ebd
📒 Files selected for processing (3)
web/src/components/ContinueWatchingCard.test.tsxweb/src/components/ContinueWatchingCard.tsxweb/src/components/SectionRow.test.tsx
…width Review feedback on the Continue Watching play button: md:opacity-0 hid the button on touch tablets at desktop widths where no hover exists to reveal it, and the visually hidden link still captured clicks at the poster center on desktop. Gate the hidden state on pointer-fine instead of md, and pair it with pointer-events-none so the hidden button cannot intercept poster clicks; hover and keyboard focus restore both visibility and interactivity together. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(web): make Continue Watching posters open the item page Clicking a Continue Watching / Next Up poster previously started playback immediately, which made it hard to reach an item's detail page from the home screen. Posters now navigate to the item page and playback moves to an explicit play button layered over the artwork (hover/focus-revealed on desktop, always visible on touch, matching the existing card menu pattern). The card title is now its own link: for episodes it goes to the series page via series_id, for movies to the movie page. Also mocks the playback context in SectionRow.test.tsx, fixing two pre-existing failures unrelated to this change. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix(web): gate hidden play overlay on hover capability, not viewport width Review feedback on the Continue Watching play button: md:opacity-0 hid the button on touch tablets at desktop widths where no hover exists to reveal it, and the visually hidden link still captured clicks at the poster center on desktop. Gate the hidden state on pointer-fine instead of md, and pair it with pointer-events-none so the hidden button cannot intercept poster clicks; hover and keyboard focus restore both visibility and interactivity together. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
* feat(web): make Continue Watching posters open the item page Clicking a Continue Watching / Next Up poster previously started playback immediately, which made it hard to reach an item's detail page from the home screen. Posters now navigate to the item page and playback moves to an explicit play button layered over the artwork (hover/focus-revealed on desktop, always visible on touch, matching the existing card menu pattern). The card title is now its own link: for episodes it goes to the series page via series_id, for movies to the movie page. Also mocks the playback context in SectionRow.test.tsx, fixing two pre-existing failures unrelated to this change. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix(web): gate hidden play overlay on hover capability, not viewport width Review feedback on the Continue Watching play button: md:opacity-0 hid the button on touch tablets at desktop widths where no hover exists to reveal it, and the visually hidden link still captured clicks at the poster center on desktop. Gate the hidden state on pointer-fine instead of md, and pair it with pointer-events-none so the hidden button cannot intercept poster clicks; hover and keyboard focus restore both visibility and interactivity together. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Problem
In the Continue Watching and Next Up rows, clicking anywhere on a poster immediately started playback. There was no way to reach an item's detail page from the artwork, and the hover play icon was purely decorative — it signaled what a click anywhere would do rather than being a control.
What changed
MediaItemMenualready uses on this card). It fades in on hover/keyboard focus on desktop and is always visible on touch devices — matching the card's existing "more actions" menu — so resuming on mobile stays one tap. Plain click starts inline playback; cmd-click still opens the watch URL in a new tab.series_id; for movies it goes to the movie page. The episode metadata and time-remaining lines are plain text now, since the poster already covers the episode's own page.Why this approach
Poster-opens-details / explicit-play matches the convention users know from Netflix, Plex, and Jellyfin, and makes modifier-clicks behave sensibly (cmd-click on a poster previously opened a raw
/watchURL in a new tab). The play button is rendered as an absolutely-positioned sibling rather than nested inside the poster anchor, since interactive elements can't legally nest inside an anchor.Tests
/item/...with the watch href reserved for the play button.SectionRow.test.tsxthat had two of its tests failing before this change.All three touched test files pass; remaining full-suite failures are pre-existing on a clean tree and unrelated.
Notes for reviewers / follow-up
silo-androidandsilo-appleare needed if this interaction model should apply there too.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Refactor
Tests