Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1b58496
Studio: one button system: press brighter than hover, link and quiet …
danielrispler Dec 1, 2026
e028a51
Studio: one Esc per layer, the panel closes on a click, focus comes b…
danielrispler Dec 1, 2026
556bfa3
Studio: the badge list keeps its rows through live updates and stays …
danielrispler Dec 1, 2026
1766c88
Studio: failed reads say so with Try again, and a failed map write sh…
danielrispler Dec 1, 2026
5b47eec
Studio: every loading and empty line of the map, its sheets and the l…
danielrispler Dec 1, 2026
00ab63d
Studio: red means failed, one glass, ring, field and tag, the type an…
danielrispler Dec 1, 2026
ed4beea
Studio: snap fixtures follow the failure token and the copy rules (#1…
danielrispler Dec 1, 2026
e1763ae
Docs: README pictures after the UI consistency pass (#1042)
danielrispler Dec 1, 2026
a23428b
Studio: Esc closes a nested layer before the focused one that holds i…
danielrispler Dec 1, 2026
ae219c9
Studio: the session list's failed-read line goes when the sessions ar…
danielrispler Dec 1, 2026
4ba50b7
Studio: the last empty-state lines lose their full stop (#1035)
danielrispler Dec 1, 2026
a2058c3
Studio: the hunk's and the round's loading lines use the status line …
danielrispler Dec 1, 2026
c29e355
Studio: a map redraw keeps the focus on a control it renamed, such as…
danielrispler Dec 1, 2026
3ff6fee
Studio: one helper removes a writer's key and says a failure (#1035)
danielrispler Dec 1, 2026
5952d01
Studio: the error toast builds its alert line once (#1035)
danielrispler Dec 1, 2026
425f405
Studio: an overlay's opener names its part or zone ownerId (#1035)
danielrispler Dec 1, 2026
c73120b
Studio: every button that owns its hover gets a brighter press, Open …
danielrispler Dec 1, 2026
eee5894
Studio: a failed Remove key says so while plotkeeper is down too (#1035)
danielrispler Dec 1, 2026
ad622b7
Studio: the focus is kept only across a redraw of the same sheet or d…
danielrispler Dec 1, 2026
ef21a71
Studio: the panel's light dismiss reads where a press began at the pr…
danielrispler Dec 1, 2026
2a3ab60
Merge main (#1036's QA fixes) into the UI consistency branch (#1035)
danielrispler Dec 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/studio/CONTEXT.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ The window with the session list and the story rail folded, so the terminal take
_Avoid_: Zen mode, full screen (the macOS window state)

**Map view**:
The page's base: one project's system map, filling the page under the top bar beside the **Session list**. The page opens on the project last viewed, else the first; the list's project headers switch it, and selecting a session shows its project's map: the project it started in, the one the list groups it under. Everything else opens in one left panel that floats over it (a session's story, History, a turn's diff, widened, a worker's log, or Settings), as the part's sheet does on the right; neither darkens the map, and only a PR brief dims it. Dragging its background pans it and the wheel or a pinch zooms it, `0` or the Fit button in its head fits it, and each project's view is kept. Esc peels, in order: an open drawer, a scrubbed commit (back to now), the part's sheet, then the left panel; on the bare map it does nothing. `studio::ShowMap`, "back to the map", closes the panel (a keymap's old `studio::GoHome` is read as it). A fresh install shows one calm line in its place, a project with no map the prompt to draft one, and a project whose folder is gone says so with Remove project. Its **Ready for review** tray lists the PRs of the project that are open and not drafts; it is hidden while the left panel is open.
The page's base: one project's system map, filling the page under the top bar beside the **Session list**. The page opens on the project last viewed, else the first; the list's project headers switch it, and selecting a session shows its project's map: the project it started in, the one the list groups it under. Everything else opens in one left panel that floats over it (a session's story, History, a turn's diff, widened, a worker's log, or Settings), as the part's sheet does on the right; neither darkens the map, and only a PR brief dims it. Dragging its background pans it and the wheel or a pinch zooms it, `0` or the Fit button in its head fits it, and each project's view is kept. Esc closes an open menu or an inline box first, then peels, in order: an open drawer, a scrubbed commit (back to now), the part's sheet, then the left panel, the overlay holding the keyboard's focus first; on the bare map it does nothing. `studio::ShowMap`, "back to the map", closes the panel (a keymap's old `studio::GoHome` is read as it). A fresh install shows one calm line in its place, a project with no map the prompt to draft one, and a project whose folder is gone says so with Remove project. Its **Ready for review** tray lists the PRs of the project that are open and not drafts; it is hidden while the left panel is open.
_Avoid_: Architecture view, graph view

**Left panel**:
Expand Down
Binary file modified docs/studio/assets/readme/brief.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/studio/assets/readme/first-map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/studio/behaviour/cards.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ A round (spec #967, "Rounds and replies"; ticket #976) is answered by a prompt,

**The planning view** (spec #967, "The rail (page)"; ticket #978; `ui/rounds.ts`) is where Daniel answers a round. It takes the plan view's place ([the rail](rail.md), "The plan view") when no plan waits, and reuses its parts:

- **When it opens.** The round is the session's newest, from its newest turn, while it is `extracting`, `open` or `failed`; a later prompt of Daniel's ends it. An open round stays live, and answerable, through the turns wake-ups open after it: Send waits as whenever the agent is busy, and Copy works. When the round they join arrives, it takes the form's picks by each question's label or text; an option pick, or a pick of the recommendation, keeps the option of the same name (the recommendation while that option is still the one it names), and a pick of a recommendation no option holds stays while the agent's words are the same; otherwise the question goes back to untouched. So a pick never becomes another answer because the agent now recommends something else. It shows as a waiting plan does (Q35): at once in Decision mode, or when the round was there when Daniel selected the session; otherwise, under the rail's hold, the dock shows one row, "N questions waiting: open the planning view" ("Reading the questions: …" or "The questions couldn't be read: …" before it opens), which opens it. Several pending asks stack in the dock: the round's row beside a permission or a question. "Back to the story" leaves it in the dock.
- **When it opens.** The round is the session's newest, from its newest turn, while it is `extracting`, `open` or `failed`; a later prompt of Daniel's ends it. An open round stays live, and answerable, through the turns wake-ups open after it: Send waits as whenever the agent is busy, and Copy works. When the round they join arrives, it takes the form's picks by each question's label or text; an option pick, or a pick of the recommendation, keeps the option of the same name (the recommendation while that option is still the one it names), and a pick of a recommendation no option holds stays while the agent's words are the same; otherwise the question goes back to untouched. So a pick never becomes another answer because the agent now recommends something else. It shows as a waiting plan does (Q35): at once in Decision mode, or when the round was there when Daniel selected the session; otherwise, under the rail's hold, the dock shows one row, "N questions waiting: open the planning view" ("Reading the questions: …" or "The questions could not be read: …" before it opens), which opens it. Several pending asks stack in the dock: the round's row beside a permission or a question. "Back to the story" leaves it in the dock.
- **Minimized and full size** (spec #998, ticket #1005). In the panel a round with questions is the minimized view: "Back to the story", "N questions · ★ the agent's pick" and ⤢ on one line, then one line per question (its number, its title, its current answer, ★ on a recommendation Daniel hasn't touched; an answered or closed round's line is its answer), then the bar, so Send works from it. It is as tall as what it holds, and over the map the left panel ends under it, so it never scrolls. Nothing opens full size by itself: Daniel opens it with ⤢, a line (at its question), the dock's row, or a press on its session: its row in the list or on the map (its Needs you included), or the top bar's Needs you. A press on a session opens its open round full size once the session's rounds are known, under the rail's Context mode too, as the dock's row does; a press that finds no open round, or a session left before its rounds came, asks nothing more, so a round that arrives later shows minimized. Full size is a modal `<dialog>` over the map (`showModal()`, `closedby="any"`, and a press and release both outside it where the browser lacks `closedby`): the session's name, which holds its issue once, its planning state and how many questions, ⤡, then the stepper and the step below and the bar. The focus opens on the question. Esc, a click outside or ⤡ closes it to the minimized view, the focus on the line of the question it showed. A redraw keeps it open, its form, the focus and a typed answer's caret; it closes when the round leaves the view (Send, a later prompt of Daniel's, a waiting plan). A wake-up's join keeps it open on the joined round. A round still read, or whose read failed, shows its message in the panel instead, as below, and has no full size.
- **The stepper and the steps.** One number per question: the agent's label without its "Q" (`Q8` is 8), or its position when it has none. The current one is filled; one whose answer is no longer the untouched default is ringed in the needs-you colour. There is no review step. Each step is card B, "side by side" (spec #998): a label line ("Question 1 of 2", the planning or triage state, the agent's label, the question's category as a chip, and a "new" chip on a question a wake-up's turn `added`), the title (the writer's `title`, its markdown rendered inline, else the question's text), the `dilemma` and the `example` as a quote line, then one column per option: its short name with a "recommended" pill, its hint (what it does), "In the example" with its `outcome`, a **Pick** button (**Picked** once it is Daniel's own answer) and a **+** that opens the option's trade-off in the agent's words under the column. A field the writer left empty draws no line, so a round stored before spec #998 shows the question text and the hints. The recommended option is the one the recommendation names, which the writer names and the server keeps on the question (`recommended`: else its quote or name in the recommendation's words, word for word, or its "(b)" tag); a recommendation no option holds is no column: it is one full line, "Agent recommends: …", with its own Pick, and an untouched question sends it all the same. "Decided so far" and an answered step write a recommendation taken by that option's name too. The recommendation is pre-selected, tinted and dashed (no hover hint says so); an option Daniel picked or confirmed takes a solid edge. Then "Why <option>: <why>" when the question has a `why` and recommends something ("Why: <why>" beside a recommendation no option holds); a question that recommends nothing shows no why. Under the columns: "write my own" (a box whose text is the answer), "skip" ("undo skip") and "why?", which opens the agent's whole message; then Back and "Next: Q9". A question that failed the check says to answer it in the terminal and has no rows; a question with dropped options says how many.
- **The bar** answers the whole round from any step: one status line, then the buttons by where the session runs. The status line is a failed send, copy or reply while the view is full size, "Sending…", "Copied: paste it in the terminal", why Send is off ("Send is off: The agent is busy"), why there is no Jump ("No Jump: …"), else "Waiting for your answers" or how many questions Daniel answered ("1 of 4 answered"). In Herdr.app, **Copy & Jump** and **Send in Herdr**, disabled with the guard's reason until `send_guard` passes; in another terminal the Jump knows, **Copy & Jump**; elsewhere **Copy reply**. Then **Accept all**, which takes every untouched recommendation and answers as the bar's main button (Send when it is on, else the copy); it is off when the round's `accept_all` is false. The guard is asked when a Herdr session's round opens, and again after a failed Send.
- **The bar** answers the whole round from any step: one status line, then the buttons by where the session runs. The status line is a failed send, copy or reply while the view is full size, "Sending…", "Copied: paste it in the terminal", why Send is off ("Send is off: The agent is busy"), why there is no Jump ("No jump: …"), else "Waiting for your answers" or how many questions Daniel answered ("1 of 4 answered"). In Herdr.app, **Copy & Jump** and **Send in Herdr**, disabled with the guard's reason until `send_guard` passes; in another terminal the Jump knows, **Copy & Jump**; elsewhere **Copy reply**. Then **Accept all**, which takes every untouched recommendation and answers as the bar's main button (Send when it is on, else the copy); it is off when the round's `accept_all` is false. The guard is asked when a Herdr session's round opens, and again after a failed Send.
- **The reply.** The page asks `round_reply` again with each change of the form and holds the answer, so Copy writes the clipboard inside the click, on the copy button's path (the copy toast holds the reply to copy by hand when the clipboard refuses). Copy then calls `round_copied`, Copy & Jump the Jump, and the bar says "Copied: paste it in the terminal". Send calls `round_send`, "Sending…" meanwhile; once it is sent the view closes and its row goes. A refused send shows its reason on the notice line and leaves the round open. While the view is full size the notice line is inert behind it, so the round's own errors (a refused send, a failed copy or reply, Copy & Jump's Jump) show on the status line instead ("Not sent: The agent is busy") and go to plotkeeper's log, until the next send or copy.
- **The round's states.** While `extracting`, the step is the agent's message split by its own Markdown headings, folded, with the last section holding a question open, and the bar says "Reading the questions…"; a message with no headings shows whole. A `failed` round shows the message the same way, "The questions couldn't be read: <reason>" and the session's Jump (or why there is none), as the reply has nothing to copy. A partial round has a notice of what is missing ("1 question couldn't be checked against the message: answer it in the terminal; 1 option was left out. Accept all is off."); it says Accept all is off only when it is, so a round that only lost options reads "1 option was left out." A round the view shows that is then answered or closed stays in it read-only, each step its answer (or the reply as typed), the bar one line: "Answered on the page", "Answered in the terminal", or "Closed: a later prompt or round came first". A round read to have no question (closed, asking nothing) leaves the view, and the story is back.
- **The round's states.** While `extracting`, the step is the agent's message split by its own Markdown headings, folded, with the last section holding a question open, and the bar says "Reading the questions…"; a message with no headings shows whole. A `failed` round shows the message the same way, "The questions could not be read: <reason>" and the session's Jump (or why there is none), as the reply has nothing to copy. A partial round has a notice of what is missing ("1 question could not be checked against the message: answer it in the terminal; 1 option was left out. Accept all is off."); it says Accept all is off only when it is, so a round that only lost options reads "1 option was left out." A round the view shows that is then answered or closed stays in it read-only, each step its answer (or the reply as typed), the bar one line: "Answered on the page", "Answered in the terminal", or "Closed: a later prompt or round came first". A round read to have no question (closed, asking nothing) leaves the view, and the story is back.
- **The hold.** Send, Copy & Jump, Copy reply, Accept all and the dock's row release the rail's mode. A release that decides the same mode stays released until a draw decides another, so after Send the rail goes to Context mode as soon as the server moves the session on, though the sent prompt's turn may land later ([The Brief](brief.md), "The mode and its hold").

A round written after the prompt that answers it, as when the turn's files were stored late, is read at once and logs no `StudioRound` line. A newer round closes the session's open one, unanswered, unless a wake-up opened its turn.
Expand Down
Loading
Loading