Skip to content

fix(ChatComposerDrawer): round the drawer with the composer corner - #12481

Merged
kentonquatman merged 2 commits into
mainfrom
fix/chat-drawer-follows-composer-radius
Nov 19, 2026
Merged

kentonquatman merged 2 commits into
mainfrom
fix/chat-drawer-follows-composer-radius

Conversation

@kentonquatman

@kentonquatman kentonquatman commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

User impact

A theme can set the composer's corner through chat-composer borderRadius. The composer body, the status bar and the buttons inside follow it; the drawer above the body kept --radius-chat. With any composer corner other than the chat radius, the drawer's top corners and the tuck that slides it under the body no longer meet the body. The drawer now follows the composer's corner. Shipped themes look the same: none of them sets that radius.

Visual authority

Choose one and link it:

  • Existing component/module DD row reused or amended.
  • Durable component-local intent added to the optional Design decisions table by a team design owner.
  • Correction already settled by current family, design, theme, or objective accessibility authority.
  • New shared or cross-component direction settled in docs/design/.

None yet. Design owner decision (@kentonquatman): inside a composer, the drawer's top corners and tuck follow the composer's corner (--_chat-composer-radius); outside one, they keep --radius-chat. component:ChatComposerDrawer does not say which radius governs the drawer, so this needs its owner's approval.

Before and after

Chromium, compared pixel by pixel with main.

  • A theme that sets chat-composer borderRadius: 8px (over Neutral): the drawer's top corners and its tuck go from 28px to 8px and meet the 8px body. 246 pixels change in light mode and 244 in dark, all at the drawer's two top corners. In Neutral the drawer's fill matches the page, so the corners show where the drawer meets a status bar above it.
  • Every shipped theme: 0 changed pixels, as none sets chat-composer borderRadius.
  • A drawer outside a composer keeps --radius-chat (28px).

State matrix

  • Changed path: a theme that sets chat-composer borderRadius (8px over Neutral), light and dark, drawer expanded.
  • Unchanged path: Neutral, Butter, Gothic, Chocolate, Matcha, Stone, Y2K and Probe, light and dark, at rest, with a footer menu open and with keyboard focus in the editor; and on a touch device below the lg breakpoint. 0 changed pixels in each (measured on the stacked feat(theme): chat surfaces default to the container radius #12482, which contains this change and keeps every shipped theme's chat radius).
  • Each gallery: the drawer expanded and collapsed, status above and below, compact, flat, disabled with Stop, a drawer outside a composer (keeps --radius-chat), and message bubbles.

Scope

Components: ChatComposerDrawer

  • Appearance is the primary intent.
  • Behavior, API, interaction model, and unrelated layout changes were removed or split.
  • The evidence shows the changed pixels actively running, not only source or computed styles.
  • Public text and artifacts contain no internal Meta context.

Testing

  • New ChatComposerDrawer.test.tsx case: the drawer's corners and tuck read the composer's copy. It fails on main and passes here.
  • vitest run --project ui packages/core/src/Chat packages/core/src/theme/derivedVarRegistry.test.ts: 655 passed.
  • Real-browser comparison in Chromium, pixel by pixel, against main.

@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 18, 2026 10:47pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 17, 2026
@astracat-bot

astracat-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 18, 2026, 11:00 PM UTC

@github-actions github-actions Bot added the needs:code-review High-risk change (new package/component/API) — needs human code review before merge label Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · fe24e2c

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
ChatComposerDrawer 18.4 kB (+110 B) · 4.7 kB CSS (+19 B) — ✗ · ✓ · —
ChatComposer 85.8 kB (0) · 12.9 kB CSS (0) — ✗ · ✓ · —
ChatComposerInput 83.5 kB (0) · 12.1 kB CSS (0) — ✗ · ✓ · —
14 more components
Component Size LoC Visual · A11y · RTL
ChatComposerTokenElement 83.5 kB (0) · 12.1 kB CSS (0) — ✗ · ✓ · —
ChatDictationButton 66.8 kB (0) · 10.9 kB CSS (0) — ✗ · ✓ · —
ChatLayout 89.8 kB (0) · 11.4 kB CSS (0) — ✗ · ✓ · —
ChatLayoutScrollButton 66.8 kB (0) · 11.0 kB CSS (0) — ✗ · ✓ · —
ChatMessage 17.2 kB (0) · 3.7 kB CSS (0) — ✗ · ✓ · ✓
ChatMessageBubble 7.6 kB (0) · 3.7 kB CSS (0) — ✗ · ✓ · ✓
ChatMessageList 29.5 kB (0) · 7.1 kB CSS (0) — ✗ · ✓ · —
ChatMessageMetadata 20.5 kB (0) · 4.1 kB CSS (0) — ✗ · ✓ · —
ChatSendButton 66.6 kB (0) · 10.8 kB CSS (0) — ✗ · ✓ · —
ChatSystemMessage 7.1 kB (0) · 3.8 kB CSS (0) — ✗ · ✓ · —
ChatTokenizedText 7.6 kB (0) · 4.0 kB CSS (0) — ✗ · ✓ · —
ChatToolCalls 33.8 kB (0) · 8.5 kB CSS (0) — ✗ · ✓ · —
Chat — — ✗ · ✓ · —
chat — — — · ✓ · —
Visual changes: 6 snapshots in 1 component

A change is a question for the reviewer, not a failure.

Component · story Before After Diff
Chat · Default (neutral, dark) · inheritance unknown: not found in the 2 newest reports of other pull requests before frame after frame diff frame
Chat · Default (neutral, light) · inheritance unknown: not found in the 2 newest reports of other pull requests before frame after frame diff frame
Chat · Default (probe, dark) · inheritance unknown: not found in the 2 newest reports of other pull requests before frame after frame diff frame
Chat · Default (probe, light) · inheritance unknown: not found in the 2 newest reports of other pull requests before frame after frame diff frame
Chat · Custom Collapsed Summary (neutral, dark) · inheritance unknown: not found in the 2 newest reports of other pull requests before frame after frame diff frame
Chat · Custom Collapsed Summary (neutral, light) · inheritance unknown: not found in the 2 newest reports of other pull requests before frame after frame diff frame

Inheritance checked against the 2 newest reports of other pull requests.

Package size: @astryxdesign/core 7.66 MB packed (+171 B); no new dependencies.

Touched components checked; for the full suites, add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting on an owner decision; no code changes are requested. Inside a composer the drawer's top corners and tuck now follow the composer's own corner, a drawer outside a composer keeps --radius-chat, and the shipped themes render exactly as before. No current spec record says which radius should govern the drawer's corners, so approval needs a maintainer to provide or identify the governing spec: should ChatComposerDrawer follow chat-composer borderRadius rather than --radius-chat, for example as a clause in the ChatComposerDrawer record? An engineering owner records that decision by commenting /approve-spec followed by the full head commit SHA on this pull request, and the author may do so if they are an engineering owner.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: the drawer rounds its top corners and its tuck with the composer corner. Verified: ChatComposerDrawer.tsx:108, :121-122, :132-133 and the new test.
  • Claim: a theme that sets chat-composer borderRadius moves the drawer with the composer. Verified: under an 8px composer theme the drawer goes from 28px corners and a 28px tuck on the base to 8px on the head.
  • Claim: outside a ChatComposer the drawer still uses --radius-chat. Verified: a standalone drawer keeps 28px on both sides.
  • Claim: shipped themes look the same. Verified: the seven published themes build identical CSS, and the Neutral composer story is pixel-identical.
  • Claim: the body, the status bar and the buttons already read the composer's corner, which a theme replaces through chat-composer borderRadius. Verified: ChatComposer.tsx:155, :169, :253-266 and derivedVarRegistry.ts:54-56.
  • Claim: on main such a theme leaves the drawer on --radius-chat. Verified: the base drawer measures 28px under an 8px body.
  • Claim: no shipped theme sets chat-composer borderRadius. Verified: only the unpublished probe theme has a chat-composer entry, and it sets colours only.
  • Claim: the follow-up's screenshot comparison shows no changed pixels. Partly verified: Neutral frames are identical here and the other themes build identical CSS; the follow-up's galleries were not re-run.
  • Claim: the new test fails on main and passes here. Verified: it fails on the base tree and passes on the head.
  • Claim: the Chat and derived-variable test run passes 655 tests. Verified: 27 files, 655 tests passed.
  • File .changeset/chatcomposerdrawer-rounds-its-top-corners-and-it-h9fs.md: clear.
  • File packages/core/src/Chat/Chat.doc.mjs: clear.
  • File packages/core/src/Chat/ChatComposerDrawer.test.tsx: clear.
  • File packages/core/src/Chat/ChatComposerDrawer.tsx: no defect; waits on the owner decision above.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting on an owner decision; no code changes are requested. Inside a composer the drawer's top corners and tuck now follow the composer's own corner, a drawer outside a composer keeps --radius-chat, and the shipped themes render exactly as before. No current spec record says which radius should govern the drawer's corners, so approval needs a maintainer to provide or identify the governing spec: should ChatComposerDrawer follow chat-composer borderRadius rather than --radius-chat, for example as a clause in the ChatComposerDrawer record's design relationships? An engineering owner records that decision by commenting /approve-spec followed by the full head commit SHA on this pull request, and the author may do so if they are an engineering owner.

Claims and files checked

Review mode: full; reason: author-not-engowner

  • Claim: the drawer rounds its top corners and its tuck with the composer corner. Verified: ChatComposerDrawer.tsx:108, :121-122, :132-133 and the new test.
  • Claim: a theme that sets chat-composer borderRadius moves the drawer with the composer. Verified: under an 8px composer theme the drawer goes from 28px corners and a 28px tuck on the base to 8px on the head.
  • Claim: outside a ChatComposer the drawer still uses --radius-chat. Verified: a standalone drawer keeps 28px on both sides.
  • Claim: shipped themes look the same. Verified: the seven published themes build identical CSS, and the Neutral composer story is pixel-identical.
  • Claim: the body, the status bar and the buttons already read the composer's corner, which a theme replaces through chat-composer borderRadius. Verified: ChatComposer.tsx:155, :169, :255-266 and derivedVarRegistry.ts:54-56.
  • Claim: on main such a theme leaves the drawer on --radius-chat. Verified: the base drawer measures 28px under an 8px body.
  • Claim: the drawer reads the composer's corner with --radius-chat as the fallback for its top corners, bottom margin and bottom padding. Verified: the built CSS changes exactly those four declarations.
  • Claim: no shipped theme sets chat-composer borderRadius. Verified: no theme source sets it; only the unpublished probe theme has a chat-composer entry, and it sets colours only.
  • Claim: the follow-up's screenshot comparison shows no changed pixels. Partly verified: Neutral frames are identical here and the published themes build identical CSS; the follow-up's galleries were not re-run.
  • Claim: the new test fails on main and passes here. Verified: it fails on the base tree and passes on the head.
  • Claim: the Chat and derived-variable test run passes 655 tests. Verified: 27 files, 655 tests passed.
  • File .changeset/chatcomposerdrawer-rounds-its-top-corners-and-it-h9fs.md: clear.
  • File internal/eslint-plugin-astryx/no-comment-provenance.baseline.json: clear; the baseline check reports it up to date.
  • File packages/core/src/Chat/Chat.doc.mjs: clear.
  • File packages/core/src/Chat/ChatComposerDrawer.test.tsx: clear.
  • File packages/core/src/Chat/ChatComposerDrawer.tsx: no defect; waits on the owner decision above.

Automated review (maintainer link)

@kentonquatman
kentonquatman enabled auto-merge (squash) November 18, 2026 01:59
@kentonquatman
kentonquatman force-pushed the fix/chat-drawer-follows-composer-radius branch from 6fc46f8 to cd8571f Compare November 18, 2026 02:05

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting on an owner decision; no code changes are requested. Inside a composer the drawer's top corners and tuck now follow the composer's own corner, a drawer outside a composer keeps --radius-chat, and the shipped themes render exactly as before. No current spec record says which radius should govern the drawer's corners, so approval needs a maintainer to provide or identify the governing spec: should ChatComposerDrawer follow chat-composer borderRadius rather than --radius-chat, for example as a clause in the ChatComposerDrawer record's design relationships? An engineering owner records that decision by commenting /approve-spec followed by the full head commit SHA on this pull request, and the author may do so if they are an engineering owner.

Claims and files checked

Review mode: carry-forward; reason: none

  • Claim: the drawer rounds its top corners and its tuck with the composer corner. Verified: ChatComposerDrawer.tsx:108, :121-122, :132-133 and the new test.
  • Claim: a theme that sets chat-composer borderRadius moves the drawer with the composer. Verified: under an 8px composer theme the drawer goes from 28px corners and a 28px tuck on the base to 8px on the head.
  • Claim: outside a ChatComposer the drawer still uses --radius-chat. Verified: a standalone drawer keeps 28px on both sides.
  • Claim: shipped themes look the same. Verified: the seven published themes build identical CSS, and the Neutral composer story is pixel-identical.
  • Claim: the body, the status bar and the buttons already read the composer's corner, which a theme replaces through chat-composer borderRadius. Verified: ChatComposer.tsx:155, :169, :255-266 and derivedVarRegistry.ts:54-56.
  • Claim: on main such a theme leaves the drawer on --radius-chat. Verified: the base drawer measures 28px under an 8px body.
  • Claim: the drawer reads the composer's corner with --radius-chat as the fallback for its top corners, bottom margin and bottom padding. Verified: the built CSS changes exactly those four declarations.
  • Claim: no shipped theme sets chat-composer borderRadius. Verified: no theme source sets it; only the unpublished probe theme has a chat-composer entry, and it sets colours only.
  • Claim: the follow-up's screenshot comparison shows no changed pixels. Partly verified: Neutral frames are identical here and the published themes build identical CSS; the follow-up's galleries were not re-run.
  • Claim: the new test fails on main and passes here. Verified: it fails on the base tree and passes on the head.
  • Claim: the Chat and derived-variable test run passes 655 tests. Verified: 27 files, 655 tests passed.
  • File .changeset/chatcomposerdrawer-rounds-its-top-corners-and-it-h9fs.md: clear.
  • File internal/eslint-plugin-astryx/no-comment-provenance.baseline.json: clear; the baseline check reports it up to date.
  • File packages/core/src/Chat/Chat.doc.mjs: clear.
  • File packages/core/src/Chat/ChatComposerDrawer.test.tsx: clear.
  • File packages/core/src/Chat/ChatComposerDrawer.tsx: no defect; waits on the owner decision above.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor

Owner decision (engineering owner, covering this pull request): inside a composer, the drawer's top corners and its tuck follow the composer's own corner. A drawer outside a composer keeps --radius-chat. The shipped themes render as before.

@josephfarina

Copy link
Copy Markdown
Contributor

/approve-spec cd8571f

@josephfarina josephfarina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix.

@github-actions github-actions Bot removed the needs:code-review High-risk change (new package/component/API) — needs human code review before merge label Nov 18, 2026
@josephfarina

Copy link
Copy Markdown
Contributor

/approve-spec 56535cb

@josephfarina josephfarina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same tree as cd8571f.

The drawer read --radius-chat for its top corners and for the tuck under
the composer body, while the body reads the composer's copy of the token.
A theme that set chat-composer borderRadius moved the body, the status bar
and the buttons, and left the drawer at --radius-chat. The drawer now reads
the composer's copy, with --radius-chat as the fallback outside a composer.
ChatComposerDrawer no longer cites an issue in a comment.
@josephfarina
josephfarina force-pushed the fix/chat-drawer-follows-composer-radius branch from 56535cb to fe24e2c Compare November 18, 2026 22:35
@josephfarina

Copy link
Copy Markdown
Contributor

/approve-spec fe24e2c

@josephfarina josephfarina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same tree as cd8571f; commits now carry the author's GitHub noreply address.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI. CI has not run on this head yet: the last CI run was refused for lack of CI capacity and cancelled, so it needs a re-run before merge.

Inside a ChatComposer the drawer now takes the composer's corner, and outside one it keeps --radius-chat, as an engineering owner decided on this pull request. The new test fails on main and passes here, and the shipped themes render unchanged. Consider recording that decision in the drawer's component record so a later change does not reopen it.

Claims and files checked

Review mode: full; reason: author-not-engowner

  • Claim: inside a composer the drawer's top corners and tuck use the composer's corner. Verified: ChatComposerDrawer.tsx:108, :121-122, :132-133 and the new test.
  • Claim: a theme that sets the composer's corner radius moves the drawer with it. Verified: with an 8px composer corner the drawer measures 8px corners and an 8px tuck in light and dark.
  • Claim: outside a composer the drawer keeps the chat radius. Verified: a standalone drawer measures 28px and renders pixel-identical frames.
  • Claim: shipped themes look the same. Verified: no shipped theme sets the composer's corner radius, and the Neutral composer and the released drawer stories render pixel-identical frames.
  • Claim: the body, the status bar and the buttons already follow the composer's corner. Verified: ChatComposer.tsx:149, :155, :169, :255-266.
  • Claim: before this change the drawer kept the chat radius under such a theme. Verified: on main it measures 28px corners over an 8px body.
  • Claim: an 8px theme moves the drawer's corners and tuck from 28px to 8px. Verified: measured 28px to 8px and -28px to -8px; the changed-pixel counts are the author's own measurement.
  • Claim: no behavior, API, interaction or unrelated layout change is mixed in. Verified: the public surface comparison finds no change from this pull request, and only four style declarations change.
  • Claim: every state in the matrix shows 0 changed pixels for shipped themes. Verified: without a theme override the drawer resolves the same 28px value as before, and the captured Neutral frames are identical.
  • Claim: the new test fails on main and passes here. Verified: on main it fails (1 failed, 7 passed); at this head it passes.
  • Claim: the Chat and registry tests pass (655). Verified: 27 files, 655 tests passed.
  • Claim: public text carries no internal context. Verified: added lines, title, body, branch and commit messages scanned.
  • File .changeset/chatcomposerdrawer-rounds-its-top-corners-and-it-h9fs.md: clear.
  • File internal/eslint-plugin-astryx/no-comment-provenance.baseline.json: clear; the baseline check reports it up to date.
  • File packages/core/src/Chat/Chat.doc.mjs: clear.
  • File packages/core/src/Chat/ChatComposerDrawer.test.tsx: clear.
  • File packages/core/src/Chat/ChatComposerDrawer.tsx: clear.

Automated review (maintainer link)

@kentonquatman
kentonquatman enabled auto-merge (squash) November 19, 2026 00:23
github-actions Bot added a commit that referenced this pull request Nov 19, 2026
@kentonquatman
kentonquatman merged commit 8dbb75a into main Nov 19, 2026
194 of 206 checks passed

This branch was successfully deployed

1 active deployment
Preview — fe24e2c1 Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants