Commit Graph

325 Commits

Author SHA1 Message Date
alan 826e420423 Deliver server notifications from the Android app itself
A native foreground service keeps an authenticated websocket to the
connected server (handed over by the app on every connect), subscribes with
a replay cursor, shows each notification with kind-based channels and
grouping, opens pipelines:// links on tap, and clears taps, dismissals and
cross-device clears. It starts at boot and app launch, backs off and follows
network changes. Settings gains the delivery switch, status, notification
and battery-exemption actions, and the server's optional ntfy_enabled
toggle.
2026-11-01 02:21:22 +00:00
alan b80c267dd7 Merge: runs multi-select, delete and size sort 2026-10-31 22:20:06 +00:00
alan 266916f92a Runs: multi-select delete, run sizes and Largest-first sort
- Select mode (bar Select or long-press): per-row checkboxes, per-day
  Select all/Deselect all over finished runs only, "N selected" with the
  selection size, Delete and Done. Active runs get a disabled checkbox
  whose semantics give the reason.
- Native destructive confirmation, then delete_runs {run_ids} (batched by
  1000); the nested runs_deleted reply removes deleted rows and reports
  "Deleted N runs, freed X" plus refusals verbatim. runs_removed pushes
  remove rows and close an open detail; a deleted open run closes too.
  Delete run in the row and detail menus.
- size_bytes shown compactly in rows (0/absent = unknown, nothing shown),
  updated from run_event frames that carry it; Largest first sort (flat,
  unknowns last); the sort choice persists.
- Shared AppListRow gains selectionControl and onLongPress.
- Browser probe tool/runs_delete_probe.mjs; fixture server implements
  delete_runs/runs_removed.
