Repository navigation
feat(summary): open a title's living poster full screen - #3898
Conversation
Add /movies/:slug/living-poster and /shows/:slug/living-poster, a black page that shows only the living poster with the real player, gated like the summary poster. The static poster holds the final size while loading, and stays with one line of copy when motion is reduced or the title has no living poster. A close button and Escape return to the title's summary page.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 705646475d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| <div class="trakt-full-screen-living-poster"> | ||
| <div class="full-screen-poster-still" class:is-settled={isSettled}> | ||
| {#if poster} | ||
| <CrossOriginImage src={poster.src} alt={poster.alt} loading="eager" /> |
There was a problem hiding this comment.
Prioritize the full-screen hero image
On a direct visit this still poster is the page's hero/LCP image, but it opts into eager loading without fetchpriority="high"; after the summary request resolves, the browser can therefore schedule the only visible image at its default priority. Pass high fetch priority at this call site, as the existing summary poster does for priority images. .agents/rules/performance.mdL348-L354
Useful? React with 👍 / 👎.
| ); | ||
| </script> | ||
|
|
||
| <LivingPosterPage type="movie" slug={params.slug} media={$movie.data} /> |
There was a problem hiding this comment.
Wire the full-screen route into the summary UI
A repo-wide search for living-poster finds only these new route definitions and their implementation, with no link or URL builder from either movie or show summary. Consequently directors cannot discover or open this feature through the application—the existing summary poster remains inert or retains its trailer/streaming link—so an appropriately gated summary control needs to navigate to this route.
Useful? React with 👍 / 👎.
| if (event.key !== "Escape") return; | ||
|
|
||
| // eslint-disable-next-line svelte/no-navigation-without-resolve | ||
| goto(closeHref); |
There was a problem hiding this comment.
Close the poster without adding another history entry
When this route is reached from a title page, both this goto and the close button's ordinary link push the title URL as a new entry instead of closing the current entry. Pressing browser Back after closing therefore reopens the living-poster page, producing a navigation loop; use back/replace semantics consistently for both close paths.
Useful? React with 👍 / 👎.
Adds a full-screen page for a title's living poster:
/movies/:slug/living-posterand/shows/:slug/living-poster.Testing
viteston the two new specs: 7 pass. Each spec was checked to fail with its guarded branch broken.bun run check: 0 errors.eslintandprettier --checkclean on the changed files.Not verified