Skip to content

feat(web): make the admin library, user, and access group pages usable on phones - #3997

Merged
Quick104 merged 5 commits into
mainfrom
feat/web-mobile-ui-ux
Nov 11, 2026
Merged

Quick104 merged 5 commits into
mainfrom
feat/web-mobile-ui-ux

Conversation

@Quick104

@Quick104 Quick104 commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: changes #1197 C1 and #1200 C1 at phone width only (re-check suggested; desktop is unchanged)

The admin pages for libraries, users, and access groups are close to unusable on a phone. The library and user tables are three to four times wider than the screen, so row actions such as Scan, Edit, View as user, and Delete sit off-screen as 28 px icons, and Add Library is clipped. Dialogs open as small boxes with unlabeled icon tabs. On an access group with 125 members, Save and Delete sit at the bottom of a 7,200 px page. This change gives those pages a phone layout below Tailwind's lg breakpoint and keeps the desktop layout.

Approach

Below lg:

  • Libraries: each library is a card showing its status, folders, last scan, any scan warning, and running scans, with a Scan button and a menu for Rescan Metadata, Verify Mounts, Edit, Move up / Move down, and Delete. Move up and Move down send the same reorder request, with the same rollback on failure, as desktop drag-and-drop, which fights page scrolling on touch. The library editor opens full screen with labeled tabs and a pinned Save bar. The diagnostics sections (Unmatched Items, Metadata Matcher, Ambiguous Roots, Troubleshooting, Stale External IDs) list rows as cards and get a Sort control in place of the table headers.
  • Users: compact rows that open the user, with a menu for playback history, View as user, Edit, and Delete, and a Sort control. Add User and the invite flow open full screen. Invitations and invite codes are cards. The user detail page keeps its layout; its controls get 44 px touch targets, long values wrap instead of clipping, and the tab strip loses a stray scrollbar.
  • Access groups: an edit shows a pinned bar with Discard and Save changes. Discard is new and resets every field to the stored group. Delete moves into a menu at the top, and a toggle row flips its switch when tapped anywhere.

One change applies on desktop too: an access group's Members section shows a count, a search box above 10 members, and 10 members at a time with Show more. A 125-member group made the desktop page 6,600 px tall.

The table and the phone layout read the same per-row state, permission checks, and handlers (useLibraryRows, useAdminUserRows, useInvitationRow), so which actions a row offers is decided in one place. The layout switches with useMediaQuery("(min-width: 64rem)", true); tests have no matchMedia and keep exercising the tables. web/src/lib/touchTargets.ts gives controls a 44 px target below lg, with an invisible hit area for switches, checkboxes, and inline links so they keep their size. The diagnostics sections, the Add User form, the invitation form, and the access group editor move out of their page files; AdminLibraries.tsx goes from 2,586 to about 890 lines.

Shared components other screens use also change:

  • LibraryAccessSelector rows are labels for their switches (also used by Add User, invitations, and account policy), so the switches now have accessible names.
  • ConfirmDialog and ProfileEditorDialog take an optional className.
  • Session rows and choice hints wrap long text, which also shows in personal Settings.

Web only. No API, jellycompat, Apple, or Android change. The user manual names these pages' actions (Scan, Override, Resolve, Save changes), and all of them remain, so it needs no update.

Nine strings were added directly to the generated web/src/locales/en.json and keys.ts. They still need adding to catalog/en.arb in silo-translations and syncing, and until then other languages show English for them:

New keys
Key English
web.admin.libraries.list.moreActions More actions for {name}
web.admin.libraries.list.moveUp Move up
web.admin.libraries.list.moveDown Move down
web.admin.libraries.list.showPaths Show paths
web.admin.libraries.list.hidePaths Hide paths
web.admin.users.list.moreActions More actions for {username}
web.admin.users.list.noMatches No users match your search or filter.
web.admin.access.groups.members.noMatches No members match your search.
web.admin.access.groups.members.search Search members

Validation

  • Web: pnpm run lint, format:check, build, and budget:check pass; make test-web passes (7,265 tests).
  • make verify-local-paths, verify-size-ratchet, verify-bidi, and verify-case-collisions pass.
  • Go checks not run: no Go files change.
  • New tests: Move up / Move down ordering, access group Discard restoring every field without writing, and the access group comparison ignoring the order of libraries and permissions.
  • In a browser at 390 × 844 and 1440 × 900 against a development server with real data: the changed pages have no horizontal overflow and no control under 44 px at phone width, and Discard was exercised. Actions that write (scan, reorder, save, delete, invite) were not exercised.

Evidence

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

Surface and build: mobile web at 390 × 844 and desktop web at 1440 × 900, on the same data. Before from 0e95e55b60, after from the branch before its review-fix commits and rebase, none of which changes a captured screen. Usernames and email addresses in the user captures are placeholders.

Desktop differences from main: the Members section above; on Users, the row action icons sit about 2 px further right; in the user detail header, the gap around each "·" separator differs by about a pixel. The Libraries table is pixel-identical, and the access group editor differs only in its scrollbar.

Risks

  • The phone layout follows viewport width, so a tablet in portrait under 1024 px wide gets it.
  • Access group toggle rows are now labels, so on desktop their text can't be selected with the mouse.
  • The hand-added locale strings above.

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 says there is none.

AI Disclosure

  • Harness: Claude Code, running in T3 Code
  • Tool(s): Claude Code with subagents; T3 Code browser preview for the captures; GitHub CLI
  • Model(s): claude-fable-5-2 (design decisions with the maintainer, briefs, review of agent output, small fixes); claude-opus-5-5 (implementation subagents, the independent review, review fixes, pull request preparation)
  • Involvement: Fully AI-generated. The maintainer chose the layouts and checked pages in the browser during development; the agents ran the checks and captured the evidence.
  • Adversarial review: a claude-opus-5-5 agent with no session context read the whole diff, checking that desktop behavior, row-action visibility, mutations, and the access group save payload were unchanged. It found no serious defects and four issues, all fixed in the review-fix commit. The layout queries used 1024px while Tailwind's lg is 64rem, so with a larger browser font the access group editor could hide both Save controls. Quick Move up taps could send reorders built from a stale list. Reordering a group's permissions or libraries counted as an edit and could trigger a needless group write. Discard left earlier save errors on screen. It also noted the desktop header spacing change listed under Evidence.

🤖 Generated with Claude Code

Note

Make admin library, user, and access-group pages usable on phones

  • Adds responsive layouts for the admin pages: user list, libraries, library diagnostics sections, invitations, invite codes, and access groups switch from tables to card lists below the lg breakpoint
  • Adds shared touch-target utilities (touchTargets.ts, touchClasses.ts) that set minimum control sizes, hit areas, and wrapping below lg, applied across admin dialogs, forms, selects, and detail cards
  • Extracts page-local code into shared modules: user rows and sorting in adminUserList.ts and useAdminUserRows.ts, library rows in useLibraryRows.ts, pagination/sort/layout hooks in diagnosticsListState.ts, and the access-group editor in AccessGroupEditor.tsx
  • Adds a pinned access-group save bar (AccessGroupSaveBar.tsx) that adjusts the document's bottom scroll padding and restores it on cleanup, plus a one-position library reorder helper in adminLibraryOrder.ts
  • Adds tests for library reordering, access-group phone discard behavior, and unordered group-body comparison
  • Behavioral Change: below lg, switch and library-access rows become full-row tap targets (pointer events limited to the switch at lg and up in LibraryAccessSelector.tsx and AccessGroupFields.tsx); TOUCH_TARGETS in touchTargets.ts applies minimum sizes by variant/size/slot selectors to qualifying controls

Macroscope summarized 3315921.

Quick104 and others added 4 commits November 11, 2026 16:14
Below the lg breakpoint the Libraries page shows cards instead of wide
tables: each library has a Scan button and a menu for rescan, verify
mounts, edit, move up or down, and delete. The header actions wrap, the
library editor opens full screen with labeled tabs and a pinned Save bar,
and the diagnostics sections list their rows as cards with a Sort control.
Desktop keeps the tables.

The table and the cards read the same per-library state, and the
diagnostics sections move out of AdminLibraries.tsx into
components/admin/libraries.

Five new list strings are added to the generated English locale ahead of
the silo-translations catalog and need adding there.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Below the lg breakpoint the Users page lists users as compact rows that
open the user, with a menu for playback history, view as user, edit and
delete, plus a Sort control in place of the table headers. Invitations
and invite codes show as cards. The Add User dialog and the invite flow
open full screen with their actions pinned at the bottom.

The user detail page gets 44px touch targets on every tab and dialog,
long values wrap instead of clipping, and the tab strip no longer shows a
scrollbar. Desktop keeps the tables and sizes.

Two new list strings are added to the generated English locale ahead of
the silo-translations catalog and need adding there.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Below the lg breakpoint the access group editor gives every control a
44px touch target, pins a Save bar with Discard to the bottom of the
screen once something has changed, and moves Delete into a menu at the
top. Tapping a toggle row flips its switch, and the description wraps.

The Members section shows a count, a search box for larger groups, and
ten members at a time on every screen size, so a large group no longer
makes the page several thousand pixels tall. Group cards on the list
page no longer grow wider than their column when a name is long.

Two new member-list strings are added to the generated English locale
ahead of the silo-translations catalog and need adding there.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
- Switch layouts at 64rem, the width Tailwind's lg breakpoint uses, so a
  browser with a larger default font size can't hide both of the access
  group editor's Save controls.
- Hold Move up and Move down while a library reorder saves or the list
  reloads, so quick taps can't send orders built from a stale list.
- Compare an access group's libraries and permissions as sets, so
  reordering them alone neither shows the Save bar nor writes the group.
- Clear request-limit errors and save messages on Discard.
- Move the access group editor's draft helpers and Permissions section
  into their own files to keep the editor under the size limit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. label Nov 11, 2026
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor
Pre-merge checks: Inconclusive 2

Failed Failed checks: 2 inconclusive

Check name Status Explanation Resolution
Title check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
Description check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 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-11T21:19:39.130155Z fdb3408 PR opened
🔒 Security Review ✅ Completed 2026-11-11T21:20:57.068371Z fdb3408 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-kody

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

On a phone the root override dialog's header stays fixed while the form
scrolls, and the header shows the full root path. A very long path could
fill most of the screen and leave little room for the form, so the
description now scrolls within a quarter of the screen height.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 11, 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 fa6b6ff into main Nov 11, 2026
42 checks passed
@Quick104
Quick104 deleted the feat/web-mobile-ui-ux branch November 11, 2026 23:20
Quick104 added a commit that referenced this pull request Nov 12, 2026
PlayingNextScreen: keep the redesign's autoplay switch, checked from the
autoplay setting, under #3917's still-watching gate, which holds only the
countdown. The locale files keep main's strings that are ahead of the
catalog (#3997) alongside this branch's local catalog build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104 added a commit that referenced this pull request Nov 12, 2026
…d2447a (#4013)

#3993 merged on a local catalog build. This release carries its strings,
the player's end time label for the web (silo-translations#16), and the
admin phone list text #3997 shipped ahead of the catalog
(silo-translations#17), which now has translations in every language.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XXXL 3000+ added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant