Commit Graph

507 Commits

Author SHA1 Message Date
alan fdc41385bf Merge branch 'main' into web-run-polish 2026-10-19 20:11:08 +01:00
alan 09627f8d13 Merge branch 'main' into web-layout 2026-10-19 20:10:38 +01:00
alan 72f00cd871 web: restore focus to a row's real control
The a11y work made the chat row a container with its control inside, so Back
focused a non-focusable div and keyboard focus fell to the body. Focus the first
focusable descendant instead (generic for chat, runs, pipelines and templates).
2026-10-19 20:10:28 +01:00
alan d1f09f499f Merge branch 'main' into web-layout
Take main's newer smoke behaviour where they met: the binary capture is run 449
(opened through openRunDetail), and a running run must show no aggregate Changes
section. Keep the layout's shell-aware checks and its L2-L4 rows; L7 stays todo
with the view-level fixes recorded.
2026-10-19 20:06:25 +01:00
alan 7b6bd71dd8 turn: add file-based stage turn foundation 2026-10-19 20:06:18 +01:00
alan ff70b3796f web: run-detail polish — bigger graph, artifact counts, tighter stage pane
- the run Graph tab drops the guidance paragraph and the graph fills ~70vh;
- the Artifacts collapsible carries the visit's count in its title (the body keeps
  the reason line only when there is nothing to show);
- the stage panel's section padding and gaps are reduced.
2026-10-19 20:05:47 +01:00
alan 84e136436c web: app shell — left destination rail, settings-hosted connection, viewport panes
The layout item's work plus the two defects its review found:
- the wide grid sized the list track from its MAX, so at 600-759px the detail pane
  was clipped to 40-199px; cap the list below 900px and narrow the rail there
  (measured now: detail 232px at 600, 332 at 700, 340 at 900, 880 at 1440);
- the shell said 'Not connected' on a fresh page because the prefilled proxy URL
  validated; the status now reflects a SAVED endpoint ('Not configured' until then)
  and refreshes as the draft changes.

Includes the rail + bottom dock, connection moved into Settings, viewport-only
scrolling with panes that scroll themselves, tab semantics, skip link, h1 per
route, and the design tokens.
2026-10-19 20:03:56 +01:00
alan 23809051e9 web: align smoke labels with the merged accessibility names
The merged main branch names the attention dismiss and chat actions
controls for their rows. Assert those prefixes instead of the old bare
words so the live smoke exercises the current labels.
2026-10-19 18:30:47 +01:00
alan 45f75f5baf Merge branch 'main' into web-run-changes 2026-10-19 18:27:42 +01:00
alan b011f4ada4 web: show per-visit changes and last-visit summary
Each visit's This run pane reports its own recorded capture: the File
changes status line (with skipped/omitted counts and diagnostic) and its
Changed files list with parseable stats. The Summary aggregate now keeps
each path's last recorded step rather than summing visits, and is only
rendered for a succeeded run; a failed run keeps its evidence in the
visit panes. This is a deliberate divergence from Android, noted in R4.
2026-10-19 18:27:39 +01:00
alan a168d46858 Merge branch 'main' into web-a11y-views 2026-10-19 18:09:45 +01:00
alan 3bd721bc93 web: fix artifact, chat, attention and timeline accessibility findings 2026-10-19 18:09:42 +01:00
alan 2503a38f50 web: proxy /artifacts/ through serve.mjs so images actually load
The page resolves artifact URLs against the configured server. In a proxied
deployment that is the page's own origin, and serve.mjs only proxied /connect, so
every artifact request 404'd: broken gallery thumbnails, a blank viewer and no
session.html. Forward GET/HEAD /artifacts/ to the same upstream and stream the
reply (status, headers, body). Verified: 10/10 thumbnails load on run 430 and the
viewer's image has naturalWidth > 0.
2026-10-19 17:54:19 +01:00
alan 321e046377 web: settle a leftover replayed turn before the composer checks
The previous section can leave the operator's thread marked running from a
replayed frame; C8 tests the composer's default state, so it settles once through
the page's own fold instead of asserting against leftover state. Found by the
post-split gate (the split itself was correct: a fresh open shows Send, no Stop).
2026-10-19 17:28:20 +01:00
alan f3c00f9ce5 web: visual system tokens, styleguide and application notes
Role-named tokens (colour, 8px spacing, radii, type scale, elevation, focus,
state tints, motion) with a styleguide built from the app's real components and a
short application guide, including what to remove from the current CSS.
2026-10-19 17:25:01 +01:00
alan 46a59ac015 Merge branch 'main' into web-split 2026-10-19 16:38:27 +01:00
alan 007d22eb83 web: split app.js into view modules
Pure move, behaviour unchanged: app.js is now the shell (boot, state, client wiring, connection/banner, navigation and routes, render dispatch, header). Views live under src/views with shared DOM and format helpers. client.js stays DOM-free; no circular imports; every server-derived string still uses textContent.
2026-10-19 16:37:31 +01:00
alan 02afed6a01 web: split styles.css into area stylesheets
Pure move, behaviour unchanged: every rule is carried verbatim into one of base, lists, run-detail, chat, graph, dialogs or settings, linked in a fixed order from index.html. No @import and no build step.
2026-10-19 16:37:26 +01:00
alan 1f65a3a94e Merge branch 'main' into web-decide-live 2026-10-19 16:35:01 +01:00
alan 8880495970 web: layout prototype/spec and an accessibility audit (design inputs)
The layout prototype shows the operator's target shell: a left destination rail
(Pipelines/Runs/Chat/Settings) with the detail sections grouped in the rail, list
and detail panes, a status dot in the rail footer and no top connection chrome.
The spec's DOM sketch still mentions the old connection banner; the implementation
brief supersedes that (connection lives in Settings only).

