Add three ChatGPT-style Answer result mockups - #2321
Closed
BigSimmo wants to merge 2 commits into
Closed
Conversation
The live Answer page still reads as a verified document card. These design-scratch frames keep the same clozapine-monitoring question and sources, and try three citation treatments: inline pills, a claim-to-source rail, and inline source cards that never leave the thread. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Contributor
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueComment |
…ckups-025d # Conflicts: # docs/site-map.md
1 task
BigSimmo added a commit
that referenced
this pull request
Aug 24, 2026
Records the Run PR maintenance sweep across three open draft/ready PRs: synced #2322 and #2316 from a stale main behind-state via a clean fast-forward update; resolved a real merge conflict on #2321 isolated to generated docs/site-map.md and regenerated it via npm run sitemap:update. No CI failures or unresolved review threads required action on any of the three PRs. Claude-Session: https://claude.ai/code/session_01C4RHy24AtgPobEQQwrj7u1 Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The live Answer page is still a verified document card:
AnswerResultSurfacestages anAnswerCardwith query echo, verification notice, support strength, prose, a sources capsule, and evidence sheets. Chat pieces already exist (UserQuestionBubble, prior-turn collapse), but the current result keeps card chrome, so the centrepiece does not read as a conversation.This PR adds a design-scratch study at
/mockups/answer-chat-redesignwith three directions, all using the same clozapine-monitoring question and three sources. Shared mockup chrome is suppressed so each frame’s own composer is the only search bar.Retrieval, ranking, and the production Answer surface are unchanged.
Verification
tests/answer-chat-redesign-mockups.test.tsandtests/answer-chat-redesign-mockups.dom.test.tsx— 7 passednpm run verify:pr-localVerification not run:
verify:pr-local— mockup-only route, 404 in production; smallest gate that can fail is the focused mockup contract and citation-interaction tests above.UI verification not run:
verify:ui— no production UI, routing, or browser journey changed. Walkthrough screenshots/video of the mockup route follow in this session.npm run verify:uiwhen UI, routing, styling, browser behavior, reduced-motion, or forced-colors behavior changednpm run verify:releasebefore release or handoff confidence claimsnpm run eval:retrieval:quality(must stay 36/36) when retrieval, ranking, selection, chunking, or scoring behavior changednpm run eval:rag -- --limit 15+npm run eval:quality -- --rag-onlywhen answer generation, the synthesis prompt, or answer post-processing changednpm run check:production-readinesswhen clinical workflow, privacy, environment, Supabase, source governance, or deployment behavior changednpm run check:deployment-readinesswhen deployment startup, hosting, or rollout behavior changedRisk and rollout
/mockups/**(404 in production unless mockups are explicitly enabled). No production Answer, retrieval, or citation-rendering code changed.src/lib/rag/, retrieval RPCs, golden fixtures, or ranking testsClinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)These frames are synthetic design scratch. They do not change production answer generation, source rendering, or document access. Currency chips (current / review due) stay clinical, not decorative. The privacy line is the production obligation: “Do not enter patient-identifiable information.” plus the Privacy and data processing link.
Notes
Open
/mockups/answer-chat-redesign(mockups enabled) to compare the three directions at phone 390 and desktop 1280. Citations are interactive.