Repository navigation
docs: remove em dashes from component and block doc prose - #4394
Merged
Merged
Conversation
Recast prose em dashes in nine .doc.mjs files as the appropriate punctuation (colon, semicolon, or sentence break) per the AI-slop prose rubric. Prose strings only; meaning preserved. Name/displayName Component - Variant labels, CJK prose, numeric ranges, and the -> arrow in the ChatComposer elevation description were left untouched. Files: Avatar/AvatarStatusDot, Chat/ChatComposer, Chat/ChatComposerInput, Table/useTableRowStatus, Thumbnail, TopNav/TopNavMegaMenuFeaturedCard, and the ChatComposerFlat, DateInputFormats, and IconButtonFloating block templates. Found during Night Watch doc review.
josephfarina
requested review from
cixzhang,
ejhammond and
imdreamrunner
as code owners
July 26, 2026 09:18
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsAvatar · View in Storybook
Chat · View in Storybook
Table · View in Storybook
Thumbnail · View in Storybook
TopNav · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: 4 accessibility violation(s) found — 4 serious. Avatar - 1 issue(s)
Chat - 1 issue(s)
Table - 1 issue(s)
Thumbnail - 1 issue(s)
Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
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).
AKnassa
added a commit
to AKnassa/astryx
that referenced
this pull request
Sep 26, 2026
) Follow-up to d3db49a. F1 narrowed echo recognition to the oldest pending emission, but the public prop docs still promised the old, absolute behavior ("echoes of onChange are ignored", and onChange as purely observational even alongside `value`). F1 (docs) - value/onChange now describe what the sync effect does: - `value` JSDoc and the en/zh/dense doc.mjs `value` entries: in-order echoes of onChange, even late ones, are skipped; any other value that differs from the editor content, including a coalesced or debounced commit, is applied as an override. A parent that passes `value` without committing every onChange may have an override equal to its oldest uncommitted emission read as an echo; force it with `key` or `handleRef.setValue`. - `onChange` JSDoc drops "the parent does not need to commit the value back"; it and the doc.mjs onChange entries now say to commit each emission when passing `value`, pointing at `value`. - File header, setValue JSDoc and the changeset say "in-order echo". The changeset gains one sentence stating the same limits. - en/dense prose has no em dashes (meta#4394). Two tests pin the documented behavior: - 'applies a coalesced commit that differs from the editor content as an override' (value='' -> 'a','ab','abc' -> value='ab' => 'ab'). With the pre-F1 indexOf matching restored it fails: expected 'abc' to be 'ab'. - 'lets setValue force an override equal to the oldest uncommitted emission': value='' is skipped as the documented residual, then handleRef.setValue('') clears the box. Docs-only change otherwise; no runtime code touched. Both tests pass at d3db49a as expected for a docs finding. F2 unchanged (setValue optional, [feat] + patch). F3 still waits on cixzhang (breaking or not). Checks: 7 Chat suites 154/154; core tsc exit 0; eslint and prettier clean; check-changesets, check-sync, check-knowledge pass; docPropLiterals + doc-loads 144/144.
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.
What
Recast prose em dashes in nine
.doc.mjsfiles as the right punctuation for each sentence (colon for a definition intro, semicolon between independent clauses, or a period for a full break), following check 17 of the Doc Reviewer rubric. Prose strings only, meaning preserved.Files:
packages/core/src/Avatar/AvatarStatusDot.doc.mjs(3)packages/core/src/Chat/ChatComposer.doc.mjs(2)packages/core/src/Chat/ChatComposerInput.doc.mjs(1)packages/core/src/Table/useTableRowStatus.doc.mjs(1)packages/core/src/Thumbnail/Thumbnail.doc.mjs(1)packages/core/src/TopNav/TopNavMegaMenuFeaturedCard.doc.mjs(1)packages/cli/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjs(1)packages/cli/templates/blocks/components/DateInput/DateInputFormats.doc.mjs(1)packages/cli/templates/blocks/components/IconButton/IconButtonFloating.doc.mjs(1)Out of scope (left as-is)
name/displayNameComponent - Variantconvention labels——)h1-h6,2-4,9 AM - 5 PM)->arrow in the ChatComposer elevation description (not a typographic slop tell)packages/cli/docs/*reference docs, which are already touched by open PR feat(cli): id-anchored, prose-only doc overlays — bulletproof overlay merge (#2182) #4117Validation
pnpm --filter @astryxdesign/core typecheck:docspassespnpm exec tsc --project packages/cli/tsconfig.template-docs.json --noEmitpassesnode .github/scripts/api-cli-parity-test.mjs --no-baseline: 330 pass, 0 failNight Watch — Doc Reviewer