Repository navigation
feat(webui): larger server icons and expandable server rail - #1173
Conversation
There was a problem hiding this comment.
Important
The expanded rail causes horizontal overflow at enlarged text sizes, and long server names can still be indistinguishable on touchscreens.
Approach. Expanding the existing rail keeps server switching and Fleet navigation in the same workspace controls.
Reviewed changes. I reviewed the rail from rendering and persistence through desktop and mobile interaction.
- Server controls. Larger rail icons, expanded names and enrollment status, and a labeled Fleet shortcut.
- Layout and state. A keyboard-operable toggle, a saved browser preference, and a bounded mobile server list.
- Verification. The WebUI built and all four focused tests passed, including Firefox. Separate browser checks exercised enlarged text, long names, focus clipping, and the picker sizing from #1171.
Non-blocking
- The mobile list clips keyboard focus outlines. Tabbing from the toggle to the first server at 390px clips the top and left of its focus ring because the full-width row sits flush against the scrollport. Add room for the outline inside the list or draw the ring inside the row. Mobile scroll container
gpt-6.2-sol | 𝕏
e5270aa to
48d95a2
Compare
There was a problem hiding this comment.
Important
Earlier layout findings still block approval. At enlarged text sizes, expanding the desktop rail can push the workspace past the viewport. On mobile, long server names that differ only at the end can still look identical.
Reviewed changes
I reviewed the rebase from e5270aa to 48d95a2 against the previous review.
- Integrated the global UI scale. Kept the desktop rail sized in
remand added sizing caps for the collapsed mobile rail controls and icons. - Updated the sizing checks. Aligned the contrast assertion with the compact
1.25rempicker icon and adjusted the Firefox thresholds for the picker icon and expanded mobile list. - Verified the rebased layout. The WebUI build, all 41 contrast tests, and the focused Firefox rail and navigation tests passed. Chromium measured a 21.25px picker icon and a 34px rail icon at the default root size.
gpt-6.2-sol | 𝕏
There was a problem hiding this comment.
Important
Expanding the rail can still push workspace controls off-screen at enlarged text sizes.
Reviewed changes
I reviewed 7bf3106 against the previous reviewed head, 48d95a2.
- Capped the desktop rail and added a stacked layout. The rail moves above the workspace under the new text-relative breakpoint.
- Wrapped long server names. The expanded list shows distinguishing suffixes on mobile, on coarse-pointer devices, and in the stacked layout.
- Updated the Firefox checks. The test scales the icon expectations and exercises shared-prefix names and the stacked layout at a 32px browser default font.
The WebUI build, 11 focused state checks, and all 41 contrast checks passed. A separate Firefox check reproduced the overflow above the new breakpoint.
gpt-6.2-sol | 𝕏
Linked issuesChecked at commit a6c5ee6 #1122 feat(webui): larger server icons and an expandable sidebar showing server names · 7 of 7 met
|
…d test list scrolling
fe19d77 to
a6c5ee6
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
I reviewed the updates since 7bf3106 through the rebase onto 4935390.
- Wrapped Shield controls. At a 32px Firefox default font, the controls stayed within the viewport with the expanded rail beside the workspace at 1366px.
- Synced rail state across tabs. A two-tab Firefox check confirmed that toggling the rail and clearing its stored preference updated the second tab.
- Updated layout and scroll coverage. The stacked layout uses a workspace class, the mobile test scrolls to the last server, and the rail toggle retains its keyboard focus style after the rebase.
The WebUI build, all 42 contrast checks, and three focused state tests passed on a6c5ee6.
gpt-6.2-sol | 𝕏

Closes #1122
Part of #1151 (Phase 2 — will rebase onto #1126 once #1171 merges before marking ready).
Summary
frontend/app.js(ServerIconoptionalsizeprop,32in the rail while keeping20inServerPicker) andfrontend/style.css(2remicons in2.75rembuttons and a4.25remcollapsed rail, sized inremso fix(webui): increase the overall UI scale slightly #1126's root percentage scale flows cleanly).chevron-leftandchevron-rightpaths tofrontend/icons.jsand wire a keyboard-operable rail toggle ([data-rail-toggle],aria-expanded,aria-controls="server-rail", matchingaria-label/title, shared:focus-visiblering) intoWorkspace's#server-rail.14.5remon desktop showing the brand label (jModGuard), full server names with ellipsis truncation andtitletooltips, explicit enrollment status (Set up/Pending), and theFleet & Accessshortcut label while preserving existing server selection and Fleet navigation.localStorage(jmodguard.railExpanded) withtry/catchfallback when browser storage is blocked.<= 720px) as a 1-row horizontal strip with a rotated chevron toggle, and expand into a full-width vertical list with bounded internal scroll (max-height: min(18rem, 45dvh)) above the sticky top navigation without clipping or horizontal overflow.scripts/frontend-contrast-test.mjsand both JSDOM and real Firefox desktop/mobile/keyboard/reload coverage inscripts/frontend-state-test.mjs.Validation
bash scripts/ci-preflight.sh --only frontend— passed (webui build + audit, ESLint + selftest + flake checks,frontend-state-test.mjs632/632 including real Firefox desktop & mobile expandable-rail test,frontend-contrast-test.mjs40/40,frontend-warmup-test.mjs13/13,frontend-sr-only-test.mjs1/1,package-webui-test.mjs4/4,administration-state-test.mjs41/41).npm run build --prefix tools/webui+node --test scripts/frontend-contrast-test.mjs+git diff --check— all passed.e5270aac84f74622cb960de1291d318b276abcd0Summary by Sourcery
Make the server rail expandable so users can view server details and Fleet & Access navigation alongside larger server icons.
New Features:
Enhancements:
Tests: