Skip to content

docs(TransferListSelector): dense text names the control props - #11922

Merged
cixzhang merged 1 commit into
mainfrom
fix/transferlist-dense-control-keys
Nov 19, 2026
Merged

cixzhang merged 1 commit into
mainfrom
fix/transferlist-dense-control-keys

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

User impact

People and agents who read Lab TransferListSelector's dense docs (astryx component TransferList --dense) see the full English text for controlXstyle, controlClassName and controlStyle instead of the short dense text. The dense overlay names those three props xstyle, className and style, which TransferListSelector's docs do not list, so the overlay drops their text.

Problem and solution fit

  • Why it fails: a dense overlay replaces a prop's description by the prop's whole name. TransferListSelectorProps picks controlXstyle, controlClassName and controlStyle from ComplexSelector, and the English doc lists them by those names. The dense keys xstyle, className and style match no prop, so their text is dropped.
  • The fix: the three dense keys now name the documented props, with text that describes the external control box. The TransferList member's own dense xstyle text is unchanged; it names a prop that member documents.

Expected behavior and authority

The dense overlay contract in the docs pipeline: a propDescriptions key names a documented prop, or its text is never shown (astryx doctor integration validate reports this case as unknown_translated_prop for integrations). This is a docs defect repair; no record changes.

Smallest restoration

  • One docs file changes (TransferList.doc.mjs), plus one new test.
  • No public API, prop or visual change.
  • No changeset, because @astryxdesign/lab is private.

Evidence

  • Red first: the new TransferList.doc.test.mjs checks that every dense key names a documented prop, for TransferListSelector and for each member component. Before the change it fails with ['xstyle', 'className', 'style'].
  • After: both cases pass.
  • Unchanged paths: the 52 existing TransferList tests pass.

Scope

Components: TransferListSelector (lab)

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • 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

  • vitest run packages/lab/src/TransferList: 54 passed in 4 files: 52 existing, plus the 2 new doc cases.
  • Prettier: clean.

Overlap checked: #11575, #11454 (they change the reorderable text in the same doc file for the reorder handle's placement; this PR changes only the three control-box dense keys, on different lines, and neither PR touches those keys)

Owner and land path

Owner: Cindy's Astryx gaps lane 3 (agent). Land path: Specs stamp as a docs defect repair, then CodeBunny review on the exact head, then ready, CI, and merge through the drain queue. No release (@astryxdesign/lab is private).

The dense overlay keyed the control box's class, style and StyleX text as xstyle, className and style, which TransferListSelector does not document, so the overlay dropped that text and dense docs showed the English. The keys now name controlXstyle, controlClassName and controlStyle. A new test checks that every dense key names a documented prop.
@vercel

vercel Bot commented Nov 15, 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 15, 2026 8:24pm UTC

Request Review

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

astracat-bot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

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

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 8678208

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 8678208

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC
lab/TransferList 112.1 kB (0) · 1.2 kB CSS (0) —
lab/TransferListSelector 121.1 kB (0) · 1.4 kB CSS (0) —

Package size: no published package changed; no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@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.

Requesting changes: the docs fix itself is correct, but two claims in the pull request description are false. Both are fixed by editing the description.

  • The User impact says the docsite's dense view shows the English text, but the docsite builds component pages from docs only (apps/docsite/scripts/generate-data.mjs:651-652, :687-688) and never reads docsDense; drop the docsite from that sentence.
  • The Testing line says vitest run packages/lab/src/TransferList gives "54 passed, plus the 2 new doc cases", but that command runs 54 tests in 4 files with the 2 new cases among them (52 existing), and Evidence counts the same 4 files and 54 tests as the unchanged suites; write "54 passed in 4 files: 52 existing, plus the 2 new doc cases".

Non-blocking: the new test restates the overlay-key check that astryx doctor integration validate already runs over every Lab doc, so running that validator for Lab in CI would guard the other Lab docs too.

Claims and files checked

Review mode: same-head; reason: none

  • Claim: the three dense keys named props the selector does not document, so their text was dropped: verified (TransferList.doc.mjs:241-256, TransferListSelector.tsx:104-106; the validator reports the three keys on the base).
  • Claim: the keys now name the documented props, and the member's own xstyle text is unchanged: verified (TransferList.doc.mjs:781-783, :815).
  • Claim: astryx component TransferList --dense shows the short text: verified (its output differs in exactly those three lines).
  • Claim: the docsite's dense view changes: false (the docsite reads docs only).
  • Claim: the integration validator reports this case as an unknown translated prop: verified.
  • Claim: the new test fails before the change with the three keys and passes after: verified.
  • Claim: 54 passed plus the 2 new cases, and 4 files and 54 tests as the unchanged suites: false (the 54 include the 2 new cases).
  • Claim: Prettier is clean: verified.
  • Claim: no public API, prop or visual change, and no changeset because the Lab package is private: verified (packages/lab/package.json).
  • Claim: the two overlapping open pull requests change only the reorderable text in this doc file, on other lines: verified.
  • File packages/lab/src/TransferList/TransferList.doc.mjs: clear.
  • File packages/lab/src/TransferList/TransferList.doc.test.mjs: one non-blocking note (it restates the validator's check).

Automated review (maintainer link)

Comment on lines +8 to +11
function unknownKeys(props, descriptions) {
const names = new Set((props ?? []).map(prop => prop.name));
return Object.keys(descriptions ?? {}).filter(key => !names.has(key));
}

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.

Non-blocking: this restates the unknown_translated_prop rule that astryx doctor integration validate already applies to every Lab doc (it reports these three keys before the change and none after). Running that validator for Lab in CI would guard the other Lab docs too, and this per-file helper could then go.

@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. The dense-text fix is correct, every claim in the description matches the evidence, and CI passes on this head; no changes are needed.

Non-blocking: the new test restates the overlay-key check that astryx doctor integration validate already runs over every Lab doc, so running that validator for Lab in CI would guard the other Lab docs too.

Claims and files checked

Review mode: same-head; reason: none

  • Changed rules since the last review: 0.
  • Claim: the three dense keys named props the selector does not document, so the dense docs showed the English text: verified (TransferList.doc.mjs:241-256, TransferListSelector.tsx:104-106; base --dense output lines 72-74; the validator reports the three keys on the base).
  • Claim: a dense overlay applies a description by the prop's whole name: verified (packages/cli/foundation/doc-compiler/overlays.mjs:74-79).
  • Claim: the keys now name the documented props with control-box text, and the member's own xstyle text is unchanged: verified (TransferList.doc.mjs:781-783, :815, :389).
  • Claim: astryx doctor integration validate reports this case as an unknown translated prop: verified (three warnings on the base, none on the head).
  • Claim: one docs file and one new test change, with no record change: verified.
  • Claim: no public API, prop or visual change, and no changeset because the Lab package is private: verified (packages/lab/package.json; CONTRIBUTING.md exempts private and canary-only packages).
  • Claim: the new test fails before the change with the three keys and both cases pass after: verified (the new test run against the base's doc).
  • Claim: vitest run packages/lab/src/TransferList passes 54 tests in 4 files, 52 existing plus the 2 new cases: verified, locally and in CI.
  • Claim: Prettier is clean: verified.
  • Claim: the two overlapping pull requests change only the reorderable text in this doc file, on other lines: verified.
  • Claim: public text carries no internal context: verified.
  • File packages/lab/src/TransferList/TransferList.doc.mjs: clear.
  • File packages/lab/src/TransferList/TransferList.doc.test.mjs: one non-blocking note (it restates the validator's check).

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 19, 2026 04:50
@cixzhang
cixzhang merged commit 0ed056c into main Nov 19, 2026
142 checks passed
@github-actions
github-actions Bot deleted the fix/transferlist-dense-control-keys branch November 19, 2026 06:05

This branch was successfully deployed

1 active deployment
Preview — 86782087 Deployed Nov 15, 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