feat(tui): compose auto-convenes the new panel#1747
Conversation
Assert that after typing a topic, composing, and pressing y the screen navigates to /convene/<panelName>/run with state.topic equal to the typed topic (not /panels/:name). Also assert the 'y Save & convene' preview hint text. Co-authored-by: Copilot <175574315+pedrofuentes@users.noreply.github.com>
After the user confirms the composed panel preview with y, navigate to /convene/<panelName>/run with state.topic set to the typed topic instead of /panels/:name. Update the preview hint to 'y Save & convene · n/e edit · Esc cancel'. The topic is captured from topicRef before the async persist call so it is always available at navigation time. Co-authored-by: Copilot <175574315+pedrofuentes@users.noreply.github.com>
|
Status: APPROVED Sentinel Review ReportRef: feature/tui-compose-wizard → main Phase 1 — TDD / Test Evidence
Phase 1.5 — Fast-path Evaluation🔴 count: 0 | LOC: 9 non-test changed lines (≤150: Y) | Security paths: Y (TUI terminal-rendering surface) | New deps: N | Commit types qualify: N ( Phase 2 — Execution Log
Dispatch verification: A1, A2, B, C, D, and F were dispatched as distinct sub-agent tool calls in a single parallel invocation; E was skipped under the Dim E auto-skip rule because no dependency surface changed. This platform's sync Findings
Details (ordered by severity)
Follow-ups & Actions
Decision rationale
|
Summary
The auto-compose flow now finishes the job — after the user confirms the composed panel it navigates straight to the debate run with the topic prefilled, completing the type-a-topic→watch-a-debate wizard. Phase 10 TUI overhaul — PR-21.
Changes
PanelComposeScreen.tsxconfirmPreviewnow navigates to/convene/<panelName>/runwithstate: { topic, panelName }instead of/panels/:nametopicRef.currentbefore the asyncpersistcall so it is always available at navigation timey save · n/e edit · Esc cancel→y Save & convene · n/e edit · Esc cancelinFlightguard,n/ereset,Esccancel, captured-input effect) is unchangedpanel-compose-screen.test.tsxConveneRunProbecomponent that readsuseParams+useLocation.stateto expose both the panel name and prefilled topic/convene/:panel/runroute torenderScreenhelperCONVENE_RUN safe-panel+topic=pricing strategy(wasDETAIL safe-panel)"y Save & convene"hint assertion testTDD verification
fa70851test(tui)1f2c7c6feat(tui)