Repository navigation
Mobile web UI: five usability findings on phones (with file:line evidence and local fixes) #4438
Replies: 1 comment
|
Verified all five P1s and the P2/P3 list against rc.2 (HEAD b150a55) β your file:line evidence holds up, with two small additions and one sharper root-cause framing for P1.1. Confirmed against source. The 996px chain is exactly Sharper root cause for P1.1 β the two panel toggles evolved asymmetrically. The sidebar already learned the "don't touch the preference on narrow viewports" lesson:
One additional call site for P1.4. The hover-only Adoption order suggestion for when PRs open: the zero-layout-risk one-liners first (manifest Inference boundary: I verified against the source and can't confirm your local test results (60/60) or device rendering β those are your measured numbers, and they match the code paths I traced. |
Uh oh!
There was an error while loading. Please reload this page.
Mobile web UI: five usability findings on phones (with file:line evidence and local fixes)
Context. I run the DSH web GUI daily from a phone (390β430 px viewport, Android) over a private tailnet. While using it I audited the client packages (
ui-layout,ui-conversation,ui-tool,ui-sidebar,ui-primitives,ui-input-trigger) against the web-interface-guidelines checklist. Everything below was verified againstv0.1.1-rc.2. The desktop experience is excellent; these findings only concern narrow viewports and touch input.P1 findings
1. The details panel is unreachable on phones (inspect taps silently do nothing)
packages/client/ui-layout/src/client/columns.ts(concession chain) requiressidebar(56) + DETAILS_MIN(300) + CENTER_MIN(640) = 996pxbefore details get a track. On a 390β430 px viewport the solver auto-resolvesdetails: 0, butopenDetails()still writes the 360 px preference β so tapping a message/tool to inspect it produces no visible response. Fix direction: below ~760 px, float the details panel over the center (the pattern already shipped inTrajectoryTable.module.cssfor<760px) instead of giving it a grid track.2. Re-expanding the sidebar crushes the conversation
Below
SIDEBAR_AUTO_COLLAPSE(1024 px), the manual toggle re-expands the sidebar (280β420 px) as a real grid track:center = max(0, 390 β 280) = 110px, or 0 px with a stored 420 px preference. Fix direction: on narrow viewports, expand the sidebar as an overlay above a click-away scrim (width capped to viewport minus the rail) instead of taking a track.3. Primary touch targets are 24β34 px
Tool rows are 24 px tall and stacked (
DisclosureRow.module.css), icon actions / sidebar buttons / composer+are 28Γ28 (MessageIconActions,SidebarRoot,InputBar), permission trigger 28 px. Mis-taps on adjacent tool rows are frequent. Fix direction: a@media (pointer: coarse)pass raising these to β₯40 px (the codebase already has the precedent inAttachmentRail.module.css).4. Hover-only affordances become ghost targets on touch
.inspectButton(ToolRow.module.css) isopacity: 0until.root:hoverβ on touch it stays invisible but still receives taps; expansion chevrons have the same problem (DisclosureRow). Fix direction:@media (hover: none) { opacity: 1 }so the affordance is honest on touch.5. PWA
display: fullscreenwith zeroenv(safe-area-inset-*)usageapps/web/public/manifest.webmanifestdeclaresfullscreenand no client CSS references safe-area insets, so an installed PWA draws the header and the sticky composer under the Android status/gesture bars. Fix direction:standalone+viewport-fit=cover+max(<rest>, env(safe-area-inset-*))floors on the composer/header.Smaller ones (P2/P3)
.scrollBodylacksoverscroll-behavior-y: containβ overscrolling the transcript triggers the browser's pull-to-refresh and reloads the appheight: 100%instead of100dvhon the root (Android dynamic bars)Status
I have local fixes implemented and tested for all five P1s plus most of the list (overlay mode for both panels in
AppFrame, the coarse-pointer pass, safe-area, manifest, overscroll, typography floors β 60/60 layout tests, full GUI suite green). I'm aware external pull requests are not accepted yet, so I'm sharing the findings and fix directions here; happy to attach the patch series or turn this into PRs if/when that changes.Environment: DSH web GUI on
v0.1.1-rc.2, Chromium on Android (viewport 390β430 px), also reproduced in desktop Chrome with a narrow window.All reactions