The audit records 9 must-fix, 12 should-fix and 15 notes from real DOM and
accessibility-tree inspection, with file:line for each finding.
2026-10-19 16:33:59 +01:00
alan 6d762b73b8 web: note R11 re-verification after the main merge 2026-10-19 16:18:04 +01:00
alan fad96d987c Merge branch 'main' into web-decide-live 2026-10-19 16:16:09 +01:00
alan 2deaaea05a web: exercise the human decision sheet live (R11)
Add an opt-in --decide smoke mode that reuses or submits a human-only pipeline, starts two runs in throwaway workspaces, and presses the real card, sheet and Confirm for the feedback and no-feedback shapes. Record R11 as done with the live captures.
2026-10-19 16:16:05 +01:00
alan 7ec2ef5c7c web: wait for C2's created conversation instead of sampling it
The created chat loads its history asynchronously; reading the DOM once raced the
load (worse when the OpenCode endpoint is busy), reporting a permanent 'Loading
conversation...' that the app never showed.
2026-10-19 16:05:56 +01:00
alan dc5798706c web: capture-set comparator for behaviour-preserving refactors
--compare BEFORE AFTER fails when a capture is missing or unexpected and lists
pixel drift for manual review; live durations make byte equality the wrong gate.
2026-10-19 16:05:18 +01:00
alan 7e8e09d369 web: README for the finished client, not the spike
Describes what the client is, how to run and test it (OS-assigned smoke port,
gitignored captures), the module areas, and keeps the 403/proxy explanation that
justifies serving the page from serve.mjs.
2026-10-19 16:01:27 +01:00
alan fe9dadd2c7 web: finish L6 after merging R10's live-run work
Integration fixes found by the full suite:
- drop the dead 1 Hz run poll helpers still referencing R10-removed state (they
  threw on every route apply, so the first connection never rendered a list);
- keep this tab's ephemeral verification chats across a reload (sessionStorage),
  so a chat the server intentionally hides stays usable in the tab that made it;
- the smoke marks only the throwaway ephemeral, clears the marker after /new, and
  tolerates a stale page banner plus a re-rendered row menu;
- the nav no longer claims a false Pipelines (0) before that list has loaded, and
  the Runs destination preloads it once per connection.
Full suite: 580 unit tests green, UI SMOKE PASS.
2026-10-19 15:58:40 +01:00
alan 046f20db0b Merge branch 'main' into web-routes
Reconcile L6 with R10's live-run watch: onConnected waits for the connection's
watch on the first connect too, and the reconnect path uses R10's
loadCurrentView(runsFresh) call while keeping L6's detail re-hydration. The
selectRun catch keeps L6's stale-selection and server-refusal guards.
2026-10-19 15:00:10 +01:00
alan c0dc525135 web: finish L6 routes against the integrated shell
Fixes found by running the full suite after merging main, not by the route
model itself:
- start the run-alert watch on the FIRST connection too: L6's early return for a
  pending deep link skipped it, so no subscribe was sent (R10 broke silently);
- an ephemeral /new chat no longer refreshes the session list (the server
  intentionally omits it), which had replaced the open conversation and dropped
  its local notice;
- the chat row menu flips above the row when it would fall off the window, so the
  last rows' items are hit-testable (a real defect, not clipping);
- smoke robustness for drifted live data: the C2 closed-row assertion opens C13's
  menu, the C13 hide step opens a conversation when none is left open, the
  timeline empty-state capture is skipped when no empty run exists, and the last
  row is scrolled into view.
Full suite: 551 unit tests green, UI SMOKE PASS.
2026-10-19 14:59:06 +01:00
alan 9c2b50df44 Merge branch 'main' into web-routes
Resolve the L6 routes against the newer C2/C13/L5/R10 shell: keep both sides
(single client imports, the run-alert watch inside the reconnect path, the boot
route + popstate wiring alongside loadNotifyAsked, main's L5 row and L6 done).
2026-10-19 14:47:49 +01:00
alan 0d3093ac27 Merge branch 'main' into web-run-live
# Conflicts:
#	web/test/ui-smoke.mjs
2026-10-19 14:47:34 +01:00
alan 895ed9d8b7 web: URL routes, deep links and history navigation (L6) 2026-10-19 14:45:57 +01:00
alan d3e354383b Merge branch 'main' into web-run-live
# Conflicts:
#	web/src/app.js
#	web/src/protocol.js
#	web/src/repository.js
#	web/test/ui-smoke.mjs
2026-10-19 14:33:51 +01:00
alan f3f800c02c Merge branch 'main' into web-chat-create
# Conflicts:
#	web/PARITY.md
#	web/src/app.js
#	web/test/chat.test.mjs
#	web/test/ui-smoke.mjs
2026-10-19 14:31:08 +01:00
alan a7872c3f31 web: create a chat through the directory picker (C2) 2026-10-19 14:25:42 +01:00
alan 21a6ee3c4d web: live run updates over a single app-wide watch (R10) 2026-10-19 14:22:53 +01:00
alan f98cb50f8c web/PARITY: record L5's full-smoke result and the unrelated C13 failure 2026-10-19 14:17:08 +01:00
alan ef5185fd87 Merge branch 'main' into web-notify 2026-10-19 14:11:46 +01:00
alan 878b1e0bf3 web: notify failed and waiting runs from the browser Notification API (L5) 2026-10-19 14:11:31 +01:00
alan e514083cda Merge branch 'main' into web-chat-local
Resolve the C11/C12 vs C13 overlap in the chat work:
- PARITY: keep main's done C11/C12 rows and this branch's done C13 row.
- app.js/chat tests: keep both import/helper sets (notices and overrides/seen).
- ui-smoke: keep main's C11 background-task bar, C12 notice checks and the
  shared composer throwaway, and C13's row-menu rename/hide/seen checks.
  The composer throwaway stays a listed server session: C12 switches away
  and back to it and C13 reads its row, which an ephemeral create (2fe6301)
  deliberately hides from chat_sessions. The live-run graph halo check is
  best effort as its own comment says, so a run with no stage in flight at
  capture time skips instead of failing the whole smoke.
2026-10-19 14:07:28 +01:00
alan 3d7ad54e68 web: local rename/hide, seen markers and per-device persistence (C13) 2026-10-19 13:50:13 +01:00
alan b88904c360 web: let concurrent ui-smoke runs pick their own port
Every run defaulted to 8091, so two parallel pipeline items running the UI
check collided with EADDRINUSE. An explicit --port/WEB_UI_PORT still wins;
otherwise the OS assigns a free port. Verified with two simultaneous --scratch
runs (60540/60541), both PASS.
2026-10-19 13:32:54 +01:00
alan 2fe63012f9 chat: a verification chat can never appear in the operator's list
The operator's chat list showed ~99 stray "New chat" entries. The listing
was already fail-closed (registry-only); the fault was what got recorded: an
automated UI check drives the real page, so its throwaway chat was recorded as
an operator chat exactly like a manually created one and stayed in the list for
ever (each run added one).

Server: chat_create takes an optional ephemeral flag. The session is created,
bootstrapped, usable, closable and reopenable exactly like any other, but its
registry row is hidden, so chat_sessions never lists it. operator_sessions gains
an ephemeral column (idempotent migration, existing rows default to listed) and
the list query filters it; the single-row lookup does not, so close/reopen keep
working. RecordVerificationSession is the hidden recorder.

Web: the page marks a create ephemeral only when automation asks for it
(__pipelinesEphemeralChat, set by the UI smoke for its throwaway chat), so the
smoke's own runs stop polluting while a manual create is unchanged.

Tests: a hidden row is never listed yet is still looked up and closable; a
normal re-record of the same id lists it again; a pre-ephemeral database
migrates with every existing chat still listed. Live data pruned separately
(107 -> 8 registry rows, backed up).
2026-10-19 13:15:08 +01:00
alan 94c802a147 web/PARITY: restore C11's done row lost in a later merge 2026-10-19 12:57:52 +01:00
alan 9231236f83 web: local command notices in chat, individually dismissible (C12) 2026-10-19 11:58:55 +01:00
alan bcc3835fba web: open a different chat row before the L1 chat_shells assertion
The discovery loop already opened the session it found, and openChatSession
keeps a loaded thread, so the assertion's second click early-returned and sent
nothing once the live server listed an empty session first.
2026-10-19 11:35:41 +01:00
alan 64f90d1c4f Merge branch 'main' into web-settings 2026-10-19 11:31:45 +01:00
alan 597151cdd1 web: settings destination with connection, workspace and templates (L1)
Completes the item: the Settings view, its pure helpers and the client's
socket-replacement path, plus the fix the review required (a header-side URL
correction clears the Settings field's own error) and a smoke check for it.
2026-10-19 11:30:19 +01:00
alan c2db3e4966 Merge branch 'main' into web-chat-approvals
Resolve C10 vs C11 in the shared shell:
- keep both send hooks in the smoke's WebSocket shim (recording +
  scripted replies + synthetic approval acknowledgement) instead of the
  second assignment overwriting the first;
- close the .chat-approval CSS rule so the C11 background-task rules are
  not swallowed by it (the list lost its 3-row cap and scrolling);
- assert the folding invariant directly (no adjacent agent bubbles)
  instead of 'agent bubbles <= user prompts', which the growing operator
  session now legitimately breaks;
- exercise the resource clamp by scroll overflow instead of a clone
  measurement that the clamped frame makes unreliable.
2026-10-19 11:26:26 +01:00
alan 5eb13968e3 web: approval cards for chat permission requests (C10)
Completes the item the pipeline could not land: the C10 diff its own
implementer and probe assertions already verified is committed as-is.
The resource block is a padding-free six-line clamp inside a padded frame
(the app's maxLines = 6 + ellipsis) and the primary control is filled.
2026-10-19 11:08:53 +01:00