Skip to content

docs: sync theming/props for AppShell, PowerSearch, Tokenizer - #606

Merged
cixzhang merged 1 commit into
mainfrom
navi/docs/theming-prop-sync
Mar 13, 2026
Merged

cixzhang merged 1 commit into
mainfrom
navi/docs/theming-prop-sync

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

What

Syncs component documentation with recent source changes from PRs #597 and #593.

Fixes

AppShell (from #597 — variant prop)

  • Theming visualProps updated from ['background', 'height'] to ['variant', 'height'] — the background prop was replaced with variant but the theming doc wasn't updated
  • Added variant prop entry with type 'wash' | 'surface' | 'section' | 'elevated' and description
  • Updated both EN and ZH doc sections

PowerSearch (from #593 — resultCount/endContent)

  • Added missing endContent and resultCount prop entries
  • Renamed XDSPowerSearch.doc.mjs → PowerSearch.doc.mjs for CLI naming convention consistency (all other doc files use directory name, not component name). This was preventing the CLI from finding PowerSearch docs.

Tokenizer (from #593 — endContent)

  • Added missing endContent prop entry (both EN and ZH)

Validation

  • yarn workspace @xds/core typecheck:docs ✅
  • CLI --brief output verified for AppShell, PowerSearch, Tokenizer ✅
  • Theming sync audit: all in sync ✅

Found during Night Watch doc review.

- AppShell: update theming visualProps from ['background', 'height'] to
  ['variant', 'height'] to match xdsClassName() call after #597
- AppShell: add missing 'variant' prop entry to .doc.mjs (both EN and ZH)
- PowerSearch: add missing 'endContent' and 'resultCount' props from #593
- PowerSearch: rename XDSPowerSearch.doc.mjs → PowerSearch.doc.mjs for
  CLI convention consistency (all other docs use directory name)
- Tokenizer: add missing 'endContent' prop from #593 (both EN and ZH)

Found during Night Watch doc review.

Co-authored-by: Navi <[email protected]>
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 13, 2026
@github-actions

github-actions Bot commented Mar 13, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

Modified Components

AppShell · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A 625B N/A
Lines of Code N/A 383 -
Complexity N/A Very High (47) -
PowerSearch · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A 1.2KB N/A
Lines of Code N/A 2382 -
Complexity N/A Very High (252) -
Tokenizer · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A 531B N/A
Lines of Code N/A 372 -
Complexity N/A Very High (50) -

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@xds/core 9.3KB 15.0KB 2.4KB

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@cixzhang
cixzhang merged commit d6be3c8 into main Mar 13, 2026
13 checks passed
@cixzhang
cixzhang deleted the navi/docs/theming-prop-sync branch March 20, 2026 16:58
cixzhang added a commit that referenced this pull request Apr 26, 2026
- AppShell: update theming visualProps from ['background', 'height'] to
  ['variant', 'height'] to match xdsClassName() call after #597
- AppShell: add missing 'variant' prop entry to .doc.mjs (both EN and ZH)
- PowerSearch: add missing 'endContent' and 'resultCount' props from #593
- PowerSearch: rename XDSPowerSearch.doc.mjs → PowerSearch.doc.mjs for
  CLI convention consistency (all other docs use directory name)
- Tokenizer: add missing 'endContent' prop from #593 (both EN and ZH)

Found during Night Watch doc review.

Co-authored-by: Navi <[email protected]>
cixzhang added a commit that referenced this pull request Jun 21, 2026
- AppShell: update theming visualProps from ['background', 'height'] to
  ['variant', 'height'] to match xdsClassName() call after #597
- AppShell: add missing 'variant' prop entry to .doc.mjs (both EN and ZH)
- PowerSearch: add missing 'endContent' and 'resultCount' props from #593
- PowerSearch: rename XDSPowerSearch.doc.mjs → PowerSearch.doc.mjs for
  CLI convention consistency (all other docs use directory name)
- Tokenizer: add missing 'endContent' prop from #593 (both EN and ZH)

Found during Night Watch doc review.

Co-authored-by: Navi <[email protected]>
cixzhang added a commit that referenced this pull request Jun 21, 2026
- AppShell: update theming visualProps from ['background', 'height'] to
  ['variant', 'height'] to match xdsClassName() call after #597
- AppShell: add missing 'variant' prop entry to .doc.mjs (both EN and ZH)
- PowerSearch: add missing 'endContent' and 'resultCount' props from #593
- PowerSearch: rename XDSPowerSearch.doc.mjs → PowerSearch.doc.mjs for
  CLI convention consistency (all other docs use directory name)
- Tokenizer: add missing 'endContent' prop from #593 (both EN and ZH)

Found during Night Watch doc review.
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