Skip to content

chore(web): land the remaining small fixes from #805 - #813

Merged
Quick104 merged 4 commits into
mainfrom
chore/remaining-805-fixes
Aug 28, 2026
Merged

Quick104 merged 4 commits into
mainfrom
chore/remaining-805-fixes

Conversation

@Quick104

Copy link
Copy Markdown
Contributor

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. MediaUserActionBar and
WatchedActionBar already exist and Movie and Episode already use them, but
SeriesContent still wired eight mutation-hook references and SeasonContent
two, plus a local handleRatingChange duplicating the shared one exactly. The
point 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-default on
dropdown-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 base rather than as utilities, so an explicit
cursor-* class still wins. That matters: the two deliberate cursor-default
uses 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: pointer and a disabled one cursor: not-allowed, and that 111 of the
295 images on Home now carry decoding="async".

  • pnpm run build — passed
  • pnpm exec vitest run — 2627 passed
  • pnpm run lint — 0 errors (165 pre-existing warnings, unchanged baseline)
  • pnpm run format:check — passed

Commit 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 button and [role="button"] and
loses 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

  • Tool(s): Claude Code
  • Model(s): claude-opus-5[1m]
  • Involvement: Fully AI-generated, human verified — @Quick104 reviewed the audit
    of what was left from perf(web): smooth detail layout, resizing, and navigation #805 and approved landing these four together.
  • Adversarial review: produced by auditing the original branch against main
    feature by feature rather than by re-reading the diff, which is how these were
    found after the first three PRs. The cursor-default sweep was checked against
    every occurrence in the tree rather than applied blindly; two were intentional
    and left alone.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern. — four small ones, see the note above.

🤖 Generated with Claude Code

Quick104 and others added 4 commits August 28, 2026 12:16
`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]>
@coderabbitai

coderabbitai Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 34 minutes.

View limit details

Limit 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.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: be3ccd02-7ff0-4e7f-b02c-7c1eca6b7f24

📥 Commits

Reviewing files that changed from the base of the PR and between 3eb93b6 and e916db1.

📒 Files selected for processing (15)
  • web/src/App.tsx
  • web/src/app.css
  • web/src/components/CastCarousel.tsx
  • web/src/components/ContinueWatchingCard.tsx
  • web/src/components/EpisodeRow.tsx
  • web/src/components/RecommendationGrid.tsx
  • web/src/components/ui/dropdown-menu.tsx
  • web/src/components/ui/select.tsx
  • web/src/pages/ItemDetail/MangaContent.tsx
  • web/src/pages/ItemDetail/SeasonCarousel.tsx
  • web/src/pages/ItemDetail/SeasonContent.tsx
  • web/src/pages/ItemDetail/SeriesContent.tsx
  • web/src/pages/ItemDetail/components/ActionBar.tsx
  • web/src/pages/ItemDetail/components/EpisodeCarousel.tsx
  • web/src/pages/ItemDetail/components/TrailersSection.tsx

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

@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: 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".

Comment thread web/src/app.css
Comment on lines +733 to +734
button:not(:disabled),
[role="button"]:not([aria-disabled="true"]) {

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

@Quick104
Quick104 merged commit 776e47d into main Aug 28, 2026
7 of 8 checks passed
@Quick104
Quick104 deleted the chore/remaining-805-fixes branch August 28, 2026 16:34
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