Repository navigation
Conversation
…s readers A doc whose props live only on its `components` entries has no top-level prop table, so an overlay's top-level `props` or `propDescriptions` match nothing and the overlay drops that text. A new CLI test fails on any Core or Lab doc that places translated prop text there. ComplexSelector, Outline and TreeList kept their dense prop text at the overlay's top level. It now sits on each overlay's component entry: - ComplexSelector: 23 descriptions move to a new component entry. The `accessibility` key named no prop; its text is already in the dense description, so it is removed. - Outline: the component entry takes the top-level text, which matches the English for density, offset, scrollContainerRef and hasScrollOnClick more closely than the older entry text. - TreeList: the component entry gains animatedLayout; the rest was the same. MobileNav has the same fault and is fixed in its own pull request, so this test passes once that one lands.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 8c86bd7 |
PR Analysis Report
Generated by PR Enrichment workflow | View current CI run |
There was a problem hiding this comment.
Requesting changes: the dense-docs move checks out, but this head cannot merge on its own.
- The new test
packages/cli/test/core-doc-translation-placement.test.mjsfails at this head becausepackages/core/src/MobileNav/MobileNav.doc.mjsstill keeps itsdocsZhanddocsDenseprop text at the top level, so rebase ontomainonce #11621 merges (the test passes with that pull request'sMobileNav.doc.mjs) or move MobileNav's text here. - The title says dense prop text in docs with only component entries reaches readers, but MobileNav still shows English at this head, so either land after #11621 or name the three docs in the title.
- Miss: the description lists the docsite's dense view among the places readers gain the dense text, but the docsite loads only each component doc's English
docsexport (apps/docsite/scripts/generate-data.mjs:688), so drop it from the user impact or name the view that reads the dense text.
The moved text for ComplexSelector, Outline and TreeList reaches dense readers with nothing lost, and the public API is unchanged. As a follow-up, the guard could run each doc through the overlay itself, since it checks only where the text sits, not that the overlay applies it.
Claims and files checked
Review mode: same-head; reason: none
- Changeset: the three docs now show their own short prop descriptions. Verified with the dense component read before and after.
- Changeset: the text sat where the dense overlay never reads it. Verified in
overlays.mjs:74. - Changeset: dense readers saw English for those props, or an older short version for four
Outlineprops. Verified; the default component read shows the English first sentence and the props read shows it whole. - Description: top-level overlay
propsorpropDescriptionsmatch nothing in a doc with only component entries, and docs with top-level props such asAvatarandSegmentedControlare unaffected. Verified. - Description: the new test covers every Core and Lab doc with components and no top-level props, for both overlays. Verified in the test source.
- Description: the 23
ComplexSelectordescriptions move unchanged, and the non-prop accessibility text is already in the dense description. Verified. - Description:
Outline's four props take wording closer to the English, andTreeListgainsanimatedLayoutwhile its other five already matched. Verified. - Description: no dense text is lost and no prop falls back to English. Verified through the real overlay on base and head.
- Description: the test fails on
mainnaming four docs. Verified. - Description: at this head only
MobileNavremains, and with #11621's file the test passes. Verified; this is the blocking finding. - Description: the related doc suites pass. Verified with 348 tests in 16 files; the stated 432 counts a wider selection.
- Description: dense readers include the docsite's dense view. False: the docsite reads only each doc's English text, so it does not change (blocking).
- Description: the
TransferListstale keys and the integration validator's skip are out of scope. Verified. - File
.changeset/dense-docs-component-prop-text.md: clear. - File
packages/cli/test/core-doc-translation-placement.test.mjs: fails at this head (blocking). - File
packages/core/src/ComplexSelector/ComplexSelector.doc.mjs: clear. - File
packages/core/src/Outline/Outline.doc.mjs: clear. - File
packages/core/src/TreeList/TreeList.doc.mjs: clear; the rest of the file is a formatting-only change.
A clean merge onto current main; no conflicts.
There was a problem hiding this comment.
Requesting changes: the dense-docs move for ComplexSelector, Outline and TreeList checks out, but this head still cannot merge on its own.
- The new test
packages/cli/test/core-doc-translation-placement.test.mjsstill fails at this head becausepackages/core/src/MobileNav/MobileNav.doc.mjskeeps itsdocsZhanddocsDenseprop text at the top level, so mergemainagain once #11621 lands (the test passes with that pull request'sMobileNav.doc.mjs) or move MobileNav's text here. - The title says dense prop text in docs with only component entries reaches readers, but MobileNav still shows English at this head, so either land after #11621 or name the three docs in the title.
- Miss: the description lists the docsite's dense view among the places readers gain the dense text, but the docsite loads only each component doc's English
docsexport (apps/docsite/scripts/generate-data.mjs:688), so drop it from the user impact or name the view that reads the dense text.
The latest merge of main changes nothing in this pull request's own files, and the public API is unchanged. As a follow-up, the guard could run each doc through the overlay itself, since it checks only where the text sits, not that the overlay applies it.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (1): "Whatever the scope, these are computed over the whole pull request at the issued head" (incremental re-review scope). Result: checked: all five changed files, the governing architecture records and the full test, overlay and API runs at this head, no finding.
- Changeset: the three docs now show their own short prop descriptions. Verified with the dense component read before and after.
- Changeset: the text sat where the dense overlay never reads it. Verified in
overlays.mjs:74. - Changeset: dense readers saw the full English text for those props, or an older short version for four
Outlineprops. Verified; exactly those fourOutlinevalues change. - Description: top-level overlay text matches nothing in a doc with only component entries, while docs with their own top-level props such as
AvatarandSegmentedControlare unaffected. Verified; their top-level dense text applies 12 of 12 and 8 of 8. - Description: the new test covers every Core and Lab doc with components and no top-level props, for both overlays. Verified in the test source.
- Description: the 23
ComplexSelectordescriptions move unchanged, and the non-prop accessibility text is already in the dense description. Verified. - Description:
Outline's four props take wording closer to the English, andTreeListgainsanimatedLayoutwhile its other five already matched. Verified. - Description: no dense text is lost and no prop falls back to English. Verified through the real overlay on base and head.
- Description: the test fails on
mainnamingComplexSelector,MobileNav(both overlays),OutlineandTreeList. Verified on the base. - Description: at this head only
MobileNavremains, and with #11621's file the test passes. Verified; this is the blocking finding. - Description: the related doc suites pass. Verified with 375 tests in 18 files; the stated 432 counts a wider selection.
- Description: dense readers include the docsite's dense view. False: the docsite reads only each doc's English text, so it does not change (blocking).
- Description: the
TransferListstale keys and the integration validator's skip are out of scope. Verified;TransferList'sxstyle,classNameandstyledense keys name no prop. - File
.changeset/dense-docs-component-prop-text.md: clear. - File
packages/cli/test/core-doc-translation-placement.test.mjs: fails at this head (blocking). - File
packages/core/src/ComplexSelector/ComplexSelector.doc.mjs: clear. - File
packages/core/src/Outline/Outline.doc.mjs: clear. - File
packages/core/src/TreeList/TreeList.doc.mjs: clear; the rest of the file is a formatting-only change.
# Conflicts: # packages/core/src/ComplexSelector/ComplexSelector.doc.mjs
|
/approve-spec ebbe7b9 |
There was a problem hiding this comment.
Requesting changes: the dense-docs move for ComplexSelector, Outline and TreeList works and the new test passes at this head, but the latest merge of main brought back a key the description says is removed.
packages/core/src/ComplexSelector/ComplexSelector.doc.mjs:430-431puts theaccessibilitykey back into the denseComplexSelectorcomponent entry, where it names no prop, so the overlay drops it, the CLI's own overlay-key check reports it asunknown_translated_prop, and the description's "so it is removed" no longer holds: delete the two lines and narrow the maintainer line to the top-level placement the new test checks.
The public API is unchanged. As a follow-up, running the CLI's componentDocProblems over Core and Lab docs in the same test would also catch keys that name no prop, once TransferList's three stale keys are fixed.
Claims and files checked
Review mode: same-head; reason: none
- changed rules (0): none
- Changeset: the three docs now show their own short prop descriptions. Verified with the dense component read on base and head.
- Changeset: the text sat where the dense overlay never reads it. Verified: the overlay applies top-level prop text only to a top-level prop table.
- Changeset: dense readers saw English for those props, or an older short version for four
Outlineprops. Verified; the default dense read showed English first sentences, and the props view the whole text. - Description: one guard test plus three docs moved to where the overlay reads. Verified.
- Description: dense readers of the three docs now see the dense text, and the docsite, which reads only the English export, is unchanged. Verified.
- Description: a doc that puts translated prop text where no reader gets it now fails a test. False as stated: the test checks only top-level placement and passes with the re-added
accessibilitykey (part of the blocking finding). - Description: docs whose parent has its own top-level props, such as
AvatarandSegmentedControl, are unaffected. Verified: both keep a top-level prop table. - Description: the new test covers every Core and Lab doc with components and no top-level props, for both overlays. Verified in the test source.
- Description: the 23
ComplexSelectordense descriptions move to a new component entry with a dense component description. Verified. - Description: the
accessibilitykey names no prop and its point is already in the dense description. Verified. - Description: so the
accessibilitykey is removed. False: it is back at lines 430-431 (blocking). - Description:
Outline's four props take wording closer to the English, andTreeListgainsanimatedLayoutwhile its other five already matched. Verified. - Description: no dense text is lost and no prop falls back to English. Verified through the real overlay on base and head.
- Description: the test fails before the fix, naming the affected docs. Verified on the current base, where it names
ComplexSelector,OutlineandTreeList. - Description: after merging
main, the test passes at this head. Verified. - Description: the CLI node test project and the related doc suites pass. Not rerun in this review.
- Description:
TransferList's three stale dense keys and the integration check's blind spot are left to separate changes. Verified: both exist and are untouched. - File
.changeset/dense-docs-component-prop-text.md: clear. - File
packages/cli/test/core-doc-translation-placement.test.mjs: clear; it passes at this head. - File
packages/core/src/ComplexSelector/ComplexSelector.doc.mjs: re-addedaccessibilitykey (blocking). - File
packages/core/src/Outline/Outline.doc.mjs: clear. - File
packages/core/src/TreeList/TreeList.doc.mjs: clear; the rest of the file is a formatting-only change.
… prop The merge of main put the dense accessibility key back into the dense ComplexSelector component entry. It names no prop, so the overlay drops it and the CLI's overlay check reports it as an unknown translated prop. Its point is already in the dense component description.
|
/approve-spec 19af958 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this draft head yet, and runs once the pull request is marked ready for review.
The dense prop text for ComplexSelector, Outline and TreeList now reaches astryx component --dense readers with nothing lost, the stray accessibility key is gone, the new test fails without the fix and passes here, and the public API is unchanged. As a follow-up, running the CLI's componentDocProblems over Core and Lab docs in the same test would also catch keys that name no prop, once the existing displayName, PowerSearch and TransferList findings are fixed.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
- Changeset: the dense docs of
ComplexSelector,OutlineandTreeListnow show their own short prop descriptions. Verified with the dense component reads on base and head. - Changeset: the text sat where the dense overlay never reads it. Verified: the overlay applies top-level prop text only to a top-level prop table, and these docs have none.
- Changeset: dense readers saw the full English text for those props, or an older short version for four
Outlineprops. Verified:ComplexSelectorshowed English for every prop andTreeListforanimatedLayout; exactly fourOutlinevalues change. - Description: the fix is one guard test plus three docs moved to where the overlay reads. Verified.
- Description: dense readers of the three docs now see the dense text, while the docsite, which reads only the English export, is unchanged. Verified: the English and Chinese exports evaluate identically on base and head.
- Description: a doc with only component entries that keeps translated or dense prop text at the top level now fails a test. Verified: the test fails on the base naming the three docs.
- Description: the overlay lays top-level prop text over top-level props only, so such a doc drops it, while docs with their own top-level props such as
AvatarandSegmentedControlare unaffected. Verified: both keep a top-level prop table. - Description: the new test covers every Core and Lab doc with component entries and no top-level props, for both overlays. Verified in the test source.
- Description: the 23
ComplexSelectordense descriptions move to a new component entry with a dense component description. Verified; the text is unchanged. - Description: the
accessibilitykey named no prop, its point is already in the dense description, and it is removed. Verified at this head. - Description:
Outline's four props take the fuller wording, closer to the English and keeping every point of the older text. Verified. - Description:
TreeListgainsanimatedLayoutand its other five entries were already the same. Verified. - Description: no dense text is lost and no prop that showed dense text before shows English after. Verified through the real overlay on base and head.
- Description: the test failed on
mainbefore theMobileNavfix, namingComplexSelector,MobileNav(both overlays),OutlineandTreeList. Verified:MobileNavkept top-level text in both overlays before that fix, and the other three fail on the base. - Description: with
mainmerged after theMobileNavfix, the test passes at this head. Verified, and it also passes merged with the current tip ofmain. - Description: the CLI's node tests and the related doc suites pass. Verified: at this head the CLI's node tests pass apart from four environment-dependent tests (a git file listing, the system temp folder, process titles) that fail the same way without this change; the stated count covers a different selection.
- Description:
TransferList's three stale dense keys and the integration check's skip of this case are left to separate changes. Verified: both exist and are untouched. - File
.changeset/dense-docs-component-prop-text.md: clear. - File
packages/cli/test/core-doc-translation-placement.test.mjs: clear; fails on the base, passes at this head. - File
packages/core/src/ComplexSelector/ComplexSelector.doc.mjs: clear; the non-propaccessibilitykey is gone. - File
packages/core/src/Outline/Outline.doc.mjs: clear. - File
packages/core/src/TreeList/TreeList.doc.mjs: clear; the rest of the file is a formatting-only change.
Primary intent
Fix: translated prop text that the docs pipeline silently drops. One guard test, plus three docs moved to the place the overlay reads.
User impact
astryx component <Name> --dense; the docsite reads only each doc's Englishdocsexport, so it is unchanged) forComplexSelector,OutlineandTreeList:Outlineprops.Cause
A doc whose props live only on its
componentsentries has no top-level prop table. The overlay (foundation/doc-compiler/overlays.mjs) lays a translation's top-levelpropsorpropDescriptionsover the doc's top-level props only, so in such a doc that text matches nothing and is dropped. A doc whose parent has its own top-level props (for exampleAvatar,SegmentedControl) is not affected: its top-level text is read.Change
packages/cli/test/core-doc-translation-placement.test.mjs: for every Core and Lab.doc.mjswithcomponentsand no top-level props, thedocsZhanddocsDenseoverlays must have no top-levelpropsorpropDescriptions.ComplexSelector: the 23 dense prop descriptions move to a newcomponentsentry, with a dense description of the component. Theaccessibilitykey named no prop; its text ("custom content must provide its own accessible structure; use focus hooks; evaluate against WCAG 2.2") is already in the dense description, so it is removed.Outline: the component entry takes the top-level text. Fordensity,offset,scrollContainerRefandhasScrollOnClickthat text matches the English more closely than the older entry text, which it contains.TreeList: the component entry gainsanimatedLayout. The other five were the same.No text lost: run through the real overlay, every top-level dense description on
main(except the non-propaccessibilitykey) is shown after the change, and no prop that showed dense text before shows English after.Evidence
main, namingComplexSelector,MobileNav(both overlays),OutlineandTreeList.MobileNav's text the same way), and the test passes at this head. Thenodeproject's CLI tests pass 589/589 (1 expected fail, 2 skipped).core-prop-docs,core-doc-types,core-doc-quality, the doc compiler, and thecomponentAPI.stored-docspassed on its own after one timeout under machine load.Not in this pull request
TransferList(Lab): its dense overlay has three top-level keys (xstyle,className,style) for props the EnglishTransferListSelectordoc does not list. That is a stale-key fault, not a placement fault, so it is reported separately.doctor integration validate'sunknown_translated_propskips this case for third-party docs. Reporting it there is a new finding, which ships first as anextnote (architecture:cli-surface), so it is a separate change.Owner and land path