Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 759d6cb59940dc4b8326133bbd18405540a0c7cc
parent ab826955a9cd23960e5b26b1f44e4f4832527b60
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sat, 24 Oct 2026 04:49:37 -0400

umtool phone: Overview iterations as stacked rows, lit-line actions drawn on a phone, the tab strip shows its neighbour; the Inbox tap test keeps clear of controls

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/app/globals.css | 28++++++++++++++++++++++++++++
Mumtool/components/projects/report/OverviewTab.tsx | 4++--
Mumtool/components/shell/PlaceBar.tsx | 5+++--
Mumtool/e2e/phone.spec.ts | 8++++++--
4 files changed, 39 insertions(+), 6 deletions(-)

diff --git a/umtool/app/globals.css b/umtool/app/globals.css @@ -840,6 +840,34 @@ canvas.grabbable { body:has(.phone-dock) main :is(select, img, video) { max-width: 100%; } + /* Nothing is hover-only on a phone: a line's actions are drawn on every + line, not on the lit one alone. (Its state changes still take a press only + once it is lit -- the rule in the components layer -- and the Inbox and + Work put theirs behind ⋯ here.) */ + .lit-line [data-lit-act] { + opacity: 1; + } + /* A short table (a piece's Overview) is stacked lines on a phone: one row, + its cells wrapping in reading order, no head row to keep them in line. */ + table.stack-rows thead { + display: none; + } + table.stack-rows tr { + display: flex; + flex-wrap: wrap; + align-items: baseline; + gap: 2px 12px; + padding: 8px 0; + border-bottom: 1px solid var(--seam); + } + table.stack-rows td { + padding: 0; + border: 0; + text-align: left; + } + table.stack-rows td:empty { + display: none; + } .scroll-x { overflow-x: auto; background: diff --git a/umtool/components/projects/report/OverviewTab.tsx b/umtool/components/projects/report/OverviewTab.tsx @@ -189,10 +189,10 @@ export function ProjectDecisions({ project, decisions }: { project: string; deci ); } -/** The article's newest iterations (canvas `.itab`): number, kind, model, spend, time, checks, current. */ +/** The article's newest iterations (canvas `.itab`): number, kind, model, spend, time, checks, current. On a phone each row is a stacked line (`.stack-rows`). */ export function IterationsSummary({ rows }: { rows: IterationRow[] }) { return ( - <Table> + <Table className="stack-rows"> <thead> <tr> <TH>#</TH> diff --git a/umtool/components/shell/PlaceBar.tsx b/umtool/components/shell/PlaceBar.tsx @@ -77,11 +77,12 @@ export default function PlaceBar({ crumbs, actions }: { crumbs: Crumb[]; actions return () => io.disconnect(); }, []); - // A tab strip that scrolls sideways starts at the tab you are on. + // A tab strip that scrolls sideways shows the tab you are on. useEffect(() => { for (const strip of document.querySelectorAll<HTMLElement>(".tab-strip")) { const cur = strip.querySelector<HTMLElement>("[aria-current=page]"); - if (cur && strip.scrollWidth > strip.clientWidth) strip.scrollLeft = Math.max(0, cur.offsetLeft - 16); + // Only when it would be cut off, and with the tab before it still in view. + if (cur && cur.offsetLeft + cur.offsetWidth > strip.clientWidth - 24) strip.scrollLeft = Math.max(0, cur.offsetLeft - 64); } }, []); diff --git a/umtool/e2e/phone.spec.ts b/umtool/e2e/phone.spec.ts @@ -263,11 +263,15 @@ test.describe("on a phone (390×844)", () => { // Taps across the line -- its title, and the gap between its one action // and ⋯, where Park and Mute sit on the desk -- light it and nothing else. const box = (await line.boundingBox())!; + for (const x of [8, box.width * 0.5, box.width - 8]) await line.tap({ position: { x, y: 10 } }); + // Lit now, its action is drawn filled (and a little wider): measured as it is. + // The taps keep 24 px from the action and ⋯: a phone's touch adjustment + // gives a tap that close to a control to the control, as it should. + await expect(line).toHaveAttribute("data-lit", ""); const m = (await more.boundingBox())!; const go = (await line.locator(".lit-go").boundingBox())!; const row = m.y - box.y + m.height / 2; - for (const x of [8, box.width * 0.5, box.width - 8]) await line.tap({ position: { x, y: 10 } }); - for (const x of [go.x - box.x + go.width + 8, (go.x + go.width + m.x) / 2 - box.x, m.x - box.x - 6]) await line.tap({ position: { x, y: row } }); + for (const x of [go.x - box.x + go.width + 24, (go.x + go.width + m.x) / 2 - box.x, m.x - box.x - 24]) await line.tap({ position: { x, y: row } }); await expect(page.locator("[data-undo]")).toHaveCount(0); expect(await life(request, ZETA)).toBe("active"); await expect(line).toBeVisible();