Skip to content

fix(web): keep Health Strip labels and icons inside their cells - #4917

Merged
Quick104 merged 1 commit into
mainfrom
fix/health-strip-label-wrap
Nov 21, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/health-strip-label-wrap

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #4808
Related issue: N/A
Validation tasks: none

Other clients: N/A (web admin dashboard only; Apple, Android, and Roku have no admin dashboard)

On the admin dashboard, a Health Strip label that didn't fit its cell wrapped onto a second line, and its icon shrank to nothing. Long translations hit this at common window sizes. In French, "Durée de fonctionnement" (Uptime) wraps at 1024 and 1440 px. At 1024 px the Errors label wraps in German ("Fehler · 24 Std."), Russian, and Japanese. With the in-app Large or Extra large text size it happens in English too, where the Postgres icon shrinks to under 1 px. The extra line made the cell taller, which used up the one-row card's padding and pushed that cell's value below the others. One long word ("fonctionnement") ran past its cell's edge.

Each label now keeps its icon at full size and stays on one line. A label that doesn't fit ends in an ellipsis and shows its full text on hover, as the value line below it already does.

Approach

In HealthCell, the icon gets shrink-0 and the label text moves into a truncate span with a title. Letting the label wrap with a fixed icon was the other option. It keeps the full text visible, but the card can't hold it. With Extra large text, the French Uptime label took five lines and the cells ran 17 px past the bottom of the card.

Truncation hides part of a long label, and in a few places that costs more than a few letters:

  • With Extra large text at 1024 px, the narrowest width that shows six cells in a row, most labels truncate in every language, English included. The cells there are narrower than an icon plus a label. With Large text, "Postgres" becomes "Postgr…": it fit before only because its icon shrank.
  • The Errors label is one translated string, so a cut can land inside the time window: "Erreurs · 2…" in French at 1024 px, "Errors ·…" in English with Large text. The full text stays in the tooltip.
  • At phone width the rows grow to fit, so the French Uptime label used to wrap and show in full. It now ends in an ellipsis like the value line, which keeps the values in a row aligned.

Validation

  • Reproduced on a sandbox server built from main, signed in as the admin, with the issue's steps: French, a 1024 px window, and a 16 px browser font. The Uptime icon measured 0 px and its label took two lines. The cells ended 1.6 px inside the card, against 9.9 px in English, and the Errors value sat 16.5 px below the others. With Extra large text, the Uptime label ran 46 px past its cell's content edge.
  • After the fix, on the same sandbox rebuilt from this branch with the same steps, every icon keeps its full size and every label is one line with its full text in a title. In French the cells end 9.9 px inside the card, the same as English, and the values line up.
  • The same before and after on the sandbox for German at 1024 px, French at 1440 px, French with a 12 px browser font, French at 820 and 390 px, and English with Extra large text. English at the default size is unchanged. No width scrolls the page sideways, and the browser console showed no errors.
  • On a local Vite server with stubbed API responses, for states the sandbox can't show: the en-XA pseudo-locale, right-to-left, Japanese, Russian, Large and Extra large text at phone, tablet, and desktop widths, keyboard focus and hover on the Errors link, Postgres unreachable, and a 4-digit error count. Before, each of these shrank an icon or wrapped a label, except right-to-left at the default text size and the 820 px tablet layout, which were already fine. After, every icon keeps its size and every label is one line.
  • Web lint, format check, typecheck, production build, and bundle budget pass. The web test suite passes except for five files that fail the same way on main on this host (Node 26) and two that failed intermittently under load and passed on rerun. None of them reach the Health Strip. Go checks weren't run, since no Go changed.

Evidence: https://evidence.siloserver.org/r/silo-server/issue-4808/

Risks

None identified. Only the Health Strip's label line changes.

Follow-ups

  • With Large and Extra large text, the dashboard keeps six Health Strip cells in a row from 1024 px up. The breakpoints are viewport media queries, and media-query rem ignores the in-app text size. Giving the cells more room at large text sizes belongs to the pending dashboard grid breakpoint work, not this label line.
  • Keeping the Errors label's "· 24h" window visible would take a catalog change that splits the window into its own part. The cut would then fall on "Errors" instead.

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 5855fea

Member Round 1
Sol (gpt-6.2-sol, xhigh) 7/10, 2 findings (not posted: the connector's sign-in failed)
Opus (claude-opus-5-5, high) 9/10, no findings
Gemini (gemini-4-neon, xhigh) unavailable (provider quota)

Visual review: 2 rounds, captures from main and this branch (sandbox) plus a local dev build

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

Background findings (Sol), after merge: S1, an admin can resize the Health Strip to half width (6 columns), and at 1024 px its six cells are too narrow for any label: labels now truncate to nothing beside their icons, where on main they spilled across neighbouring cells with their icons gone. Values truncate to one character either way. The cause predates this PR (the strip picks six columns from the viewport, not its own width) and goes to a follow-up with #4871, which has the same cause. S2, keyboard focus on the Errors link doesn't reveal a truncated label's full text; the label stays in the link's accessible name, and the value line already works this way. Not changed.

Visual review fixes: no code changes. Round 2 added the captures the reviewers asked for: phone, tablet, and desktop at Large and Extra large text, focus, hover, error states, right-to-left, Japanese, and Russian. Answered: all three reviewers said that at 1024 px with Large or Extra large text, and in the Errors label's time window, truncation costs more than a few letters. Both are listed under Approach and Follow-ups. Tighter card padding, a narrower icon gap, and shorter translations were declined as out of scope for this fix.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code, OpenAI Codex, Antigravity, GitHub CLI, Playwright (headless Chromium)
  • Model(s): claude-opus-5-5 (implementation and review), claude-sonnet-5-5 (review subagents), gpt-6.2-sol (visual and adversarial review), gemini-4-neon (visual and adversarial review)
  • Involvement: Fully AI-generated; not yet human verified
  • Adversarial review: Multi-agent code review at high effort (three finders and a validation check) found no defects in the diff. The plan round was skipped as mechanical: the root cause shows in the source, and the fix is two class changes at that line that add nothing new. Wrapping, the one alternative, was measured and rejected. A simplify pass added the code comment. See Council review for the visual review and the background review.

🤖 Generated with Claude Code

A Health Strip label too long for its cell wrapped to a second line and
squeezed its icon to nothing; one long word ran past the cell. Long
translations (French "Durée de fonctionnement", German "Fehler · 24 Std.")
and the Extra large text size hit it at common widths. The extra line made
the cell taller than the one-row card and pushed its value below the others.

The icon no longer shrinks, and the label truncates with its full text in
a title, as the value line already does.

Closes #4808

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/S 0–49 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 17 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: 1525a1d6-cd98-46d8-be32-832b3d7054a2
Commits

Reviewing files that changed from the base of the PR and between 5d52158 and 5855fea.

Files selected for processing: 1

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

@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-21T05:20:24.861366Z 5855fea PR opened
🔒 Security Review ✅ Completed 2026-11-21T05:22:33.971296Z 5855fea 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.

@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 labels Nov 21, 2026
@Quick104
Quick104 merged commit 32d4d59 into main Nov 21, 2026
19 checks passed
@Quick104
Quick104 deleted the fix/health-strip-label-wrap branch November 21, 2026 05:45
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Health Strip labels wrap and lose their icons in long translations

1 participant