Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.
TypeScript browser-shellcontrol-planefile-managerhomelabmobile-firstnextjsptyreactself-hostedserver-managementshadcn-uisysadmintailwindcssterminaltypescriptvpsweb-desktopweb-terminal
fix(a11y): raise 4 mobile touch targets to the WCAG 24x24 floor
Rahman3ac7f270c0b7
diff --git a/CLAUDE.md b/CLAUDE.mdindex 3b8d870d..9ae6189e 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -135,14 +135,18 @@ to `resources/` (rr) and drive any project from one manifest:host in `next.config` `images.remotePatterns`). Host-fs images + the live Playwrightscreenshot stream stay raw `<img>` on purpose (dynamic/auth'd bytes).-## Deploy / ops (prod :4005 is systemd, not Dokploy)+## Deploy / ops (prod :4005 + demo :4006 are systemd, not Dokploy)- `mso.service` (:4005, WorkingDir `/home/rahman/projects/mso`) servesmso.rahmanef.com via `next start`.-- **The demo does NOT exist on this host** (checked 2026-08-03): no `mso-demo.service`- unit, no `/home/rahman/projects/mso-demo` checkout. The `NEXT_PUBLIC_OS_DEMO=1`- build flag is still real and still works — what is gone is the second checkout and- the :4006 unit that used to serve it. Anything below describing "the demo" is a- recipe to re-create it, not a description of something running.+- `mso-demo.service` (:4006, WorkingDir `/home/rahman/projects/mso-demo`,+ `NEXT_PUBLIC_OS_DEMO=1` → no auth, mock data). It had been deleted at some point and+ was **re-created 2026-08-03** to make UI/UX verification possible without logging in.+ It binds **127.0.0.1 only, deliberately**: demo mode disables login, so a `0.0.0.0`+ bind would publish an unauthenticated shell. It is mock-data-only so the blast radius+ is small, but exposing it is the owner's decision — put it behind the reverse proxy+ explicitly if you want it public. The checkout is a shallow clone of this repo with+ `node_modules` copied in; rebuild it with the flag (`NEXT_PUBLIC_OS_DEMO=1` is inlined+ at BUILD time) whenever you re-deploy it.- **Deploy prod:** `bun run build` **THEN** `sudo systemctl restart mso.service`. ALWAYSbuild-then-restart, never the reverse, and never rebuild again after restartingwithout restarting once more — `next start` loads the build manifest at boot, so ifdiff --git a/docs/PROGRESS.md b/docs/PROGRESS.mdindex 1d00fcbf..2bc0b808 100644--- a/docs/PROGRESS.md+++ b/docs/PROGRESS.md@@ -8,6 +8,65 @@ Running log of what shipped each phase. Newest at top.> Read those phases as history. **This file is the source of truth for what exists** —> `ARCHITECTURE.md` is no longer maintained and carries a stale-warning banner.+## 2026-08-03 (UX) — a real browser pass, a demo instance back, and I broke prod proving it (DONE)++First pass that opened the product in a browser instead of reading the code. Also the+first time this session damaged production, so that first.++**I broke :4005, with the exact hazard I had documented hours earlier.** Measuring bundle+output meant running `bun run build` twice in the prod checkout with no restart after.+`next build` wipes `distDir` first, so the running server was serving 500s with+`Content-Type: text/plain` for its own chunks and the browser refused to execute them.+Fixed by a restart; smoke green after. Two lessons worth more than the measurement:+`scripts/verify-build.sh` exists precisely for this and I did not use it, and **a broken+deploy silently corrupts whatever you are measuring** — see the retraction below.++**RETRACTED: "the mobile-first product renders the desktop shell on phones."** I reported+`data-shell=macos` at 390px, 412px and on a real iPhone UA, with a screenshot of a macOS+menu bar on a phone-sized viewport. It was entirely an artifact of the breakage above:+React never hydrated (its chunks were refused), so the effect that computes responsive+state never ran and the deliberate SSR default — desktop — stayed on screen. After the+restart: **390px → `ios`, 412px → `ios`, 1280px → `macos`, zero horizontal overflow.**+Responsive shell selection works correctly. Nothing was wrong.++**Measured on a healthy prod** (Playwright, `os-browser/node_modules`):++| | desktop 1280 | mobile 390 |+|---|---|---|+| LCP | 380 ms | 160 ms |+| CLS | 0.008 | 0 |+| TTFB | 24 ms | 20 ms |+| transfer / requests | 194 KB / 29 | 231 KB / 30 |++Against a 2500 ms "good" LCP threshold there is nothing meaningful left to win here.++**Fixed: 4 touch targets under the WCAG 2.5.8 24×24 floor, all on mobile** — the three+iOS home-screen page dots were 19×19 (`p-1.5` around a 7px dot) and the home indicator+was 17px tall. Both got a `min-h`/`min-w` floor; the dot and the 134px bar are visually+unchanged, only the hit area grew. Mobile now reports one "tiny" control and it is the+`sr-only` skip link, which is 1×1 by design and expands on focus.++**A11y came back stronger than expected**, recorded so nobody re-audits it: 77 icon+buttons, **zero** without an accessible name; the skip link exists and its+`#main-content` target resolves; the Launchpad overlay is both `inert` and+`aria-hidden`, so its 16 app links are correctly out of the tab order (a naive+`querySelectorAll` sweep counts them as unnamed — mine did, wrongly);+`prefers-reduced-motion` collapses durations to 1ms rather than 0 so `animationend`+still fires. Two of my own grep-based claims were wrong and the browser corrected both.++**`mso-demo.service` is back**, :4006, loopback-only — see CLAUDE.md. Demo mode disables+login, so a public bind would publish an unauthenticated shell; mock-data-only keeps the+blast radius small but exposing it stays the owner's call.++**Hardening:** `/etc/logrotate.d/mso-audit` now rotates `~/.mso/audit.log` (weekly, 5 MB+cap, 8 generations, `su rahman rahman` since the file is 0600). Growth is only ~88 KB/mo+today, but it is append-only with no cap in code and this box serves prod.++**STILL OPEN — React hydration error #418**, reproducible on BOTH mobile and desktop with+clean localStorage, so it is not the theme-restore inline script. A hydration mismatch+makes React discard and re-render the tree client-side. Identifying the offending node+needs a non-minified dev build; not chased here rather than guessed at.+## 2026-08-03 (docs) — reconciling every live doc against what the box actually does (DONE)A sweep for claims that had quietly become false. History files (`AUDIT-*`,diff --git a/frontend/slices/appshell/components/home-indicator.tsx b/frontend/slices/appshell/components/home-indicator.tsxindex e6b9bc41..f7e41363 100644--- a/frontend/slices/appshell/components/home-indicator.tsx+++ b/frontend/slices/appshell/components/home-indicator.tsx@@ -76,7 +76,10 @@ export function HomeIndicator({<buttontype="button"aria-label="Home — swipe up for home, hold for app switcher"- className="flex items-center justify-center px-12 py-1.5"+ // min-h-6: the bar itself is 5px and py-1.5 left the control 17px tall, under+ // the WCAG 2.5.8 24×24 floor. Height only — the 134px bar and px-12 are+ // untouched, so the affordance looks identical.+ className="flex min-h-6 items-center justify-center px-12 py-1.5"><spanclassName="h-[5px] w-[134px] rounded-full"diff --git a/frontend/slices/appshell/components/mobile-home.tsx b/frontend/slices/appshell/components/mobile-home.tsxindex 5ee6ed2c..b207f7c8 100644--- a/frontend/slices/appshell/components/mobile-home.tsx+++ b/frontend/slices/appshell/components/mobile-home.tsx@@ -117,7 +117,10 @@ export function MobileHome({aria-label={`Go to page ${i + 1}`}aria-current={i === page}onClick={() => pagerRef.current?.scrollTo({ left: i * pagerRef.current.clientWidth, behavior: "smooth" })}- className="grid place-items-center p-1.5"+ // min-h/w-6 = the WCAG 2.5.8 24×24 floor. The DOT stays 7px — only the+ // hit area grows, so nothing moves visually. `p-1.5` alone gave 19×19,+ // which is under the floor on the one surface that is touch-only.+ className="grid min-h-6 min-w-6 place-items-center p-1.5"><span className={cn("size-[7px] rounded-full transition-colors", i === page ? "bg-white/90" : "bg-white/40")} /></button>