Commit Graph

55 Commits

Author SHA1 Message Date
alan e63b01154b feat(app): add native content-sized graph stage node
One content-sized stage node as an ordinary native control. Material uses
stock Card.outlined/Card.filled inside an InkWell; Cupertino uses
CupertinoButton.tinted/filled. onSelected reports the definition key
verbatim, one merged button semantics node carries the exact label and
selected state, recorded status is shown only when the caller supplies it,
and invisible U+200B break opportunities reproduce the web's anywhere
wrapping. Painted-boundary and painted-surface tests cover the UI-review
2x outline and Cupertino container defects.
2026-10-21 18:44:18 +01:00
alan f4d4a9869c merge(app): land reviewed native chat sessions 2026-10-21 17:45:52 +01:00
alan 01624de9cd fix(app): load connected settings details before preferences resolve 2026-10-21 17:44:09 +01:00
alan a816e38e26 Merge branch 'main' into flutter/f4-chat 2026-10-21 17:42:42 +01:00
alan 41d30a4280 feat(app): split chat sessions into native Material and Cupertino views
Split the 406-line chat session browser into a controller, body, shared
adaptive primitives and separate standard Material and Cupertino lists and
dialogs. Preserve the existing server directory/backend catalogs,
instructions field, closed/starred grouping, directory headings and
empty/no-match states.

- keep refresh generations so stale replies are discarded
- open a created chat immediately and refresh the list in the background
- disable rename Save while the trimmed name is blank
- label row actions per session, with the id on duplicate titles
- wrap Cupertino empty/no-match/error messages instead of clipping, and
  give them a Cupertino text style under a bare MaterialApp
- allow the Material rename helper to wrap at large text scales
- cover both native branches, lifecycle ordering, create/rename/close/star
  and the Cupertino theme path with widget tests
2026-10-21 17:42:39 +01:00
alan 7125caf26c Merge branch 'main' into flutter/n1-settings 2026-10-21 17:39:20 +01:00
alan abd696b0d9 feat(app): add native Settings connection and workspace screen
Add the Settings destination under lib/features/settings with an editable
websocket endpoint, truthful connection states, one ping per connect/mount,
workspace validation and persistence under new feature-owned keys. Material
and Cupertino controls, wrapping copy at large text, pending ping state, and
isolated probe tools plus widget/unit coverage.
2026-10-21 17:39:18 +01:00
alan 6c6db719a7 merge(app): finish retained Runs integration after deadline 2026-10-21 17:26:41 +01:00
alan 35a8aab772 feat(app): compose live Runs with deep links and reconnect retention 2026-10-21 17:26:36 +01:00
alan ed958929cf Merge branch 'main' into flutter/s1-list 2026-10-21 17:02:00 +01:00
alan 8ed29604a2 merge(app): land safe artifact records grouping and navigation 2026-10-21 17:01:37 +01:00
alan 155ce8f5e5 merge(app): land measured graph edge routing and label geometry 2026-10-21 17:01:37 +01:00
alan ec86ef0874 Merge branch 'main' into flutter/s1-list 2026-10-21 17:00:52 +01:00
alan ebfa7f7fac feat(app): add read-only saved-schedules list screen 2026-10-21 17:00:50 +01:00
alan a303368a18 Merge branch 'main' into flutter/a1-data 2026-10-21 16:56:14 +01:00
alan ff0f812e00 feat(app): add artifact records, grouping and safe url navigation
Pure Dart A1a artifact domain slice mirroring web/src/artifacts.js and
artifactNavigation.js: record parsing, capture facts, stage/visit grouping,
public attribution, kind vocabulary, summaries, viewer paging and safe
artifact url resolution. Tests mirror the domain directory; nothing is
wired into a screen or transport.
2026-10-21 16:56:11 +01:00
alan b381290f34 feat(app): add deterministic orthogonal graph edge routing
Pure-Dart P2c slice: interval-aware ports and corridors, label-aware lane spacing, measured label placement with fallback shelf, skipped diagnostics and routing bounds. 20 focused tests plus existing suite and web build pass.
2026-10-21 16:51:38 +01:00
alan d22ff42a13 Merge branch 'main' into flutter/x1-search 2026-10-21 16:41:34 +01:00
alan 51140cd3b7 feat(app): add native omni-search screen over the search gateway
Pure request/parse/row logic in lib/features/search/domain, a
gateway-backed repository, and Material plus Cupertino bodies.
The header and rows share one scroll view, and the server's
truncation, scan and cap facts stay visible even when a bounded
scan returns no matches.

Tests cover the exact search envelope, token parsing, stale replies,
retry, truncation bounds and platform layouts. A Web-only fixture
and CDP probe support rendered verification; the screen is not yet
registered in the shell.
2026-10-21 16:41:30 +01:00
alan c1f140bc78 feat(app): add deterministic content-sized graph node layout
Pure-Dart SCC ranking and column placement over the landed graph
identities. Every extent and gap is caller supplied; missing
measurements are rejected rather than defaulted.

Focused tests cover linear, diamond, cycle, self-loop, disconnected,
terminal, expanded-text and invalid-input cases.
2026-10-21 16:25:17 +01:00
alan e9f7eddce9 merge(app): land checked templates and create-only request layer 2026-10-21 15:35:43 +01:00
alan 2f316ac3b3 merge(app): bring main into flutter/t1-data candidate
Keep main's landed retry action and saved-schedules slices alongside the
templates data slice. Resolve app/.gitignore by keeping the single
test/**/data/ negation both sides added, with the explanatory comment.

