Repository navigation
chore(web): land the remaining small fixes from #805 - #813
Conversation
`MediaUserActionBar` and `WatchedActionBar` already own the detail-page mutation wiring, and Movie and Episode already use them — Series and Season were left hand-wiring the same hooks: eight mutation references on Series and two on Season, plus a local `handleRatingChange` that duplicates the shared one exactly. Behaviour is unchanged. The point of those wrappers is that the mutation hooks live below the page content boundary, so a pending/settled notification re-renders the action bar rather than the hero and everything below it; Series and Season were not getting that. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
shadcn ships `cursor-default` on dropdown-menu items, select items and the select scroll buttons, so every menu row in the app rendered an arrow cursor despite being clickable. The detail overflow menu had inherited the same class. Adds the pointer for enabled buttons and `[role="button"]`, plus `not-allowed` for their disabled counterparts. Both live in `@layer base`, not as utilities, so an explicit `cursor-*` class still wins — the two deliberate `cursor-default` uses (a non-interactive tooltip target in the subtitle dialog, and the player's audio-track button in its disabled state) are unaffected. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Eight card images still decoded synchronously. `decoding="async"` lets the browser decode them off the main thread, so a row scrolling into view does not block interaction while its artwork lands — the same hint the detail hero and season grid already carry. RecommendationGrid's poster also gains `loading="lazy"`; it renders in a grid that routinely extends past the fold and was the one card image fetching eagerly. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`useScrollRestoration` ran after paint, so the browser showed one frame of the new route at the previous route's scroll offset before jumping. Deep in a long season and opening an episode, that frame reads as a jump to the top rather than an arrival at it. Moving it to a layout effect scrolls before that frame is painted. The comment above the hook still applies: this deliberately replaces react-router's `<ScrollRestoration>`, which restores the previous offset, where every page here expects to open at the top. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Warning Review limit reachedNext included review available in 34 minutes. View limit detailsLimit details: You’ve used the included review currently available. Your 100 included PR review attempts over the past 7 days set your current allowance at 1 review per hour. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (15)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e916db10c7
ℹ️ 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".
| button:not(:disabled), | ||
| [role="button"]:not([aria-disabled="true"]) { |
There was a problem hiding this comment.
Move the cursor rules outside the text-scale selector pair
When the accessibility text scale is large, this insertion follows the trailing comma on the .text-[38px] selector, so that selector is accidentally grouped with the enabled-button cursor rule. Consequently, 38px text no longer receives its scaled font size under data-text-scale="large" and instead gets a pointer cursor even when non-interactive; place the cursor rules after the existing large/x-large font-size rule.
Useful? React with 👍 / 👎.
Problem
Related issue: N/A — the tail of #805, after #810, #811 and #812.
Auditing what was left of @blurbery's #805 turned up four small, independent
fixes that hadn't landed with the three extracted PRs and were worth keeping.
Each is a separate commit.
1. Series and Season hand-wired their action bars.
MediaUserActionBarandWatchedActionBaralready exist and Movie and Episode already use them, butSeriesContentstill wired eight mutation-hook references andSeasonContenttwo, plus a local
handleRatingChangeduplicating the shared one exactly. Thepoint of those wrappers is that the mutation hooks sit below the page content
boundary, so a pending/settled notification re-renders the action bar rather than
the hero and everything under it — Series and Season weren't getting that.
2. Menu rows showed an arrow cursor. shadcn ships
cursor-defaultondropdown-menu items, select items and the select scroll buttons, so every menu
row in the app looked unclickable. The detail overflow menu had inherited it too.
3. Eight card images decoded synchronously, blocking interaction while a row
scrolled into view. RecommendationGrid's poster was also the one card image still
fetching eagerly.
4. Scroll-to-top ran after paint, so the browser showed one frame of the new
route at the previous route's scroll offset. Deep in a long season and opening an
episode, that frame reads as a jump to the top rather than an arrival at it.
Approach
The cursor rules go in
@layer baserather than as utilities, so an explicitcursor-*class still wins. That matters: the two deliberatecursor-defaultuses in the tree — a non-interactive tooltip target in the subtitle dialog, and
the player's audio-track button in its disabled state — are unaffected, and were
checked rather than assumed.
Note
This is four concerns in one PR rather than the usual one, which is a
deliberate exception: they are small, independent, and the alternative is four
PRs of ~12 lines each. They're split into four commits so each can be read on
its own, and any one can be dropped without touching the others.
Validation
Confirmed live in a signed-in session that an enabled button computes
cursor: pointerand a disabled onecursor: not-allowed, and that 111 of the295 images on Home now carry
decoding="async".pnpm run build— passedpnpm exec vitest run— 2627 passedpnpm run lint— 0 errors (165 pre-existing warnings, unchanged baseline)pnpm run format:check— passedCommit 1 is behaviour-preserving; the existing Series and Season detail tests
cover the action bar props and still pass unchanged.
Risks
The cursor rule is global. It is scoped to
buttonand[role="button"]andloses to any explicit utility, but it is the one change here that touches every
page, so it is worth a look at anything that styles a button as non-interactive.
Provenance
Completes the port of #805 by @blurbery. With this merged, the only part of that
branch still outstanding is the navigation rewrite, which needs re-scoping
against the data router now on
main— see the closing comment on #805.AI Disclosure
of what was left from perf(web): smooth detail layout, resizing, and navigation #805 and approved landing these four together.
mainfeature by feature rather than by re-reading the diff, which is how these were
found after the first three PRs. The
cursor-defaultsweep was checked againstevery occurrence in the tree rather than applied blindly; two were intentional
and left alone.
Checklist
🤖 Generated with Claude Code