Skip to content

feat(web): make Continue Watching posters open the item page - #118

Merged
Quick104 merged 2 commits into
mainfrom
claude/upbeat-volhard-d9f423
Jun 9, 2026
Merged

Quick104 merged 2 commits into
mainfrom
claude/upbeat-volhard-d9f423

Conversation

@Quick104

@Quick104 Quick104 commented Jun 9, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Poster click → item detail page. The poster link now points at the item's page instead of the watch route. Hover zoom/dim effects are preserved.
  • Playback moves to an explicit play button. The previously decorative play overlay is now a real, focusable link layered over the artwork (same sibling-overlay pattern MediaItemMenu already 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.
  • Title is its own link. For episodes (where the heading shows the series name) it navigates to the series page via 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 /watch URL 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

  • Updated the episodic-links test to assert the new series-title link and play button.
  • Added a regression test that the poster points at /item/... with the watch href reserved for the play button.
  • Fixed a missing playback-context mock in SectionRow.test.tsx that 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

  • Both Continue Watching and Next Up rows share this card, so both get the new interaction model.
  • The Android and Apple clients render their own Continue Watching rows; matching follow-ups in silo-android and silo-apple are needed if this interaction model should apply there too.
  • AI-use disclosure: implemented with Claude Code under human direction and review.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Heading links for episode cards now navigate to the series page when applicable.
  • Refactor

    • Continue Watching card layout updated: poster links go to the item page and the play control is a separate overlay linking to playback.
  • Tests

    • Updated/extended tests to cover new link behaviors and added a playback-context mock for test stability.

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>
@coderabbitai

coderabbitai Bot commented Jun 9, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e0e9aa0d-f1a2-4529-a12f-bcf0080658c2

📥 Commits

Reviewing files that changed from the base of the PR and between 11734a2 and 93b68ca.

📒 Files selected for processing (1)
  • web/src/components/ContinueWatchingCard.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • web/src/components/ContinueWatchingCard.tsx

📝 Walkthrough

Walkthrough

ContinueWatchingCard 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.

Changes

Card Navigation and Layout Restructuring

Layer / File(s) Summary
Card model enrichment and heading navigation logic
web/src/components/ContinueWatchingCard.tsx
Component extracts seriesId from both sectionItem and detail payloads into the internal card model, then computes headingHref to conditionally route to series page for episodes or item page otherwise.
Card layout and overlay restructuring
web/src/components/ContinueWatchingCard.tsx
Media area is wrapped in a group container with image now linking to itemHref; play button becomes a standalone absolute-positioned ViewTransitionLink overlay linking to watchHref with updated hover/opacity behavior; heading is rendered as its own link to headingHref.
Navigation link validation and test infrastructure
web/src/components/ContinueWatchingCard.test.tsx, web/src/components/SectionRow.test.tsx
ContinueWatchingCard tests verify new link structure for episodic and movie content, including series-level navigation and play button positioning; SectionRow test setup adds watchPlaybackContext mock.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • Silo-Server/silo-server#96: Modifies ContinueWatchingCard navigation and overlay logic, closely related to the link/layout changes validated by these tests.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and accurately describes the main change: restructuring the Continue Watching card so poster clicks navigate to item pages instead of starting playback.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/upbeat-volhard-d9f423

Comment @coderabbitai help to get the list of available commands and usage tips.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 7040fa4 and 11734a2.

📒 Files selected for processing (3)
  • web/src/components/ContinueWatchingCard.test.tsx
  • web/src/components/ContinueWatchingCard.tsx
  • web/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>
@Quick104
Quick104 merged commit 6ee433e into main Jun 9, 2026
6 checks passed
@Quick104
Quick104 deleted the claude/upbeat-volhard-d9f423 branch June 9, 2026 23:25
Quick104 added a commit that referenced this pull request Jun 11, 2026
* 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>
Quick104 added a commit that referenced this pull request Jun 17, 2026
* 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>
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.

1 participant