Repository navigation
[Component Audit] ChatComposerInput: keep inserted text and dropped files usable - #6419
Merged
cixzhang merged 1 commit intoSep 21, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
cixzhang
requested review from
imdreamrunner and
josephfarina
as code owners
September 21, 2026 12:35
Contributor
|
AI review status for this pull request.
|
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: 36 accessibility violation(s) found — 2 critical, 34 serious. Button pattern - 1 issue(s)
ChatComposer - 1 issue(s)
ChatComposerInput - 1 issue(s)
ChatReasoning - 1 issue(s)
ChatToolCalls - 1 issue(s)
Checkbox pattern - 1 issue(s)
CheckboxList - 1 issue(s)
ClickableCard - 1 issue(s)
CodeEditor - 1 issue(s)
CodeEditorPerf - 1 issue(s)
CodeEditorTheme - 1 issue(s)
CodeTheme - 1 issue(s)
DateRangeInput - 1 issue(s)
FileInput - 1 issue(s)
GridMasonry - 1 issue(s)
Heading - 1 issue(s)
Icon - 1 issue(s)
LogStream - 1 issue(s)
MediaTheme Auto - 1 issue(s)
PowerSearch - 1 issue(s)
ProgressBar - 1 issue(s)
Radio group pattern - 1 issue(s)
RadioList - 1 issue(s)
RichTextEditor - 2 issue(s)
SelectableCard - 1 issue(s)
Stepper - 1 issue(s)
TableGroupedRows - 1 issue(s)
TableTree - 1 issue(s)
Text - 1 issue(s)
Theme - 1 issue(s)
PopArt - 1 issue(s)
Thumbnail - 1 issue(s)
Timestamp - 1 issue(s)
Token - 1 issue(s)
Tokenizer - 1 issue(s)
Visual RegressionStatus: No visual change across 2 compared shot(s). Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
3 tasks done
github-actions
Bot
deleted the
night-watch-component-audit/ChatComposerInput/2026-09-21
branch
September 22, 2026 06:23
AKnassa
added a commit
to AKnassa/astryx
that referenced
this pull request
Sep 26, 2026
Resolved conflicts: - packages/core/src/Chat/ChatComposerInput.tsx: kept the PR's handleRef.setValue alongside upstream's `focus: focusEditable` (meta#6419/meta#6398 keep an existing in-editor selection on focus); dropped the PR's local placeCaretAtEnd helper in favour of upstream's import from ./chatComposerSelection; handleKeyDown deps keep upstream's onKeyDownProp (meta#4280) and drop onChange, since submit-clear now reports through emitChange. The pending-emissions ledger auto-merged over upstream's one-shot pendingEchoValueRef, next to meta#6419's emitChangeVersionRef. - packages/core/src/Chat/ChatComposerInput.test.tsx: took upstream's imports (waitFor, act, userEvent); the PR's controlled-value and trigger-menu tests auto-merged. - packages/core/src/Chat/ChatComposerInput.doc.mjs: kept the PR's handleRef/value prose in upstream's prettier-wrapped layout, and recast the English/dense em dashes as punctuation per meta#4394. Known fallout, fixed in the follow-up review commit (astracat F2): the required `setValue` member breaks upstream's five-member handle literal in useChatPasteAsToken.test.ts (TS2741 under the core typecheck).
This branch was successfully 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.
User impact
This audit keeps dictated or otherwise programmatically inserted text synchronized with the composer, delivers dropped files through the documented attachment callback, and lets product paste handlers intercept long text before automatic token conversion.
No public prop, type, export, default, token format, submission rule, or visual design changes.
Audit identity
@astryxdesign/core/Chat20777236fb41228ea370c3af52c11167ea1433f3c3ee01559f7e17eab2e12cc05798c842792e489d1.16.6Scorecard
Baseline: 76.0/100 (C), 3 BLOCKs, §5b/§9/§10 not measured
After local remediation: 85.8/100 (B), 0 BLOCKs, §5b/§9/§10 not measured
Projected after complete exact-head rendered evidence: 87.3/100 (B), 0 BLOCKs
onFiles.Objective fixes
handleRef.insertText()now uses the same observable change pipeline as typing, so composed features such as dictation update the serialized draft and clear the placeholder.onChangecalls.onFilesonce, and remains inert while disabled.pasteAsToken, callback precedence, file-drop guidance, anatomy, and the complete imperative handle.Red → green evidence
onFiles.onPastereceives first refusal; built-in token/plain insertion runs only when unhandled.Local verification
Needs Review
No new product decision is required. File validation/upload UX, trigger result content, custom token semantics, and visual representation remain owned by their existing product or component layers.
Exact-head gates
Exact-head CI, Storybook plays, accessibility, RTL, rendered evidence, visual acceptance, spec-owner reconciliation, and the independent private review all passed. The owner-exempt
review-requiredstatus was emitted by GitHub Actions App 15368.Final result
a3f81843b26bfadc27d486b13602598f11745461a7d96a16dbb9626ec765c2bdcfbcdff461b1da81