Repository navigation
Widget: plan rail and Continue in notebook in the center-stage dialog (E6.1) - #709
Conversation
…/test-plan-rail.js)
…ed: widget suites, bundle rebuilt)
…ed: bun frontend/test-widget-plan-rail.js)
…rpolated attribute values (tested: widget suites, test_widget_drift)
…and on a phone (tested: center-stage-check)
…] resolved, both entries kept; tested below after the merge)
Preview Deployment
This preview will be updated automatically when you push new commits. |
…ng fallback, pin every state (tested: test-plan-rail.js 78 passed)
…w always has an effect, role=list, reuse prefersReducedMotion (tested: test-widget-plan-rail.js 156 passed)
… --check current)
…step N focus in a real browser (tested: center-stage-check 262 ok, 0 FAIL)
… no card (docs only)
|
Review round 1: outcomes (pushed to
The runtime bundle was rebuilt after the pure-module change ( |
…il's shared heading id (tested) renderPlanChrome set tabindex=-1 on every focus target, taking Edit, Add step and the plan inputs out of the Tab order; it now does so only for the rail/thread fallback. The rail heading id and aria-labelledby are removed so two widgets on one page cannot collide; the aside keeps aria-label. Tests assert no tabindex on the focused control.
|
Review round 2 outcomes (fix commit e4fcaea on this branch):
Tested: |
|
Verdict: ready and merged. All acceptance criteria checked against the diff and tests, every review finding from rounds 1 and 2 has an outcome in a comment, branch was up to date with develop, and all checks passed (Lint, Test 3.11/3.12, Frontend Tests, deploy; Integration Tests skipping). Squash-merged into develop; #701 closed. |
Summary
Second pull request of E6.1: board C3 in the center-stage dialog, on top of the merged host API (#705).
<aside aria-label="Plan">with an<ol>sits beside the thread, 280 px wide, in the widget's own--osa-*tokens (dark mode and community themes carry over). HeadingPlan · 3 of 5 done(uppercase by CSS),Proposed planfor a draft,Plan stopped · N of M donefor a stopped plan. Rows: check for done, highlighted row with a ringed circle for the current step (aria-current="step"), empty circle for pending, a distinct icon for failed and for stopped; every row also says its state in words for a screen reader (Step 3, done). A row whose step has a run card is a button that scrolls to and focuses the newest card of that step (run cards now carrydata-plan-step) and never toucheslocation.hash; other rows are plain text. The foot shows the run mode read-only andMemory budget 512 MB · change, which opens Settings with focus on the memory choice that is on.changes_requestedand unanswered, in the corner, and at 900 px and under (the strip and the bar carry the same state there). While the rail shows, the strip in the thread is hidden and the paused bar stays.osa-center-has-rail): header on top, rail in the left column down the thread rows, footer and disclaimer across both. The rail is inserted before.osa-chat-messagesand removed on docking; the thread is never redrawn or reparented. Tab order is header, rail, thread, input.frontend/osa-plan-rail.js(pure, no DOM):planRailOf(messages, {active})reusescurrentPlan,progressOf,PLAN_STATUS,PROGRESS_STATEandRUN_MODEfromosa-plan.jsand adds no second progress model. Exported asOSARuntime.planRail; the bundle and its integrity line are rebuilt.osa-center-notebook-btn, before Move to corner, icon only at 600 px and under). Shown only whennotebookContinueState(datasetId).offeredis true, its reason is empty andhasSuccessfulRun(activeConversationRecord())holds; it runs the card's path (runNotebookImport), is disabled witharia-busywhile importing, and the existing flow docks the dialog (with amodechangeevent) when the notebook tab opens. Refreshed whereverrefreshNotebookEntryrefreshes the card. Plainask, History and the corner panel are unchanged.Glue is in one
// BEGIN plan-rail...// END plan-railblock after host-api; existing functions only got one-line hooks (renderPlanChrome,applyHostMode,refreshNotebookEntry,saveSettings,bindCenterStage), plus thedata-plan-stepattribute on done run cards and the header button markup.Screenshots (real Chrome, from
center-stage-check.mjs)Capsule launcher (what NEMAR uses), 1280 x 900, light and dark:
Bubble launcher, 1280 x 900, light and dark (no notebook tab, so no Continue in notebook):
Phone, 390 x 844 (no rail, the strip and the bar show, the header button is an icon), light and dark; and the docked window:
Deviations from the brief and the board
PlanDecision(src/api/tool_results.py), and there is no channel to change it after approval. The rail shows it from the same two strings as the plan card (Pauses after each step,Runs all steps); while the plan is still a draft it follows the card's radio.Plan · 3 of 5 done) and is uppercased by CSS, so the text a screen reader gets is ordinary case.--osa-text, not the board's slate greys.--osa-text-lighton--osa-assistant-bgis 4.33:1 in the light scheme, under the 4.5:1 the brief asks for; the circle icons use--osa-text-light(non-text 3:1). Thechangebutton is underlined--osa-textfor the same reason (NEMAR's accent measured 4.46:1 there).applyLauncherModemoves the chat's elements into.osa-view-chat, so for a capsule widget that view is the grid, not the window. The rail is still inserted before.osa-chat-messages; the harness checks both a capsule and a bubble widget.continueHistoryConversation), in addition to the brief's importing state. Because the notebook tab docks the dialog as soon as an import starts, the busy state is visible when the dialog is raised again during the import; the test does exactly that.planRailreturnsmodeas well asmodeLabel(the spec listsmodeLabel;modecosts nothing and keeps the label from being parsed back).screenshots/issue-701-plan-rail, as earlier PRs did, and can be deleted after merge.Verification
bun frontend/test-plan-rail.js: 54 passedbun frontend/test-widget-plan-rail.js: 143 passedbun frontend/test-widget-plan-card.js: 264 passed;bun frontend/test-widget-host-api.js: 243 passed;bun frontend/test-widget-notebook-entry.js: 190 passedbun scripts/build-runtime-bundle.jsrun, then--checkpasses;bun frontend/test-runtime-bundle.js: 43 passed (newplanRailexport and source/bundle parity)bun frontend/browser-harness/center-stage-check.mjs: 221 checks ok in headless Chrome 157 (approved plan at 1280 x 900 on capsule and bubble: rail 280 px, no sideways scroll, rows andchangeat least 36 px, text 4.5:1 light and dark, real Tab order, row click focuses the card with the address unchanged,changeopens Settings, docking keeps the thread nodes; at 390 x 844 the rail is hidden and nothing scrolls sideways)frontend/test-*.jssuite passesuv run --extra dev --extra server pytest tests/test_frontend: 172 passed (this caught two quoted attribute interpolations in selectors, fixed);uv run ruff check .: all checks passed (ruff format --checkreports 8 files, none touched here)Closes #701