2026-10-31 22:19:36 +00:00
alan 0ceafcb6d7 Search results and pill span the pane; lock stage page to the full detail pane
Remove the 840 px Search reading cap (results column and bar pill) so both
fill the pane at Fold and wide widths. Add a width test for the stage page
at 880 and 1400 and deep-link/query flags to the search probe entry.
2026-10-31 22:01:28 +00:00
alan 3be728296c Merge branch 'worktree-agent-a77fe68a62a10ce30' into integrate/notify-marked 2026-10-31 16:55:40 +00:00
alan 44ea45150f Compact floating tab bars with circular selection and equal edge gaps
The floating tab bar is now sized to its icon tabs at the bottom right on
every width, the selected icon sits in a tinted circle on both hosts, and
the gap from each outer circle to the pill's sides equals the gap to its
top, bottom and neighbours.
2026-10-31 16:53:24 +00:00
alan b109ab3e06 Notify on run end only for runs marked Notify me
Auto runs no longer alert on failure or success; only notify_mode on does,
unless the run_finished setting (now 'Notify when any run ends', default off)
opts into every run end. Waiting still notifies auto and on runs. The setting
is stored under a new key so a value saved under the old meaning is ignored.
2026-10-31 16:52:04 +00:00
alan a1c4c1c402 feat(app): icon-only tab bars, Settings from the Pipelines bar, main bar bottom right with detail bars above it
Settings leaves the tab bar (Pipelines, Runs, Chat, Search) and opens as a
page from a gear in the Pipelines bar, keeping /settings, its keys and a Back
to Pipelines (also the system Back). Every floating tab bar shows icons only,
named for assistive technology. On wide windows the shell's tab bar stays at
the bottom right; a split detail learns its height plus a 12px gap, so its
tabs or the chat composer float above it, and pages the detail opens (the
stage page) stay in its pane through its own navigator.
2026-10-31 14:57:56 +00:00
alan cc07302868 Merge branch 'worktree-agent-ae3f1fe9138e563be' into integrate/r3-rest 2026-10-31 12:51:39 +00:00
alan ab64f55bf2 Merge branch 'worktree-agent-aab11f4f1fe3dff6b' into integrate/r3-rest 2026-10-31 12:51:39 +00:00
alan 6987a8992e Merge branch 'worktree-agent-a099cbf073f6e9e51' into integrate/shell-wide
# Conflicts:
#	app/lib/features/runs/ui/run_detail_tabs.dart
2026-10-31 12:51:39 +00:00
alan d1aa36163a Sync Needs-you dismissals and chat read state across devices 2026-10-31 12:47:25 +00:00
alan b4ab9d72da Notes: final test count 2026-10-31 12:45:11 +00:00
alan dbfecaa201 Float detail tabs at the bottom of the split detail pane and keep its bars below the status bar 2026-10-31 12:41:18 +00:00
alan 7351952b98 Notes: templates, sheets, dialogs, settings and artifact error fixes 2026-10-31 12:34:05 +00:00
alan b4273a6492 Flatten run, stage and pipeline detail bodies; facts grid, wide run chrome, pipeline Summary rows
Detail bodies are flat on the page on both hosts (no Cupertino inset groups,
pinned headings on the page colour). Run and pipeline Summary share a
FactsGrid that fills its width (no centred single-fact card). Missing run
graph is one muted line. Beside a list the run tabs and header share one
row; the duplicate Pipeline fact and the decision card-in-card are gone.
Pipeline Summary: facts grid, Schedules heading with Add (no inline Refresh
or paragraph), versions as AppListRow. Timeline rows are AppListRow.
2026-10-31 12:25:21 +00:00
alan 1423159839 Note the run detail tabs test update 2026-10-31 12:20:37 +00:00
alan 2c4c4891ea Keep the shell tab bar over the list pane on wide splits; cap schedules and reading bodies; share the empty-pane placeholder 2026-10-31 12:09:47 +00:00
alan 06f6eda360 Merge branch 'worktree-agent-a82ec5e9fdf8ca159' into integrate/gaps-e
# Conflicts:
#	app/test/features/search/search_bar_layout_test.dart
2026-10-31 04:31:13 +00:00
alan e34fa1050e Close the chrome gaps: content behind bars on Templates, run detail, stage page and Schedules; Search field fills the bar
- SegmentedBar.titleWidget (and ShellBar/ShellBarSpec titleWidget,
  backgroundColor): a bar's main pill can be an input in place of the title;
  Search uses it so the field fills the bar with Kind and info, capped at the
  result column width so field and results share edges on wide windows.
- Templates page/frame drop the top SafeArea again (BelowTopBar gate,
  TopBarNotices banners); Cupertino uses the grouped background.
- Settings on Cupertino in the shell publishes the grouped background so the
  bar scrim matches the page (no white band or seam).
- TopGlassStrip: the run detail header (status, actions, decision, notices)
  and the Schedules search/filter toolbar float as glass under the bar; tabs
  and lists scroll behind both.
- Stage page: stage title and Visit/Run subtitle in the bar, facts lead the
  Summary scroll, sections scroll behind the bar under floating tabs.
- Tests for content-behind-bar on each page and the title-widget bar mode;
  notes/chrome-gaps-fixes.md.
2026-10-31 04:27:35 +00:00
alan 3c56db37fd Share one list row across runs, pipelines, chat, search and schedules
AppListRow (Material + Cupertino) with avatar, bold title and trailing
time, one muted line, one overflow menu style, inset dividers, selected
and emphasised states and a compact mode. Pipelines get a legible initial
avatar, schedule rows shrink to two lines with Edit/Pause/Delete in an
overflow menu, and the shell chat list scrolls behind the bar.
2026-10-31 04:15:01 +00:00
alan 6ab8551348 Merge branch 'worktree-agent-a94781e88db712412' into integrate/chrome-a
# Conflicts:
#	app/lib/application/templates_destination.dart
#	app/lib/features/templates/screen.dart
#	app/lib/features/templates/ui/templates_frame.dart
2026-10-31 03:39:49 +00:00
alan c6c6dcfe18 fix(app): float content behind top bars and give each wide pane its own bar row
- Top-bar clearance helpers (withTopBarClearance, withBarClearance,
  SliverTopBarClearance, BelowTopBar, TopBarNotices); shell, DetailPane and
  the runs/pipelines/templates/artifacts/stage definition/filter/usage pages
  drop their top SafeArea and pad their own lists, pinned headers pin at the
  inset.
