Skip to content

[Component Audit] ChatComposer: keep disabled controls and custom drafts reliable - #6398

Merged
cixzhang merged 3 commits into
meta:mainfrom
cixzhang:night-watch-component-audit/ChatComposer/2026-09-20
Sep 21, 2026
Merged

cixzhang merged 3 commits into
meta:mainfrom
cixzhang:night-watch-component-audit/ChatComposer/2026-09-20

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

User impact

This audit fixes three released ChatComposer failures:

  • A disabled default editor now exposes aria-disabled to assistive technology.
  • An explicitly shown Stop action remains clickable/tappable while editing is disabled.
  • A custom input's public onSubmit(value) operation now submits that supplied value instead of stale composer state.

No public API shape or default changes. Theme-target and BaseProps ownership remain intentionally unresolved for owner review.

Audit identity

  • Base: cb7a565c327b77dead30910912ebddcc1d8abf09
  • Head: 031dcabb1a680c4397a6e026ba4bb5c06df42584
  • Rubric: Night Watch 1.16.6
  • Mode: manual review only
  • Eligibility: false — exact-head gates and independent review are pending, and two owner-decision BLOCKs remain

Scorecard

Baseline: 62.9/100 (D), 6 BLOCKs, §5b not measured
After local remediation: 78.1/100 (C), 2 BLOCKs, §5b not measured
After exact-head CI projection: 79.0/100 (C), 2 BLOCKs, §5b not measured
Sensitivity if both remaining BLOCKs are resolved with no other score change: 90.6/100 (A)

The measured denominator is 96 because §5b's 4-point rendered-design weight is excluded and redistributed proportionally.

Section Weight Before After State / evidence
§1 Accessibility 16 2.5 4.5 Disabled ARIA and interruptible Stop repaired with red/green tests; exact-head axe pending.
§2 Theming 14 3 3 BLOCK: the root target cannot reach body elevation/border.
§3 Public API 14 2.5 3 Context argument repaired; BLOCK: BaseProps still split across root/body.
§4 Behavior 12 4 4 Common states covered; spacious meaning remains an owner gap.
§5a Objective design 6 5 5 Logical CSS, semantic tokens, icon+color status, and concentric radii pass.
§5b Rendered design 4 — — not_measured; local browsers could not launch. Only the official visual gate may clear this.
§6 Testing 8 3 4 104 focused tests pass; exact-head browser checks pending. Projected 4.5 after green CI.
§7 Code health 8 5 5 Render-derived state, stable context, and bounded DOM reads.
§8 Docs/Storybook 8 1 3 Added factual usage/anatomy, draft contract, and one critical-state browser fixture.
§9 i18n/RTL 5 4 5 Strings are catalog-backed; logical source is recorded as hash-bound verified-N/A, pending CI validation.
§10 Responsive/touch 5 3 4 Narrow fixture asserts viewport containment and clicks the real Stop action; browser execution pending CI.
§11 Lifecycle — — — N/A: existing Core component.

Closed FR5 public-surface inventory

17/17 rows accounted; 0 unaccounted public surfaces. Equivalent values are grouped only where source, tests, docs, rendered evidence, authority, and result are the same.

ID Public surface / state partition Evidence and disposition
FR5-01 ./Chat entry point; ChatComposer and exported types Package/export guards; pass.
FR5-02 BaseProps/ref/DOM/style/xstyle Source/docs; BLOCK NW-CHATCOMPOSER-API-001.
FR5-03 Controlled/uncontrolled value and clearing Source + focused tests + textarea stories; pass.
FR5-04 Context, keyboard, and button submission Red/green focused tests; repaired.
FR5-05 Enabled/disabled default editor Red/green DOM assertions; repaired; exact-head axe pending.
FR5-06 Send/Stop, including disabled+Stop Red/green pointer assertion + new browser play fixture; local pass, exact-head play pending.
FR5-07 Placeholder, default input, custom input Focused tests + stories; pass.
FR5-08 compact / balanced / spacious Source/docs; spacious meaning is owner gap NW-CHATCOMPOSER-GAP-001.
FR5-09 low / none elevation and target reachability Source/tests/Flat story; BLOCK NW-CHATCOMPOSER-THEME-001.
FR5-10 Drawer omitted/custom/ChatComposerDrawer Source, focused drawer suite, stories, blocks; pass.
FR5-11 Header actions/context combinations Source, stories, docs; pass.
FR5-12 Default/custom input context and focus control Source + focused tests + textarea/Lexical stories; pass.
FR5-13 Footer/send actions and default/custom primary action Source + focused tests + stories; pass except FR5-06 intersection.
FR5-14 Error/warning status, absent/present message Source + stories; optional empty message is accounted current behavior, not promoted into policy.
FR5-15 Top/bottom status position Source + stories; pass.
FR5-16 Keyboard/pointer/programmatic focus and body-click focus Focused tests pass; rendered focus paint awaits exact-head browser gates.
FR5-17 ComponentDoc, contract, 1 showcase, 7 examples, 19 runnable stories Knowledge/build checks pass; factual usage/anatomy and critical fixture added.

Objective authority and changes

  • architecture:interaction-modality INV4/INV7/INV9: restored pointer/touch access only to the footer action area when Stop is explicitly shown.
  • architecture:public-component-api INV9/INV12: ChatComposerContextValue.onSubmit(value) now trims and submits that value; the default button supplies context.value.
  • spec:AST-020 FR1 / WCAG 2.2 4.1.2: the disabled default textbox now exposes aria-disabled="true".
  • spec:AST-029 DEC-4: all three behavior changes have preserved red-before-green evidence.

The audit also adds a schema-3/template-5 observational ChatComposer.spec.md, factual consumer usage/anatomy, one narrow disabled-streaming story with a real click assertion, hash-bound RTL verified-N/A metadata, and a patch changeset.

Red → green evidence

Finding Before After
Context submit value Expected custom input draft; received captured composer draft. Focused suite passes and default Send asserts hello.
Disabled textbox state Expected aria-disabled="true"; attribute was absent. Disabled and re-enabled DOM assertions pass.
Disabled Stop hit test user-event refused the click because inherited pointer-events was none. Realistic pointer click dispatches onStop once.

Local verification

  • pnpm exec vitest run for ChatComposer, ChatComposerInput, and ChatSendButton — 104 passed.
  • Core source and docs typechecks — passed.
  • pnpm lint:strict — passed, 0 errors and 83 pre-existing warnings.
  • Knowledge and changeset validation — passed.
  • Production Storybook build — passed, with 19 runnable ChatComposer stories and core-chatcomposer--disabled-streaming-narrow tagged play-fn.
  • Storybook workspace typecheck — baseline environment limitation: unpublished workspace build artifacts are absent, producing unresolved-package errors across existing stories. Core typechecks and the production build pass; exact-head CI remains required.
  • Local axe, RTL browser audit, and Chrome fallback — not measured because Chromium could not launch in this environment. No browser pass or visual claim is inferred.

Needs Review — unresolved BLOCKs

  1. NW-CHATCOMPOSER-THEME-001 (§2): chat-composer targets the outer frame while elevation and the flat border paint on the inner body. Issue #5556 confirms the user-facing gap but deliberately leaves target shape/name undecided.
  2. NW-CHATCOMPOSER-API-001 (§3): xstyle reaches the body while ref, neutral DOM props/events, className, and style reach the frame. Choosing a single public owner changes released behavior and needs compatibility judgment.

Unscored owner decisions are whether spacious intentionally aliases balanced, and what invalid-state behavior should apply when isStopShown is true without onStop.

Exact-head gates

At PR creation: exact-head CI, Storybook play, accessibility, and visual checks are pending. The FR10 report therefore fails closed: eligibility false; manual-review-only; no ledger update.

FR10 machine report (schema v1)
{
  "schema_version": 1,
  "report_kind": "astryx-night-watch-fr10",
  "component": "core/ChatComposer",
  "audit_mode": "night_watch",
  "rubric_version": "1.16.6",
  "base_head": "cb7a565c327b77dead30910912ebddcc1d8abf09",
  "head": "031dcabb1a680c4397a6e026ba4bb5c06df42584",
  "branch": "night-watch-component-audit/ChatComposer/2026-09-20",
  "inventory": {
    "schema_version": 1,
    "status": "closed",
    "rows_accounted": 17,
    "rows_total": 17,
    "unaccounted_public_surfaces": 0
  },
  "score": {
    "baseline": {
      "measured_points": 60.4,
      "measured_weight": 96,
      "normalized": 62.9,
      "grade": "D",
      "blocks": 6
    },
    "after_local_validation": {
      "measured_points": 75,
      "measured_weight": 96,
      "normalized": 78.1,
      "grade": "C",
      "blocks": 2
    },
    "after_exact_head_ci_projection": {
      "measured_points": 75.8,
      "measured_weight": 96,
      "normalized": 79,
      "grade": "C",
      "blocks": 2,
      "condition": "required exact-head browser and repository checks pass"
    },
    "all_blocks_fixed_sensitivity": {
      "normalized": 90.6,
      "grade": "A",
      "condition": "both remaining owner-decision BLOCKs fixed; rendered-design weight still unmeasured"
    }
  },
  "sections": [
    {"id": "1", "name": "accessibility", "weight": 16, "baseline_score": 2.5, "after_score": 4.5, "state": "measured", "open_blocks": []},
    {"id": "2", "name": "theming", "weight": 14, "baseline_score": 3, "after_score": 3, "state": "measured", "open_blocks": ["NW-CHATCOMPOSER-THEME-001"]},
    {"id": "3", "name": "public_api", "weight": 14, "baseline_score": 2.5, "after_score": 3, "state": "measured", "open_blocks": ["NW-CHATCOMPOSER-API-001"]},
    {"id": "4", "name": "behavior", "weight": 12, "baseline_score": 4, "after_score": 4, "state": "measured", "open_blocks": []},
    {"id": "5a", "name": "objective_design", "weight": 6, "baseline_score": 5, "after_score": 5, "state": "measured", "open_blocks": []},
    {"id": "5b", "name": "rendered_design", "weight": 4, "baseline_score": null, "after_score": null, "state": "not_measured", "open_blocks": []},
    {"id": "6", "name": "testing", "weight": 8, "baseline_score": 3, "after_score": 4, "state": "exact_head_ci_pending", "open_blocks": []},
    {"id": "7", "name": "code_health", "weight": 8, "baseline_score": 5, "after_score": 5, "state": "measured", "open_blocks": []},
    {"id": "8", "name": "documentation", "weight": 8, "baseline_score": 1, "after_score": 3, "state": "measured", "open_blocks": []},
    {"id": "9", "name": "i18n_rtl", "weight": 5, "baseline_score": 4, "after_score": 5, "state": "verified_not_applicable_pending_ci_hash_check", "open_blocks": []},
    {"id": "10", "name": "responsive_touch", "weight": 5, "baseline_score": 3, "after_score": 4, "state": "source_and_fixture_measured_browser_pending", "open_blocks": []},
    {"id": "11", "name": "lifecycle", "weight": 0, "baseline_score": null, "after_score": null, "state": "not_applicable_existing_core_component", "open_blocks": []}
  ],
  "remediated_blocks": [
    "NW-CHATCOMPOSER-A11Y-001",
    "NW-CHATCOMPOSER-A11Y-002",
    "NW-CHATCOMPOSER-API-002",
    "NW-CHATCOMPOSER-DOC-001"
  ],
  "open_blocks": [
    {
      "id": "NW-CHATCOMPOSER-THEME-001",
      "section": "2",
      "owner_decision": true,
      "summary": "The public chat-composer target is on the outer frame while elevation and the flat border paint on the inner body; the compatible target shape and name remain undecided.",
      "public_context": "https://github.com/facebook/astryx/issues/5556"
    },
    {
      "id": "NW-CHATCOMPOSER-API-001",
      "section": "3",
      "owner_decision": true,
      "summary": "BaseProps ownership is split: xstyle reaches the body while ref, neutral DOM props/events, className, and style reach the outer frame. Choosing one owner changes released behavior."
    }
  ],
  "unscored_owner_decisions": [
    {
      "id": "NW-CHATCOMPOSER-GAP-001",
      "summary": "Decide whether spacious density intentionally aliases balanced or needs distinct design values."
    },
    {
      "id": "NW-CHATCOMPOSER-GAP-002",
      "summary": "Decide the invalid-state contract when isStopShown is true without onStop."
    }
  ],
  "local_verification": [
    {"name": "focused_vitest", "state": "passed", "detail": "104 tests passed across ChatComposer, ChatComposerInput, and ChatSendButton"},
    {"name": "core_typecheck", "state": "passed"},
    {"name": "core_docs_typecheck", "state": "passed"},
    {"name": "strict_lint", "state": "passed", "detail": "0 errors; 83 pre-existing warnings"},
    {"name": "knowledge_validation", "state": "passed"},
    {"name": "changeset_validation", "state": "passed"},
    {"name": "storybook_production_build", "state": "passed", "detail": "19 runnable ChatComposer stories; readiness story tagged play-fn"},
    {"name": "storybook_workspace_typecheck", "state": "baseline_environment_blocked", "detail": "workspace package build artifacts are absent; failures are unresolved package modules and predate this change"},
    {"name": "local_a11y_browser", "state": "not_measured", "detail": "Chromium could not launch in the local environment"},
    {"name": "local_rtl_browser", "state": "not_measured", "detail": "Chromium could not launch in the local environment"}
  ],
  "red_before_green": [
    {"id": "NW-CHATCOMPOSER-API-002", "red": "expected custom input draft; received captured composer draft", "green": "focused suite passed"},
    {"id": "NW-CHATCOMPOSER-A11Y-001", "red": "default textbox lacked aria-disabled", "green": "focused suite passed"},
    {"id": "NW-CHATCOMPOSER-A11Y-002", "red": "user-event rejected Stop because pointer-events was none", "green": "focused suite passed"}
  ],
  "required_gates": {
    "exact_head_ci": "pending",
    "exact_head_story_play": "pending",
    "official_accessibility": "pending",
    "official_visual": "pending",
    "independent_manual_review": "pending"
  },
  "eligibility": false,
  "eligibility_mode": "manual_review_only",
  "ledger_update_allowed": false,
  "reason_codes": [
    "OPEN_OWNER_DECISION_BLOCKS",
    "EXACT_HEAD_CI_PENDING",
    "EXACT_HEAD_BROWSER_EVIDENCE_PENDING",
    "INDEPENDENT_REVIEW_PENDING"
  ]
}

