Skip to content

fix(web): show the wide Libraries diagnostics tables as cards until they fit - #5063

Merged
Quick104 merged 8 commits into
mainfrom
fix/diagnostics-table-overflow-1024-v2
Nov 21, 2026
Merged

Quick104 merged 8 commits into
mainfrom
fix/diagnostics-table-overflow-1024-v2

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 layout only; the Apple, Android and Roku clients have no Libraries diagnostics screen)

On the web admin Libraries page, three diagnostics sections, Ambiguous Roots, Troubleshooting (skipped roots) and Stale External IDs, switch from cards to a table at 1024 px. At that width the admin sidebar is open and each section is 692 px wide, but their tables need 750 to 940 px. The last columns sat off-screen behind a sideways scroll with no visible cue: past the right edge in English and German, past the left edge in Arabic. Those columns hold the Override button, Last seen, and the Match button. Stale External IDs still scrolled at 1280 px, by 7 to 138 px in English, German and Russian.

After this change those three sections show their cards below 1280 px and the table from 1280 px up. At 1280 px each table fits its section.

Approach

  • diagnosticsListState.ts gets useWideDiagnosticsTableLayout, a (min-width: 80rem) query next to the existing 64rem one, and the three sections use it. Unmatched Items, Metadata Matcher and the library list fit at 1024 px and keep switching there. Admin Users and the invitation lists also use the 64rem hook. Admin Users overflows at 1024 px too, filed as [bug] Admin Users table overflows its page at 1024 px and hides its last columns #5062.
  • In Stale External IDs, the title and library name wrap instead of widening the table, and can break inside a word when nothing else fits. The header cells may wrap to two lines too. Without this, the table still overflowed at 1280 px in French and Russian, where headers such as "Последнее обнаружение" are wider than the dates under them, and with a long library name it overflowed by 504 px. The title uses .bidi-text and the library name dir="auto", as web/src/i18n/README.md asks, so "100% Wolf" and a name ending in "!" keep their order in Arabic.
  • In Troubleshooting, the library name wraps the same way. With a long library name that table overflowed by 100 px at 1280 px, on the base as well.

Smaller columns alone can't fix this: at 1024 px the Stale IDs columns other than Title need about 770 px, more than the 692 px section. The library list's own table also overflows at 1280 px with a long library name, before and after; it's outside this change. With the Extra Large text size, tables can still overflow at some widths, because a media query's rem doesn't follow the app's text size. Every admin table switch has that gap, so it's filed separately as #5071. A container query or a measuring hook could switch on the section's width rather than the viewport's. From 1024 px up the sidebar is always open, so the viewport width tracks the section width closely enough, and the simple query does the job.

Between 1024 and 1279 px the search, select and pager controls in these three sections keep their desktop sizes next to the cards; they had the same sizes next to the table before. The card actions are 44 px tall at every width.

Validation

  • Live check on a dev deployment built from the base and from this branch, sidebar open, with three ambiguous roots, three skipped roots and three stale IDs. The table container's overflow (scrollWidth - clientWidth) measured 62–251 px at 1024 px before; after, every table on the page measured 0 at 1023, 1024, 1152, 1279, 1280 and 1440 px in English, German and Arabic. At 1280 px it also measured 0 in French, Russian, Spanish, Italian, Dutch, Polish, Finnish and Ukrainian. With a long library name and a long title, the three changed tables measured 0 at 1280 and 1440 px in eight languages (the base overflowed by 100–643 px), and with an unbroken 44-character library name in four. Hungarian, Greek and European Portuguese weren't measured because the capture script failed to switch to them.
  • Typecheck, ESLint, Prettier: pass.
  • Web tests for the Libraries page and its diagnostics sections (14 files): pass.
  • Full web suite (at f98936d; later commits change only table cell markup and classes): 3111 passed, 29 failed in four request-deadline and auth-refresh test files that read localStorage. The same 29 fail on main on the same host, run alone, so they don't come from this change.

Evidence: https://evidence.siloserver.org/r/silo-server/diagnostics-table-1024/

Risks

None identified. On screens between 1024 and 1279 px wide, the three sections take more vertical space as cards.

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

Ran as a follow-up of the review of #4994, with one member per round.

Rounds: 3, last reviewed 168531e