Checks after merge: dart format clean, flutter analyze clean, 111 tests pass,
flutter build web succeeds.
2026-10-21 15:32:48 +01:00
alan 2c105074aa feat(app): add graph domain model for runs and definitions
Pure-Dart graph foundation mirroring the current web client:
terminal targets and labels, definition edges and nodes with web
outcome ordering, recorded run evidence (visited stages, taken
routes, current stage and live start), and sequence-ordered stage
visit selection with clamping.

No layout, widgets, screens or coordinates; fixtures cover linear,
diamond, self-loop, repeated visits, mixed outcomes, terminals and
missing/malformed evidence.
2026-10-21 15:31:43 +01:00
alan cd9ec62d28 feat(app): add template catalogue and create-only submit repository
Add the nonvisual templates data/domain slice: TemplateRepository over the
shared ApiGateway for list_templates, validate and create-only submit, and
TemplateEntry preserving every server field in a deeply read-only raw map.

Re-include test/**/data/ in app/.gitignore so the mirroring tests are not
silently dropped from a fresh checkout.

Tests cover exact request shapes, source preservation, blank-name refusal,
malformed replies, server refusals and immutability.
2026-10-21 15:31:10 +01:00
alan 804e531704 merge(app): land native retry and restart components 2026-10-21 15:18:59 +01:00
alan d9722ab724 merge(app): bring main into flutter/s1-data candidate 2026-10-21 15:16:36 +01:00
alan 56f3e12183 merge(app): bring main into flutter/r2-retry candidate 2026-10-21 15:16:22 +01:00
alan b9639650e5 feat(app): add saved-schedule repository and domain record
Port the web client's list/save/delete schedule request shapes and reply checks, with a typed record that preserves the whole server payload including unknown fields. Revision stays the CAS token; server refusals propagate unchanged.
2026-10-21 15:15:47 +01:00
alan f2643a0ff4 feat(app): add native rename-run action
Native Material/Cupertino prompt seeded from the run's stored title. Only
Save sends set_run_title {run_id, title} with the text untrimmed; typing and
Cancel send nothing, refusals stay verbatim with the draft kept, and only the
accepted run_detail is delivered once.
2026-10-21 15:14:44 +01:00
alan 178f22aec2 feat(app): add native retry and restart action 2026-10-21 15:13:00 +01:00
alan 54493704c1 fix(app): show run action refusals before resyncing 2026-10-21 14:47:59 +01:00
alan faa5866410 feat(app): add deliberate run cancellation action
Port the browser's canCancel rule and cancel_run request into a native
Material/Cupertino confirmation. Opening the prompt or choosing Keep sends
nothing; a refusal stays visible with the server's words and the run is
re-read so the owner always receives server truth. Includes eligibility,
double-submit, disposal and narrow 2x-text tests plus R2b evidence.
2026-10-21 14:41:33 +01:00
alan 42b21b86cd feat(app): add deliberate human-decision action for run detail
Adds HumanDecisionAction plus its native prompt, wording constants and
tests. The action renders only while pendingDecision() reports a genuine
human wait, sends decide_run only after an option is chosen and Confirm
pressed, sends the pending stage/trimmed option/optional feedback, blocks
double submits, shows server refusals verbatim with the draft intact, and
re-reads the run so the owner always receives server truth.
2026-10-21 14:22:29 +01:00
alan 38b7a849a7 Merge branch 'flutter/r1-detail' into flutter/r1-native 2026-10-21 14:21:29 +01:00
alan e14bb67825 feat(app): render run detail with native Material and Cupertino controls 2026-10-21 14:20:43 +01:00
alan 275e4bef90 Merge branch 'flutter/r1-runs-ui' into flutter/r1-native 2026-10-21 14:07:51 +01:00
alan 40aa98e20b feat(app): add native runs list interactions 2026-10-21 14:07:02 +01:00
alan b2b2b56fd3 wip(app): preserve partial runs navigation before native widget slices 2026-10-21 13:56:09 +01:00
alan 4bc95f47be fix(app): isolate runs list and detail request generations 2026-10-21 13:55:47 +01:00
alan 6b8d5ea32e feat(app): complete runs UI candidate 2026-10-21 13:51:07 +01:00
alan 13d8ddac5d Tidy chat catalog error handling 2026-10-21 13:49:18 +01:00
alan a2b02b3810 Improve chat session catalog creation 2026-10-21 13:48:35 +01:00
alan 774d5d78cc feat(app): add native runs list and detail screen 2026-10-21 13:42:47 +01:00
alan 37d08232e4 merge(app): land corrected run-state foundation 2026-10-21 13:37:26 +01:00
alan 2f60a0e17f merge(app): land browser-verified adaptive shell 2026-10-21 13:37:26 +01:00
alan f239a26bfd Merge branch 'main' into flutter/f4-chat 2026-10-21 13:37:09 +01:00
alan 48059247d1 feat(app): add native chat sessions browser 2026-10-21 13:37:03 +01:00
alan 1515ebee99 fix flutter runs foundation parity gaps 2026-10-21 13:34:56 +01:00
alan 1e4ecea823 fix(app): harden socket lifecycle and expand transport regressions 2026-10-21 13:28:59 +01:00
alan 830726fa19 fix Flutter shell platform defaults and tab state 2026-10-21 13:28:50 +01:00