Skip to content

feat: the Unfold dashboard rework (#557) - #623

Open
a-ratz wants to merge 346 commits into
mainfrom
ui-rework
Open

a-ratz wants to merge 346 commits into
mainfrom
ui-rework

Conversation

@a-ratz

@a-ratz a-ratz commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

The "Unfold" dashboard rework, epic #557, from ui-rework into main.

The dashboard is rebuilt on one design system (Graphite and Paper tokens, four signals: amber happening now, blue decided, a hatch for not sure yet, coral failed). Agents unfold in place instead of opening windows, the Blackboard shows runs as lanes or as a graph, and the trace viewer, History and metrics move into a timeline dock. Search and commands sit in a ⌘K palette, and publishing opens a composer. It also brings sinks (#618): external systems as consumers on the blackboard, flock.sink(name).consumes(...).post("myapp:/billing") with named endpoints, secrets from the environment, retries, order per correlation and Delivered / DeliveryFailed receipts, shown on the dashboard. The dashboard guide describes all of it.

Items

# Item Issue PR
1 Tokens, fonts, icons and themes #558 #574
2 Shell: header, scope chips, live status, board states #559 #580
3 Agent cards, chips and edges #560 #589
4 Unfold an agent in place #561 #596
5 Focus mode #562 #602
6 Canvas dock (replaces the context menu) #563 #603
7 Timeline dock: activity, traces, history, metrics #564 #604
8 Blackboard as run lanes #565 #607
9 Decision kit, review queue in the decider #566 #612
10 Publish composer #567 #613
11 ⌘K palette #568 #615
12 Settings, theme picker, shortcuts #569 #620
13 Blackboard as lanes or a graph (the table goes) #614 #619
Fix: lanes keep to the filters while agents write #616 #617
Dashboard guide, docs pages, screenshots #557 #621
PR screenshots removed before this merge #557 #622
Fix: a lane takes its title from what the run started with #557 #625
Decision guide, DSPy guide and README screenshots of the new dashboard #557 #626
Sinks: backend, guide and example #618 #629
Sinks on the dashboard #618 #630
Sinks demos: Snake and Quick, Draw! #618 #634
Test helper escapes every regex character (CodeQL) #557 #632
Logging apart from tracing, FLOCK_LOG_LEVEL (step 4 of #601) #601 #635
Snake: Start/Pause, Flock's address, game-over screen #618 #636
follows: an outside step names what it follows (Snake draws as one chain) #618 #637
Fix: the board refreshes while events keep coming #638 #639
Fix: the Agent View counts the whole time range #640 #641
Fix: unfolding an agent opens from its card #644 #645
Fix: the Blackboard's lanes keep still while runs end and start #642 #643
Fix: the sink demos' buttons keep their place #646 #647
Fix: unfolding an agent moves the board along one path #648 #649
Fix: a new layout of the Flow glides there (one glide at a time) #650 #651
Fix: unfolding a card on the Blackboard opens its lane in place #652 #653
Docs: how to make a Flock video, with the tools — #654
Fix: Auto-arrange follows cards that grow #655 #656
Docs: video frames without jitter, a still camera, better shots — #657
Docs: the video's Quick, Draw! chip names a decision model with vision — #658
Fix: the dashboard builds on macOS (a case collision), a failed build says why; CI builds on macOS and with the newest dependencies #659 #660
CI: the Quality Gates workflow reads only (code scanning alert 98) #661 #662

The backend parts went to main as their own PRs and are there already: the demo flock (#570), token usage and cost (#571), the activity histogram (#572), engine tags (#583), subscription groups and last error (#585), agent description and model (#592), the trace reader path (#594), agent traces (#597), artifacts by ID with consumptions (#605), active runs (#608) and the decider's review queue (#610).

Versions

  • Dashboard: 0.1.35 on main → 0.2.14.
  • Backend: 0.5.801 on main → 0.5.820 (follows; logging apart from tracing, 0.5.810, and the sinks, 0.5.800, come with this PR too).

Screenshots

The Flow:

The Flow

The Blackboard as lanes:

The Blackboard as lanes

Each item's PR has its screenshots in both themes.

Review and checks

  • Every PR above was reviewed before it merged into ui-rework: Copilot up to feat: focus mode for a node (#562) #602, local Codex rounds since, with the findings posted on each PR. CI was green on each.
  • This PR adds nothing of its own; ui-rework contains all of main and merges without conflicts.
  • Decisions taken along the way are in docs/internal/design-system/autonomous-decisions.md; the ones asked and answered are in the spec's README.

After the merge

A merge commit keeps each item's PR history; a squash would fold its commits into one.

🤖 Generated with Claude Code

a-ratz and others added 30 commits October 11, 2026 23:17
…ard-lanes

# Conflicts:
#	src/flock/frontend/src/components/graph/GraphCanvas.tsx
# Conflicts:
#	docs/about/changelog.md
… stops re-rendering (#565)

The store returns artifacts oldest first, so the table showed the oldest 100
and "Load Older" loaded newer ones; each page also reloaded the first,
since the loader depended on the offset. It now reads the newest page,
newest first, and pages back from the oldest loaded. Its scroll effect set
a new range object on every render and so rendered forever once the table
had rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… keys and the review filter read better (#565)

From the live check on the triage demo: the server draws a run's edges once
the run is done, so what a running run published (or just streamed) has no
edge yet and went to the first column; it now goes after what the run
consumed, and the run needs no placeholder then. The lane title prefers a
field that names the artifact, the key column fits its keys, the pressed
review filter shows it is on. Screenshots in both themes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e table pages within fixed bounds; an unfolded stream keeps its text (#565)

From the first local review round of PR #607:
- A run that ends without publishing its stream (it failed, or its output
  was filtered) takes its preview along, and so does a reconnect.
- Previews kept across a refresh pass the board's filters.
- The artifact table resolves its time bounds once per first page, so
  older pages' offsets hold while "the last 10 minutes" moves on.
- An unfolded streaming card shows its output so far.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the first local review round of PR #607: a page heard of a run only
from its start event, so lanes opened or reconnected mid-run called the
workflow done. On connect it asks GET /api/runs/active (#608) and seeds its
running state, skipping runs whose end it heard meanwhile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/about/changelog.md
…range; an unfolded stream is read once published (#565)

From the second local review round of PR #607:
- Previews carry their run, so an agent running twice in one workflow
  keeps the other run's preview when one ends.
- Previews kept across a refresh pass the custom time range too.
- An unfolded streaming card reads the artifact by ID once it is
  published, instead of failing on it while it streams.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…; stale run answers and old previews are dropped (#565)

From the third local review round of PR #607:
- A run that consumed nothing (a direct invocation, a timer) stays in the
  running state; a lane with nothing on the record yet says so.
- A stream goes after what its own run consumed (by run ID), when an
  agent runs twice in one workflow.
- An answer about running runs that a reconnect superseded is dropped.
- Previews kept across a refresh respect a preset's last minutes too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat: the Blackboard as run lanes and a table (#565)
# Conflicts:
#	docs/about/changelog.md
Every decision display moves onto the tokens and the four signals: chosen
answers blue with a check, uncertainty hatched, best guesses and refusals
dashed, failed checklists coral. Each decision has a header (question and
kind) and an answer line; choice bars carry threshold ticks, yes/no shows
its unsure zone and a marker, scale its columns and score, checklists their
cells and legend; escalation, vote, shadow, review, explanation, tournament
and coverage follow the spec. The tournament bracket is on the tokens too.
DECISION_COLOR, DECISION_TEXT and the unused ImageStrip are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… review (#566)

Each unsure decision no one reviewed yet (from the snapshot, #610) shows
the decided artifact's title, its run, the best guesses and the review
buttons, the best guess preselected; the queue counts all of them and says
where unsure answers route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… review button's best guess shows, the lane card's decision has no second head (#566)

From the live check: the preselected best guess lost to the global button
style when that loaded last, and the Blackboard's unfolded card repeated
the question its head already names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…everal (#566)

From the first local review round of PR #612: two questions about one
artifact read alike in the queue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat: the decision kit on the tokens, with a review queue in the decider (#566)
Only the moves, so `git log --follow` keeps the history of the composer
and its tests; the rewrite follows in the next commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… "Picked up by" (#567)

- Type list with search: "Your types", "Decisions" and collapsed
  "System types"; arrow keys move through it and pick.
- The form keeps every field kind, check and conversion of the publish
  panel (images with resizing, booleans, lists, numbers, enums, long and
  short strings); the JSON editor is checked against the schema before
  it is sent.
- "Picked up by": the agents subscribed to the type, what they publish,
  and the agents that run after them.
- Footer: "Follow this run on the board" (on by default) and Publish
  with Ctrl/⌘+Enter; a toast names the run, with "Stop following".
- Modal: focus trap, Esc closes, the focus returns where it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…567)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hortcuts stay behind its modal (#567)

- Form after JSON round-trips the JSON through the form first; if a
  value would change, drop or be added (None, list items with line
  breaks, an empty image list, unknown fields), it stays in JSON and
  names the fields.
- While a modal dialog is open, only Esc reaches the board's shortcuts:
  Ctrl+F opened the filters behind the composer and took the focus out
  of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The form's inputs hold text, numbers and booleans (and pictures): a
`list[dict]` or `dict` value went to the form unchanged and then failed
its list check on Publish. Such fields now count as losses, so Form
stays in JSON and names them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d scrolls on short screens (#567)

- `inputKind` names the input a field gets; line breaks in a one-line
  text input and an option the select does not have count as losses,
  so Form keeps the JSON and names the fields.
- Under 560 px of height the whole composer scrolls, so Publish and
  Cancel are reachable (at 667 x 375 the footer was clipped).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…568)

Every graph snapshot replaced the nodes without their selection, so a
node clicked (or shown) on a live board lost it within a second, and
Space no longer unfolded it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Ctrl/⌘+K and the header's search open it: a combobox over agents,
  types, runs and commands, ranked by prefix, word start, substring and
  initials; Enter runs a result's first action, Shift+Enter its second,
  Ctrl/⌘+Enter its third, and the footer offers them as buttons.
- Agents: Show (selected and centered), Unfold, Focus; from the
  Blackboard they switch to the Flow first. Types: Filter by type,
  Publish this type (the composer opens on it). Runs, found by the start
  of their ID: Filter by run, Show its lane.
- Commands for the header (views, Publish, filters, time range,
  settings, shortcuts), the canvas dock (zoom, fit, layouts,
  auto-arrange; the Flow registers them), the timeline dock and themes.
- Ctrl+F is no longer caught: the palette replaces it, and the
  browser's find works again.
- A layout sets only positions on the board's current nodes; it wrote
  back the nodes of its render, which dropped a selection made since.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
a-ratz and others added 22 commits October 25, 2026 18:00
…kboard (#668)

bundleDecisions() groups the decisions of one agent from the same inputs in a
run; the Lanes and the Graph view show them as one card with a row per
question (answer, bar, probability; unsure as the best guess, hatched).
Unfolded, a row opens its decision with its review; those that wait for a
review are open. Graph arrows go to and from the bundle. Frontend 0.2.19.
… decision's details, open later reviews (#668)

- bundleDecisions keys on the decision's subject_ids (a filter hides the
  subject's edges, not them), else its inputs; an unknown subject is no bundle
- merged graph arrows are dashed when any answer behind them is unsure
- an open question of a bundle shows the whole unfolded card (Unfolded)
- a question that waits for a review is open unless a person closed it,
  also when a later snapshot brings it
…, keep the unfolded decision open (#668)

- bundleDecisions also keys on the execution (the runId its edges carry), so
  an agent that runs twice on one ticket shows two bundles in both views
- a bundle that gained decisions since the last snapshot is measured again
  and placed like a new card (grownBundles)
- the decision a person unfolded stays open when later answers make it a bundle
…ions

feat: a decider with seven or more questions shows each as one compact row (#671)
feat: an agent card folds more than eight ports into +N more rows (#670)
…uld be (#669)

A decider streams nothing, so its Live tab showed "No output yet" over most
of the stage and the decision in the 340 px side column. Its last decisions
now take that place, one card per question in the order of its questions, a
checklist across the whole width at its full height (DecisionBars
scroll={false}); the side column keeps the input and the earlier runs.
…ach other (#669)

- no "Last decisions" row above the cards (the stage's head says whether it
  runs), so the first cards start where the side column does
- the cards of a row are one height, their footers at the bottom
#669)

As the lineage above it: the decider's input on the left with its earlier
runs under it, the lineage's chevron, then its decisions. An LLM agent keeps
its stream on the left and input, output and earlier runs on the right.
feat: checklists with a large catalog stay readable on the card, unfolded and in focus mode (#669)
feat: a decider's answers about one artifact are one card on the Blackboard (#668)
Brings #677 (113 Dependabot alerts: pillow 13.0.0, fastembed 0.9.1,
mcp 1.30.0, certifi, aiohttp, filelock, OpenTelemetry and dev tools, vitest
4.1.12) and #663 (jupyter-server 2.21.0) from main.

Conflicts: the version lines keep ui-rework's versions with a patch bump for
the new dependencies (backend 0.5.821, frontend 0.2.20); the changelog keeps
both sides' fixes. uv.lock is locked again for 0.5.821 (`uv lock --locked`
passes); npm install --package-lock-only leaves package-lock.json unchanged.
a-ratz and others added 2 commits October 25, 2026 19:24
…-rework

chore: merge main into ui-rework after the 0.5.800 release (#689)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants