Skip to content

Commit 4595ece

Browse files
cixzhangfreddymeta
andauthored
test(rtl): re-verify the Chat parts' verified-N/A receipts; ChatToolCalls and ChatComposerInput leave the registry (#13983)
* test(rtl): re-verify the Chat parts' verified-N/A receipts; ChatToolCalls leaves the registry Continues #5885: eleven Chat declarations are re-checked against current source and their receipts refreshed. ChatToolCalls now sets a cut label's direction from its own text, so its N/A reason no longer holds; it leaves the registry and gets a curated target of its own. Co-authored-by: freddymeta <170298698+freddymeta@users.noreply.github.com> * test(rtl): ChatComposerInput leaves the registry too; the Chat records name the coverage gaps ChatComposerInput's trigger menu cuts its item labels with cutText, the same right-to-left behavior that moves ChatToolCalls out. Both component records stop citing the registry and name the gap. Co-authored-by: freddymeta <170298698+freddymeta@users.noreply.github.com>
1 parent 94ad547 commit 4595ece

3 files changed

Lines changed: 30 additions & 49 deletions

File tree

‎apps/storybook/rtl-audit/verified-not-applicable.json‎

Lines changed: 28 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -248,105 +248,87 @@
248248
"reason": "ChatComposerTokenElement is a symmetric inline-flex serialization wrapper. Structured presentation is delegated to Badge and custom presentation is caller-owned; the wrapper owns no directional glyph, inline-axis placement, ordering, scrolling, dragging, overlay, or keyboard behavior.",
249249
"evidence": {
250250
"apps/storybook/stories/ChatComposerTokenElement.stories.tsx": "sha256:acb4f39a6a542d05ab32ab7173fb599b45d1ee44bd7a40a8b4005a13e00054a8",
251-
"packages/core/src/Chat/ChatComposerInput.tsx": "sha256:c2d954b31de10589e6a2878624a6d9a28ad2470a439c384b12fae28cf07d4cd5",
252-
"packages/core/src/Chat/index.ts": "sha256:0f4a9d3ee08b4fcd43698ad017460aad109c500d2411913f509506d2a27387bb"
253-
}
254-
},
255-
{
256-
"component": "core/ChatComposerInput",
257-
"reason": "ChatComposerInput is a full-width block-flow editing surface whose placeholder uses logical inline insets and whose text and caret direction follow native bidirectional content. It owns no left/right glyph, physical inline positioning, inline reordering, horizontal scroll or drag behavior, side-placed overlay, or horizontal keyboard action; trigger-menu presentation is delegated to the Typeahead behavior owner.",
258-
"evidence": {
259-
"apps/storybook/stories/ChatComposerInput.stories.tsx": "sha256:241cbd2c6517eb59710ffe9ac5eeca15f025b6bb9aeaa89bca97238c407b1e8c",
260-
"packages/core/src/Chat/ChatComposerInput.tsx": "sha256:19a9ed5be57e083a270f20d0348d2719c493d94fc270169ce91b43fe0bab13d4",
261-
"packages/core/src/Chat/index.ts": "sha256:1e1883f9baa0b9661fefe855a7df6db2a0d0e69118734b3d309543a6c5518b46"
251+
"packages/core/src/Chat/ChatComposerInput.tsx": "sha256:aae2cdbd57a365bf750bf8bdfeefb3c70c217af26c7d7d775fb61730679ad8f3",
252+
"packages/core/src/Chat/index.ts": "sha256:8cb12e12ffc86807db83fb3ce78573a06b4d0166d0b6aad87ef7a74eb1ec5019"
262253
}
263254
},
264255
{
265256
"component": "core/ChatComposerDrawer",
266257
"reason": "ChatComposerDrawer uses normal block and flex flow with logical inline spacing and symmetric top corners. Its collapse handle is horizontal and centered, the disclosure action moves only on the block axis, and its count, attachment, vertical expand/collapse, and caller-owned child content add no component-owned left/right glyph, physical inline positioning, order, horizontal scrolling or dragging, overlay placement, or directional keyboard behavior.",
267258
"evidence": {
268-
"apps/storybook/stories/ChatComposerDrawer.stories.tsx": "sha256:115ecc61625c065ffcb02d35c7aeb2a399c8ba1a30a8cd637bdd4adf58185b80",
269-
"packages/core/src/Chat/ChatComposerDrawer.tsx": "sha256:a8d11adc40decad25688b33a16b562e168c831933ec4387084c00530fcb94600",
270-
"packages/core/src/Chat/index.ts": "sha256:1e1883f9baa0b9661fefe855a7df6db2a0d0e69118734b3d309543a6c5518b46"
259+
"apps/storybook/stories/ChatComposerDrawer.stories.tsx": "sha256:b1a8fed4ce16d43d7b300662cda6736069e1cf59ee9c7f6b85157ea175537aae",
260+
"packages/core/src/Chat/ChatComposerDrawer.tsx": "sha256:387d820483a4a8387fe7923564d1784bd0f430928aae682ea39f79019181534d",
261+
"packages/core/src/Chat/index.ts": "sha256:8cb12e12ffc86807db83fb3ce78573a06b4d0166d0b6aad87ef7a74eb1ec5019"
271262
}
272263
},
273264
{
274265
"component": "core/ChatComposer",
275266
"reason": "ChatComposer arranges caller-owned slots in normal flex and block flow using logical inline properties. Its owned send, stop, status, attachment, microphone, and mention glyphs are direction-neutral; it has no component-owned left/right glyph, physical inline positioning, horizontal scroll or drag behavior, overlay placement, or horizontal keyboard interaction to mirror. Text editing and bidirectional content remain native to the default contenteditable surface or the caller-supplied custom input.",
276267
"evidence": {
277-
"apps/storybook/stories/ChatComposer.stories.tsx": "sha256:355778a847934f9af02adf3b42846089ade03ee37d935c2a30d32fba3e3cd291",
278-
"packages/core/src/Chat/ChatComposer.tsx": "sha256:aa955ff0f59901285eadf7de209f78530d0f8deb0ef162f6baa4e9faa3661880",
279-
"packages/core/src/Chat/ChatComposerInput.tsx": "sha256:19a9ed5be57e083a270f20d0348d2719c493d94fc270169ce91b43fe0bab13d4",
280-
"packages/core/src/Chat/ChatSendButton.tsx": "sha256:e966e7fe3b0fc24678a0db4f230b903f47f66b133baf9cad8e3d0ccfa9517612",
281-
"packages/core/src/Chat/index.ts": "sha256:1e1883f9baa0b9661fefe855a7df6db2a0d0e69118734b3d309543a6c5518b46"
268+
"apps/storybook/stories/ChatComposer.stories.tsx": "sha256:9b84b6d31f3706a1a8b902f93640eadd1bc674709b472ba2d5297cc53384c9ba",
269+
"packages/core/src/Chat/ChatComposer.tsx": "sha256:b1f4af19bd814e8b93df02392562c5ab96a2a4aab018ed23edbcec311cda0e7c",
270+
"packages/core/src/Chat/ChatComposerInput.tsx": "sha256:aae2cdbd57a365bf750bf8bdfeefb3c70c217af26c7d7d775fb61730679ad8f3",
271+
"packages/core/src/Chat/ChatSendButton.tsx": "sha256:22fd7456abaf42b82093b47be5f413394e43cd468603b0da206abb3bfe92bc16",
272+
"packages/core/src/Chat/index.ts": "sha256:8cb12e12ffc86807db83fb3ce78573a06b4d0166d0b6aad87ef7a74eb1ec5019"
282273
}
283274
},
284275
{
285276
"component": "core/ChatSendButton",
286277
"reason": "ChatSendButton composes one centered square Button and adds no inline-axis layout or positioning. Its upward send arrow and stop mark both express block-axis actions and must remain unchanged in RTL; the shared Button uses logical padding and centered icon-only geometry. The component owns no left/right glyph, inline ordering, horizontal scrolling or dragging, side-placed overlay, or directional keyboard behavior. The dedicated small-size audit stories are excluded only from stable visual baselines: they remain routed to the ChatSendButton a11y owner, while this source-hashed N/A record and the browser evidence's LTR/RTL coarse-hit matrix cover their direction-neutral geometry.",
287278
"evidence": {
288-
"apps/storybook/stories/ChatComposer.stories.tsx": "sha256:355778a847934f9af02adf3b42846089ade03ee37d935c2a30d32fba3e3cd291",
279+
"apps/storybook/stories/ChatComposer.stories.tsx": "sha256:9b84b6d31f3706a1a8b902f93640eadd1bc674709b472ba2d5297cc53384c9ba",
289280
"apps/storybook/stories/ChatSendButtonAudit.stories.tsx": "sha256:8a72613f67ffebdb1e5624b3acc53ed5bb2a752457a312664ea5b8d834020862",
290-
"packages/core/src/Chat/ChatSendButton.tsx": "sha256:e966e7fe3b0fc24678a0db4f230b903f47f66b133baf9cad8e3d0ccfa9517612",
291-
"packages/core/src/Chat/index.ts": "sha256:0f4a9d3ee08b4fcd43698ad017460aad109c500d2411913f509506d2a27387bb"
281+
"packages/core/src/Chat/ChatSendButton.tsx": "sha256:22fd7456abaf42b82093b47be5f413394e43cd468603b0da206abb3bfe92bc16",
282+
"packages/core/src/Chat/index.ts": "sha256:8cb12e12ffc86807db83fb3ce78573a06b4d0166d0b6aad87ef7a74eb1ec5019"
292283
}
293284
},
294285
{
295286
"component": "core/ChatDictationButton",
296287
"reason": "ChatDictationButton is a symmetric inline-flex icon control. Its microphone glyph and five centered equalizer bars are direction-neutral; the component owns no inline-axis placement, ordering, directional glyph, horizontal scrolling or dragging, overlay placement, or horizontal keyboard behavior.",
297288
"evidence": {
298289
"apps/storybook/stories/ChatDictation.stories.tsx": "sha256:64429848dec3034113095f53ac860be3dddcc4b1dc0e6318d380bffac994366e",
299-
"packages/core/src/Chat/ChatDictationButton.tsx": "sha256:bad96c58a64ed9463c428ab7ef53a8c41794bb685eb34b4b333c6cad5c8993c2",
300-
"packages/core/src/Chat/index.ts": "sha256:0f4a9d3ee08b4fcd43698ad017460aad109c500d2411913f509506d2a27387bb"
290+
"packages/core/src/Chat/ChatDictationButton.tsx": "sha256:b757748f756fd0b482409df26d9f20986c6e5655d0be9298f3a7b8e5d29904bc",
291+
"packages/core/src/Chat/index.ts": "sha256:8cb12e12ffc86807db83fb3ce78573a06b4d0166d0b6aad87ef7a74eb1ec5019"
301292
}
302293
},
303294
{
304295
"component": "core/ChatLayout",
305296
"reason": "ChatLayout is a block-flow shell: a flex column whose message area centers with marginInline auto and whose dock spans the full inline width using insetInlineStart/insetInlineEnd and logical padding. It scrolls on the block axis only (overflowY auto with overflowX hidden), owns no directional glyph, no physical inline offset or transform, no inline reordering, no horizontal scrolling or dragging, no side-placed overlay, and no horizontal keyboard behavior. Density selects block-axis blur height and symmetric inline padding. Message, composer, and scroll-affordance direction remain with their own owners.",
306297
"evidence": {
307-
"apps/storybook/stories/ChatLayout.stories.tsx": "sha256:aa1ebf3f4c7d97d41e0029a0a25d7d40f45083fdbb90c2388f4da7bc21e050e8",
308-
"packages/core/src/Chat/ChatLayout.tsx": "sha256:bc5fbef0379c622adaf46dc7119d327100eb40c2440664b3bc288bab758b116b",
309-
"packages/core/src/Chat/index.ts": "sha256:0f4a9d3ee08b4fcd43698ad017460aad109c500d2411913f509506d2a27387bb"
298+
"apps/storybook/stories/ChatLayout.stories.tsx": "sha256:14ce68998f9120d3f33ddec5632b772b3421df8713b7eaa5da014fac02c5b778",
299+
"packages/core/src/Chat/ChatLayout.tsx": "sha256:f9ac56af9ae4478ccc3b414db907f8e48149cba382660e33dca0305a725c8d11",
300+
"packages/core/src/Chat/index.ts": "sha256:8cb12e12ffc86807db83fb3ce78573a06b4d0166d0b6aad87ef7a74eb1ec5019"
310301
}
311302
},
312303
{
313304
"component": "core/ChatLayoutScrollButton",
314305
"reason": "ChatLayoutScrollButton is a centered pill on the block axis. Its only glyph is the block-axis chevronDown, which points along the axis RTL does not mirror, so mirroring it would be wrong rather than missing. The wrapper centers with justifyContent center, the pill sizes from logical maxWidth and the element-size token, and the labelled form uses logical paddingInline/paddingInlineEnd so the icon leads and the text trails in both directions. It owns no left/right glyph, physical inline positioning, inline ordering, horizontal scrolling or dragging, overlay placement, or horizontal keyboard behavior.",
315306
"evidence": {
316-
"apps/storybook/stories/ChatLayout.stories.tsx": "sha256:aa1ebf3f4c7d97d41e0029a0a25d7d40f45083fdbb90c2388f4da7bc21e050e8",
317-
"packages/core/src/Chat/ChatLayoutScrollButton.tsx": "sha256:cb604bf1b1df34dee472865372eb0bec876e6cb733029e3b10f6da97dd33fb2c",
318-
"packages/core/src/Chat/index.ts": "sha256:0f4a9d3ee08b4fcd43698ad017460aad109c500d2411913f509506d2a27387bb"
307+
"apps/storybook/stories/ChatLayout.stories.tsx": "sha256:14ce68998f9120d3f33ddec5632b772b3421df8713b7eaa5da014fac02c5b778",
308+
"packages/core/src/Chat/ChatLayoutScrollButton.tsx": "sha256:33f5e23a1270bc560a035b90c262d9b6d4ed4cd042424955bfae029b53161411",
309+
"packages/core/src/Chat/index.ts": "sha256:8cb12e12ffc86807db83fb3ce78573a06b4d0166d0b6aad87ef7a74eb1ec5019"
319310
}
320311
},
321312
{
322313
"component": "core/ChatMessageList",
323314
"reason": "ChatMessageList owns a vertical flex transcript, symmetric logical padding and gap, a block-axis top loading sentinel, and a block-axis spacer. It has no directional glyph, inline-side placement, reordered controls, horizontal scrolling or dragging, side-placed overlay, or horizontal keyboard behavior. Message sender alignment and content belong to its child components; the list only supplies density context. The five independently owned fixtures exercise list states without adding an inline-axis signal for the RTL detectors.",
324315
"evidence": {
325316
"apps/storybook/stories/ChatMessageList.stories.tsx": "sha256:a5c49da2307d820da0720c00d4780f22d4039579d649905b2b1039a8f2e12d35",
326-
"packages/core/src/Chat/ChatMessageList.tsx": "sha256:9d7dc59f2fa33cc13175f1093b509aea4ff54a76b9ef83d576d55f6c4d0bc541",
327-
"packages/core/src/Chat/index.ts": "sha256:0f4a9d3ee08b4fcd43698ad017460aad109c500d2411913f509506d2a27387bb"
317+
"packages/core/src/Chat/ChatMessageList.tsx": "sha256:dd3c9effc5b496aef8efccb6446dedf76b57d291a0cac9b45ed9347e1cead072",
318+
"packages/core/src/Chat/index.ts": "sha256:8cb12e12ffc86807db83fb3ce78573a06b4d0166d0b6aad87ef7a74eb1ec5019"
328319
}
329320
},
330321
{
331322
"component": "core/ChatMessageMetadata",
332323
"reason": "The metadata row owns no directional glyph, contextual directional separator, physical inline positioning, prev/next control order, horizontal scrolling, dragging, overlay, or arrow-key behavior. Sender-dependent row reversal uses CSS flex direction relative to the surrounding writing direction and is verified separately by matched LTR/RTL Chromium receipts. The RTL audit's D1, D2, D3, D5, and D6 detectors therefore have no applicable target for this component."
333324
},
334-
{
335-
"component": "core/ChatToolCalls",
336-
"reason": "ChatToolCalls uses logical inline spacing and source order. Its only component-owned chevrons rotate on the block axis to disclose vertically stacked content; status and wrench icons are non-directional. It owns no left/right glyph, physical inline positioning, directional reordering, horizontal scrolling or dragging, side-placed overlay, or horizontal keyboard behavior. Caller-supplied target, stats, and result-detail content retain their own direction contract.",
337-
"evidence": {
338-
"apps/storybook/stories/ChatToolCalls.stories.tsx": "sha256:36088a9a88ca7b3c23f5b0a840eec5e77b12cdaf83ba5f6d371ec6296cf722e5",
339-
"packages/core/src/Chat/ChatToolCalls.tsx": "sha256:43baec764e8a7d8f5d28b7ea6507c9e01d6e788436c2c34c904e6737a88e0a2b",
340-
"packages/core/src/Chat/index.ts": "sha256:0f4a9d3ee08b4fcd43698ad017460aad109c500d2411913f509506d2a27387bb"
341-
}
342-
},
343325
{
344326
"component": "core/ChatTokenizedText",
345327
"reason": "ChatTokenizedText projects caller-supplied text and inline token content in source reading order. Its root uses normal inline flow; its token wrapper is an inline flex box with no directional glyph, physical inline positioning, reordering, horizontal scrolling or dragging, side-placed overlay, or horizontal keyboard behavior. Structured token paint delegates to Badge and custom token content remains caller owned. The audit fixture covers plain, structured, custom, repeated, edge, empty-value, and narrow states without adding a component-owned RTL dimension.",
346328
"evidence": {
347329
"apps/storybook/stories/ChatTokenizedText.stories.tsx": "sha256:bc80df8aef59c05ca200129fd6709cd2f44e16f185003fe857afa90fdbfd9d9c",
348-
"packages/core/src/Chat/ChatTokenizedText.tsx": "sha256:239f9cd5e836fb618702f226d9a5e267ffab087c9751fca8f10a0f401c6721ac",
349-
"packages/core/src/Chat/index.ts": "sha256:0f4a9d3ee08b4fcd43698ad017460aad109c500d2411913f509506d2a27387bb"
330+
"packages/core/src/Chat/ChatTokenizedText.tsx": "sha256:eb0fad1c9a91681046d40d2fdbfc319129cb57d034a7b2b2e9d69c5ef21b8686",
331+
"packages/core/src/Chat/index.ts": "sha256:8cb12e12ffc86807db83fb3ce78573a06b4d0166d0b6aad87ef7a74eb1ec5019"
350332
}
351333
},
352334
{
@@ -355,9 +337,9 @@
355337
"evidence": {
356338
"apps/storybook/stories/ChatSystemMessage.stories.tsx": "sha256:ac979e4e63e32d5f6542f39c9f8cfeeab4636643db2513c987f84746bf79a4ee",
357339
"apps/storybook/stories/ChatSystemMessageAudit.stories.tsx": "sha256:54e81ad2fb8360c9d30ce8f6f33a8aa4fde8602d2ba2ab8774d03638ee8c0a82",
358-
"packages/core/src/Chat/ChatSystemMessage.tsx": "sha256:11273238c02e6b48292cb2444b1229e5a06eb08494d32696e88143b5ad2e1ca3",
359-
"packages/core/src/Chat/index.ts": "sha256:0f4a9d3ee08b4fcd43698ad017460aad109c500d2411913f509506d2a27387bb",
360-
"packages/core/src/Divider/Divider.tsx": "sha256:f302b5c9eecde40b486c09d49c71cb7dab158e2fcedcb38c0145671c45d9cf8d"
340+
"packages/core/src/Chat/ChatSystemMessage.tsx": "sha256:e5c3aeea59c060d0dc108707de1b90b2bc0d59ed88962b9c3c15b7ee0376907a",
341+
"packages/core/src/Chat/index.ts": "sha256:8cb12e12ffc86807db83fb3ce78573a06b4d0166d0b6aad87ef7a74eb1ec5019",
342+
"packages/core/src/Divider/Divider.tsx": "sha256:4c4146f543601bef5f628b545b98c3bdd1ba92aa0c144f3288c46c5aa0ea547d"
361343
}
362344
},
363345
{

‎docs/specs/components/Chat/ChatComposerInput.spec.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ verified_by:
1717
packages/core/src/Chat/__tests__/ChatComposerReturnKey.a11y.chromium.spec.ts,
1818
packages/core/src/Chat/__tests__/ChatComposerImeCaret.a11y.chromium.spec.ts,
1919
apps/storybook/stories/ChatComposerInput.stories.tsx,
20-
apps/storybook/rtl-audit/verified-not-applicable.json,
2120
]
2221
modules: []
2322
families: []
@@ -196,6 +195,7 @@ add a theming target or decide a new visual state.
196195
| FR9 | ref, target, package, and repository checks | ref; BaseProps; xstyle; className; style | Root ownership or a styling seam moves or disappears. | `audit:ChatComposerInput/api` |
197196
| FR17 | `ChatComposerInput.test.tsx` touch keyboard Return key suite (`send` by default, the set value, `send` inside ChatComposer's default input, Enter submits under every label); `ChatComposerInput.public.test.ts`, run by `pnpm typecheck`, for `EnterKeyHint` rejecting an arbitrary or unnarrowed string; `ChatComposerReturnKey.a11y.chromium.spec.ts` for the attribute on the editor a tap focuses | default; `enter`; inside ChatComposer; a phone viewport with touch emulation | A missing or wrong `enterkeyhint`, a label that stops Enter from submitting, or a type that accepts `string` fails. | `audit:ChatComposerInput/api` |
198197
| FR18 | `ChatComposerInput.test.tsx` "one Backspace after a token removes the token and its space" and "one Backspace on a token that starts the last line keeps that line for the caret"; `ChatComposerImeCaret.a11y.chromium.spec.ts` | after an inserted token, with no text after its space; a token that starts the last line | A token or its trailing space left after one Backspace, a line break added beyond the text before the token, or an emptied last line that loses its line, fails. | `audit:ChatComposerInput/interaction` |
198+
| RTL relation | Gap: no RTL audit target measures the trigger menu's cut item labels; the RTL report lists ChatComposerInput as a coverage gap | a cut Latin item label on an RTL page | — | `audit:ChatComposerInput/i18n-rtl` |
199199

200200
## Decision log
201201

0 commit comments

Comments
 (0)