- Wide windows: the shell bar narrows to the list pane (ShellPaneSplit) and
  the open item's bar shares its row; item tabs float at the pane's top
  (PageTabsEdge) instead of stacking on the shell's tab bar; the floating
  tab pill no longer swells over leftover media padding.
- Pipeline detail is a DetailPane on wide too; Run/Runs move from FABs into
  the bar's actions; name and identity live in the title pill.
- Run detail title pill shows the real title with Run N, pipeline and
  version (the pill links to the pipeline); the body keeps only status,
  actions and notices; standalone detail draws the same segmented bar.
- One Runs tab badge: attention outranks running.
- Tests for content-behind-bar padding and the no-stacking wide layout;
  notes/app-chrome-fixes.md.
2026-10-31 03:36:22 +00:00
alan 696f5dff3b Merge branch 'worktree-agent-a349ca4a1fb5fc7a3' into integrate/pages 2026-10-31 03:32:09 +00:00
alan 3704d98d4d Search field in the bar, refresh and Back as bar pieces, even Cupertino actions (F8/F28/F10/F11/F20/F1)
- Search: field, compact Kind menu and syntax help in the bar's actions pill;
  bounds shown only when truncated; rows with bold title, kind tag and one
  muted line; results run behind the bar in a start-aligned 840 column.
- AppSearchField: one search field per platform (Search, Schedules, Runs filter).
- BarIconButton: whole 44pt/48dp bar actions; Runs, bell and Pipelines icons
  use the same 44pt targets on Cupertino.
- Templates and Schedules pages put Refresh in the bar and use the shared
  round SegmentedBackButton; Templates shows one Back at a time.
- PipelineBackButton is the round segmented Back.
- notes/pages-fixes.md records the batch, tests and evidence.
2026-10-31 03:31:25 +00:00
alan 92095f8a4e chore(app): chat probes take platform/theme/tasks queries; note chat chrome fixes 2026-10-31 03:14:35 +00:00
alan 963adec122 Float glass tab bars everywhere the app has bottom tabs
One floating frosted tab bar (host NavigationBar / CupertinoTabBar in the
shared GlassPill) replaces the NavigationRail, the Cupertino sidebar and the
run detail, stage page and pipeline detail tab strips. Below 600px it spans
the width minus 16px margins; wider it is sized to its tabs at the right edge.
Content keeps the full width, scrolls behind the bar and learns its height as
bottom media padding; lists pad their end clear of it and FABs sit above it.

