Skip to content

fix(web): show the admin Users table only when it fits - #5191

Merged
Quick104 merged 6 commits into
Silo-Server:mainfrom
Rhainland:fix/5062-admin-users-table-breakpoint
Nov 25, 2026
Merged

Quick104 merged 6 commits into
Silo-Server:mainfrom
Rhainland:fix/5062-admin-users-table-breakpoint

Conversation

@Rhainland

@Rhainland Rhainland commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #5062
Related issue: N/A
Validation tasks: changes #1197 C1 (the Users list shows compact rows instead of the table from 1024 to 1279 px)

Other clients: Apple N/A (no client-visible change); Android N/A (no client-visible change); Roku N/A (no client-visible change)

On the web admin Users page, the users table replaced the compact rows at 1024 px. At that width the admin sidebar leaves the page 720 px, and the table needs about 880 px with short names, so the last columns, including the row actions, sat behind a sideways scroll with no visible cue. This change keeps the compact rows until 1280 px, where the table fits, and lets long usernames, emails and group names wrap so they cannot push the actions out of view.

Approach

The Users page now uses the same xl (80rem) switch the wide Libraries diagnostics tables got in #5063. That hook moves from the name useWideDiagnosticsTableLayout to useWideTableLayout, since it is no longer diagnostics-only; the three diagnostics sections only pick up the new name.

Below 1280 px the page shows the compact rows and the Sort control it already shows below 1024 px. The username and group links wrap with dir="auto" and align-with-page, following the right-to-left rules in web/src/i18n/README.md, and the email cell wraps too. Without the wrapping, a single long username or email made the table about 1190 px wide, wider than the page even at 1440 px. The broader Extra Large text rework in #5071 is left out.

Review fixes on this branch:

  • The email cell takes dir={emailDir(email)} like the compact rows and the other admin email cells, so 123@example.com no longer reads example.com@123 in Arabic. It also breaks after its @ and before its dots (BreakableEmail), not mid-word.
  • The group cell has a 6rem minimum, so a squeezed table keeps ordinary group names' words whole. A long one-word name still breaks inside it.
  • With the compact rows (1024 to 1279 px), search sits on its own row, and the group filter and Sort control share the next one. SortControl now uses the shared lg touch rule instead of a fixed 44 px, so it matches the controls beside it. Its other caller, the Skipped Roots cards, also gets 36 px controls from 1024 to 1279 px.

Validation

  • Web lint, format check, typecheck, build and bundle budget: pass.
  • make test-web: pass.
  • verify-local-paths, verify-bidi, verify-case-collisions, verify-size-ratchet: pass.
  • Go checks: not run, no Go files changed.
  • No test added: the change is a layout breakpoint, which "Decide what to test" leaves out.
  • Local build with six synthetic accounts, headless Chromium, horizontal overflow of the table container (scrollWidth - clientWidth), English and Arabic:
Width Before After
1024 px table, 475 px overflow compact rows, 0
1152 px table, 348 px overflow compact rows, 0
1280 px table, 228 px overflow table, 0
1440 px table, 68 px overflow (delete button hidden) table, 0
390 px compact rows, 0 compact rows, 0 (unchanged)

With short names only, the 1024 px table overflowed by 160 px, the figure the issue reports.

Review verification at ed18ebe, on a sandbox built from the branch, with the base frontend served from the merge base against the same API: seven synthetic accounts, including a very long username and email, 123@example.com, an Arabic username, and a long one-word group name. Overflow is 0 at 1024, 1152, 1280, 1440 and 390 px in English and Arabic. On the base it is 795 to 1208 px. A standalone check confirmed that Chromium, Firefox and WebKit all honor the group cell's minimum width. The web typecheck, eslint, prettier and the admin vitest suites (16 files, 122 tests) pass.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-5191/

Surface and build: web admin, Users page, local build of this branch against its base, desktop at 1024 px and 1440 px, mobile web at 390 px (unchanged).

Risks

None identified. Admins on 1024 to 1279 px screens see the compact rows instead of the table.

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

Rounds: 3, last reviewed ed18ebe

Member Round 1 (4104944) Round 2 (681d8dd) Round 3 (ed18ebe)
Sol (gpt-6.2-sol, medium) 7/10 8/10 9/10
Opus (claude-opus-5-5, medium) 8/10 9/10 9/10
Gemini (gemini-4-neon, medium) 7/10 9/10 8/10

Visual review: 2 rounds, captures from 681d8dd and ed18ebe

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

Fixed: the email direction and its mid-word breaks, the filter row's mixed control heights and squeezed search box, a group name cut mid-word, and the compact list's stale lg comment. Answered: Extra Large text (tracked in #5071), the compact layout's missing group link and creation date (the existing compact design), the cross-engine support for the group cell's minimum width (checked in Chromium, Firefox and WebKit), and the shared Sort trigger and chevron styling (unchanged from before this PR).

AI Disclosure

  • Harness: Claude Code (via T3 Code); Codex CLI for code review
  • Tool(s): Claude Code, Codex CLI, Playwright (headless Chromium), GitHub CLI
  • Model(s): claude-opus-5-5; gpt-6.2-sol (code review)
  • Involvement: Fully AI-generated, human verified
  • Maintainer review: a /silo review in Claude Code (claude-opus-5-5) added the review fixes listed under Approach. Its council is in Council review above.
  • Adversarial review: dual-code-review (Codex and a separate Claude reviewer, correctness, standards and spec, medium effort) on the full diff. Neither found a correctness or spec problem. Standards findings fixed: renamed the isDesktop flag to showTable, corrected a comment that still said lg, and gave the wrapping username and group links dir="auto" and align-with-page per the i18n README. A re-review of those changes found nothing. Dropped: a suggestion to stop listing the hook's callers in its comment (kept, matches the existing style).

Note

Show admin Users table only when it fits, with breakable email wrapping

  • The admin Users page in AdminUsers.tsx now shows the table at xl and above and the compact list below xl. The search, group-filter, and sort row switches to horizontal layout at xl, and SortControl renders when the table is hidden.
  • Table cells for username, email, and group allow wrapping. Emails get discretionary line breaks after @ and before dots via the new BreakableEmail helper in AdminUserRowParts.tsx, plus emailDir direction handling.
  • Renames useWideDiagnosticsTableLayout to useWideTableLayout in diagnosticsListState.ts and updates the diagnostics sections and the Users page to call it. The breakpoint query is unchanged.
  • SortControl in DiagnosticsListParts.tsx keeps 44px touch sizing only below lg instead of at all widths.
  • Behavioral Change: Users table appears at a different breakpoint than before (xl instead of the libraries breakpoint); the compact list shows below xl instead of below lg.

Macroscope summarized ed18ebe.

At 1024 px the admin sidebar leaves the Users page 720 px, but its table
switched in at Tailwind's lg breakpoint and needs about 880 px, so the
last columns, including the row actions, sat behind a sideways scroll.

The Users page now switches from its compact rows to the table at xl
(1280 px), the breakpoint the wide Libraries diagnostics tables already
use. Usernames, emails and group names wrap, so a long one no longer
pushes the action buttons out of view at that width. The shared hook is
renamed to useWideTableLayout now that it is not diagnostics-only.

Closes Silo-Server#5062
@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The changes update the shared wide-table layout hook and its diagnostics consumers. The Admin Users page now switches to its table layout at the wider breakpoint and wraps long username, email, and group content.

Changes: Admin responsive layouts

Layer / File(s) Summary
Shared wide-table layout and diagnostics controls
web/src/components/admin/libraries/diagnosticsListState.ts, 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 shared hook is renamed to useWideTableLayout and adopted by the diagnostics sections. Sort controls use responsive touch sizing below lg.
Users page breakpoint and wrapping
web/src/components/admin/users/AdminUserRowParts.tsx, web/src/components/admin/users/AdminUserCompactList.tsx, web/src/pages/AdminUsers.tsx
The Users page uses the wide-table layout hook and shifts the table and related controls to the xl breakpoint. Username, email, and group content can wrap; BreakableEmail inserts break opportunities at email separators.

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

Change: Bug fix · Severity of issue fixed: Medium

Possibly related issues

  • Silo-Server/silo-server#5071 — This issue also concerns Admin Users table overflow. The PR changes the breakpoint and wrapping behavior, but the issue’s breakpoint-scaling concern remains unresolved.

Possibly related PRs

  • Silo-Server/silo-server#5063 — Both PRs change the table-versus-card behavior for the same diagnostics sections and use the shared wide-table layout hook.

Suggested reviewers: quick104

Merge Risk: Minimal · up to ed18e

This UI-only change moves the Users table to wider screens and wraps long usernames, emails and group names. Nothing in the supplied evidence points to a merge-blocking problem.

Security architecture risk: Minimal · up to ed18e

The Users page keeps its compact layout until the wider breakpoint. Both layouts offer the same account actions under the same conditions, so the change does not expand access or privileges.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the admin Users table now appears only when the viewport is wide enough to fit it. The changeset moves AdminUsers from the lg to xl breakpoint and adds wrapping for lo…
Linked Issues check Passed Directly linked issue #5062 requires that the admin Users table fit its container where it replaces the cards, or that the cards stay until the table fits. At head, web/src/pages/AdminUsers.tsx switch…
Out of Scope Changes check Passed The changes relate to the linked issue. The hook rename (useWideDiagnosticsTableLayout to useWideTableLayout) in diagnosticsListState.ts is needed for AdminUsers to use the xl breakpoint. The three di…
Description check Passed The description is specific and on-topic. It states the problem (the Users table overflows sideways at 1024 px), the approach (switching the Users page to the xl breakpoint, renaming the wide-table ho…
Full details: Title check

Explanation

The title names the main change: the admin Users table now appears only when the viewport is wide enough to fit it. The changeset moves AdminUsers from the lg to xl breakpoint and adds wrapping for long usernames, emails, and group names, which fits the title's fix(web) scope.

Full details: Linked Issues check

Explanation

Directly linked issue #5062 requires that the admin Users table fit its container where it replaces the cards, or that the cards stay until the table fits. At head, web/src/pages/AdminUsers.tsx switches from useLibrariesTableLayout (min-width 64rem) to useWideTableLayout (min-width 80rem, xl) through showTable. Below 1280 px the page renders AdminUserCompactList and the Sort control, so no table overflows at 1024 or 1152 px. From 1280 px the table renders. The table cells now wrap: the username and group links use whitespace-normal, dir="auto", and wrap-anywhere; the email uses emailDir and BreakableEmail; the group cell has min-w-24. This reduces the width that caused the overflow. The PR reports local Chromium measurements: 0 overflow at 1024, 1152, 1280 and 1440 px. These measurements come from the PR description and were not rerun here. The issue does not require automated tests for this layout change, and the issue's requirements are coding requirements that the diff implements. The issue's technical notes match the reviewed code.

Full details: Out of Scope Changes check

Explanation

The changes relate to the linked issue. The hook rename (useWideDiagnosticsTableLayout to useWideTableLayout) in diagnosticsListState.ts is needed for AdminUsers to use the xl breakpoint. The three diagnostics sections only change the hook name, so their behavior is unchanged. The AdminUsers.tsx changes (breakpoint, wrapping, dir attributes, BreakableEmail, emailDir) implement the wrapping that the PR describes for the same overflow. The raw summary also reports a SortControl sizing change in DiagnosticsListParts.tsx (44px height only below lg, responsive max-lg sizing). The PR description does not mention this change. It may affect the diagnostics sections in the lg to xl range. This is a minor side effect and is tied to the Sort control that the Users page shows in compact mode. It is not a demonstrated unrelated change, so it is not marked FAIL.

Full details: Description check

Explanation

The description is specific and on-topic. It states the problem (the Users table overflows sideways at 1024 px), the approach (switching the Users page to the xl breakpoint, renaming the wide-table hook, wrapping long usernames, emails and group names), the validation results, and a before/after overflow table. It matches the changeset in the summaries and objectives.

Finishing Touches

Generate unit tests (beta)

  • 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: 94eb480c-4701-4dcb-83d7-fc0a1f8b3cb1
Commits

Reviewing files that changed from the base of the PR and between 3b2b321 and ed18ebe.

Files selected for processing: 8

  • 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
  • web/src/components/admin/users/AdminUserCompactList.tsx
  • web/src/components/admin/users/AdminUserRowParts.tsx
  • web/src/pages/AdminUsers.tsx

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

@silo-kody

silo-kody Bot commented Nov 23, 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 bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Nov 23, 2026
@silo-triage silo-triage Bot added the triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. label Nov 24, 2026
Quick104 and others added 2 commits November 24, 2026 01:17
…eft pages

The email cell now wraps; give it the emailDir direction and the
align-with-page sizing the compact rows and other admin email cells use,
and point the compact list's comment at the new xl switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Users now shows its compact rows, and the Sort control, from lg to xl,
where the search box and group filter beside it drop to their desktop
height. Give the Sort control the same lg touch rule instead of a fixed
44px, so the filter row lines up.

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

@Quick104 Quick104 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.

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

Review of 4104944. The breakpoint change works: on a sandbox built from this head, the Users table no longer overflows at 1024, 1152, 1280, or 1440 px, in English or Arabic. I found two small issues, both low severity, and I'm fixing both in commits on this branch, so there's no need to change anything yourself.

One more nit, outside the diff: the doc comment on AdminUserCompactList still says it's the list "below the lg breakpoint". I'm updating it to xl in the same commit.

Comment thread web/src/pages/AdminUsers.tsx Resolved
Comment thread web/src/pages/AdminUsers.tsx Resolved
From lg to xl the search box, group filter and Sort control shared one
row, which squeezed the search box until its placeholder was cut off.
Stack them as below lg until the table shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Nov 24, 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 24, 2026 01:47
At 1280 px the email column is squeezed, and wrap-anywhere cut ordinary
addresses mid-word (alice@example.co / m). Give the email break points
after the @ and before each dot, so it wraps between its parts and only
cuts a part that can't fit on its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the email breaking at its parts, the table squeezed the group
column instead and cut "Default Group" mid-word. Give the group cell a
6rem minimum, so ordinary words stay whole and the username and email
give way first; a longer name still breaks inside that width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Nov 24, 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

Copy link
Copy Markdown
Contributor

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

Review summary

Reviewed head: ed18ebe (the author's 4104944 plus five review commits on this branch).

The fix works. On a sandbox built from this branch, the Users table no longer runs off the page. The seeded data includes a very long username and email and a long one-word group name. With that data, the base frontend overflowed its container by 795 to 1208 px at 1024, 1152, 1280 and 1440 px. At ed18ebe the overflow is 0 at every one of those widths and at 390 px, in English and Arabic. Below 1280 px the page shows the compact rows; from 1280 px the table shows every column and all of its row actions.

Evidence: https://evidence.siloserver.org/r/silo-server/pr-5191/

Fixed on this branch

  • ce51b7e: the email cell takes dir={emailDir(email)}, so 123@example.com no longer reads example.com@123 in Arabic. This also corrects the compact list's comment, which still said lg.
  • 3a58454 and 681d8dd: from 1024 to 1279 px, the Sort control (fixed at 44 px) shared a row with 36 px controls and squeezed the search box until its placeholder was cut off. Search now has its own row, and SortControl uses the shared lg touch rule. Its other caller, the Skipped Roots cards, gets the same 36 px controls in that range.
  • 91677a7: at 1280 px, wrap-anywhere cut ordinary emails mid-word (alice@example.co / m), even when every address was short. Emails now break after the @ and before a dot.
  • ed18ebe: the group cell has a 6rem minimum, so a squeezed table keeps "Default Group" whole. A minimum on the group link raised the table's minimum width and made the Arabic table overflow by 50 px, so the minimum sits on the cell. A standalone check confirmed that Chromium, Firefox and WebKit all honor it.

Left as is

  • Extra Large text can still make the table overflow at 1280 px. [bug] Admin tables ignore the text size setting and scroll sideways at Extra Large text #5071 tracks that for all admin tables.
  • From 1024 to 1279 px, admins see the compact rows, which show the group without a link and leave out the creation date. That is the existing compact design.
  • With a very long account in the list, ordinary emails at 1280 px take three lines (alice@ / example / .com). They break only at their parts. The only way to give the email column more room at that width is a design change, such as showing the Created column as a date only.

Not caused by this PR: in the compact rows, an action menu item that names a very long username is clipped (the item needs 451 px and gets 246 px). The compact list already did this below 1024 px; this PR also shows it from 1024 to 1279 px.

Checks

Council

Member Code r1 (4104944) Code r2 (681d8dd) Code r3 (ed18ebe) Visual r1 Visual r2
Sol (gpt-6.2-sol, medium) 7/10 8/10 9/10 better, 8/10 better, 8/10
Opus (claude-opus-5-5, medium) 8/10 9/10 9/10 better, 7/10 better, 8/10
Gemini (gemini-4-neon, medium) 7/10 9/10 8/10 better, 7/10 better, 8/10

Verdict

Fit: 9/10 · Readiness: 9/10 — ready

Fit: this is a polish fix for an admin page that hid its own controls. It reuses the breakpoint the Libraries diagnostics tables already use, adds no setting, and costs nothing at runtime. Readiness: the overflow was reproduced on the base and is gone on this head, in two languages and at five widths. The validation-board check ran, and no defect from the review is left open.

@Quick104
Quick104 merged commit ae962dc into Silo-Server:main Nov 25, 2026
18 checks passed
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. 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.

[bug] Admin Users table overflows its page at 1024 px and hides its last columns

2 participants