Skip to content

fix(web): keep the Featured hero paused after pressing Pause - #4923

Merged
Quick104 merged 2 commits into
mainfrom
fix/web-hero-slideshow-pause-sticks
Nov 21, 2026
Merged

Quick104 merged 2 commits into
mainfrom
fix/web-hero-slideshow-pause-sticks

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Other clients: Apple N/A (the macOS Featured hero already tracks hover and the pause button separately); Android N/A (no slideshow pause control); Roku N/A (no slideshow pause control)

The Pause button on the web Featured hero can't keep the slideshow paused. The hero stops itself while the pointer is over it or focus is inside it, and the Pause button shared that state:

  • Pointing at or focusing the button flipped it to "Play slideshow" before the click, so clicking Pause started the slideshow.
  • A pause made with the button lasted only until the pointer or focus left the hero. Then the slideshow advanced again.

Web users with normal motion settings hit this with a mouse, a keyboard, or touch.

Approach

The hero now keeps the hover/focus hold and the button's choice in separate state. The button label and icon follow the user's choice. The slide timer and the progress rail follow both. As a result:

  • A pause made with the button stays until the user presses Play.
  • Hover and focus still hold the slideshow while the user hasn't paused it.
  • Pressing Play starts the slideshow at once, even with the pointer on the button.
  • Reduced motion still starts stopped. The button's choice replaces the old playRequested flag.

The change is confined to HeroBanner.tsx. It reuses the existing translation keys, and the API is unchanged.

Validation

  • Live, mouse. Reproduced on a dev deployment built from main (e2e4ab8b), then rerun on this branch (bebfb57a) with the same steps at 1440×900. On main, the button read "Play slideshow" under the pointer, and one click left the slideshow playing. After a pause, the slide advanced within 10 s of the pointer leaving. With the fix, the button reads "Pause slideshow" under the pointer and one click pauses. The hero is still on the same slide 10 s after the pointer and focus leave.
  • Live, keyboard. On main, tabbing to the button turned it to "Play slideshow" and Enter started the slideshow. With the fix, Enter pauses it, and the pause stays after focus leaves the hero.
  • Live, touch. iPhone 15 Pro emulation at 390 px: on main, one tap left the button reading "Pause slideshow" and the slideshow running. With the fix, one tap pauses it, and the pause stays after tapping outside the hero. A second tap resumes it. iPad Pro 11 emulation (600 px window): on main, tapping outside undid the pause; with the fix, it stays paused.
  • Unchanged behavior, fix build. With no explicit pause, hovering still holds the slideshow and freezes the rail part-way, and it resumes when the pointer leaves. Pause then Play under the pointer runs it. Next slide while paused changes the slide and stays paused. Reduced motion starts stopped, Play runs it, and Pause sticks. The rail stays in step with the 8 s advance.
  • Web gate. All passing: pnpm run lint (0 errors), format:check, build, budget:check, make test-web (3094 tests), verify-local-paths, verify-case-collisions, verify-size-ratchet, and verify-bidi. No Go changed. The PR adds no test, because the change is UI state that the repository's testing rules leave to the live check.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/hero-slideshow-pause/

Risks

While hover or focus holds the slideshow, the button now reads "Pause slideshow", because it shows the user's choice rather than the hold. Pressing it records a pause. That matters in two places. On touch screens, tapping inside the hero (a slide arrow, for example) emulates hover and focus, so the hero holds until you tap outside it, as it already did. With the keyboard, focus on the button holds the slideshow. To resume right away from either hold, press Pause then Play, or move out of the hero. Before, one press restarted it, but that same press also made Pause start the slideshow, which is the bug this fixes. The ARIA carousel pattern instead treats keyboard focus as a lasting stop and offers Play. Adopting that would be a separate design change.

The pause still lives in component state, so it resets when the Home page remounts, as before.

Follow-ups

Two hero defects that predate this change turned up in review and are filed separately:

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

Council review

Background review: 1 round, reviewed bebfb57

Member Round 1
Sol (gpt-6.2-sol, xhigh) 8/10, 1 finding (answered)
Opus (claude-opus-5-5, high) 8/10, no findings
Gemini (gemini-4-neon, xhigh) unavailable (quota)

Visual review: 2 rounds, captures from bebfb57a and main e2e4ab8b

Member Round 1 Round 2
Sol better, 7/10 better, 7/10
Opus better, 7/10 better, 7/10
Gemini unavailable (quota) unavailable (quota)

Background review: Sol's finding (with keyboard focus holding the slideshow, resuming takes two presses) is answered under Risks. Opus found nothing to post.

Visual review: nothing fixed in the code. The round 1 evidence gaps (keyboard, phone, a hover hold starting mid-cycle, reduced motion on first load) were captured for round 2. Answered: every visual finding also shows on main and is outside this change. The slide arrow over the title is covered by a separate fix. Contrast over bright artwork is #4838. The compact button is 28 px, above WCAG 2.5.8's 24 px minimum.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code, Playwright (headless Chromium), Codex and Antigravity (council reviewers)
  • Model(s): claude-opus-5-5 (implementation and code review), claude-sonnet-5-5 (code-review cleanup finder), gpt-6.2-sol and claude-opus-5-5 (visual review), gpt-6.2-sol, claude-opus-5-5 and gemini-4-neon (background review)
  • Involvement: Fully AI-generated by an agent running a maintainer's /silo workflow. No person has verified it yet.
  • Adversarial review: a code review at high (three finders on the diff; no change needed, two pre-existing defects filed, one trade-off disclosed under Risks), a simplify pass (moved one comment), and no plan round, because the fix is a few lines at the root cause and adds nothing. Council results are in Council review above.

🤖 Generated with Claude Code

Note

Fix HeroBanner so Pause choice persists after hover or focus

  • Replaces the single paused state in HeroBanner.tsx with a three-value play/pause choice plus a separate held state
  • Hover and focus now hold autoplay temporarily without changing the user's choice; wantsPlay is derived from the choice and reduced-motion preference, and autoplaying from wantsPlay and held
  • The Pause/Play button label and icon now reflect wantsPlay, so it still shows Pause when playback is wanted but held
  • Behavioral Change: pressing Play clears the held state and restarts playback even while the pointer is over the banner; release after hover/focus exit restarts the cycle only when playback is wanted

Macroscope summarized 581a6b8.

Hovering or focusing the hero and pressing its Pause button shared one
paused flag. Pointing at the button flipped it to "Play slideshow", so a
click started the slideshow, and leaving the hero cleared a pause the
user had chosen. The hover/focus hold and the button's choice are now
separate: the button label follows the choice, the timer and progress
rail follow both, and reduced motion still starts stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Nov 21, 2026
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

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

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 88b07a00-d189-42ba-bd42-f00fa0bd5f2d
Commits

Reviewing files that changed from the base of the PR and between 980e455 and 581a6b8.

Files selected for processing: 1

  • web/src/components/HeroBanner.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T05:52:19.972364Z 581a6b8 New commits
🔒 Security Review ✅ Completed 2026-11-21T05:54:06.026845Z 581a6b8 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-kody

silo-kody Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@silo-triage silo-triage Bot added bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish labels Nov 21, 2026
…w-pause-sticks

# Conflicts:
#	web/src/components/HeroBanner.tsx
@Quick104
Quick104 merged commit 91146ea into main Nov 21, 2026
18 checks passed
@Quick104
Quick104 deleted the fix/web-hero-slideshow-pause-sticks branch November 21, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish size/M 50–199 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant