Skip to content

[experimental] export: the dropped-text warning checks Core's docs, and text not drawn yet inside Core components that take children no longer warns - #12399

Closed
josephfarina wants to merge 5 commits into
mainfrom
josephfarina/rl-dropped-text
Closed

josephfarina wants to merge 5 commits into
mainfrom
josephfarina/rl-dropped-text

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

User impact

Now that a rendered file is the live page, the dropped-children warning (" did not render the text … it was given") raised false alarms for text the page shows only after an interaction: a default, collapsed Banner's body, or the headings of a hash-routed site's other views (14 warnings on one site). It also blamed the wrong component when the text sat inside another one (<Badge><Text>Finalized</Text></Badge> blamed Text, while Badge takes no children).

Problem and solution fit

  1. Why it occurs: the warning claimed the component takes the text through a prop, but never checked the component's props. It inferred the drop from the text's absence plus other text of the same function in the first paint, which an inactive view or a collapsed part also gives.
  2. Why it harms the task: a false warning sends an agent to fix a page that works, and a wrong name sends it to the wrong component.
  3. Why that matters: the render's warnings are what an agent acts on.

For a Core component, the render now reads the component's own docs, from the Core the page renders with, only when a text is missing. The innermost Core component around the text whose docs list props without children is named as the one that dropped it, and the warning points to astryx component <Name>. Text that the first paint does not show stops warning only when every component around it is a Core component whose docs list children: the text is taken but not drawn yet. A text inside a page's own component (by name, or as a member such as ui.Box) or another package's component keeps today's warning, unless a Core component whose docs list no children sits around it too, which is then named. A Core component reached through a namespace import (<core.Badge>) counts as unknown and keeps today's warning. The warning's code does not change.

Expected behavior and authority

astryx experimental export is experimental (spec:AST-017 FR27). A warning names a fact the render can check; this one now checks the component's documented props.

Smallest restoration

  • foundation/render/dropped-text.mjs: reads a component's documented props, once per component.
  • foundation/discovery/component-discovery.mjs: documentedEntry, beside familyMember and sharing its member lookup, gives the part of a doc that documents a name (the doc's top props, a family member's entry, or the entry a doc keeps its own props in).
  • foundation/render/page-worker.mjs: each recorded text carries the components around it (member names included), with their lines.
  • foundation/render/render-page.mjs: the warning uses that reading.
  • A changeset.

Evidence

  • api/render/render.test.mjs: a collapsed Banner's body does not warn; a Heading in an inactive view does not warn; <Badge><Text>Finalized</Text></Badge> names Badge on its own line; a ListItem that drops its text still warns, with the new text; a page's own StatCard, and a page's own ui.Box written as a member, that render only their title still warn for the <Text> they are given, as before. The first three fail on the base.
  • foundation/render/dropped-text.test.mjs: a component's own doc, a family doc, a doc that keeps its own props in its components entry (Item, Link), a page's own component and another package's component (no answer), one read per component.
  • api/render/render.test.mjs also checks that a text dropped in another file of the page names that file (on line 8 of parts.tsx), and a text in the page itself names none.
  • foundation/discovery/component-discovery.test.mjs: documentedEntry for each doc layout.
  • On a frozen set of 553 generated pages (429 render): 32 warnings become 31; the one false alarm is gone, and the Text-in-Badge drop now names Badge. Every one of the 413 pages with fixed data renders byte for byte as before.
  • A second run over 569 generated pages: no page changes its exit code or its round trip, and the HTML is the same apart from the pages that differ between two runs of main (time and random data).
  • Time: a page with no missing text renders in the same time (median 6,085 ms before, 6,045 ms after); a page with one adds 15 ms.

Scope

  • One defect is restored.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

Testing

  • pnpm exec vitest run --project node packages/cli/api/render packages/cli/foundation/render packages/cli/foundation/doc-compiler/doc-loads.test.mjs packages/cli/test/lazy-dependencies.test.mjs (render, dropped-text, doc-loads and lazy-dependencies pass).
  • Typecheck (strict, the JSON API, template docs); ESLint on the changed files.

preflight: pass b663d87 (env-only fails excused: setup-workspace fixture install, packed-gather-cache.records, handoff.e2e re-run pass)

@vercel

vercel Bot commented Nov 17, 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 Nov 19, 2026 4:11am UTC

Request Review

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

astracat-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 19, 2026, 4:14 AM UTC

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 5c2a5cd

Storybook · Sandbox · built from this PR's head

Current run: The current CI run concluded cancelled. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision for the warning's rule, and one fix is needed either way.

No current spec record says which missing texts the dropped-children warning of astryx experimental render reports or which component it names. Approval needs an engineering owner to provide or identify the governing spec for that rule (for example as a decision in docs/architecture/cli-surface.md), covering when text inside a component that documents children stays silent and which component the warning names; an engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

Blocking:

  • A component the page defines that drops a Core child no longer warns: <StatCard><Text>Revenue grew 12%</Text></StatCard> with function StatCard({title}) { return <section>{title}</section>; } warns on main but is silent here, because dropperOf returns null once the text's own component documents children (packages/cli/foundation/render/dropped-text.mjs:84), which contradicts the description's "A page's own component, or one from another package, keeps today's rule" (and its "a component from an Astryx package" covers only components imported by name from @astryxdesign/core), so return undefined when any component around the text has no doc answer and add that page as a test, or say in the description, the changeset and the JSDoc that such text never warns.

CI on this head stopped before its main jobs because CI was full, so it needs a re-run.

Claims and files checked

Review mode: full; reason: no-earlier-review

Changeset:

  • The warning is checked against the component's own docs: verified (dropped-text.mjs:55-71, render-page.mjs:1202-1209).
  • A component whose docs list no children is named, even around another component's text (Badge around Text): verified (new render test, which fails on main).
  • The warning points to astryx component <Name>: verified (render-page.mjs:1220).
  • Text inside a component that takes children but is not shown at first paint (a collapsed Banner, an inactive tab or route) no longer warns: verified for a collapsed Banner and an inactive view (new test, fails on main); the same rule also silences text that a page-defined wrapper drops for good (blocking finding).
  • The warning's code does not change: verified (render-page.mjs:1218).

Description:

  • The warning raised false alarms for a collapsed Banner's body and other views' headings: verified (main's messages for the new test page); the 14-warning count on one site comes from a page set outside the repository.
  • <Badge><Text>Finalized</Text></Badge> blamed Text while Badge takes no children: verified (main names Text; Badge's doc lists no children).
  • The old warning said the component takes the text through a prop without checking its props, and inferred the drop from neighbouring text: verified (main's warning loop).
  • For a component from an Astryx package, the render reads its docs from the Core the page renders with: false beyond Core (only components imported by name from @astryxdesign/core; blocking finding).
  • Docs are read only when a text is missing: verified (render-page.mjs:1202).
  • The innermost component whose docs list props without children is named, pointing to astryx component: verified (dropped-text.mjs:83).
  • When the text's own component documents children, nothing warns: verified (dropped-text.mjs:84).
  • A page's own component, or another package's, keeps today's rule: false when that component wraps a Core child (blocking finding).
  • The command is experimental: verified (experimental CLI namespace; [experimental] patch changeset).
  • Docs are read once per component: verified (unit test "reads each doc once").
  • Each recorded text carries the components around it with their lines: verified (page-worker.mjs:890-907).
  • The render tests cover a collapsed Banner, an inactive view, Badge named on its own line and ListItem still warning, each failing on main: verified (three tests fail on main, pass here).
  • The unit tests cover a component's own doc, a family doc, a page's own and another package's component, and one read per component: verified (the family case uses Link's doc, whose entry sits in its own components list).
  • On a frozen page set, 32 warnings become 31 and 413 pages render byte for byte as before: not checkable here (the set is not in the repository).
  • A page with no missing text renders in the same time and one missing text adds about 15 ms: not checkable as stated; a doc read took 1-21 ms here.
  • No new public API, default or interaction model: verified (no command, option, export or type changes).
  • Public text carries no internal context: verified.
  • The listed test run passes with 440 passed and 3 skipped, and ESLint passes on the changed files: verified (same counts); the strict typecheck stops only on two unchanged templates that need a theme build.

Files:

  • .changeset/render-dropped-text-docs.md: needs the wording fix if the behaviour stays (blocking finding).
  • packages/cli/api/render/render.test.mjs: clear.
  • packages/cli/foundation/render/dropped-text.mjs: blocking finding at line 84.
  • packages/cli/foundation/render/dropped-text.test.mjs: clear.
  • packages/cli/foundation/render/page-worker.mjs: clear.
  • packages/cli/foundation/render/render-page.mjs: clear; the new of <file> suffix has no test (non-blocking).

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

Owner decision (engineering owner, covering this pull request): the render's dropped-children warning reports a static text missing from the first paint. When every component around the text has docs, it names the innermost one whose documented props have no children, and stays silent when the text's own component documents children (the text is not drawn yet). When any component around it has no docs (the page's own, or another package's), it warns when other text of the same function renders, as before. A page's own wrapper that drops a Core child still warns.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 47839a6

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec e6b1994

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the warning's rule is now settled by the engineering owner's decision on this pull request, and two fixes remain.

  • A page's own component written as a lowercase member, such as <ui.Box title="Q3"><Text>Revenue grew 12%</Text></ui.Box> with Box rendering only its title, warns on main but is silent here because packages/cli/foundation/render/page-worker.mjs:897 keeps only capitalised names in the chain, so keep member-expression names there (if (!/^[A-Z]/.test(name) && !name.includes('.')) continue;), which restores today's message and keeps this pull request's tests passing.
  • The title, the release note (.changeset/render-dropped-text-docs.md) and the description still describe the earlier rule, since a collapsed Banner inside one of the page's own components still warns and only components imported from @astryxdesign/core are read or named, so say that text the first paint does not show stops warning only when every component around it is a Core component whose docs list children, and that a page's own or another package's component keeps today's warning.

The earlier finding about a page's own StatCard is fixed. CI's main jobs did not run on this head because CI was full, so it needs a re-run.

Claims and files checked

Review mode: incremental; reason: none

Release note:

  • The warning is checked against the component's own docs: verified for components imported from Core (dropped-text.mjs:59-80, render-page.mjs:1202-1209).
  • A component whose docs list no children is named, even around another component's text (Badge around Text): verified for Core (new render test fails on main, passes here); false for other packages, whose components are never named (blocking finding).
  • The warning points to astryx component <Name>: verified (render-page.mjs:1220).
  • Text inside a component that takes children but is not shown at first paint no longer warns: false as written; only when every component around it is a Core component that documents children (blocking finding).
  • The warning's code does not change: verified (render-page.mjs:1218).

Title:

  • Text not drawn yet no longer warns: false as written, as above (blocking finding).

Description:

  • The warning raised false alarms for a collapsed Banner's body and other views' headings: verified (main's messages for the new test page); the count of 14 on one site comes from pages outside the repository.
  • The Badge-around-Text case blamed Text while Badge takes no children: verified.
  • The old warning never checked props and inferred the drop from neighbouring text: verified (main's warning loop).
  • For a component from an Astryx package, the render reads its docs from the Core the page renders with: false beyond Core (blocking finding).
  • Docs are read only when a text is missing: verified (render-page.mjs:1202).
  • The innermost component whose docs list props without children is named, pointing to astryx component: verified (dropped-text.mjs:93).
  • When every component around the text has docs and the text's own component documents children, nothing warns: verified (dropped-text.mjs:94-96).
  • When any component around the text has no docs, the page's own or another package's, today's rule applies: verified for components named with an identifier (StatCard test); false for a lowercase member wrapper such as <ui.Box> (blocking finding).
  • The warning's code does not change, and the command is experimental: verified.
  • The new module reads a component's documented props once per component: verified (unit test "reads each doc once").
  • Each recorded text carries the components around it with their lines: verified (page-worker.mjs:890-907).
  • The render tests cover a collapsed Banner, an inactive view, Badge named, ListItem with the new text and the page's own StatCard, and the first three fail on main: verified (on main those fail; the ListItem and StatCard tests fail there too, on the new text and the warning order).
  • The unit tests cover a component's own doc, a family doc, a page's own and another package's component, and one read per component: verified.
  • On a frozen page set, 32 warnings become 31 and 413 pages render byte for byte as before: not checkable here (the set is not in the repository).
  • A page with no missing text renders in the same time and one missing text adds about 15 ms: not checkable as stated.
  • No new public API, default or interaction model: verified (no command, option, export or type changes).
  • Public text carries no internal context: verified.
  • The listed test run, the typechecks and ESLint on the changed files pass: verified.

Files:

  • .changeset/render-dropped-text-docs.md: blocking finding (release note wording).
  • packages/cli/api/render/render.test.mjs: clear.
  • packages/cli/foundation/render/dropped-text.mjs: clear.
  • packages/cli/foundation/render/dropped-text.test.mjs: clear.
  • packages/cli/foundation/render/page-worker.mjs: blocking finding at line 897.
  • packages/cli/foundation/render/render-page.mjs: clear; the new of <file> suffix has no test (non-blocking).

Automated review (maintainer link)

Comment thread .changeset/render-dropped-text-docs.md Resolved
@josephfarina josephfarina changed the title [experimental] render: the dropped-text warning checks the component's docs, so text not drawn yet no longer warns [experimental] render: the dropped-text warning checks Core's docs, and text not drawn yet inside Core components that take children no longer warns Nov 17, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 8922deb

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: the dropped-children warning now follows the rule the engineering owner recorded and approved for this head, and both earlier findings are fixed. CI's build and test jobs did not run on this head because CI was full, so they need a re-run before merge.

  • Optional: the release note's last sentence reads as absolute, while a Core component whose docs list no children inside one of the page's own components is still named (and one written through a namespace import such as <core.Badge> is not); "imported by name" and "any other text" would make it exact.
Claims and files checked

Review mode: incremental; reason: none

Release note:

  • The warning is checked against Core's component docs: verified (dropped-text.mjs:35-80, render-page.mjs:1202-1209).
  • A Core component whose docs list no children is named, even around another component's text (Badge around Text): verified for components imported by name (render test; probe page); a namespace import is not named (non-blocking).
  • The warning points to the component command: verified (render-page.mjs:1220).
  • Text the first paint does not show stops warning only when every component around it is a Core component that documents children: verified (collapsed Banner and inactive view tests; a Banner inside the page's own wrapper still warns).
  • Text inside a page's own or another package's component keeps today's warning: verified (StatCard and member-wrapper tests), with the naming rule above taking precedence.
  • The warning's code does not change: verified (render-page.mjs:1218).

Title:

  • The warning checks Core's docs, and text not drawn yet inside Core components that take children no longer warns: verified, as above.

Description:

  • A collapsed Banner's body and other views' headings raised false alarms: verified (the base's messages for the new test page); the count on one site comes from pages outside the repository.
  • The Badge-around-Text case blamed Text although Badge takes no children: verified.
  • The old warning never checked props and inferred the drop from neighbouring text: verified (the base's warning loop).
  • For a Core component, the render reads its docs from the Core the page renders with, only when a text is missing: verified (render-page.mjs:1202-1208).
  • The innermost Core component whose docs list props without children is named, pointing to the component command: verified (dropped-text.mjs:93).
  • Text the first paint does not show stops warning only when every component around it is a Core component that documents children: verified (dropped-text.mjs:94-96).
  • A page's own component, by name or as a member, or another package's component keeps today's warning: verified (render tests; probe page), with the naming rule taking precedence.
  • The warning's code does not change, and the command is experimental: verified.
  • The new module reads each component's documented props once: verified (unit test "reads each doc once").
  • Each recorded text carries the components around it, member names included, with their lines: verified (page-worker.mjs:890-908).
  • The render tests cover the collapsed Banner, the inactive view, Badge, ListItem with the new text, and the page's own StatCard and member wrapper, and the first three fail on the base: verified (four fail on the base).
  • The unit tests cover a component's own doc, a family doc, a page's own and another package's component, and one read per component: verified.
  • On a frozen page set, 32 warnings become 31 and 413 pages render byte for byte as before: not checkable here (the set is not in the repository).
  • A page with no missing text renders in the same time, and one missing text adds about 15 ms: not checkable as stated.
  • No new public API, visual representation, default or interaction model: verified.
  • Public text carries no internal context: verified.
  • The listed test run, the typechecks and ESLint on the changed files pass: verified.

Files:

  • .changeset/render-dropped-text-docs.md: clear (non-blocking wording note).
  • packages/cli/api/render/render.test.mjs: clear.
  • packages/cli/foundation/render/dropped-text.mjs: clear.
  • packages/cli/foundation/render/dropped-text.test.mjs: clear.
  • packages/cli/foundation/render/page-worker.mjs: clear; the earlier member-wrapper finding is fixed at line 898.
  • packages/cli/foundation/render/render-page.mjs: clear; the file-name suffix has no test (non-blocking).

Automated review (maintainer link)

…ent's docs

A component whose docs list no children is named as the one that dropped
the text, even around another component's text. Text inside a component
that takes children, which the first paint does not show yet (a collapsed
Banner, an inactive view), no longer warns.
…ed-text rule

When a component around a missing text has no doc that says whether it
takes children (the page's own, or another package's), the warning
follows the rule from before, so a page's own component that drops a
Core child still warns.
… dropped-text warning

The chain of components around a text kept only capitalised names, so a
page's own component written as a member (ui.Box) was left out and the
text read as Core-only. Member names now stay in the chain; the release
note says the warning stops only when every component around the text is
a Core component whose docs list children.
@josephfarina
josephfarina force-pushed the josephfarina/rl-dropped-text branch from 8922deb to 5c2a5cd Compare November 18, 2026 23:03
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 5c2a5cd

@josephfarina josephfarina changed the title [experimental] render: the dropped-text warning checks Core's docs, and text not drawn yet inside Core components that take children no longer warns [experimental] export: the dropped-text warning checks Core's docs, and text not drawn yet inside Core components that take children no longer warns Nov 18, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: the dropped-children warning follows the rule the engineering owner recorded and approved for this head, and the rebase and the release note's rename to astryx experimental export change nothing else. CI's build and test jobs did not run on this head because CI was full, so they need a re-run before merge.

  • Optional: the release note's last sentence reads as absolute, while a Core component whose docs list no children inside one of the page's own components is still named, and one written through a namespace import such as <core.Badge> is not; "imported by name" and "any other text" would make it exact.
  • Optional: the description's "Expected behavior and authority" still names the command astryx experimental render, which main has renamed to astryx experimental export.
Claims and files checked

Review mode: full; reason: rebase

Release note:

  • The export command checks its dropped-children warning against Core's component docs: verified (dropped-text.mjs:35-80, render-page.mjs:1325-1332).
  • The command is astryx experimental export: verified (its command doc names it so).
  • A Core component whose docs list no children is named, even around another component's text: verified for components imported by name (render test; probe page); a namespace import is not named (non-blocking).
  • The warning points to the component command: verified (render-page.mjs:1343).
  • Text the first paint does not show stops warning only when every component around it is a Core component that documents children: verified (collapsed Banner and inactive view tests; a Banner inside the page's own wrapper still warns).
  • Text inside a page's own or another package's component keeps today's warning: verified (StatCard and member-wrapper tests), except that a Core component without children between them is named (non-blocking).
  • The warning's code does not change: verified (render-page.mjs:1341).

Title:

  • The warning checks Core's docs, and text not drawn yet inside Core components that take children no longer warns: verified, as above.

Description:

  • A collapsed Banner's body and other views' headings raised false alarms: verified (the base's messages for the new test page); the count on one site comes from pages outside the repository.
  • The Badge-around-Text case blamed Text although Badge takes no children: verified.
  • The old warning never checked props and inferred the drop from neighbouring text: verified (the base's warning loop).
  • The render reads a Core component's docs from the Core the page renders with, only when a text is missing: verified (render-page.mjs:1325-1331).
  • The innermost Core component whose docs list props without children is named, pointing to the component command: verified (dropped-text.mjs:93).
  • Text the first paint does not show stops warning only when every component around it is a Core component that documents children: verified (dropped-text.mjs:94-96).
  • A page's own component, by name or as a member, or another package's component keeps today's warning: verified, with the naming rule taking precedence.
  • The warning's code does not change: verified.
  • The command is experimental: verified for the command, now named astryx experimental export (non-blocking naming note above).
  • The new module reads each component's documented props once: verified (dropped-text.mjs:35-52; unit test).
  • Each recorded text carries the components around it, member names included, with their lines: verified (page-worker.mjs:939-957).
  • The render tests cover the collapsed Banner, the inactive view, Badge, ListItem with the new text, and the page's own StatCard and member wrapper, and the first three fail on the base: verified (four fail on the base, the ListItem test included).
  • The unit tests cover a component's own doc, a family doc, a page's own and another package's component, and one read per component: verified.
  • On frozen page sets, 32 warnings become 31 and unchanged pages render byte for byte as before: not checkable here (the sets are not in the repository).
  • A page with no missing text renders in the same time, and one missing text adds about 15 ms: not checkable as stated.
  • No new public API, visual representation, default or interaction model: verified.
  • Public text carries no internal context: verified.
  • The listed test run, the typechecks and ESLint on the changed files pass: verified.

Files:

  • .changeset/render-dropped-text-docs.md: clear (non-blocking wording note).
  • packages/cli/api/render/render.test.mjs: clear.
  • packages/cli/foundation/render/dropped-text.mjs: clear.
  • packages/cli/foundation/render/dropped-text.test.mjs: clear.
  • packages/cli/foundation/render/page-worker.mjs: clear.
  • packages/cli/foundation/render/render-page.mjs: clear; the file-name suffix has no test (non-blocking).

Automated review (maintainer link)

josephfarina added a commit that referenced this pull request Nov 19, 2026
…ore's docs, and text not drawn yet inside Core components that take children no longer warns
documentedEntry (beside familyMember, sharing its member lookup) gives the
part of a doc that documents a name: the doc's top props, a family
member's entry, or the entry a doc keeps its own props in (Item, Link).
The reader uses it, so those components are read too. A render test pins
the file a warning names for a text in another of the page's files, and
the changeset says so.

[skip ci]
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec b663d87

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet.

The dropped-children warning follows the rule recorded for this pull request, and the new commit moves the doc lookup into a shared helper with the same answers for every documented Core component. Nothing else is required. One optional wording fix: the release note's "A text inside a page's own component, or another package's, keeps today's warning" could add "unless a Core component whose docs list no children sits around it too", as the description says.

Claims and files checked

Review mode: incremental; reason: none

Claims:

  • Release note: the export command checks the warning against Core's docs — verified (render-page.mjs:1325-1332).
  • Release note: a Core component whose docs list no children is named, even around another component, and points to astryx component <Name> — verified (render test, Badge).
  • Release note: text the first paint leaves out stops warning only when every surrounding component is a Core component that documents children — verified (render test; dropped-text.mjs:85-89).
  • Release note: text inside the page's own or another package's component keeps today's warning — verified for those wrappers alone (render test, StatCard and ui.Box); it reads as absolute where a Core component without children also sits around the text (optional wording fix above).
  • Release note: a warning for a text in another of the page's files names that file — verified (render test, parts.tsx).
  • Release note and description: the warning's code does not change — verified (render-page.mjs:1341).
  • Description: the base warned for a collapsed Banner body and an inactive view, and blamed Text inside Badge — verified (the new tests fail on the base with those messages).
  • Description: the warning was raised 14 times on one site — not checkable from the repository.
  • Description: docs are read only when a text is missing, from the Core the page renders with — verified (render-page.mjs:1325-1331).
  • Description: the innermost Core component whose docs list props without children is named — verified (dropped-text.mjs:86).
  • Description: a page's own component, by name or as a member, or another package's keeps today's warning unless a Core component without children sits around the text — verified (page-worker.mjs:947, dropped-text.mjs:86-88).
  • Description: a Core component reached through a namespace import counts as unknown — verified (page-worker.mjs:206-208).
  • Description: the export command is experimental — verified (the release-compatibility spec's experimental-isolation requirement).
  • Description: the doc reader reads each component's props once — verified (dropped-text.mjs:48-53, unit test).
  • Description: documentedEntry sits beside familyMember and shares its member lookup — verified (component-discovery.mjs:347-382).
  • Description: each recorded text carries its surrounding components and their lines, member names included — verified (page-worker.mjs:939-957).
  • Description: the listed render tests exist and the first three fail on the base — verified (six of the head's tests fail on the base).
  • Description: the doc-reader and discovery unit tests cover each doc layout and a single read — verified.
  • Description: the 553- and 569-page corpus results and the timings — not checkable from the repository.
  • Description: no new public API — verified (no package export reaches documentedEntry).
  • Description: the listed test runs, typechecks and ESLint pass — verified on the head.

Files:

  • .changeset/render-dropped-text-docs.md — one optional wording note.
  • packages/cli/api/render/render.test.mjs — clear.
  • packages/cli/foundation/discovery/component-discovery.mjs — clear.
  • packages/cli/foundation/discovery/component-discovery.test.mjs — clear.
  • packages/cli/foundation/render/dropped-text.mjs — clear.
  • packages/cli/foundation/render/dropped-text.test.mjs — clear.
  • packages/cli/foundation/render/page-worker.mjs — clear.
  • packages/cli/foundation/render/render-page.mjs — clear.

Automated review (maintainer link)

'@astryxdesign/cli': patch
---

[experimental] `astryx experimental export` checks its `dropped-children` warning against Core's component docs. A Core component whose docs list no `children` prop is named as the one that dropped the text, even when the text sits inside another component (`<Badge><Text>New</Text></Badge>` names Badge), and the warning points to `astryx component <Name>`. Text that the first paint does not show yet (a collapsed Banner, an inactive tab or route) stops warning only when every component around it is a Core component whose docs list `children`. A text inside a page's own component, or another package's, keeps today's warning. A warning for a text in another of the page's files names that file (`on line 12 of components/Card.tsx`). The warning's code does not change.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional wording: "A text inside a page's own component, or another package's, keeps today's warning" reads as absolute, but a Core component whose docs list no children around the text is still named (<Panel><Badge><Text>… gives <Badge> … Badge takes no children). The description's wording fits: "… keeps today's warning, unless a Core component whose docs list no children sits around it too, which is then named."

josephfarina added a commit that referenced this pull request Nov 19, 2026
- #12635 fix(cli): export loads and gives back a page whose modules import TypeScript files by .js names
  Author: @josephfarina
- #12727 fix(cli): export loads a served package's subpath exported only to imports
  Author: @josephfarina
- #12224 fix(cli): a {@link} in a template description resolves as astryx docs resolves it
  Author: @josephfarina
- #12278 fix(core): a Theme given a value that is not a theme keeps the page running
  Author: @josephfarina
- #12751 feat(Layout): LayoutContent names its container, so a theme styles a dialog's body apart from its header and footer
  Author: @josephfarina
- #12168 fix(templates): header, footer and toolbar rows wrap for longer translated labels
  Author: @josephfarina
- #12399 [experimental] export: the dropped-text warning checks Core's docs, and text not drawn yet inside Core components that take children no longer warns
  Author: @josephfarina
- #12541 [docs] Core: list the props ComplexSelector, Selector, Toast and ContextMenuItem take
  Author: @josephfarina
- #12676 docs(cli): a short form keeps its own 640 column inside a wide template frame
  Author: @josephfarina
- #12458 fix(core): Field labels use the primary text colour
  Author: @josephfarina
- #12373 [experimental] export: a link to a place in the page stays in the file in a srcdoc viewer frame
  Author: @josephfarina
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #12827.

@github-actions
github-actions Bot deleted the josephfarina/rl-dropped-text branch November 20, 2026 06:06

This branch was successfully deployed

1 active deployment
Preview — b663d871 Deployed Nov 19, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant