Repository navigation
Conversation
generativeUi.sourceDetails adds a closed Details disclosure under each spec or A2UI surface in the transcript, showing the message content the surface was built from. Labels replace its text. It is off unless set, and a placeholder or a message left as text gets none.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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 free
to 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.
Stacked on #1617 (both change
libs/react/src/chat/generative-ui.tsx). This PR targets that branch for now so the diff shows only this change; it moves tomainonce #1617 has merged.Summary
The Angular chat puts a closed "Details" disclosure under each generated surface, showing the message content it was built from. React had no equivalent.
generativeUi.sourceDetailsonMessageListandChatadds it, opt-in:sourceDetails: truerenders<details class="tp-chat-generative-ui__source">after the surface, with the summary "Details", a heading ("Layout source" for a spec, "Response source" for A2UI) and the message content in a<pre>.sourceDetails: { summary, spec, a2ui }replaces that text (new exported typeMessageSourceLabels).Styles mirror the Angular rule: muted 12px text, and a source block capped at 280px that wraps and scrolls.
Verification
npx nx run-many -t test,type-tests,lint,build -p react,content,core: passed (82 React test files, 1396 tests).node scripts/react-parity/verify-packages.mjs,verify-boundaries.mjs,inventory.mjs --check --drift warn: passed (baseline drift is informational).node --test scripts/react-parity/{verify-packages,runtime-consumer,inventory}.spec.mjs: 169 pass.node scripts/react-parity/verify-langgraph-candidate.mjs: passed (verified-candidate).Not checked in a browser: the styles are untested visually.
🤖 Generated with Claude Code