The bar now sizes itself from its own constraints instead of the screen size,
which fixes the widget_test failure where a MediaQuery without a size gave it
negative width constraints.
2026-10-31 01:50:42 +00:00
alan 0582bfc34f feat(app): segmented glass top bar across the app
Extract the chat's segmented bar into lib/ui/adaptive (SegmentedBar,
GlassPill, SegmentedBarOverlay) and use it for the shell bar, DetailPane
and every page-level bar. Pieces are frosted glass over a fading scrim;
only pills take taps. Actions keep their natural width so the title gives
way before a model name. The chat transcript scrolls behind its header.
2026-10-31 00:21:27 +00:00
alan 4a85a12cf7 feat(chat): segmented chat header with back, title and model pills
The open conversation draws its own bar of separate rounded pieces: the
platform Back in a circle, a title pill with the folder that opens the
chat information, and a pill with the model and mode controls. Detail
pages drop only their app bar for it, keeping the body mounted.
2026-10-30 23:43:00 +00:00
alan 498c6f17a6 Add server notification settings with app checkboxes
Persist three global ntfy switches in server_settings: run_finished
(default on: auto-mode runs notify on success, read inside the
transition transaction; on/off modes unchanged), chat_needs_you
(default on: gates chat question/approval alerts) and
chat_reply_finished (default off: one alert per finished assistant
turn). Expose notification_settings / set_notification_settings over
the websocket protocol, add a Phone notifications section with
Material and Cupertino checkboxes in Settings, document the settings,
and keep the cli, tui, stage and pipeline test packages from
inheriting a real ntfy configuration.
2026-10-30 21:36:27 +00:00
alan 39d9150c3a Merge branch 'worktree-agent-ae487572986d7a387' into integrate/chat-ntfy-attachments 2026-10-30 21:05:32 +00:00
alan 4c4dcbbd14 feat(chat): contact-list chat rows with avatar, time and unread emphasis
Rows lead with a circular harness avatar, put the time beside the title,
collapse metadata into one muted model · folder line and trail the
actions menu. Unread chats are bold with an accent time and dot, running
chats badge their avatar, and Star moves into the menu.
2026-10-30 21:05:24 +00:00
alan 8c421952db feat(chat): show sent images as thumbnails with a full-screen viewer
Operator-attached images render as rounded thumbnails above the user
bubble and open a zoomable Material/Cupertino viewer. Inline data: URIs
decode locally; file:// attachment-store URIs load through the new
chat_attachment_image websocket request, which serves only regular image
files directly inside the private attachment store (os.Root, <= 4 MiB,
sniffed raster types). Missing files show an 'Image no longer available'
placeholder; other files keep the file row.
2026-10-30 20:53:03 +00:00
alan 44b2cff347 fix(chat): Return breaks lines on phones and align the activity line
On Android and iOS the keyboard's Return now inserts a newline and the
Send button sends; desktop keeps Enter to send. The Material activity
line drops TextButton's inset so it starts at the answer's edge now that
replies have no bubble.
2026-10-30 20:07:27 +00:00
alan 027c2f800e feat(chat): ChatGPT-style transcript and composer
Agent replies sit on the page without a bubble and get a copy control;
the operator's turn is a neutral rounded bubble; the composer is one
filled pill with +, a borderless field and a round Send, and its
placeholder names the chat's folder. Also fixes two picker tests left
stale by the native picker.
2026-10-30 15:56:39 +00:00
alan 8dbf4bc4a7 Record verified stable activity and attention APK publication 2026-10-28 16:46:32 +00:00
alan 7027da4248 Keep chat activity stable in one live disclosure and distinguish unread attention 2026-10-28 16:45:05 +00:00
alan 41a3be8715 Keep web Material styling and preserve visible installer access URLs 2026-10-26 18:37:13 +00:00
alan 48c29fd1ff Record verified harness title icons APK publication 2026-10-26 02:24:12 +00:00
alan 5df2a7e776 Show harness identity beside chat titles and keep only the actionable star 2026-10-26 02:19:57 +00:00
alan 6111a6da7d Record verified compact chat rows APK publication 2026-10-26 00:07:40 +00:00
alan f201b834d4 Place chat recency and actions beside row metadata 2026-10-26 00:02:50 +00:00
alan 5b3268b49d Record verified website and APK UI follow-up publication 2026-10-25 23:48:10 +00:00
alan 121ace1cee Complete prompt presets, body-priority panes and clearer chat and stage layouts 2026-10-25 23:11:06 +00:00
alan fff0ca71fd Merge commit '661dfc66' 2026-10-25 21:55:28 +00:00
alan a485ccecb1 Move live background tasks into a composer badge and modal 2026-10-25 21:53:19 +00:00
alan f1e2270ed2 feat(app): default new chat prompt to off 2026-10-25 21:42:02 +00:00
alan 96178570e5 Record verified shared-pane and Enter keyboard release 2026-10-25 21:15:47 +00:00
alan 7e9ba9ac25 Unify flexible list-detail panes and highlight active pipelines and runs 2026-10-25 21:04:12 +00:00
alan 6501d3e12e Send chat messages with Enter and use Shift+Enter for newlines 2026-10-25 20:28:14 +00:00