Repository navigation
Commit 107e12e
authored
feat(studio): switch a plan's scope choices and a reading's chips (#73)
* feat(studio): switch how a plan figure is counted from the plan card
Decision rows that carry a scope choice list its options: the active one
marked, available ones selectable, partial ones with their years and
unavailable ones disabled with their reason. A pick sends a switch with
the plan revision through the interrupt stream, keeps the card until the
re-offered plan arrives, and shows what moved. A stale revision or an
unavailable option leaves the card with a notice. The wire mirror gains
the plan revision, requirements, operations and asks it lagged on.
* fix(studio): keep the switch control usable after a refusal
A stale-revision refusal stops further switches on that card and says
why; options in flight keep focus; the moved note and notice stay
mounted so screen readers announce them; a plain detail body reaches
the notice.
* fix(studio): replace a stale plan card with the one the harness holds
A switch or approve refused as plan_revision_stale now takes the
current_plan the harness returns and shows it with the refusal's
detail, so switching and approving continue on the plan actually
pending. Approve sends the plan revision the user saw.
* feat(studio): render reading chips after an answer and switch on a click
Studio shows the harness's apply_choice chips beside the follow-up
prompts on the latest answer. A click sends a turn carrying the chosen
option and no message, shows the chip label as the user's side, and
streams the answer like any turn; a refused chip shows the reason and
is removed.
* docs(studio): tidy the plan switch and chip comments
* feat(studio): send the turn and reading a chip was offered for
A chip carries the turn whose answer offered it and the spec_id of the
reading it switches, and the click sends both in apply_choice, so the
harness can refuse a chip whose answer or reading is no longer current.
* fix(studio): keep a stale plan unapprovable and own turn starts and ends in one place
A switch refused as stale keeps the card's revision, so an approve is
refused, and only the harness's switch refusals count as refused
switches; any other failure ends the turn. stream() guards every refusal
against a stopped or superseded turn, send and applyChoice open a turn
through one startTurn, a chip clicked mid-request queues, a forked
conversation shows no chips, and the card shows its notice.
* fix(studio): count a chip click as a prompt
A chip passes the guest prompt limit and is tracked as studio.prompt
with intent apply_choice, through the one wrapper typed prompts use.1 parent 6fe733d commit 107e12e
20 files changed
Lines changed: 1818 additions & 175 deletions
File tree
- src
- components/organisms/Studio
- hooks
- workspace
- lib/studio
- test
- fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
189 | 195 | | |
190 | 196 | | |
191 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
192 | 207 | | |
193 | 208 | | |
194 | 209 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 210 | + | |
| 211 | + | |
202 | 212 | | |
203 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
204 | 218 | | |
205 | 219 | | |
206 | 220 | | |
| |||
0 commit comments