Skip to content

fix(web): keep the restore progress spinner on the first line of wrapped status text - #4746

Merged
Quick104 merged 4 commits into
mainfrom
fix/restore-run-spinner-alignment
Nov 21, 2026
Merged

Quick104 merged 4 commits into
mainfrom
fix/restore-run-spinner-alignment

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Other clients: N/A (the backup restore screen exists only in the web admin)

While a backup restore runs, the Run step shows a status row: a spinner and "Restoring…", "Waiting to start…", or "Stopping after the current item…". When that text wraps, the spinner centered on the whole text, so it sat between the lines, and flexbox squeezed it narrower than its size. At 320 px the "stopping" text wraps in 12 of the web app's 22 languages (German also at 390 px). At Silo's x-large text size it wraps in all 22, English included.

With this change the spinner sits level with the first line of the status text and keeps its full size. Rows that fit on one line don't move.

Approach

The row aligns its items to the top, and the spinner sits in a box one line tall that doesn't shrink. It's the pattern the other restore rows already use for their chevrons, checkboxes, and outcome icons (#4694, #4723), and the box is min-h-lh like #4723's outcome icon in the same file. Because the spinner no longer shrinks, the status text may break inside a word when a word can't fit beside it, as can happen with a large browser font at phone width.

Validation

  • A running, queued, or stopping restore is hard to hold on a server, so a temporary dev-only route rendered the real RestoreRun component in the admin page frame with a job in each state. The route isn't part of this change.
  • On main, measured in Chromium across the 22 shipped languages at 320 and 390 px, at default and x-large text, in all three states: 55 of 264 rows wrap. In each one the spinner's center sat 10 px (default text) or 13 px (x-large) below the first line's center, and the spinner was squeezed to as little as 11 px wide instead of 16 or 20 px.
  • With this change, all 55 have the spinner within 0.5 px of the first line's center at full size. One-line rows keep the same spinner position, and no row changes its line count. A second pass at 768 and 1280 px matched, and Firefox measures the same. WebKit wasn't checked.
  • In Firefox at 320 px with a 24 px browser font and x-large text, Russian "Восстановление…" ran past the panel once the spinner kept its size. With the status text allowed to break inside a word, every label in Russian, German, English, Ukrainian, and Finnish ends inside the panel. On main some of those labels already overflowed there, with the spinner squeezed to nothing. At normal sizes this changes nothing: all 264 rows measure the same with and without it.
  • In Arabic the spinner sits on the right, level with the first line. Where the pseudo-locale wraps to three lines, it stays on the first. With motion on, it spins in place inside its box.
  • The browser console logged no errors on the page.
  • Web lint, format check, build, bundle budget, and the web test suite pass.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/restore-run-spinner/

Risks

None identified. The change touches one row on the restore Run step.

Follow-ups

Found in review, present before this change:

  • The Upload backup dialog's "checking" row has the same spinner problem (Dutch wraps at 320 px). A separate fix is in progress.
  • With a 24 px browser font and x-large text at 320 px, the Russian "Stop restore" button label runs past the card. Buttons don't wrap their labels anywhere in the app, so this one isn't fixed here.

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: round 1 reviewed 6257272, round 2 reviewed ff80360

Member Round 1 Round 2
Sol (gpt-6.2-sol, xhigh) 8/10 9/10
Opus (claude-opus-5-5, high) 9/10 9/10
Gemini (gemini-4-neon, xhigh) running (retry on 9572506 after a quota failure)

Fixed: Sol's finding that a long word could run past the panel with a large browser font, in ff80360. Answered: Sol's round-2 note that at 360 px with a 24 px browser font and x-large text, French "Restauration…" now puts its ellipsis on a second line. At that size the word doesn't fit beside the spinner, so it either overflows (cut off in Russian, German, and Ukrainian) or breaks. Breaking before the ellipsis keeps the word whole. Gluing the ellipsis to the last letter, as suggested, would split the word itself.

Visual review: 2 rounds, captures from 6257272 (the current head measures the same at the sizes captured)

Member Round 1 Round 2
Sol better, 9/10 better, 9/10
Opus better, 8/10 better, 8/10
Gemini better, 8/10 better, 8/10

Round 2 added the Arabic, three-line, and spinning captures the first round asked for. Answered: Gemini's report that one-line spinners moved up at x-large text didn't hold up; those panels are pixel-identical before and after. The reviewers' other findings are present on main and outside this row: an orphaned last word when the status wraps, the progress bar's faint track, the faint disabled Stop button, and the pseudo-locale's unbroken padding overflowing the progress note.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code; T3 Code delegated tasks for the council (Codex, Claude, Antigravity)
  • Model(s): claude-opus-5-5 (implementation); gpt-6.2-sol, claude-opus-5-5, gemini-4-neon (council)
  • Involvement: Fully AI-generated; no person has verified it yet
  • Adversarial review: code review at high effort (three finders and a validation agent) found no defects in the diff and no affected validation case; the plan round was skipped because the fix is a mechanical three-line change on a cause shown in the source; the simplify pass changed nothing. See Council review.

🤖 Generated with Claude Code

…ped status text

The Run step's status row centered its spinner on the whole status text and
let flexbox squeeze it. When the text wraps, as Spanish "stopping" does at
320 px and most translations do at the x-large text size, the spinner sat
between the lines at a reduced width.

The row now aligns to the top and holds the spinner in a box one line tall
that doesn't shrink, as the other restore rows do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 23 minutes.

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: dcd1e3fc-d10e-4191-8573-dd6719c4292e
Commits

Reviewing files that changed from the base of the PR and between f964c3a and 9572506.

Files selected for processing: 1

  • web/src/pages/admin-backups/RestoreRun.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 21, 2026
@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 ❌

@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-21T02:04:53.533030Z 9572506 New commits
🔒 Security Review ✅ Completed 2026-11-21T02:05:59.083121Z 9572506 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-triage silo-triage Bot added bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 21, 2026

@Quick104 Quick104 left a comment

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.

Adversarial review (gpt-6.2-sol, reviewed 6257272)

…'t fit

With the spinner no longer shrinking, a status word wider than the space
beside it ran past the panel. At 320 px with a 24 px browser font and
the x-large text size, Russian "Восстановление…" was cut off. The status
text may now break inside a word when nothing else fits; rows whose words
fit are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 ❌

Quick104 and others added 2 commits November 20, 2026 20:59
…markers

#4723 gave the restore checkboxes and outcome icons a box at least one line
tall (min-h-lh). The progress spinner's box now uses the same class. Its
line is always taller than the spinner, so the layout doesn't change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 ❌

@Quick104
Quick104 merged commit 684c28d into main Nov 21, 2026
18 checks passed
@Quick104
Quick104 deleted the fix/restore-run-spinner-alignment branch November 21, 2026 02:32
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 priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant