Skip to content

fix(web): keep the Health Strip loading skeleton inside its row at small font sizes - #4793

Merged
Quick104 merged 1 commit into
mainfrom
fix/health-strip-skeleton-row-height
Nov 21, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/health-strip-skeleton-row-height

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 (web admin only; the Apple, Android, and Roku apps have no admin dashboard)

With a browser default font size below 16px, the admin dashboard's Health Strip loading skeleton is taller than the grid row it sits in. While the server status loads, it runs past its row and into the widget below. This change sizes the skeleton's minimum height in rem, so it fits its row at any default font size.

The strip is one row tall by default. Its row is 6.25rem: 100px at a 16px default, 75px at 12px, and 56.25px at Chrome's "Very small" (9px). The skeleton's minimum was a fixed 92px, so at 12px it ran 17px past its row and 6.5px into Now Playing, and at 9px it ran 36px past. The loaded card already fills its row with h-full; only the loading state was affected.

Approach

The minimum is now min-h-23 (5.75rem). That is 92px at the 16px default, as before, and always below the 6.25rem row, so h-full decides the height wherever rows are fixed. Where rows are content-sized (narrow screens), the minimum still gives the skeleton a height and now scales with the font size.

No breakpoint is involved, so the fix holds whether the grid's fixed rows start at 1024px or move to Tailwind's lg (64rem). Scoping the old px minimum to narrow screens with max-lg: would collapse the skeleton to 0px between 768px and 1023px at a 12px default, where lg already applies but the grid's rows are still content-sized.

Validation

  • Reproduced on main and verified on this branch on the real /admin page in headless Chromium, with the browser default font size set through CDP (Page.setFontSizes) to 9, 12, 16, and 20px at 390, 820, 1200, and 1440px wide. The server-status request was held open so the skeleton stayed on screen. A sandbox deployment couldn't start (its Docker host had run out of network address pools), so the page ran on a local Vite dev server with Playwright answering the API: an admin session, one profile, and a 404 for everything else.
  • Fixed rows: on main, the skeleton overran its row at 9px and 12px. On this branch it matches the row at every font size (56.3, 75, 100, and 125px at 9, 12, 16, and 20px), and the gap to the next widget is intact. At 16px every measurement is unchanged.
  • Content-sized rows: the skeleton is 69px at 12px, 92px at 16px (unchanged), and 115px at 20px, with no overlap.
  • At 12px on either side of the fixed-row breakpoint: 69px at 1023px wide, 75px in a 75px row at 1024px. With the grid's fixed rows moved to 64rem (simulated), at 820px and 12px: 75px rows and a 75px skeleton.
  • Web lint, format check, typecheck, production build, and bundle budget pass. In the web unit suite, 31 tests in 6 files fail with and without this change (request deadline, auth, and player tests); none touch the dashboard.
  • No test added: jsdom doesn't lay out CSS, and the live before/after above is the check.

Evidence

Surface and build: web admin dashboard, desktop and mobile web; before on main at e4677dd, after at 936fb78.

Evidence: https://evidence.siloserver.org/r/silo-server/health-strip-skeleton/

Risks

None identified. The change touches one widget's loading state and renders the same at the 16px default.

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.

Follow-ups

Council review

Background review: 1 round, reviewed 936fb78

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

Visual review: 2 rounds, captures from e4677dd (before) and this branch (after)

Member Round 1 Round 2
Sol better, 9/10 better, 9/10
Opus better, 8/10 better, 9/10
Gemini better, 7.5/10 (retried after a quota error) n/a

Answered: all three noted that on narrow screens the skeleton is much shorter than the loaded strip, so content jumps when the status arrives. That was already true before this change, which moves the skeleton by up to 23px with the font size (shorter at 12px, taller at 20px, unchanged at 16px); a skeleton that mirrors the loaded cell grid is tracked in #4794. Label wrapping seen in a simulated 64rem grid belongs to a separate breakpoint change. Background review: Sol's S1 (the skeleton is 23px shorter at a 12px default on narrow screens, so content moves 23px more on load) is answered in its thread and left open for a maintainer; Opus and Gemini found nothing.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code and its review subagents; T3 Code delegated tasks for the council (Codex, Claude, Antigravity); a Playwright capture script
  • Model(s): claude-opus-5-5 (implementation and review); claude-sonnet-5-5 (review subagents); 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 and a sweep) found no defects in the change and reworded one comment; the plan round was skipped because the fix is a one-class change at the root cause. Visual and background review results are in the Council review section above.

🤖 Generated with Claude Code

…all font sizes

The skeleton's 92px minimum didn't follow the browser's default font size,
but the dashboard's 6.25rem row does. Below a 16px default the skeleton ran
past its row and into the widget below while the server status loaded.
Size the minimum in rem (5.75rem, still 92px at 16px) so it stays below one
row at any default font size.

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 37 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: baad6747-ac8a-4a05-8eb3-57159da206ab
Commits

Reviewing files that changed from the base of the PR and between f0c80d2 and 936fb78.

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-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:52:58.042192Z 936fb78 PR opened
🔒 Security Review ✅ Completed 2026-11-21T02:53:59.795933Z 936fb78 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 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 936fb78)

AI-assisted review by Codex in T3 Code (gpt-6.2-sol).

// and below the grid's fixed row (--admin-row-h in app.css), so it fits one
// row at any browser font size; a px minimum overflows the row when a small
// default font shrinks it.
return <Skeleton className="h-full min-h-23 rounded-2xl" />;

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.

S1 · P3 · Extra layout shift on narrow screens

At 390px wide with a 12px browser default, a Chromium layout fixture using the dashboard grid rules measured a 69px placeholder instead of 92px. The loaded card is identical on both commits, so the next widget moved down an extra 23px when the status loaded. The existing height mismatch in #4794 predates this patch. The extra 23px comes from this change.

Keep a 92px floor for the scalable minimum on content-sized rows, and clear the minimum in the same media rule that sets grid-auto-rows.

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.

Confirmed: at 390px wide with a 12px default, the skeleton is 69px, and the jump when the status loads grows from 148px to 171px. I'm keeping the change as it is:

  • The jump moves both ways with the font size; it doesn't only grow. At the 16px default it's unchanged (180px at 390px wide). At 20px it's 23px smaller: 215px to 192px at 390px wide, and 131px to 108px at 820px.
  • Part of the extra shift at 12px comes from the loaded strip not scaling. HealthCell sets its text in px, so the loaded strip only shrinks from 272px to 240px when the default drops to 12px. A separate fix is moving that text to rem. Once it lands, I expect the loaded strip at 12px to be about 75% of its 16px height, which would make the 12px jump smaller than on main. That's an estimate, not a measurement.
  • A 92px floor cleared in the grid-auto-rows media rule needs a new rule inside the .admin-widget-grid media block. Another pending change is rewriting that block (1024px to 64rem). The floor would also stop the minimum from following the font size at small sizes. [bug] Health Strip loading skeleton is much shorter than the loaded strip on narrow screens #4794 tracks the fix that removes the jump at every size: a skeleton that mirrors the loaded cell grid.

I'm leaving this thread open in case a maintainer prefers the floor.

🤖 Claude Code (claude-opus-5-5)

@Quick104
Quick104 merged commit d979665 into main Nov 21, 2026
23 checks passed
@Quick104
Quick104 deleted the fix/health-strip-skeleton-row-height branch November 21, 2026 02:58
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.

1 participant