You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): show the wide Libraries diagnostics tables as cards until they fit - #5063
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.
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.
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.
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.
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>
A new selector uses the xl breakpoint for diagnostics tables. The existing library-list selector remains unchanged, and its documented scope is narrowed.
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.
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: 4
Check name
Status
Explanation
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
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
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bugSomething isn't workingimpact: polishAnnoyance, cosmetic, or nice-to-havepriority: P2Limited scope, workaround exists, or polishsize/M50–199 added + deleted lines (all files); change volume, not priority.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tsgetsuseWideDiagnosticsTableLayout, 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..bidi-textand the library namedir="auto", asweb/src/i18n/README.mdasks, so "100% Wolf" and a name ending in "!" keep their order in Arabic.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
remdoesn'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
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.localStorage. The same 29 fail onmainon 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
Council review
Ran as a follow-up of the review of #4994, with one member per round.
Rounds: 3, last reviewed 168531e
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)
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):
white-space: nowrap. That cell is the same onmain; it gets its own follow-up.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
🤖 Generated with Claude Code
Note
Show wide Libraries diagnostics tables as cards until they fit
Adds
useWideDiagnosticsTableLayoutin diagnosticsListState.ts. It picks the table layout at the extra-large breakpoint (80rem) and cards below. Environments withoutmatchMediadefault to tables.AmbiguousRootsSection,SkippedRootsSection, andStaleIDsSectionswitch from the general libraries-page layout hook to the wide-diagnostics hook, so they render cards on narrower desktop widths.SkippedRootsSectionandStaleIDsSectioncan now wrap inside table cells, with direction-aware width-constrained wrappers and a minimum width for title text.useLibrariesTableLayoutconsumers to confirm only the library list still uses the narrower breakpoint.Macroscope summarized a8ce186.