Repository navigation
fix(ChatComposerDrawer): round the drawer with the composer corner - #12481
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| 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.
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
There was a problem hiding this comment.
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-133and the new test. - Claim: a theme that sets
chat-composerborderRadius 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-composerborderRadius. Verified:ChatComposer.tsx:155,:169,:253-266andderivedVarRegistry.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-composerborderRadius. Verified: only the unpublished probe theme has achat-composerentry, 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.
There was a problem hiding this comment.
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-133and the new test. - Claim: a theme that sets
chat-composerborderRadius 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-composerborderRadius. Verified:ChatComposer.tsx:155,:169,:255-266andderivedVarRegistry.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-chatas 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-composerborderRadius. Verified: no theme source sets it; only the unpublished probe theme has achat-composerentry, 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.
6fc46f8 to
cd8571f
Compare
There was a problem hiding this comment.
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-133and the new test. - Claim: a theme that sets
chat-composerborderRadius 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-composerborderRadius. Verified:ChatComposer.tsx:155,:169,:255-266andderivedVarRegistry.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-chatas 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-composerborderRadius. Verified: no theme source sets it; only the unpublished probe theme has achat-composerentry, 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.
|
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 |
|
/approve-spec cd8571f |
josephfarina
left a comment
There was a problem hiding this comment.
Thanks for this fix.
|
/approve-spec 56535cb |
josephfarina
left a comment
There was a problem hiding this comment.
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.
56535cb to
fe24e2c
Compare
|
/approve-spec fe24e2c |
josephfarina
left a comment
There was a problem hiding this comment.
Same tree as cd8571f; commits now carry the author's GitHub noreply address.
There was a problem hiding this comment.
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-133and 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
mainit 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
mainand passes here. Verified: onmainit 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.


















User impact
A theme can set the composer's corner through
chat-composerborderRadius. 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:
DDrow reused or amended.Design decisionstable by a team design owner.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:ChatComposerDrawerdoes not say which radius governs the drawer, so this needs its owner's approval.Before and after
Chromium, compared pixel by pixel with main.
chat-composerborderRadius: 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.chat-composerborderRadius.--radius-chat(28px).State matrix
chat-composerborderRadius(8px over Neutral), light and dark, drawer expanded.lgbreakpoint. 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).--radius-chat), and message bubbles.Scope
Components: ChatComposerDrawer
Testing
ChatComposerDrawer.test.tsxcase: 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.