Skip to content

Add resultCount to PowerSearch - #593

Merged
cixzhang merged 1 commit into
mainfrom
powersearch3
Mar 13, 2026
Merged

cixzhang merged 1 commit into
mainfrom
powersearch3

Conversation

@czarandy

@czarandy czarandy commented Mar 13, 2026 •

Copy link
Copy Markdown
Collaborator
  • Add endContent to XDSTokenizer
  • Add endContent + resultCount to XDSPowerSearch

Works same way as www internal component

@czarandy
czarandy requested a review from cixzhang as a code owner March 13, 2026 00:47
@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

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.

Component Previews

Includes interactive hover previews as animated GIFs.

XDSPowerSearch

Default

Screenshot:

Default

Interaction Preview: (view video)

Default interaction

View in Storybook · form-xdspowersearch--default

Pre-set Filters

Screenshot:

Pre-set Filters

View in Storybook · form-xdspowersearch--with-preset-filters

Full Featured (All Field Types)

Screenshot:

Full Featured (All Field Types)

View in Storybook · form-xdspowersearch--full-featured

Multi-value Filters

Screenshot:

Multi-value Filters

View in Storybook · form-xdspowersearch--with-enum-list-filters

Entity Filters

Screenshot:

Entity Filters

View in Storybook · form-xdspowersearch--with-entity-filters

Numeric Filters

Screenshot:

Numeric Filters

View in Storybook · form-xdspowersearch--with-numeric-filters

Date Filters

Screenshot:

Date Filters

View in Storybook · form-xdspowersearch--with-date-filters

Boolean / Empty Filters

Screenshot:

Boolean / Empty Filters

View in Storybook · form-xdspowersearch--with-empty-filter

Read Only

Screenshot:

Read Only

View in Storybook · form-xdspowersearch--read-only

Disabled

Screenshot:

Disabled

View in Storybook · form-xdspowersearch--disabled

With Error Status

Screenshot:

With Error Status

View in Storybook · form-xdspowersearch--with-error

With Warning Status

Screenshot:

With Warning Status

View in Storybook · form-xdspowersearch--with-warning

Many Filters

Screenshot:

Many Filters

View in Storybook · form-xdspowersearch--many-filters

Change Tracking

Screenshot:

Change Tracking

View in Storybook · form-xdspowersearch--with-on-change-tracking

Nested Filters

Screenshot:

Nested Filters

View in Storybook · form-xdspowersearch--with-nested-filters

With Start Icon

Screenshot:

With Start Icon

View in Storybook · form-xdspowersearch--with-start-icon

With Result Count

Screenshot:

With Result Count

View in Storybook · form-xdspowersearch--with-result-count

With End Content and Result Count

Screenshot:

With End Content and Result Count

View in Storybook · form-xdspowersearch--with-end-content-power-search

XDSTokenizer

Default

Screenshot:

Default

Interaction Preview: (view video)

Default interaction

View in Storybook · form-xdstokenizer--default

Pre-selected Items

Screenshot:

Pre-selected Items

View in Storybook · form-xdstokenizer--with-preselected

With Clear All Button

Screenshot:

With Clear All Button

View in Storybook · form-xdstokenizer--with-clear

Max 3 Entries

Screenshot:

Max 3 Entries

View in Storybook · form-xdstokenizer--max-entries

Required

Screenshot:

Required

View in Storybook · form-xdstokenizer--required

With Description

Screenshot:

With Description

View in Storybook · form-xdstokenizer--with-description

With Error

Screenshot:

With Error

View in Storybook · form-xdstokenizer--with-error

With Warning

Screenshot:

With Warning

View in Storybook · form-xdstokenizer--with-warning

With Success

Screenshot:

With Success

View in Storybook · form-xdstokenizer--with-success

Disabled

Screenshot:

Disabled

View in Storybook · form-xdstokenizer--disabled

With Start Icon

Screenshot:

With Start Icon

View in Storybook · form-xdstokenizer--with-start-icon

With Start Icon and Tokens

Screenshot:

With Start Icon and Tokens

View in Storybook · form-xdstokenizer--with-start-icon-and-tokens

With End Content

Screenshot:

With End Content

View in Storybook · form-xdstokenizer--with-end-content


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

<div {...stylex.props(styles.endSection)}>
{endContent}
{hasClear && value.length > 0 && !isDisabled && (
<button

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.

Probably should be XDSButton here

@cixzhang
cixzhang merged commit c9ef530 into main Mar 13, 2026
14 checks passed
cixzhang added a commit that referenced this pull request Mar 13, 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 Mar 13, 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 cixzhang mentioned this pull request Mar 14, 2026
@cixzhang
cixzhang deleted the powersearch3 branch March 20, 2026 17:02
cixzhang pushed a commit that referenced this pull request Apr 26, 2026
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 pushed a commit that referenced this pull request Jun 21, 2026
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 pushed a commit that referenced this pull request Jun 21, 2026
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.

2 participants