Repository navigation
feat(web): make the admin library, user, and access group pages usable on phones - #3997
Merged
Merged
Conversation
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]>
Contributor
Pre-merge checks:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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 — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
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 — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
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]>
4 tasks done
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]>
This was referenced Nov 12, 2026
4 tasks done
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: 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
lgbreakpoint and keeps the desktop layout.Approach
Below
lg: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 withuseMediaQuery("(min-width: 64rem)", true); tests have nomatchMediaand keep exercising the tables.web/src/lib/touchTargets.tsgives controls a 44 px target belowlg, 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.tsxgoes from 2,586 to about 890 lines.Shared components other screens use also change:
LibraryAccessSelectorrows are labels for their switches (also used by Add User, invitations, and account policy), so the switches now have accessible names.ConfirmDialogandProfileEditorDialogtake an optionalclassName.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.jsonandkeys.ts. They still need adding tocatalog/en.arbin silo-translations and syncing, and until then other languages show English for them:New keys
web.admin.libraries.list.moreActionsweb.admin.libraries.list.moveUpweb.admin.libraries.list.moveDownweb.admin.libraries.list.showPathsweb.admin.libraries.list.hidePathsweb.admin.users.list.moreActionsweb.admin.users.list.noMatchesweb.admin.access.groups.members.noMatchesweb.admin.access.groups.members.searchValidation
pnpm run lint,format:check,build, andbudget:checkpass;make test-webpasses (7,265 tests).make verify-local-paths,verify-size-ratchet,verify-bidi, andverify-case-collisionspass.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
Checklist
AI Disclosure
1024pxwhile Tailwind'slgis64rem, 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
lgbreakpointlg, applied across admin dialogs, forms, selects, and detail cardslg, switch and library-access rows become full-row tap targets (pointer events limited to the switch atlgand up in LibraryAccessSelector.tsx and AccessGroupFields.tsx);TOUCH_TARGETSin touchTargets.ts applies minimum sizes by variant/size/slot selectors to qualifying controlsMacroscope summarized 3315921.