Skip to content

Quieter cards a Bot draws: one surface, no badges that repeat what shows - #3022

Draft
ataibarkai wants to merge 5 commits into
mainfrom
claude/gallery-quiet
Draft

ataibarkai wants to merge 5 commits into
mainfrom
claude/gallery-quiet

Conversation

@ataibarkai

@ataibarkai ataibarkai commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Before (main) on the left, this branch on the right. Each component is drawn from its registry preview arguments, 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.

Decision cards, light: before and after Decision cards, dark: before and after

askForm: the app's Select (shown open on the right), the answers as plain rows once sent, no line above the button.

askForm, light: before and after askForm, dark: before and after

Badges: showTable without "3 rows", showChecklist without "2 of 3". (The table's inner box and grey heading are #3016's to remove.)

showTable and showChecklist, light: before and after showTable and showChecklist, dark: before and after

A2UI in a conversation: Cards side by side lose the frame around them; a Card on top was already the one frame.

A2UI interfaces in a conversation, light: before and after A2UI interfaces in a conversation, dark: before and after
States: the pointer and the keyboard on an answer, a form sent empty Hover, keyboard focus and validation, light Hover, keyboard focus and validation, dark
Every gallery component from its registry preview, before and after (charts, record, metrics, notice, quote and progress are unchanged) Every gallery component, light: before and after Every gallery component, dark: before and after

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

  • A decision card is one surface. 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 are plain label and value rows. A new Facts/Fact pair (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.
  • askForm uses the app's Select (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.
  • Badges that only repeated what shows are gone. 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.
  • A2UI: Cards side by side have no frame around them. CopilotKit draws a frame (a border and 12px of padding) round every interface in a conversation, and styles.css already 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 outside CopilotChat, so this stays the one rule in styles.css that it was.
  • Looked at and left alone: the standard Table already has no filled heading and no box, only hairlines; a Card inside a Card draws no box unless the Bot asks for outline; the checklist's tick keeps its corner (the Checkbox primitive would make it look like something you can tick here).

Overlaps

Where it runs

  • New state that outlives a request? None. Drawing only.
  • What happens on the second replica? Nothing different.
  • Anything serialised? No.
  • Anything fanned out to a browser? No.
  • New listener, port, or schedule? No.

Boundary and audit

  • Every acting call still goes through the gateway: resolve, decide, audit, then act.
  • New refusals and new failures each write a row. (None added.)
  • Nothing new is trusted from the client that the server can resolve itself.

API and database

  • This changes nothing under api/, no app's requests, no database change and no release-policy.json.

Changelog

Web app.

  • Quieter cards in a conversation. An approval or a question a Bot asks shows its answers without lines or a grey fill between them, and its facts without a grey panel. A Bot's form uses OpenBot's own select. A table and a checklist no longer carry a count badge. An interface a Bot draws with Cards side by side no longer has a frame around them.

Proof

  • Typecheck (app), lint and format on every changed file.
  • Unit tests: 100 files around approvals, decisions, the gallery, forms, selects, notices and A2UI (983 tests), plus the look guards (ui-look-guard, color-scheme, design-tokens, ui-primitives-look, ui-look-theme). The allowlist is unchanged.
  • Browser tests (Chromium): a2ui-frame with 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.
  • Every gallery component from its registry preview, light and dark, before and after (above), from a scratch page that draws GALLERY_COMPONENTS and an A2UI conversation through the real ChatTranscript. The Select opened, picked and closed by pointer and keyboard; an answer row under the pointer and under the keyboard; a form sent empty.
  • Two test lines changed with the rule they held: the form test picks from the Select as a person does, and the checklist test now holds that no "2 of 3" is drawn. A new form test holds that an empty required choice is the field focused (it failed with the old focus-by-name), then is sent once picked.

🤖 Generated with Claude Code

ataibarkai and others added 5 commits December 5, 2026 08:27
- 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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant