Repository navigation
feat(demo): show real Work and Code sample results - #11
Conversation
Signed-off-by: Zachariah Ayers <[email protected]>
Signed-off-by: Zachariah Ayers <[email protected]>
ZachariahAyers
left a comment
There was a problem hiding this comment.
What this change does: Adds Work/Code sample panels, shared conversation/report controls, document downloads and website previews.
Reviewed the full cb48694 change, the toolbar-wrap delta through a0c2374, and the connected Howland gateway. One mode-recovery defect remains below. A controlled transport probe reproduced it using the exact client and server-workbench source; no model call was made.
Verdict: fix the mode-recovery finding before acceptance. Prior-head UI/release-contract CI passed; those results do not cover the new head. Howland must also adopt the final corrected UI pin and pass its own image checks.
Not checked: independent browser QA or provider behavior. No merge, release or deployment performed.
| if (!workspace || mode === workspace.mode || request.current || stopPending.current || switching) return; | ||
| const current = version.current; setSwitching(true); setError(""); | ||
| try { const sample = await client.workspace(mode); if (current === version.current) setWorkspace(sample); } | ||
| catch { if (current === version.current) setError("The workspace could not switch modes. Try a new conversation."); } |
There was a problem hiding this comment.
[P2] Reconcile an uncertain mode change before enabling Send. POST /demo/mode mutates the server before returning. If the response is lost or times out, this catch retains the old workspace and finally clears switching; client.ready remains true. Reproduction: start in Work, let the server apply Code but drop its response, then send a proposal request. The screen still shows proposal.md while the server targets index.html. Read back /demo/workspace and update the visible mode before allowing another send, or keep sending blocked until explicit recovery/close. Add a response-lost-after-commit regression.
Signed-off-by: Zachariah Ayers <[email protected]>
|
Independent local correction retest PASS at c71e537 paired with Howland4ff50af25799efb07815e292d307291fe065e067. Toolbar wraps without overflow at320/305 outer widths; Phone/Desktop controls work at1280/390/320; Work→Code preserves revised preview. Full evidence and limits are recorded on Howland PR42 and AUDIT/evidence/2026-10-30-independent-qa/howland/correction-retest.md. This is controlled local UI evidence, not final production-bundle/provider acceptance. Lost-switch-response fault recovery was not independently exercised. |
ZachariahAyers
left a comment
There was a problem hiding this comment.
What this change does: recovers the actual workspace after an uncertain mode switch and binds each edit request to the mode and revision visible when it was submitted.
Source review accepted at c71e537. The lost-response finding is resolved in combination with Howland's server-side mode/revision check before charging or provider admission. The synchronous pending guard prevents a new send during recovery, and the uncertain mutation is never replayed.
Independent focused verification: 25 tests passed across demo-client.test.ts and demo-app-mount.test.tsx, including the mutated-server/lost-response case and request binding. Exact-head Public demo checks 41080297806 and Release contract 41080297791 passed; the former includes actual application typechecking and the public browser build. Diff whitespace checks passed.
Browser QA and deployment remain separate. Howland's remaining grammar finding must be resolved for the combined delivery; this review does not authorize publication.
The public demo currently shows only a conversation. Add Work and Code modes with a sample proposal/website panel, PDF previews and downloads, actual changes/source, and immutable preview URLs supplied by the paired Howland gateway. Reuse platform chat for smooth text and per-answer report review; consent, cancellation and lease close remain explicit. Native app code is unchanged.
Validated locally: 25 client/component checks, scoped demo typecheck, and sealed browser checks at 1280x900, 390x844 and 320x568 using controlled model responses with real PDF/preview operations. The small-phone composer overlap was reproduced and fixed. Full hosted Vite/type checks and live-model compliance remain pending; this PR does not authorize deployment.
Design: P1 actual check/revision state; P5 existing controls and shared renderer; P9 explicit hosted-demo consent; P10 local QA screenshots
/tmp/howland-work-code-work-1280.pngand/tmp/howland-work-code-code-320.png. Independent QA is reviewinghttp://127.0.0.1:34454/with its fixture limits disclosed. Howland source f793490cbe2d14c5eaff497ccce3daa2eeb86f58 pins this exact UI head cb48694.