Repository navigation
Quieter cards a Bot draws: one surface, no badges that repeat what shows - #3022
Draft
ataibarkai wants to merge 5 commits into
Draft
ataibarkai wants to merge 5 commits into
ataibarkai wants to merge 5 commits into
Conversation
- A decision card (askApproval, askChoice, and OpenBot's own approval cards) draws its answers as rows with no line between them, no tint on the picked one and no line above the button: the radio's dot says which is picked. Keys 1-9, Enter and the arrows are unchanged. - An approval's facts are plain label/value rows, as a record's are, through a shared Facts component; a form's sent answers too. - askForm's choice field is the app's Select, not the browser's own; the value, its check and what is sent to the Bot are unchanged. - showTable drops its "3 rows" badge and showChecklist its "2 of 3": both only counted what is drawn right under them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…them CopilotKit draws a frame (a border and 12px of padding) around every interface in a conversation. It already gave way to a Card on top; Cards side by side in a Row or a Grid still came out as two boxes inside a third. Now the frame gives way whenever the interface holds a Card that draws a box, wherever it sits: the Cards are the boxes, and what is between them lines up with the reply. An interface without such a Card keeps the frame. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been 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.
Before (main) on the left, this branch on the right. Each component is drawn from its registry
previewarguments, plus the states a review needs (answered, sent, errors, the pointer and the keyboard on a row).Decision cards (
askApproval,askChoice, an app approval, answered): no lines or grey fill between the answers, facts as plain rows.askForm: the app's Select (shown open on the right), the answers as plain rows once sent, no line above the button.Badges:
showTablewithout "3 rows",showChecklistwithout "2 of 3". (The table's inner box and grey heading are #3016's to remove.)A2UI in a conversation: Cards side by side lose the frame around them; a Card on top was already the one frame.
States: the pointer and the keyboard on an answer, a form sent empty
Every gallery component from its registry preview, before and after (charts, record, metrics, notice, quote and progress are unchanged)
The cards a Bot draws in a conversation were busier than the rest of OpenBot. An approval put its facts in a grey panel inside the card, a box in a box. Every answer of an approval or a question was split from the next by a line, the picked one had a grey fill, and another line sat above the button. A form drew the browser's own select. A table and a checklist each carried a badge counting what was drawn right under it.
What this changes
DecisionCard(askApproval,askChoice, and OpenBot's own approval before a Bot uses an app) draws its answers as rows with no line between them, no fill on the picked one and no line above the button. The radio's filled dot says which answer is picked, as in any radio group; the focus ring is drawn round the row's own corners. Answered, the answer sits under the title with no line either. 1 to 9, Enter and the arrow keys work as before.Facts/Factpair (gallery/facts.tsx) draws an approval's facts, a record's fields and a form's sent answers the same way: no panel, no fill. A label wraps rather than being cut off, since a form's question can be a sentence.askFormuses the app'sSelect(components/ui/select.tsx) in place of the native<select>: the app's menu in light and dark, the invalid state, the placeholder. The value goes into the same map as the other fields, so the checks and what is sent to the Bot are unchanged. A wrong field is focused by its id, since a select's name sits on a hidden input. The line above the form's button goes too.showTable's "3 rows" counted rows that are all drawn right under it, never cut short.showChecklist's "2 of 3" said again what the ticks say, and each item already tells a screen reader "Done" or "To do". Status badges stay: "Waiting on you", "Approved", a record's status, a notice's tone and a figure's change all say something the card doesn't otherwise.styles.cssalready took it away when a Card is on top. Two Cards in a Row or a Grid still came out as two boxes inside a third. The frame now gives way whenever the interface holds a Card that draws a box, so the Cards are the boxes and what is between them lines up with the reply. An interface with no such Card keeps the frame. CopilotKit can't be handed OpenBot's own frame outsideCopilotChat, so this stays the one rule instyles.cssthat it was.Tablealready has no filled heading and no box, only hairlines; a Card inside a Card draws no box unless the Bot asks foroutline; the checklist's tick keeps its corner (the Checkbox primitive would make it look like something you can tick here).Overlaps
showTableitself (no inner box, no grey heading or stripes) and takes the line from under a gallery card's title. This branch is built onmain, so those still show in the pictures here; the two touch different lines ofgallery/table.tsxandgallery/frame.tsxis untouched here.Where it runs
Boundary and audit
API and database
api/, no app's requests, no database change and norelease-policy.json.Changelog
Web app.
Proof
app), lint and format on every changed file.ui-look-guard,color-scheme,design-tokens,ui-primitives-look,ui-look-theme). The allowlist is unchanged.a2ui-framewith a new case for Cards side by side. Then every browser test that draws these cards or the gallery:a2ui-frame,a2ui-table-links,add-custom-mcp-card-layout,approval-answered-layout,settings-tool-cards-admin-layout,settings-tool-cards-personal,artifact-kinds-browser,artifact-error-notice-layout,connected-bot-mistakes-layout,maths-rendering,table-export-browser,trusted-types: 153 pass, 0 fail.preview, light and dark, before and after (above), from a scratch page that drawsGALLERY_COMPONENTSand an A2UI conversation through the realChatTranscript. The Select opened, picked and closed by pointer and keyboard; an answer row under the pointer and under the keyboard; a form sent empty.🤖 Generated with Claude Code