Skip to content

Artifacts in OpenBot's current look: one light table, fewer boxes - #3016

Open
ataibarkai wants to merge 10 commits into
mainfrom
claude/artifact-look-cfbf2b
Open

ataibarkai wants to merge 10 commits into
mainfrom
claude/artifact-look-cfbf2b

Conversation

@ataibarkai

@ataibarkai ataibarkai commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Before (main) on the left, this branch on the right. The document is a made-up one (the repo is public); the viewer's own document text is blurred.

A document artifact, before and after The same document in dark mode The artifact viewer, before and after A dashboard artifact, before and after A sheet artifact, before and after showTable in a conversation, before and after A reply with a table and code: the same, its buttons waiting for the pointer Table and code buttons: at rest, pointer on the table, pointer on the code

Artifacts a Bot makes looked heavier and older than the rest of OpenBot. A document's tables sat in a grey box inside a bordered box, with a filled heading row and a fixed height that cut rows off mid-sentence and pushed columns out of sight. Its words were set by Streamdown's own styles rather than the typesetting a reply in the conversation got in #2634. A dashboard was a card for every figure, chart and table, each with a line under its title, all inside a white card on the slate panel.

What changes

  • One light table wherever a Bot draws one. The conversation already drew a reply's table light, but only through styles scoped to the reply ([data-reply-prose] in styles.css), laid over Streamdown's framed table. Everywhere else (a document, a card's words, a dashboard's notes) kept the box. The look now lives in the component itself (lib/markdown-table.tsx): no box, no fill on the heading row (MarkdownTableHead), lines between rows, the first and last columns in line with the text, figures in even widths. A heading wraps instead of pushing a column out of sight. A reply in the conversation looks as before (checked pixel for pixel), but for its buttons below.
  • Documents are set like a reply, as a page. Typeset headings, lists with hanging indents, the reply's tables and code blocks, every table row shown. The rules that set a Bot's Markdown move to bot-markdown.css, which the app and the print page both import, so a document prints as it reads.
  • Fewer surfaces. The viewer is one page on the card level, split only by the line under its header and the line beside the comments. Inside an artifact, a gallery frame draws no card (UnboxedFrames): a dashboard's figures, charts and tables are titles over their content, set apart by space. Its tables are drawn as a document's. "No comments yet" is one quiet line instead of the framed empty state.
  • A table's and a code block's buttons show on hover. Copy, Download and Full screen (a code block's Download and Copy) show while the pointer is on the table or block, or focus is in it, and always on a touch screen. They fade rather than leave, so nothing moves, and an open menu keeps them shown. The table's rule and its test are Reading a conversation: fold a long message, show a table's buttons on hover #2756's, word for word, so the two pull requests agree where they meet.
  • showTable, the table a Bot draws in a conversation, gets the same light table: no inner box, no fill, no stripes, a sort arrow on hover or when sorted. The sorting hint is still read to a screen reader.
  • Sheets keep their grid, without the filled heading row and row numbers.

Existing artifacts

Documents, dashboards and sheets are drawn when they are opened, so every one already made takes the new look. Pages are compiled once into their own HTML and keep the look they were built with.

Checked

  • Typecheck, lint and format on the changed files; the unit tests around artifacts, gallery cards, tables, replies, the design-token and look guards.
  • The browser tests for artifacts, tables and replies, Chromium: table-export-browser (16 pass) and 15 more files (artifact-kinds-browser, artifacts-screens*, transcript-table-end, conversation-reply-toolbar-layout, a2ui-*, artifact-collab-browser and the rest; 287 pass, 0 fail).
  • table-export-browser held OpenBot's table pixel for pixel to Streamdown's own. It now holds it to Streamdown's table in the look a reply gave it before that look moved into the component (OPENBOT_LOOK in its fixture), inline and full screen, so a reply's table is proven unchanged.
  • Every kind in light and dark at 390, 700 and 1440px with no sideways scroll; a document printed to PDF through the print page.

Overlaps

Changelog

Web app.

  • Changed: artifacts look like the rest of OpenBot. A document's tables are light and show every row, its text is set like a reply, and a dashboard is drawn without a box around every chart and figure. Artifacts already made look this way when opened; pages keep the look they were built with.
  • Changed: a table a Bot draws in a conversation is lighter. No inner box, filled heading or stripes; sort arrows show on hover.
  • Changed: a table's and a code block's Copy and Download show on hover. On a touch screen they always show.

🤖 Generated with Claude Code

ataibarkai and others added 7 commits December 5, 2026 07:37
A document is set by the typeset rules a reply uses, on white paper (the
card level) instead of the panel's slate. Its tables are part of the page:
no grey box, no inner box, no height cap, muted heading row, hairline rows,
Copy/Download/Full screen on hover. A table in a card runs to the card's
edges under a pale heading strip; sort arrows show on hover. Card titles
lose the line under them. A sheet's heading row and row numbers lose
their fill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The viewer is one page on the card level: the artifact, its header and its
comments, split by two lines, in place of a white card inside the slate
panel. A document draws no paper edge of its own. Inside an artifact a
gallery frame draws no card (UnboxedFrames): a dashboard's figures, charts
and tables are titles over their content, set apart by space, and its
tables are drawn as a document's. No comments yet is one quiet line, not
the framed empty state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The light table a conversation's reply drew was styles scoped to the reply
([data-reply-prose]), over Streamdown's framed table: everywhere else (a
document, a card, a dashboard's words) kept the grey box, the inner box and
the filled heading row. The look now lives in the component: MarkdownTable
draws no box, MarkdownTableHead no fill, its edges flush and its figures in
even widths, and a heading wraps rather than pushing a column out of sight.
The code block's rules apply to every Bot's words, not only a reply's.
Documents use the reply's components, with every row shown.

The gallery's showTable draws the same table: no inner box, no fill, no
stripes, a sort arrow on hover or when sorted; the sort hint is said to a
screen reader. On paper a document and a dashboard keep the print page's
margins; a dashboard prints on white, and a document's table rows stay whole.
Thumbnails draw a dashboard's parts unboxed, as the view does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The print page loaded neither shadcn/typeset nor the app's tuning of it, so
a document's headings printed as body text once its words were set by
typeset. The rules that set a Bot's Markdown (the reply's and document's
typeset tuning, Streamdown's code block) move to bot-markdown.css, which
the app and the print page both import. On paper a document's table breaks
between rows, not before the table, and prints without the heading fill
print.css used to give it.

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>
A 12-column grid with 40px between columns needs 440px for its gaps alone,
so at 390px a dashboard's figures scrolled sideways. The gaps are 16px and
32px until the dashboard is wide (@3xl), then 40px and 48px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ataibarkai and others added 2 commits December 5, 2026 08:57
The full-screen table drew Streamdown's bordered table; it now has the
inline table's look, and its Exit button the size of Copy and Download.
table-export-browser compared OpenBot's table pixel for pixel with
Streamdown's own; it now compares it with Streamdown's table in OpenBot's
look, the styles a reply laid over it before the look moved into the
component (OPENBOT_LOOK in the fixture), inline and full screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ataibarkai
ataibarkai marked this pull request as ready for review December 5, 2026 17:25
A table's Copy, Download and Full screen, and a code block's Download and
Copy, show while the pointer is on the table or block, or focus is in it,
and always on a screen with no hover. They fade rather than leave, so
nothing moves, and stay in the tab order; an open Copy or Download menu
keeps them shown. The table's rule and test are #2756's, word for word, so
the two pull requests agree where they meet.

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