Skip to content

fix(web): keep the restore chevrons and restart badge on the first line - #4694

Merged
Quick104 merged 2 commits into
mainfrom
fix/restore-disclosure-first-line
Nov 20, 2026
Merged

Quick104 merged 2 commits into
mainfrom
fix/restore-disclosure-first-line

Conversation

@Quick104

@Quick104 Quick104 commented Nov 20, 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)

On the backup restore "Choose" step, two markers drifted off the first line of their text when that text wrapped. A library group heading with a long library name wraps at phone width: its disclosure chevron centered on the whole label, and the button's default text-align: center centered each wrapped line. An item's restart notice did the same with its Restart badge when the sentence wrapped, as it does in Finnish at phone width. #4680 fixed the same problem for the never-restored lock and the blocked-group dot and didn't touch these two.

This change keeps each marker level with the first line of its text and starts wrapped labels flush with it. Rows that fit on one line don't move.

Approach

Disclosure now aligns its content to the top and starts text at the leading edge. Its chevron sits in a box one line tall, the pattern the #4680 review settled on. The fix covers every disclosure on the backup screens, including the warning details' "Show the accounts" and "Show all N".

The restart notice now aligns the badge and its sentence on their text baselines. RestartBadge used to take its baseline from the bottom edge of its icon. It now takes it from its label, so the label and the first line of the sentence share a baseline. The badge renders the same in the admin settings, where it sits in centered rows. A wrapped notice grows 3 px, because its sentence now starts level with the badge's label instead of at the badge's top edge.

The never-restored lock and blocked-group dot from #4680 are unchanged.

Validation

  • Reproduced on a Silo dev deployment built from main, in a backup whose library has a long name and whose settings item needs a restart, at phone width in English and Finnish. The wrapped library heading's chevron sat 10.5 px below its first line, and its two lines started 84 px apart. The Finnish restart badge sat 16.5 px below the first line of its three-line sentence.
  • After rebuilding the deployment with this change, both markers center on the first line. That holds at Silo's x-large text size too (12.7 px and 20.5 px before). One-line rows on phone, tablet, and desktop have the same height and position as before, and the browser console logged no errors.
  • The Restart badge on the admin settings pages (General, Playback, Downloads) renders pixel-identically before and after.
  • The same layouts, rebuilt as a static page, measure the same in Chromium, WebKit, and Firefox.
  • Web lint, format check, build, and bundle budget pass, along with the repository hygiene checks. The web test suite passes except 29 tests in 4 files that fail the same way on main on the machine used here: its Node 26 defines a global localStorage that hides jsdom's. CI runs Node 24.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/restore-wrapped-markers/

Risks

  • Disclosure is used only on the backup screens. Every disclosure there gets the new alignment, including "N match this server", "Show them", and the warning details' "Show the accounts" and "Show all N", none of which wrapped in the cases tested.
  • RestartBadge is shared with the admin settings pages. Its baseline now comes from its label, which changes nothing where it sits in a centered row, as it does everywhere today.
  • The chevron now keeps its full size. On a 320 px phone with x-large text, a long library name can take one more line than before.

Follow-ups

Found in review, present before this change:

  • A long Finnish word in the restart notice runs past the screen edge at larger text sizes: [bug] Restore: a long word in an item's restart notice runs past the screen edge on phones #4695, being fixed now that this PR has merged.
  • A library heading's count ("1 differs") splits across lines at phone width; a fix is in progress, which also covers an unbreakable library name overflowing the heading.
  • Restore item names are cut off without an ellipsis; a separate change is fixing that.
  • Three more restore-flow rows center a leading marker on wrapped text: the data type checkboxes, the Review step's trust checkbox, and the Run step's profile outcome icon. A fix is in progress.

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 49779a5

Member Round 1
Sol (gpt-6.2-sol, xhigh) 9/10
Opus (claude-opus-5-5, high) 8.5/10
Gemini (gemini-4-neon, xhigh) 9/10

Visual review: 2 rounds, captures from 49779a5

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

Background review: Opus and Gemini found nothing in the diff. Sol found that an unbreakable library name can push the heading's count past a 360 px screen at x-large text. That overflow is on main too: there the chevron could shrink and absorb a borderline case. It went to the count follow-up below, since its fix is on the same lines. Opus's open question, whether WebKit and Firefox align the badge the same way, was checked: they match Chromium.

Answered: wrapped rows grow 1 to 3 px, which is intended; a reported 1 to 2 px chevron shift on one-line rows didn't hold up, since those captures are byte-identical. The reviewers' other findings were present before this change; the defects among them are listed under Follow-ups.

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; a maintainer reviews it before merge
  • Adversarial review: code review at xhigh (three finders, a 1.0 validation check, and a sweep) found that the restart notice copied the badge's padding and border, so the notice now aligns on the badge label's baseline instead; the remaining notes were deliberate trade-offs. The plan round was skipped because the fix is mechanical, and a simplify pass found nothing to change. Council results are in the Council review section above.

🤖 Generated with Claude Code

Quick104 and others added 2 commits November 20, 2026 18:14
…of wrapped text

On the restore "Choose" step, a disclosure button whose label wraps (a long
library name over its group, "N match this server" in a longer translation)
centered its chevron on the whole label, and the button's default
text-align centered each wrapped line. An item's restart notice did the same
with its Restart badge when the sentence wrapped (Finnish or Polish at phone
width). Each marker now stays level with the first line, and wrapped labels
start flush with it; one-line rows keep their position.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The restart notice lowered its sentence by a copy of the Restart badge's
padding and border, which would drift if the badge changed. Make the badge's
label its baseline (it was the icon's bottom edge) and align the notice on
baselines instead. The badge looks the same everywhere it appears.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

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

chatgpt-codex-connector Bot commented Nov 20, 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-20T23:37:19.113939Z 49779a5 PR opened
🔒 Security Review ✅ Completed 2026-11-20T23:38:28.005450Z 49779a5 PR opened
ℹ️ 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.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The restart badge label and restart-required detail now use baseline alignment. Disclosure content uses start alignment, and its chevron stays on the first line when the label wraps.

Changes: Restart label alignment

Layer / File(s) Summary
Restart and disclosure alignment
web/src/components/settings/RestartBadge.tsx, web/src/pages/admin-backups/Disclosure.tsx, web/src/pages/admin-backups/RestoreRows.tsx
The restart badge label and restart-required detail use baseline alignment. Disclosure content uses start alignment, and the chevron sits in a one-line-height, non-shrinking container.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Possibly related issues

  • Silo-Server/silo-server issue 4695: The issue describes overflow from a long Finnish restart-notice word that remains after the alignment changes.

Suggested reviewers: blurbery

Merge Risk: Minimal · up to 49779

This is a presentation-only change that keeps disclosure chevrons and restart badges aligned when labels wrap. No functional or data impact is evident, so it looks safe to merge.

Security architecture risk: Minimal · up to 49779

The described changes adjust how restart badges, disclosure chevrons, and wrapped labels align. No introduced design-level risk to security, failure containment, rollback, or ownership is identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the two markers in the restore screen (chevrons and restart badge) and the goal of keeping them on the first line. It matches the changeset, which changes Disclosure alignment, Restore…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description is specific and on-topic. It names the affected components (Disclosure, RestartBadge, the restore-row restart notice), explains the wrapped-label alignment bug and the fix, and gives v…
Full details: Title check

Explanation

The title names the two markers in the restore screen (chevrons and restart badge) and the goal of keeping them on the first line. It matches the changeset, which changes Disclosure alignment, RestoreRows alignment, and the RestartBadge baseline. The title uses the "fix(web):" prefix, which is accurate for this change.

Full details: Description check

Explanation

The description is specific and on-topic. It names the affected components (Disclosure, RestartBadge, the restore-row restart notice), explains the wrapped-label alignment bug and the fix, and gives validation steps and risks. It matches the raw summary and the PR objectives.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

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: f3c87e49-193d-48b0-a095-4606a248c479
Commits

Reviewing files that changed from the base of the PR and between 1169342 and 49779a5.

Files selected for processing: 3

  • web/src/components/settings/RestartBadge.tsx
  • web/src/pages/admin-backups/Disclosure.tsx
  • web/src/pages/admin-backups/RestoreRows.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@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 triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 20, 2026
@Quick104
Quick104 merged commit 11279c3 into main Nov 20, 2026
19 checks passed
@Quick104
Quick104 deleted the fix/restore-disclosure-first-line branch November 20, 2026 23:46
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/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