diff --git a/docs/studio/CONTEXT.md b/docs/studio/CONTEXT.md index 879b8f19..0122d869 100644 --- a/docs/studio/CONTEXT.md +++ b/docs/studio/CONTEXT.md @@ -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**: diff --git a/docs/studio/assets/readme/brief.gif b/docs/studio/assets/readme/brief.gif index a6598c81..2834ebcd 100644 Binary files a/docs/studio/assets/readme/brief.gif and b/docs/studio/assets/readme/brief.gif differ diff --git a/docs/studio/assets/readme/first-map.png b/docs/studio/assets/readme/first-map.png index a9667f05..6c79b085 100644 Binary files a/docs/studio/assets/readme/first-map.png and b/docs/studio/assets/readme/first-map.png differ diff --git a/docs/studio/behaviour/cards.md b/docs/studio/behaviour/cards.md index 30450987..8d70cfae 100644 --- a/docs/studio/behaviour/cards.md +++ b/docs/studio/behaviour/cards.md @@ -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 `` 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