Member Round 1 (f98936d) Round 2 (3a19b69) Round 3 (168531e)
Sol (gpt-6.2-sol, high) 8/10 7/10 8/10

Visual review: 1 round, captures from 35ebbe8 and f98936d (later captures on the evidence page weren't reviewed; the Stale IDs captures at 1280 px are now from a8ce186)

Member Round 1
Sol (gpt-6.2-sol, high) better, 8/10

Plan check: one Opus member (claude-opus-5-5, medium) cut Unmatched Items and Metadata Matcher from the change, since they fit at every measured width, and asked for the comments that named the old switch to be updated. Visual review: titles that start with digits reordered in Arabic, the same before the change; fixed in the Stale IDs table cell and filed for the other diagnostics titles as #5061. Its other points concern the existing card layout. Code review (medium): added dir="auto" to the title and corrected a comment. Background review round 1: a long library name squeezed the Stale IDs title and still pushed Match off-screen; fixed by letting the title and library names wrap, in Troubleshooting too. Round 2: an unbroken library name still overflowed, and a library name's punctuation moved in Arabic; both fixed in 62f7104 and 168531e, which a review round hasn't seen (the follow-up limit is two rounds). Its third point, Extra Large text, affects every admin table and is #5071. Neither round's review was posted on the PR.

Round 3, run by the /silo run that launched this follow-up to cover the two unreviewed commits (8/10, four low findings, not posted because its GitHub connector returned 401):

  • Next to a long unbroken library name, the Stale IDs title was squeezed to a few letters a line. Fixed in a8ce186: the title keeps an 8rem minimum width. Measured with the app's built CSS, the table still fits at 1280 and 1440 px in English, Russian, German, French, Arabic and Polish; the Stale IDs captures at 1280 px were retaken on a8ce186.
  • A library name made of 112 emoji joined into one character can still push Match off-screen. Not changed: no real library name looks like that, and the cell already wraps any name that has a break opportunity.
  • An expanded Troubleshooting row can clip a long sample path, because its cell inherits white-space: nowrap. That cell is the same on main; it gets its own follow-up.
  • Library names in the card layouts, and Stale IDs card titles, don't get the table's direction handling, so a name ending in punctuation can reorder in Arabic. The card markup is the same on main; it goes with [bug] Libraries diagnostics reorder titles that start with digits in right-to-left languages #5061, which covers titles in the same cards.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code; T3 Code delegated tasks (Codex) for the visual and background reviews; Playwright (headless Chromium) for captures
  • Model(s): claude-opus-5-5 (implementation, plan check, code review), claude-sonnet-5-5 (code review finder and validation check), gpt-6.2-sol (visual and adversarial review)
  • Involvement: Fully AI-generated. The agent verified it on a dev deployment build; a person has not verified it yet.
  • Adversarial review: plan check, code review at medium, visual review and a background adversarial review; see Council review above.

🤖 Generated with Claude Code

Note

Show wide Libraries diagnostics tables as cards until they fit

Adds useWideDiagnosticsTableLayout in diagnosticsListState.ts. It picks the table layout at the extra-large breakpoint (80rem) and cards below. Environments without matchMedia default to tables.

  • AmbiguousRootsSection, SkippedRootsSection, and StaleIDsSection switch from the general libraries-page layout hook to the wide-diagnostics hook, so they render cards on narrower desktop widths.
  • Long library names, titles, and headers in SkippedRootsSection and StaleIDsSection can now wrap inside table cells, with direction-aware width-constrained wrappers and a minimum width for title text.
  • Behavioral Change: the three diagnostics sections show tables only at ≥80rem instead of from the standard desktop breakpoint; check useLibrariesTableLayout consumers to confirm only the library list still uses the narrower breakpoint.

Macroscope summarized a8ce186.

Quick104 and others added 3 commits November 21, 2026 10:38
Ambiguous Roots, Troubleshooting and Stale External IDs switched to a
table at 1024 px, where the admin sidebar leaves their section 692 px
wide. Their tables need 750-940 px, so the last columns, including the
Override and Match buttons, sat off-screen behind a sideways scroll.

These three sections now show the table from 1280 px (Tailwind's xl)
and cards below it. Unmatched Items, Metadata Matcher and the library
list fit at 1024 px and keep the lg switch. The Stale IDs title takes
the width the other columns leave and truncates, so that table also
fits at 1280 px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 21, 2026
@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-21T16:58:56.399005Z 168531e New commits
🔒 Security Review ✅ Completed 2026-11-21T17:10:38.207353Z a8ce186 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 ❌

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

Three diagnostics sections now use a wide-table layout selector. The Stale IDs table also wraps headers and truncates long titles with a tooltip.

Changes: Diagnostics layout

Layer / File(s) Summary
Wide diagnostics layout selector
web/src/components/admin/libraries/diagnosticsListState.ts
A new selector uses the xl breakpoint for diagnostics tables. The existing library-list selector remains unchanged, and its documented scope is narrowed.
Diagnostics section layouts
web/src/components/admin/libraries/AmbiguousRootsSection.tsx, web/src/components/admin/libraries/SkippedRootsSection.tsx, web/src/components/admin/libraries/StaleIDsSection.tsx, web/src/components/admin/libraries/DiagnosticsListParts.tsx
The three sections use the wide-table selector. The Stale IDs table wraps headers and truncates long titles with a tooltip. The shared component comment describes the layout breakpoints.

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

Change: Bug fix

Possibly related issues

Possibly related PRs

  • Silo-Server/silo-server#5020: Both PRs change Ambiguous Roots and Skipped Roots rendering, so their layout changes apply to the same sections.

Suggested reviewers: blurbery

Merge Risk: Low · up to f9893

Diagnostics tables now render as cards until 1280 px, which fixes the overflow. One minor issue remains: in the Stale IDs table, long titles are truncated and the full text appears only on mouse hover, so keyboard-only users cannot read it. This is mergeable with a small follow-up.

Security architecture risk: Minimal · up to f9893

The change adjusts when three admin diagnostics sections display cards instead of tables and improves long-text presentation. Existing actions and item identities are preserved. No introduced or worsened architecture-level security risk was established.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the three wide Libraries diagnostics sections (Ambiguous Roots, skipped roots, Stale External IDs) show cards below the wide breakpoint and tables from 1280 px up. It …
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 tied to the changeset. It names the three diagnostics sections (Ambiguous Roots, Troubleshooting/skipped roots, Stale External IDs) that switch from cards to tables at …
Full details: Title check

Explanation

The title names the main change: the three wide Libraries diagnostics sections (Ambiguous Roots, skipped roots, Stale External IDs) show cards below the wide breakpoint and tables from 1280 px up. It is specific and matches the raw summary and objectives, which describe the 80rem query, the hook change, and the Stale IDs title truncation.

Full details: Description check

Explanation

The description is specific and tied to the changeset. It names the three diagnostics sections (Ambiguous Roots, Troubleshooting/skipped roots, Stale External IDs) that switch from cards to tables at 1024 px. It explains the new wide-diagnostics query at 80rem (1280 px) in diagnosticsListState.ts, the unchanged 64rem hook for other sections, the title and library-name wrapping in Stale IDs and Troubleshooting, and the validation results. This matches the summary of changes in the raw summary, so the check passes.

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

@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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

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: 16f61565-f645-41f9-b5fe-b70dde3dce33
Commits

Reviewing files that changed from the base of the PR and between 02a9d1d and f98936d.

Files selected for processing: 5

  • web/src/components/admin/libraries/AmbiguousRootsSection.tsx
  • web/src/components/admin/libraries/DiagnosticsListParts.tsx
  • web/src/components/admin/libraries/SkippedRootsSection.tsx
  • web/src/components/admin/libraries/StaleIDsSection.tsx
  • web/src/components/admin/libraries/diagnosticsListState.ts

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

Quick104 and others added 2 commits November 21, 2026 11:14
…tables

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…uns out

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-triage silo-triage Bot added size/M 50–199 added + deleted lines (all files); change volume, not priority. and removed size/S 0–49 added + deleted lines (all files); change volume, not priority. labels 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 ❌

Quick104 and others added 2 commits November 21, 2026 11:38
…direction

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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 ❌

With a long unbroken library name, the table's automatic layout gave
nearly all the spare width to the library column and squeezed the
title to a few letters a line. Give the title a minimum width; the
library name still wraps, so the table keeps fitting its section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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 dc4770d into main Nov 21, 2026
18 checks passed
@Quick104
Quick104 deleted the fix/diagnostics-table-overflow-1024-v2 branch November 21, 2026 17:53
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/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