@vercel

vercel Bot commented Sep 20, 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 Sep 20, 2026 5:07pm UTC

Request Review

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

astracat-bot Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
⏳ Waiting for review (for maintainers only) Sep 21, 2026, 8:34 AM UTC

@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Sep 20, 2026
github-actions Bot added a commit that referenced this pull request Sep 20, 2026
@github-actions

github-actions Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.8KB 1.2KB

Accessibility Audit

Status: 36 accessibility violation(s) found — 2 critical, 34 serious.

Button pattern - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/18 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
ChatComposer - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/19 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
ChatComposerInput - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/14 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
ChatReasoning - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 4/5 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
ChatToolCalls - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 10/11 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Checkbox pattern - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/33 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
CheckboxList - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 4/17 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
ClickableCard - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/5 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
CodeEditor - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 3/7 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
CodeEditorPerf - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/2 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
CodeEditorTheme - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 13/14 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
CodeTheme - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 14/16 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
DateRangeInput - 1 issue(s)
  • 🔴 critical: Ensure an element's role supports its ARIA attributes
    • Rule: aria-allowed-attr · Affects 1/21 stories · Learn more
    • WCAG: 4.1.2 (Level A)
FileInput - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 3/15 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
GridMasonry - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/3 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Heading - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/16 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Icon - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/18 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
LogStream - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/3 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
MediaTheme Auto - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/5 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
PowerSearch - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/26 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
ProgressBar - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/18 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Radio group pattern - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 3/26 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
RadioList - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 3/14 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
RichTextEditor - 2 issue(s)
  • 🟠 serious: Ensure every ARIA input field has an accessible name
    • Rule: aria-input-field-name · Affects 2/18 stories · Learn more
    • WCAG: 4.1.2 (Level A)
  • 🔴 critical: Ensure every form element has a label
    • Rule: label · Affects 1/18 stories · Learn more
    • WCAG: 4.1.2 (Level A)
SelectableCard - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/4 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Stepper - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/30 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
TableGroupedRows - 1 issue(s)
  • 🟠 serious: Ensure ARIA attributes are used as described in the specification of the element's role
    • Rule: aria-conditional-attr · Affects 3/3 stories · Learn more
    • WCAG: 4.1.2 (Level A)
TableTree - 1 issue(s)
  • 🟠 serious: Ensure ARIA attributes are used as described in the specification of the element's role
    • Rule: aria-conditional-attr · Affects 8/9 stories · Learn more
    • WCAG: 4.1.2 (Level A)
Text - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/23 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Theme - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/5 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
PopArt - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 3/6 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Thumbnail - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/12 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Timestamp - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 1/20 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Token - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/10 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
Tokenizer - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/24 stories · Learn more
    • WCAG: 1.4.3 (Level AA)

Visual Regression

Status: No visual change across 2 compared shot(s).


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

github-actions Bot added a commit that referenced this pull request Sep 20, 2026
@cixzhang
cixzhang merged commit 6298680 into meta:main Sep 21, 2026
33 checks passed
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).
@github-actions
github-actions Bot deleted the night-watch-component-audit/ChatComposer/2026-09-20 branch November 8, 2026 12:51

This branch was successfully deployed

1 active deployment
Preview — df65bfff Deployed Sep 20, 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. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant