Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

feat(PowerSearch): presentation is a stable prop, and adaptive is its default (#9797)

Xinzi Zhouf50bc740065c
diff --git a/.changeset/powersearch-experimental-bottom-sheet.md b/.changeset/powersearch-experimental-bottom-sheet.md
deleted file mode 100644
index a1061040a0..0000000000
--- a/.changeset/powersearch-experimental-bottom-sheet.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-'@astryxdesign/core': patch
----
-
-[experimental] PowerSearch gains a touch surface behind `experimental={{presentation: 'bottom-sheet' | 'adaptive'}}`. `bottom-sheet` makes the whole field one trigger showing display-only filter tokens, and moves filter editing into a flow of tall modal sheets that stack: each step opens above the one that led to it, and dismissing a step reveals the one beneath, so no sheet has a Back action. A Filters sheet lists the active filters as rows that edit a filter, each with a trailing remove button, under a fixed header with Add filter and over a fixed footer with Clear all and Done; with no filter it shows one centered Add filter. Clear all asks for confirmation, removes the editable filters, keeps read-only ones, and leaves Filters open. An Add filter sheet lists the fields grouped (searchable from eight fields), or the content search with the field typeahead's suggestions listed inline, and leaves its search unfocused until tapped; a field whose only operator takes no value adds at once. A value step stages operator → value and confirms from its footer, the editor on the sheet's surface, or in muted sections beside the operator choice. Closed vocabularies are full-width rows, numbers stage as typed, and `string_list` / `entity_list` values edit through the Tokenizer's own sheet presentation titled with the field label. `adaptive` uses the sheet on compact coarse-pointer screens and the popover otherwise, resolved the same way Selector resolves it. The sheet flow loads on demand, so a PowerSearch that does not opt in does not carry it. New `@astryx.powersearch.sheet.*` catalog keys for the sheets' strings; no new theming target. Anything inside PowerSearch's `experimental` prop may change or be removed in a patch release; omitting it keeps the stable behavior.
-
-@imdreamrunner
diff --git a/.changeset/powersearch-presentation-stable.md b/.changeset/powersearch-presentation-stable.md
new file mode 100644
index 0000000000..c85e656840
--- /dev/null
+++ b/.changeset/powersearch-presentation-stable.md
@@ -0,0 +1,9 @@
+---
+'@astryxdesign/core': patch
+---
+
+[feat] PowerSearch gains a touch surface through a new `presentation` prop, `'popover' | 'bottom-sheet' | 'adaptive'`, typed by the new exported `PowerSearchPresentation`, with `'adaptive'` the default. `bottom-sheet` makes the whole field one trigger showing display-only filter tokens, and moves filter editing into a flow of tall modal sheets that stack: each step opens above the one that led to it, and dismissing a step reveals the one beneath, so no sheet has a Back action. A Filters sheet lists the active filters as rows that edit a filter, each with a trailing remove button, under a fixed header with Add filter and over a fixed footer with Clear all and Done; with no filter it shows one centered Add filter. Clear all asks for confirmation, removes the editable filters, keeps read-only ones, and leaves Filters open. An Add filter sheet lists the fields grouped (searchable from eight fields), or the content search with the field typeahead's suggestions listed inline, and leaves its search unfocused until tapped; a field whose only operator takes no value adds at once. A value step stages operator → value and confirms from its footer, the editor on the sheet's surface, or in muted sections beside the operator choice. Closed vocabularies are full-width rows, numbers stage as typed, and `string_list` / `entity_list` values edit through the Tokenizer's own sheet presentation titled with the field label. `adaptive` uses the sheet on compact coarse-pointer screens and the popover otherwise, resolved the same way Selector resolves it. The sheet flow loads on demand, only when a field presents it. New `@astryx.powersearch.sheet.*` catalog keys for the sheets' strings; no new theming target.
+
+The API change is additive: the prop is new and optional, and no existing prop, type or export is removed or narrowed. The behavior changes only on compact coarse-pointer screens (phones), which is what `'adaptive'` is for: there a PowerSearch with no `presentation` shows the trigger and the sheet flow, a filter reaches `onChange` when its value step confirms, and `menuWidth` and `tokenOverflowBehavior` have no surface, with a development warning that names them. With a mouse or trackpad, on a screen that is not compact, in the server render and while hydrating, nothing changes. Pass `presentation="popover"` to keep the previous behavior on every device. Shipping this default in a patch is a product decision of the engineering owner, agreed with the owner of the compatibility policy.
+
+@imdreamrunner
diff --git a/apps/storybook/stories/PowerSearch.stories.tsx b/apps/storybook/stories/PowerSearch.stories.tsx
index 532afcfc12..b8d5059e1e 100644
--- a/apps/storybook/stories/PowerSearch.stories.tsx
+++ b/apps/storybook/stories/PowerSearch.stories.tsx
@@ -1038,6 +1038,7 @@ export const IssueTracker: Story = {
maxSearchResults: 2,
maxOperatorMenuItems: 2,
menuWidth: 700,
+ presentation: 'popover',
},
parameters: {
docs: {
@@ -1816,6 +1817,7 @@ export const OverflowInline: Story = {
filters={filters}
onChange={newFilters => setFilters([...newFilters])}
tokenOverflowBehavior="unfocusedInline"
+ presentation="popover"
/>
<p style={{marginTop: 8}}>
This text will shift down when the search bar expands on focus.
@@ -1841,6 +1843,7 @@ export const OverflowLayer: Story = {
filters={filters}
onChange={newFilters => setFilters([...newFilters])}
tokenOverflowBehavior="unfocusedLayer"
+ presentation="popover"
/>
<p style={{marginTop: 8}}>
This text should not shift when the search bar expands on focus.
@@ -2058,7 +2061,7 @@ export const StatusVariantComparison: Story = {
};
// =============================================================================
-// Experimental bottom-sheet presentation
+// Bottom-sheet presentation
// =============================================================================
// The sheet flow is designed for a phone: view these stories at a compact
@@ -2102,14 +2105,14 @@ const sheetPresetFilters: ReadonlyArray<PowerSearchFilter> = [
];
/**
- * `experimental={{presentation: 'bottom-sheet'}}`: the field is one trigger
+ * `presentation="bottom-sheet"`: the field is one trigger
* with display-only tokens; a tap opens the Filters sheet, whose rows edit or
* remove a filter, Add filter opens above it with the fields, and the value
* step opens above that and stages operator → value. Dismissing a step
* reveals the one beneath. Clear all asks first. List values (Assignee, Tags)
* open the Tokenizer's own sheet above the step.
*/
-export const ExperimentalBottomSheet: Story = {
+export const SheetPresentation: Story = {
render: args => {
const [filters, setFilters] =
useState<ReadonlyArray<PowerSearchFilter>>(sheetPresetFilters);
@@ -2124,22 +2127,22 @@ export const ExperimentalBottomSheet: Story = {
// Clear all) changes it and the flow announces the change.
resultCount={Math.max(1, Math.round(240 / (filters.length + 1)))}
timezoneID="America/Los_Angeles"
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
<FilterDump filters={filters} />
</PhoneFrame>
);
},
- name: 'Experimental: bottom sheet (forced)',
+ name: 'Bottom sheet (forced)',
parameters: {viewport: {defaultViewport: 'mobile2'}},
};
/**
- * `experimental={{presentation: 'adaptive'}}`: the sheet flow on a compact
+ * The default presentation, `adaptive`: the sheet flow on a compact
* coarse-pointer screen, the tokenizer field and editor popover otherwise.
* Resize the viewport or switch the pointer emulation to see it switch.
*/
-export const ExperimentalAdaptive: Story = {
+export const AdaptivePresentation: Story = {
render: args => {
const [filters, setFilters] =
useState<ReadonlyArray<PowerSearchFilter>>(sheetPresetFilters);
@@ -2151,13 +2154,12 @@ export const ExperimentalAdaptive: Story = {
filters={filters}
onChange={next => setFilters(next)}
timezoneID="America/Los_Angeles"
- experimental={{presentation: 'adaptive'}}
/>
<FilterDump filters={filters} />
</PhoneFrame>
);
},
- name: 'Experimental: adaptive',
+ name: 'Adaptive (default)',
};
/**
@@ -2165,7 +2167,7 @@ export const ExperimentalAdaptive: Story = {
* field typeahead's suggestions list inline under the search box, and a value
* suggestion commits a filter straight away.
*/
-export const ExperimentalBottomSheetContentSearch: Story = {
+export const SheetPresentationContentSearch: Story = {
render: args => {
const [filters, setFilters] = useState<ReadonlyArray<PowerSearchFilter>>(
[],
@@ -2178,13 +2180,13 @@ export const ExperimentalBottomSheetContentSearch: Story = {
filters={filters}
onChange={next => setFilters(next)}
placeholder="Search issues…"
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
<FilterDump filters={filters} />
</PhoneFrame>
);
},
- name: 'Experimental: bottom sheet with content search',
+ name: 'Bottom sheet with content search',
parameters: {viewport: {defaultViewport: 'mobile2'}},
};
@@ -2193,7 +2195,7 @@ export const ExperimentalBottomSheetContentSearch: Story = {
* keeps the trigger focusable (aria-disabled) and shows its reason; the result
* count renders at the end of the field in both presentations.
*/
-export const ExperimentalBottomSheetStates: Story = {
+export const SheetPresentationStates: Story = {
render: () => {
const [filters, setFilters] =
useState<ReadonlyArray<PowerSearchFilter>>(sheetPresetFilters);
@@ -2208,7 +2210,7 @@ export const ExperimentalBottomSheetStates: Story = {
isLabelHidden={false}
isReadOnly
resultCount={42}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
<PowerSearch
config={fullConfig}
@@ -2218,7 +2220,7 @@ export const ExperimentalBottomSheetStates: Story = {
isLabelHidden={false}
isDisabled
disabledMessage="Pick a project first"
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
<PowerSearch
config={fullConfig}
@@ -2228,12 +2230,12 @@ export const ExperimentalBottomSheetStates: Story = {
isLabelHidden={false}
status={{type: 'error', message: 'Add at least one filter'}}
startIcon={MagnifyingGlassIcon}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
</div>
</PhoneFrame>
);
},
- name: 'Experimental: bottom sheet states',
+ name: 'Bottom sheet states',
parameters: {viewport: {defaultViewport: 'mobile2'}},
};
diff --git a/docs/specs/components/PowerSearch/PowerSearch.spec.md b/docs/specs/components/PowerSearch/PowerSearch.spec.md
index 62c368b5d9..8c448cf72a 100644
--- a/docs/specs/components/PowerSearch/PowerSearch.spec.md
+++ b/docs/specs/components/PowerSearch/PowerSearch.spec.md
@@ -7,7 +7,7 @@ authority: current
archive_reason: null
superseded_by: null
approved_by: imdreamrunner
-approved_at: 2026-10-23
+approved_at: 2026-11-03
owners: [cixzhang]
review_triggers: [public-api, behavior, layout, accessibility]
verified_by:
@@ -38,7 +38,7 @@ architecture:
contributing: []
system_specs:
[
- spec:AST-017/FR21,
+ spec:AST-017/FR3,
spec:AST-017/FR27,
spec:AST-020/FR15,
spec:AST-055/FR3,
@@ -63,13 +63,14 @@ aligned to that outer surface. When the 720 CSS px readability cap makes the edi
narrower, it stays near the stable control that opened it instead of stretching
across the page or depending on input modality.
-PowerSearch also offers an experimental touch presentation (DEC-3): the whole
-field becomes one trigger showing display-only filter tokens, and the filter
-work moves into a stack of tall modal bottom sheets — Filters, Add filter, and a
-value step, each opened above the one that led to it and each dismissed back to
-it — that reads on a compact touch screen without a software keyboard covering
-the editor. Omitting the option keeps the tokenizer and editor popover on every
-device. DEC-3 states the flow's shape.
+PowerSearch also offers a touch presentation, the default on compact
+coarse-pointer screens (DEC-3): the whole field becomes one trigger showing
+display-only filter tokens, and the filter work moves into a stack of tall
+modal bottom sheets — Filters, Add filter, and a value step, each opened above
+the one that led to it and each dismissed back to it — that reads on a compact
+touch screen without a software keyboard covering the editor. With a fine
+pointer or on a screen that is not compact the field keeps the tokenizer and
+editor popover, and `presentation="popover"` keeps them on every device. DEC-3 states the flow's shape.
Where the shipped PowerSearch does not yet meet a requirement, the row carries a
present-tense implementation gap note.
@@ -79,33 +80,40 @@ present-tense implementation gap note.
- Released default preserved: `no` for editor popovers anchored to a PowerSearch
wider than 720 CSS px; other widths preserve their current sizing behavior.
- Compatibility class (DEC-1, DEC-2): intentional default layout and placement
- change with no public API change. DEC-3 adds the `experimental.presentation`
- option, outside the stable compatibility promise, as the Experimental surface
- bullet states.
+ change with no public API change. DEC-3 adds the stable `presentation` prop
+ and its `adaptive` default, as the two DEC-3 bullets below state.
- Controlled/uncontrolled behavior: unchanged.
-- Migration decisions: `component:PowerSearch/DEC-1` and
- `component:PowerSearch/DEC-2`.
-- Experimental surface (DEC-3): the touch sheet presentation is the
- `presentation` option inside the optional `experimental` prop object, outside
- the stable compatibility promise (`spec:AST-017/FR21`). Omitting `experimental`,
- or omitting `presentation` inside it, keeps the tokenizer field and its editor
- popover on every device. Changes to the option ship as `[experimental]` patch
- releases (`spec:AST-017/FR22`). While the option is experimental the sheet
- presentation adds no theming target (`spec:AST-017/FR27`).
-- One stable fix alongside DEC-3, outside the experimental exception
- (`spec:AST-017/FR22`): the result count is not announced on mount under
+- Migration decisions: `component:PowerSearch/DEC-1`,
+ `component:PowerSearch/DEC-2`, and, for the `adaptive` default,
+ `presentation="popover"` (below).
+- Stable presentation (DEC-3): `presentation` is a new stable prop. The API
+ change is additive: the prop is new and optional, and no existing prop,
+ type, or export is removed or narrowed. The sheet presentation adds no
+ theming target.
+- Default change (DEC-3): `presentation` defaults to `adaptive`, a change of the released `popover` default. With a fine pointer, on a screen that is not compact, on the
+ server, and while hydrating, a field without `presentation` renders the
+ tokenizer field and editor popover exactly as before (`spec:AST-017/FR59`).
+ On a compact coarse-pointer screen it renders the trigger and the sheet flow
+ (FR11–FR21): filters are added and edited through stacked sheets, not the
+ typeahead and editor popover, a filter commits when its value step
+ confirms, and `menuWidth` and `tokenOverflowBehavior` have no surface. The behavior changes only there, which is what `adaptive` is for. `presentation="popover"` restores the previous surface
+ on every device — the restoring input `spec:AST-017/DEC-23` and
+ `architecture:public-component-api/INV16` name. No codemod adds it, because
+ adding it to every PowerSearch would opt every caller out of the new
+ default. The stable prop and this default ship together in a patch as `[feat]`: that release tier is a product decision of the engineering owner, with the agreement of the owner of `spec:AST-017` (DEC-3).
+- One stable fix alongside DEC-3: the result count is not announced on mount under
StrictMode (FR19). It qualifies as a `[fix]` under `spec:AST-017/FR5`: it
restores the documented contract (only a change after mount is spoken), no
`onChange` value, prop, or rendered text changes, and no valid consumer
must change. It ships as a `[fix]` patch release of its own.
-- A second stable fix, outside the experimental exception: in the `popover`
+- A second stable fix: in the `popover`
presentation, Backspace on an empty input removes no filter of a read-only
field (FR22). It qualifies as a `[fix]` under `spec:AST-017/FR5`: it
restores the documented `isReadOnly` contract, "Prevent adding, editing, or
removing filters", no prop, `onChange` shape, or rendered text changes, and
no valid consumer relies on a read-only field losing a filter. It ships as a
`[fix]` patch release.
-- A third stable fix, outside the experimental exception: in the `popover`
+- A third stable fix: in the `popover`
presentation, Clear all keeps read-only filters, reports `remove` at the
first removed index, and shows only while an editable filter exists, and
Backspace keeps a read-only filter (FR23). It is a `[fix]` (DEC-4): a
@@ -119,9 +127,8 @@ present-tense implementation gap note.
a value whose operator sets `isDateOnly: false` still differs from the sheet
presentation's (the known gap in Open questions), bringing it to the sheet's
behavior changes what the stable presentation reports through `onChange`, so
- it ships as its own stable change, classified under `spec:AST-017/FR5`,
- outside this experimental option (`spec:AST-017/FR22`).
-- One stable fix (DEC-5), outside the experimental exception: a date-only
+ it ships as its own stable change, classified under `spec:AST-017/FR5`.
+- One stable fix (DEC-5): a date-only
`date_absolute` value reads as one day on the token, in the accessible
label and announcements, and in the editor, in both presentations (FR25).
What a caller observes: with `timezoneID` set, the token, the label, the
@@ -179,11 +186,10 @@ Consumer migration instructions belong in consumer docs and release notes.
## Public concepts
-One public concept is introduced, as an experimental surface: the optional
-`experimental` prop object and its `presentation` option, `'popover' |
-'bottom-sheet' | 'adaptive'` (DEC-3). The option type is inlined on the prop;
-no experimental hook or type is exported. Declarations carry `@experimental`
-and consumer docs carry `stability: 'experimental'` metadata.
+One stable public concept is introduced: the `presentation` prop, with the
+values `'popover' | 'bottom-sheet' | 'adaptive'` and `adaptive` the default,
+typed by the exported `PowerSearchPresentation`, the value set the selection
+controls and Tokenizer use (DEC-3).
The inclusive 400–720 CSS px range and conditional alignment of the editor
popover are internal PowerSearch readability policy, not callsite options.
@@ -193,7 +199,7 @@ menu of the `popover` presentation.
In the sheet presentation the props that describe the tokenizer's typeahead
popover have no surface to act on: `menuWidth` and `tokenOverflowBehavior`.
Passing either while a field resolves to `bottom-sheet` warns once in
-development; neither is silently dropped. `ref` reaches the root element in
+development and names `presentation="popover"`; neither is silently dropped. `ref` reaches the root element in
both presentations, the element this record promises
(`architecture:public-component-api/INV8`); `xstyle`, `className`, and `style`
reach the field container in both. `data-testid` reaches the field's primary
@@ -221,7 +227,7 @@ implementation status. The contract is authoritative; the behavior remains unshi
until its implementation and verification complete.
FR1–FR9 and FR22–FR24 govern the `popover` presentation — the tokenizer field and its editor
-popover, rendered when `experimental` is omitted or resolves to `popover`. The
+popover, rendered when `presentation` resolves to `popover`. The
editor popover does not render in the `bottom-sheet` presentation, whose surface
FR10–FR21 govern. FR25 governs a date-only value in both.
@@ -236,11 +242,11 @@ FR10–FR21 govern. FR25 governs a date-only value in both.
| FR7 | In the `popover` presentation, width and preferred-edge selection MUST still yield to the layer runtime's viewport collision handling so the editor remains horizontally visible within the runtime's existing safe area. | `architecture:layer-runtime` | Accepted contract; implementation pending |
| FR8 | In the `popover` presentation, the width and alignment change MUST NOT alter editor content, field/operator/value state, vertical placement, focus movement, selection, dismissal, or screen-reader semantics. | Compatibility and accessibility requirement | Accepted contract; implementation pending |
| FR9 | In the `popover` presentation, the opening-control descriptor owned by `component:Tokenizer/DEC-1` and consumed by PowerSearch MUST remain package-internal. PowerSearch MUST NOT add a public width, maximum-width, input-ref, or positioning prop for this behavior. | `component:Tokenizer/DEC-1`, `architecture:public-component-api`, and `component:PowerSearch/DEC-1` | Accepted contract; implementation pending |
-| FR10 | `experimental.presentation` selects the surface. `popover`, the value when `experimental` or the option is omitted, is the tokenizer field with its typeahead and editor popover, unchanged except as FR19 (no mount announcement) states. `bottom-sheet` is the trigger and sheet flow of FR11–FR21 on every device. `adaptive` resolves to `bottom-sheet` on compact coarse-pointer screens and to `popover` otherwise, through the same shared resolution the selection controls use (`component:Selector/FR4`). That resolution answers `popover` on the server and during the hydrating render, so an `adaptive` field server-renders as, and hydrates without a mismatch as, the popover presentation's tokenizer field; on a compact coarse-pointer screen the first client render after hydration swaps it to the trigger. Focus follows the resolution rule below: before any interaction nothing in the field has focus and nothing moves, except that with `hasAutoFocus` the server markup's `autofocus` has focused the combobox input, and the swap then moves focus to the trigger within the same visit — the caller is told of neither a blur nor a new focus. The two closed fields share the field's wrapper, border, and minimum height for the size, and show the same tokens, but their row counts may differ: the popover field's editable tokens each carry a 16 px remove control the trigger's display-only tokens do not (FR11), so the trigger's tokens can wrap into fewer rows (seven filters in a 326 px field take seven rows editable and six as display-only tokens), and the popover field also carries its inline combobox input after the tokens, which may take a row of its own — the swap then changes the field's height by those rows (none on the measured story at 390 px, one token row at 414 px). A resolution change while the flow is open takes effect after it closes and focus has returned to the trigger (the focus the close reports, FR11) — the presentation hold `architecture:layer-runtime/INV14` assigns to the layer runtime; INV14 gap: the runtime does not yet provide one (its record names INV14 as ownership not yet met), so until it does the field keeps its own hold, to be replaced by the runtime's when it exists; when the new presentation is `popover`, focus then moves to the tokenizer's combobox input as the same visit — no `onBlur` and no second `onFocus` reaches the caller. A resolution change while the flow is closed takes effect at once; when focus is anywhere inside the closed field — the trigger, the combobox input, a token or its remove control, the clear control, or an interactive `endContent` — and the focused element does not survive the switch, focus moves to the other presentation's primary control (the combobox input, or the trigger) as a continuation of the same visit — no `onBlur` and no `onFocus` reaches the caller for the hand-off; when the focused element survives, or focus is outside the field, focus stays where it is. When the switch to the sheet presentation happens while the popover presentation's editor popover is open, the popover and its focused control unmount with the tokenizer field, and focus moves to the trigger. Focus never lands on the page body. | DEC-3; touch-flow evidence | Current contract; verified by focused sheet tests and real-engine touch evidence. |
+| FR10 | `presentation` selects the surface. `adaptive`, the value when `presentation` is omitted, resolves to `bottom-sheet` on compact coarse-pointer screens and to `popover` otherwise, through the same shared resolution the selection controls use (`component:Selector/FR4`); with a fine pointer or on a screen that is not compact it renders exactly the `popover` presentation. `popover` is the tokenizer field with its typeahead and editor popover on every device, unchanged except as FR19 (no mount announcement) states. `bottom-sheet` is the trigger and sheet flow of FR11–FR21 on every device. That resolution answers `popover` on the server and during the hydrating render, so an `adaptive` field server-renders as, and hydrates without a mismatch as, the popover presentation's tokenizer field; on a compact coarse-pointer screen the first client render after hydration swaps it to the trigger. Focus follows the resolution rule below: before any interaction nothing in the field has focus and nothing moves, except that with `hasAutoFocus` the server markup's `autofocus` has focused the combobox input, and the swap then moves focus to the trigger within the same visit — the caller is told of neither a blur nor a new focus. The two closed fields share the field's wrapper, border, and minimum height for the size, and show the same tokens, but their row counts may differ: the popover field's editable tokens each carry a 16 px remove control the trigger's display-only tokens do not (FR11), so the trigger's tokens can wrap into fewer rows (seven filters in a 326 px field take seven rows editable and six as display-only tokens), and the popover field also carries its inline combobox input after the tokens, which may take a row of its own — the swap then changes the field's height by those rows (none on the measured story at 390 px, one token row at 414 px). A resolution change while the flow is open takes effect after it closes and focus has returned to the trigger (the focus the close reports, FR11) — the presentation hold `architecture:layer-runtime/INV14` assigns to the layer runtime; INV14 gap: the runtime does not yet provide one (its record names INV14 as ownership not yet met), so until it does the field keeps its own hold, to be replaced by the runtime's when it exists; when the new presentation is `popover`, focus then moves to the tokenizer's combobox input as the same visit — no `onBlur` and no second `onFocus` reaches the caller. A resolution change while the flow is closed takes effect at once; when focus is anywhere inside the closed field — the trigger, the combobox input, a token or its remove control, the clear control, or an interactive `endContent` — and the focused element does not survive the switch, focus moves to the other presentation's primary control (the combobox input, or the trigger) as a continuation of the same visit — no `onBlur` and no `onFocus` reaches the caller for the hand-off; when the focused element survives, or focus is outside the field, focus stays where it is. When the switch to the sheet presentation happens while the popover presentation's editor popover is open, the popover and its focused control unmount with the tokenizer field, and focus moves to the trigger. Focus never lands on the page body. | DEC-3; touch-flow evidence | Current contract; verified by focused sheet tests and real-engine touch evidence. |
| FR11 | In the sheet presentation the field's control is one trigger: a button with `aria-haspopup="dialog"` and `aria-expanded`, whose accessible name is the field label followed by the trigger's visible text — the placeholder while no filter exists, otherwise the text of the filter tokens — so the name contains what is visible and exposes the selected filters. The tokens are display-only — each is the token's static structure (`component:Token/FR2`): no remove control, no click of its own, no inner control inside the trigger button — and the tokens, the placeholder, and the empty space around them belong to the trigger: a tap on any of them opens the flow. Tokens wrap onto further lines; the trigger does not reserve a row of its own once a token exists. The trigger's tokens are the popover presentation's tokens, the same component and the same words for a value, and a `date_absolute` value reads as the sheet's date editor shows it (FR17): a date-only value as its day in `timezoneID`, else the UTC day, and a value whose operator sets `isDateOnly: false` as its date and time in `timezoneID`, else the viewer's zone. A `components[type].Token` override renders on the trigger in place of PowerSearch's token, receiving the props the popover presentation hands it — `config`, `filter`, `field`, `operator`, `maxLength`, `isDisabled` — with `onClick` and `onRemove` undefined, as the popover hands them for a read-only filter: the trigger's tokens are display-only, and the override formats its own value. `startIcon` renders in the trigger's lane. The result count and `endContent` render in the field's end lane, outside the trigger button and after it: an interactive `endContent` keeps its own tab stop, its own taps, and its own accessible name, and a tap on it does not open the flow, so a caller's control is never nested inside the component's button and the end lane's text is not part of the trigger's name. `size` sizes the trigger field and its tokens as it sizes the tokenizer field; `statusVariant` places `status.message` as the popover presentation places it; `hasAutoFocus` focuses the trigger on mount. `onFocus` fires when focus enters the field from outside and `onBlur` when it leaves the field: opening the flow moves focus into a sheet, outside the field, so `onBlur` fires, and the close that returns focus to the trigger fires `onFocus` — as the popover presentation fires them around its editor. While disabled the trigger stays focusable with `aria-disabled="true"`, never carries the native `disabled` attribute, does not open, and shows `disabledMessage` as the field does (`spec:AST-085/FR1`, `FR2`). When the component becomes disabled with the flow open, every open sheet of the flow closes and focus moves to the trigger, the destination this record names (`spec:AST-085/FR4`). | DEC-3; touch-flow evidence; `spec:AST-085`; WCAG 2.5.3 | Current contract; verified by focused sheet tests and real-engine touch evidence. Implementation gap: the trigger's token reads a `date_absolute` value whose operator sets `isDateOnly: false` as the popover presentation's token does, as its day in the device's zone with no time, not as a date and time in `timezoneID`. |
| FR12 | Opening the flow from a field with at least one filter, or from a read-only field, shows the Filters sheet, a tall modal sheet named "Filters". Its header — a heading and, while the field is interactive and at least one filter exists, an Add filter button at the medium size whose hit area is at least 44 px tall — and its footer — Done and, while `hasClear` is set, the field is interactive, and at least one editable filter exists, Clear all — stay fixed while only the rows between them scroll, the scroll viewport reaching the sheet's edge so its scrollbar does too, with the rows' text on the header's inset. One row per filter shows "{field label} {operator label}" (one catalog message, so a locale can reorder it) and, in bold, the value as the trigger's token shows it — the same formatter, so the same words, with the token's width budget lifted: the row never truncates a single value and never collapses a list to its "{n} items" count — with the token's summaries resolved from the catalog (`@astryx.powersearch.valueEditor.dateRange`, `itemsCount`, `filtersCount`, ICU plurals): an `integer` or `float` value reads as the token's own text (`String(value)`: `2.3456`, `1e+21`, `1e-7`, and `0` for negative zero) wherever the locale writes numbers with the token's numerals — Latin digits and a `.` decimal mark — and elsewhere with the locale's digits and decimal mark, no grouping and no rounding; a `string_list`, `enum_list`, or `entity_list` value reads as all of its items joined by the locale's narrow conjunction list (`Intl.ListFormat`, `{type: 'conjunction', style: 'narrow'}` — "Open, Closed" in English, "高、中" in Simplified Chinese and Japanese, "A, B und C" in German); a date-only `date_absolute` value reads as its day in `timezoneID`, else the UTC day, with no time, and one whose operator sets `isDateOnly: false` as its date and time in `timezoneID`, else the viewer's zone, a `date_range` as "date range", a `nested` value as "{n} filters", and a `date_relative` value as the value step's choice row reads it ("3 days ago", FR20) when a choice matches the stored value, otherwise as stored. A row's label and value are one catalog message, "{label} {value}", the same message the removal announcement of AR6 uses, with the value segment bold. A filter the field can edit is a row button that opens the value step on it, with a trailing remove action — an icon button at the medium size named "Remove {field label} filter", its hit area at least 44 px square, that commits `onChange(rest, 'remove', index)` without opening the step — except that a filter whose operator takes an `empty` value (a one-tap boolean filter) is a row whose tap removes it, with the same trailing remove action, since it has no value to edit; a read-only filter, or every filter while the field is read-only, is a plain row with no remove action, as the popover gives such a token no remove control. A `nested` filter's row is a row button like any other; its step edits the group with the popover presentation's built-in nested editor (FR14). An editable filter whose field or operator the config no longer has — which the trigger still shows as a token — lists as a row button reading the field's label when the config still has the field and the raw key for whatever is gone — "{field key} {operator key}" when both are, "{field label} {operator key}" when only the operator is — that opens the step's "This filter is no longer available" state (FR14), its trailing remove action still the removal path; it is a plain row while the filter, or the field, is read-only. With no filter the body is one empty state: a heading "No filters applied", a line of guidance, and, while the field is interactive, a centered primary Add filter action that is then the sheet's only Add filter (the header shows none), so the single thing to do is the only visible action. Done closes the flow. Clear all opens a confirmation above the sheet — a dialog titled "Clear all filters?" with "Clear filters" and "Keep filters" — and only confirming commits `onChange(kept, 'remove', <index of the first removed filter>)`, where `kept` is the read-only filters in their order: read-only filters are the consumer's, not the person's, so Clear all leaves them in place, as the popover presentation's Clear all does (FR23); the Filters sheet stays open for further editing and focus returns to it (FR16). After the flow closes focus returns to the trigger. | DEC-3; touch-flow evidence; the read-only filter contract (`isReadOnly`, FR22); DEC-4 | Current contract; verified by focused sheet tests and real-engine touch evidence. Implementation gap: a row reads a `date_absolute` value whose operator sets `isDateOnly: false` as the trigger's token does, as its day in the device's zone with no time, not as a date and time in `timezoneID`. |
| FR13 | Add filter — from the Filters sheet's Add filter action, or directly when an interactive field with no filter opens — is a tall modal sheet named "Add filter" opened above the Filters sheet, which stays open beneath it (FR15a), so the sheet has no Back action: dismissing it — Escape, a scrim tap, a swipe — reveals Filters again, or closes the flow when Add filter was the entry point, in which case its fixed footer holds Done. Its header — the heading and, when one shows, the search field — stays fixed while the rows scroll. Without a content-search field it lists the visible fields grouped by `group`, each group a named list: the ungrouped fields first, under the heading "General", then each group under its name in order of first appearance, each a row button with the field's icon, a trailing chevron — or, for a field whose only operator takes an `empty` value, a trailing plus, since choosing it adds the filter at once (FR15) — and, once the field count reaches eight, a "Search filters" field above the list that matches labels and `typeaheadAliases` case-insensitively, caps a non-empty query's matches at `maxSearchResults`, and shows the empty state "No filters match your search" when nothing matches. With a `contentSearchFieldKey` whose default operator takes a `string` value it shows instead a "Search" searchbox using `placeholder`, with the same suggestions the popover presentation's typeahead offers listed inline as row buttons ("Search results"): fields, field-and-operator pairs, value matches, and a leading free-text item for the content field; Enter commits the first suggestion, ArrowDown and ArrowUp move between the search and the rows — arrow movement across independently focusable controls, recorded here as this record's exception to `spec:AST-020/FR15`, which adopts arrow keys for a single composite only: the searchbox-to-list continuity is what the popover presentation's combobox gives the same suggestions, and the rows stay in the Tab order as well — an IME-composing Enter does nothing, and a query with no suggestion shows the empty state "No results found" — the searchbox's `aria-controls` names the results list, or that message while nothing lists, so it always names an element; the field list's "No filters match your search" likewise shows only for a non-empty query that matches nothing, never for a config with no field. Each of the two is a compact empty state with a search icon, that title, and the description "Try a different search.", mounted only while the Add filter sheet is the open one. Neither search field takes focus when the sheet opens: the sheet opens with focus on its panel and the software keyboard stays down until the person taps the search; a direct vertical touch drag on the rows while a search field has focus blurs it, so the keyboard leaves and the rows can be read. A suggestion that carries a value commits `onChange([...filters, filter], 'add', filters.length)`, announces `Added {label}` inside the Filters sheet (AR6), and shows Filters as FR15a states; any other suggestion or field row opens the value step with that field and operator, above Add filter. Every visible field lists, a field whose every operator is `nested` included: the value step edits every operator's value (FR14). | DEC-3; touch-flow evidence; current typeahead source | Current contract; verified by focused sheet tests and real-engine touch evidence. |
-| FR14 | The value step is a tall modal sheet that edits every operator's value, opened above the sheet that led to it — Filters for an edit, Add filter for a creation — which stays open beneath it (FR15a); its title is the dialog's name (AR5), and for a filter whose field or operator the config no longer has it reads as the Filters row does (FR12): the field's label when the config still has the field, the raw key for whatever is gone. Its header and footer stay fixed while the body scrolls. When the field offers more than one operator the body starts with an "Operator" radio group whose options read "{field label} {operator label}" and list the field's operators, with the operator the step opened with checked — the filter's operator while editing, and while creating the operator the suggestion named (FR13) or else the field's default operator, else its first; otherwise there is no group and the title is "{field label} {operator label}" naming that operator. When no operator label applies the title is the field label. The body below the group is the editor for the checked operator's value type: the sheet-native controls of FR17, or for a `nested` value the popover presentation's built-in nested editor — the sub-filter tree with its Add action, each sub-filter's field, operator, and value controls, and removal — rendered as the popover renders it, with one difference: the step's Operator group takes the place of the editor's root group-operator picker, which is not shown, and the tree root reads the checked operator's label; a sub-filter's controls are the popover editor's own, in their default presentation (a Selector's menu, the Tokenizer's inline field), not the sheet's choice rows (FR17) or Tokenizer sheet (FR21), which govern the step's top-level value only, because the sheet passes no `experimental` option down to them; the tree is its own width container, so below 400 CSS px its rows wrap instead of overflowing the sheet, as they wrap in a narrow popover. A group is created and edited the same way in both presentations; switching the operator swaps the body. A value chosen in the body is staged, not committed: no `onChange` fires until the footer confirms it. Changing the operator keeps a staged value only when the new operator reads the same value type; an `empty` operator stages `{type: 'empty'}`. The body's sections sit on the sheet's surface when the editor is the body's only section; when the body has more than one section — the Operator group above the editor — each section is a muted container, so the grouping reads without a frame around a lone editor. The footer holds Cancel and the confirm action — `popoverSaveButtonLabel` when given, otherwise "Add filter" while creating and "Apply" while editing — disabled until the staged value is complete; the step has no Remove action: a filter is removed from its Filters row (FR12). When `components[type].Editor` is set for the checked operator's value type it replaces the body below the Operator group and the footer — the group stays outside it, so switching operators still swaps the body — receiving the props the popover presentation hands it, with the same meaning: the caller's `config`, the partial `filter`, `mode`, `saveButtonLabel`, `isReadOnly`, `timezoneID` (FR25), `onSave`, and `onCancel`, and nothing the popover does not pass; `onSave(filter)` commits it, `onSave(null)` removes the filter while editing and returns to Filters unchanged while creating. A controlled update that removes the field or operator being edited replaces the body with "This filter is no longer available", announced from its rendered element inside the sheet while the step is the open one (AR6), and keeps Cancel as the way out, the filter's trailing remove action on its Filters row being the removal path (FR12); when focus was on a control of the replaced body it moves to Cancel, so it never falls to the page body inside the open sheet (FR16). | DEC-3; touch-flow evidence | Current contract; verified by focused sheet tests and real-engine touch evidence. |
+| FR14 | The value step is a tall modal sheet that edits every operator's value, opened above the sheet that led to it — Filters for an edit, Add filter for a creation — which stays open beneath it (FR15a); its title is the dialog's name (AR5), and for a filter whose field or operator the config no longer has it reads as the Filters row does (FR12): the field's label when the config still has the field, the raw key for whatever is gone. Its header and footer stay fixed while the body scrolls. When the field offers more than one operator the body starts with an "Operator" radio group whose options read "{field label} {operator label}" and list the field's operators, with the operator the step opened with checked — the filter's operator while editing, and while creating the operator the suggestion named (FR13) or else the field's default operator, else its first; otherwise there is no group and the title is "{field label} {operator label}" naming that operator. When no operator label applies the title is the field label. The body below the group is the editor for the checked operator's value type: the sheet-native controls of FR17, or for a `nested` value the popover presentation's built-in nested editor — the sub-filter tree with its Add action, each sub-filter's field, operator, and value controls, and removal — rendered as the popover renders it, with one difference: the step's Operator group takes the place of the editor's root group-operator picker, which is not shown, and the tree root reads the checked operator's label; a sub-filter's controls are the popover editor's own, in their default presentation (a Selector's menu, the Tokenizer's inline field), not the sheet's choice rows (FR17) or Tokenizer sheet (FR21), which govern the step's top-level value only, because the nested editor renders its controls in their `popover` presentations; the tree is its own width container, so below 400 CSS px its rows wrap instead of overflowing the sheet, as they wrap in a narrow popover. A group is created and edited the same way in both presentations; switching the operator swaps the body. A value chosen in the body is staged, not committed: no `onChange` fires until the footer confirms it. Changing the operator keeps a staged value only when the new operator reads the same value type; an `empty` operator stages `{type: 'empty'}`. The body's sections sit on the sheet's surface when the editor is the body's only section; when the body has more than one section — the Operator group above the editor — each section is a muted container, so the grouping reads without a frame around a lone editor. The footer holds Cancel and the confirm action — `popoverSaveButtonLabel` when given, otherwise "Add filter" while creating and "Apply" while editing — disabled until the staged value is complete; the step has no Remove action: a filter is removed from its Filters row (FR12). When `components[type].Editor` is set for the checked operator's value type it replaces the body below the Operator group and the footer — the group stays outside it, so switching operators still swaps the body — receiving the props the popover presentation hands it, with the same meaning: the caller's `config`, the partial `filter`, `mode`, `saveButtonLabel`, `isReadOnly`, `timezoneID` (FR25), `onSave`, and `onCancel`, and nothing the popover does not pass; `onSave(filter)` commits it, `onSave(null)` removes the filter while editing and returns to Filters unchanged while creating. A controlled update that removes the field or operator being edited replaces the body with "This filter is no longer available", announced from its rendered element inside the sheet while the step is the open one (AR6), and keeps Cancel as the way out, the filter's trailing remove action on its Filters row being the removal path (FR12); when focus was on a control of the replaced body it moves to Cancel, so it never falls to the page body inside the open sheet (FR16). | DEC-3; touch-flow evidence | Current contract; verified by focused sheet tests and real-engine touch evidence. |
| FR15 | Confirming a created filter commits `onChange([...filters, filter], 'add', filters.length)`; choosing a field whose only operator takes an `empty` value commits that filter the same way from the Add filter row, with no value step. Tapping an editable Filters row opens the value step on that filter in edit mode; Apply commits `onChange(updated, 'edit', index)`; the row's trailing remove action, or a tap on an `empty`-valued filter's row, commits `onChange(rest, 'remove', index)`, where `index` is the filter's position at commit time: a controlled parent that reorders or clones its filters while the step is open is followed by object identity, then by a structurally equal filter in the original slot, then by a unique structural match; when the target is gone or ambiguous nothing is committed and the step closes back to Filters, focus landing as FR16 states for a row that no longer exists. Every commit shows the Filters sheet as FR15a states. While the field is read-only, or disabled, no commit happens. | DEC-3; touch-flow evidence | Current contract; verified by focused sheet tests and real-engine touch evidence. |
| FR15a | The steps stack: each step opens above the sheet that led to it, which stays open — receded and blocked as a covered sheet of the stack (`component:BottomSheet` FR5, FR6) — so the stack is Filters alone; Filters under Add filter; Filters under the value step for an edit; Filters under Add filter under the value step for a creation; or, when Add filter was the entry point, Add filter alone and then Add filter under the value step. No sheet of the flow carries a Back action: a dismissal — Escape, a scrim tap, a swipe, a platform close request — reaches only the top sheet (`component:BottomSheet` FR7), closes it, and reveals the sheet beneath, which takes focus back as FR16 states; dismissing the bottom sheet of the stack closes the flow. Cancel on the value step is that dismissal. A commit closes the step that made it: an edit's commit reveals Filters beneath the value step; a creation's commit, from the value step or from an Add filter row or suggestion that commits directly, closes Add filter, and the value step above it, together and shows Filters, so the person sees the filter just added: Filters is revealed when it is open beneath them; after a direct entry it opens in the same update that closes them — BottomSheet's same-update replace (`component:BottomSheet` FR10) when Add filter alone closes, and the stack's ordinary closes and open (`component:BottomSheet` FR5–FR9) when the value step closes with it. A creating `Editor` override's `onSave(null)` (FR14) shows Filters the same way. The flow therefore has one direction forward (open a step above) and one back (close the top step): no dismissal replaces a step, and Filters opens as other sheets close only when a creation ends after a direct entry. | DEC-3; `component:BottomSheet` FR5–FR9 | Current contract; verified by focused sheet tests and real-engine touch evidence. |
| FR16 | Focus follows the step: after a commit from the value step while creating, the value step and Add filter close and focus lands on the Filters header's Add filter, ready for the next filter; after a content-search suggestion or an `empty`-valued field row commits a filter directly, that filter's row; after Apply or Cancel from editing, the edited filter's row — followed across a controlled reorder or clone, and, when a controlled update removed it or left two filters it could be, the nearest remaining row that is a button around its former position (the following one on a tie), else Add filter; after a row's trailing remove action, or a caller's `Editor` override's `onSave(null)` while editing, which closes the value step, the trailing remove action of the nearest remaining row that has one (the following one on a tie) — a plain row, a read-only filter's, has none and is passed over — so a run of removals needs no re-aiming, else Add filter when no such row remains; after Cancel from creation, Add filter is revealed with focus on the field row that opened the step, or on the content search when a suggestion opened it — and when a controlled update has removed that field, or the content-search field itself, the Add filter sheet's first control: its search field when one shows, else its first field row; after Add filter is dismissed, the Filters header's Add filter, or the empty state's; after a caller's `Editor` override calls `onSave(null)` while creating, the same (the flow returns to Filters unchanged, FR14); after a confirmed Clear all, the Filters sheet's first remaining control — a kept read-only filter's row has none, so Add filter — with the sheet still open; after Keep filters, Escape, or a scrim tap dismisses the confirmation, Clear all (`component:Dialog` AR2); and, as one rule for the Filters and Add filter sheets, when a controlled update unmounts the control that holds focus — a filter's row or its remove action, a dropped field's row, Clear all gone with the last editable filter — the nearest remaining row that is a button, counted among the button rows by the removed one's index (the following one, else the last) — a plain row (a read-only filter, or every filter while the field is read-only) is passed over — else the sheet's first control (the Add filter sheet's search field, Add filter in the Filters header or empty state), else the sheet's panel, so focus never lands on the page body inside the open sheet; when a controlled update replaces the value step's body with the unavailable state while focus was on one of its controls, Cancel (FR14); after the flow closes, the trigger. A sheet that opens takes focus on its panel, not on a control, except where this row names one; the Add filter sheet's search fields never take it on open (FR13). | DEC-3; touch-flow evidence | Current contract; verified by focused sheet tests and real-engine touch evidence. |
@@ -439,9 +445,8 @@ FR10–FR21 govern. FR25 governs a date-only value in both.
| Clear all confirmation | A dialog above Filters; confirming keeps read-only filters and leaves Filters open. | PowerSearch source; `component:Dialog` | Prominent | FR12, AR5 |
DEC-1 and DEC-2 change editor geometry only. The sheet presentation (DEC-3) adds
-no theming target or theme state while it is experimental
-(`spec:AST-017/FR27`); the root element keeps the existing `power-search`
-target in both presentations.
+no theming target or theme state; the root element keeps the existing
+`power-search` target in both presentations.
## Family and system relationships
@@ -458,11 +463,9 @@ target in both presentations.
the presentation value; every touch mode is reachable by callers, as
`bottom-sheet` on every device and `adaptive` on compact coarse-pointer
screens; and the caller's explicit value wins over any default. DEC-3's
- default is `popover`, not the touch surface, because the option is
- experimental (`spec:AST-017/FR21`): INV16 makes touch the default "where it
- serves touch users" once a surface is stable, so an `adaptive` default is the
- stable-promotion decision, recorded then, not a departure now; until then
- touch users are served by the caller opting in.
+ default is `adaptive`: INV16 makes touch the default "where it serves touch
+ users", and the sheet flow is the surface that serves them on a compact
+ coarse-pointer screen.
- `family:overlay-dismissal` continues to own shared Escape and platform-close
ordering; DEC-1 and DEC-2 change no dismissal behavior, and DEC-3's sheets
take the family's dismissal paths through `component:BottomSheet`, as the
@@ -490,8 +493,7 @@ target in both presentations.
region: a persistent container inside the open sheet that delivers the
content added to it, the route an owner rendered inside an open native modal
takes because the shared page-body channel is not exposed there.
-- `spec:AST-017/FR21`, `FR22`, and `FR27` govern the experimental boundary, its
- patch-level changes, and the absence of new stable theming targets.
+- `spec:AST-017/FR3` governs the default change.
### Current dependency
@@ -515,18 +517,18 @@ mark implementation and focused real-Chromium verification as pending.
## Verification map
-| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
-| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------- |
-| FR1–FR3, FR7 | PowerSearch unit tests plus real-Chromium geometry assertions | 399/400, 720/721, wide outer surface, narrow viewport, LTR/RTL, collision | Removing either clamp, capping the main menu, or allowing viewport overflow fails. | `audit:PowerSearch/layout` |
-| FR4–FR6, FR9 | Opening-path tests plus real-Chromium geometry assertions | Add from inner input; edit actual left/right/equidistant token/control; pointer/keyboard; reopen opposite side | Using pointer coordinates, modality, wrapper-only identity, stale identity, or public props fails. | `audit:PowerSearch/interaction` |
-| PR1–PR4 | Instrumented unit tests plus first-frame real-Chromium capture | Open, close, reopen opposite side; hidden placement commit; first painted frame | Render-time reads, repeated reads, observers, pointer tracking, or a default-position flash fails. | `audit:PowerSearch/performance` |
-| FR8, AR1–AR3 | Existing PowerSearch/editor suites plus focused browser checks | Pointer and keyboard edit, apply, cancel, Escape, light dismiss, focus return, selection, semantics | Focus, semantics, selection, dismissal, or reachability changes fail. | `audit:PowerSearch/accessibility` |
-| FR22 | PowerSearch and Tokenizer unit tests | A read-only field with a filter: no Clear all, no token remove control, Backspace on the empty input | A read-only field removes a filter through Backspace, Clear all, or a token control. | `audit:PowerSearch/interaction` |
-| FR23 | PowerSearch and Tokenizer unit tests | Clear all with a read-only filter before two editable ones; every filter read-only; Backspace with a read-only last filter; the words with and without a read-only filter left | A read-only filter is removed, Clear all reports an index other than the first removed one, Clear all shows with no editable filter, or its words say every filter went while one remains. | `audit:PowerSearch/interaction` |
-| FR24 | `PowerSearchTokenNaming.test.tsx`; real-Chromium accessibility tree of a popover token | Popover token with a value, read-only token, editor open and closed, a verb-last remove word | A token named without its value, a missing or stale `aria-expanded`, an unnamed or non-dialog editor, or a remove name that loses its locale's word order fails. | `audit:PowerSearch/accessibility` |
-| FR25 | PowerSearch date-zone tests under four host zones (UTC, Los Angeles, Tokyo, Honolulu) with `timezoneID` set to each zone and unset: token text, the removal announcement that carries the accessible label, the editor's opening day, the stored instant after a pick, a round trip that moves the day and back, a `components` Editor override and `PowerSearchFilterEditor` receiving the zone, range parts read and written, and an `isDateOnly: false` value kept on its released reading; plus the formatter's unit tests | a Los Angeles evening instant with `timezoneID` set and unset, a pick across the US daylight-time change, a `date_range` of two instants | The token and the editor show different days for one value, a re-picked day moves the instant, or a day shows a time | `audit:PowerSearch/interaction` |
-| FR10–FR21, AR4–AR6, PR5 | Focused PowerSearch sheet tests with the compact-touch query stubbed both ways, plus real-engine touch evidence | default popover, forced sheet, adaptive both ways (server markup and hydration as the popover field on a coarse-pointer client, then the trigger, no recoverable error, focus on the body; with `hasAutoFocus`, the autofocused input's focus ending on the trigger with no `onBlur` or `onFocus` to the caller), trigger name, Filters/Add filter/value steps, each value type, list value through the Tokenizer sheet, Clear all, read-only, disabled while open, focus after each step, focus after an `adaptive` switch from the trigger, the input, a removed control, an open editor popover, and from outside the field, a field inside an open Dialog announcing the count, Clear all, and in-sheet messages inside that Dialog and never on the page body, StrictMode result count, in-sheet live region while a sheet is open (added, removed, count, empty results), Clear all announced only after the dialog's exit, row, token and Removed text sharing one formatter, a date-only value as its day in `timezoneID`, else the UTC day, and a date-and-time value in `timezoneID`, else the viewer's zone, on all three (UTC, Tokyo, Honolulu, unset), summaries and relative-date labels and values from the catalog, the row and Removed through one reorderable message, an unmatched relative-date value as stored, a filter the config no longer knows listed and removable, a cleared number unstaged, choice rows as radios and checkboxes with `aria-checked`, a stale read-only filter as a plain row, a removal next to a nested row focusing that row's remove action, a list value joined by the locale's narrow conjunction list in English, Simplified Chinese, Japanese, and German, an empty-result message spoken once per query from its rendered element, a controlled update that removes the edited field moving focus from the replaced body to Cancel and announcing the unavailable state in the sheet while the step is open and never from a step beneath another or retained closed, Apply and Cancel after a controlled update removed the edited filter focusing the nearest row, else Add filter, a row's trailing remove action focusing the next row's remove action, a one-tap `empty`-valued filter added from its field row and removed from its row, Clear all behind its confirmation keeping read-only filters and leaving Filters open, a dismissed step revealing the step beneath with focus restored to it, Add filter opening with its search unfocused and a touch drag on the rows blurring a focused search, a stale filter's step titled as its row reads (raw keys for what is gone, the field's label when the field remains), Cancel from creation after the opening field was removed focusing the Add filter sheet's first control, a removed focused Filters row, a removed Clear all, and a dropped focused field row each handing focus to the nearest remaining row or the sheet's first control, element counts at rest and with each of the Filters, Add filter and value sheets open, and with the Tokenizer's list-value sheet stacked above the value step, under fine and coarse pointers, nothing of the flow in the DOM at rest before a press and after the exit, a nested filter edited and created through the built-in nested editor (its sub-filter rows wrapping inside a 390 and a 414 px sheet; its root operator picker absent on a mixed field, the Operator group in its place), a nested-only field and its suggestion offered, a suggestion's operator checked over the field's default, the Operator group outside a caller's Editor override on a mixed field, a count changed during the exit spoken with Clear all's message as one catalog message after the close, a radio group's arrow keys, Home, and End moving and checking, Space and Enter checking a focused radio row and toggling a checkbox row, right-to-left layout with the row chevrons mirrored in RTL (`design:bidirectionality/DR4`) | A field without `experimental` changes beyond what FR19 states, a value commits before the step confirms, Clear all removes a read-only filter, the trigger carries native `disabled`, focus lands elsewhere, an announcement reaches a channel outside the modal that holds the field at that moment, or the popover bundle carries the sheets. | `audit:PowerSearch/sheet` |
-| Record structure | `scripts/check-knowledge.mjs` | Component-contract schema and current-authority dependency | Missing or invalid metadata and sections fail repository validation. | `audit:PowerSearch/knowledge` |
+| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
+| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
+| FR1–FR3, FR7 | PowerSearch unit tests plus real-Chromium geometry assertions | 399/400, 720/721, wide outer surface, narrow viewport, LTR/RTL, collision | Removing either clamp, capping the main menu, or allowing viewport overflow fails. | `audit:PowerSearch/layout` |
+| FR4–FR6, FR9 | Opening-path tests plus real-Chromium geometry assertions | Add from inner input; edit actual left/right/equidistant token/control; pointer/keyboard; reopen opposite side | Using pointer coordinates, modality, wrapper-only identity, stale identity, or public props fails. | `audit:PowerSearch/interaction` |
+| PR1–PR4 | Instrumented unit tests plus first-frame real-Chromium capture | Open, close, reopen opposite side; hidden placement commit; first painted frame | Render-time reads, repeated reads, observers, pointer tracking, or a default-position flash fails. | `audit:PowerSearch/performance` |
+| FR8, AR1–AR3 | Existing PowerSearch/editor suites plus focused browser checks | Pointer and keyboard edit, apply, cancel, Escape, light dismiss, focus return, selection, semantics | Focus, semantics, selection, dismissal, or reachability changes fail. | `audit:PowerSearch/accessibility` |
+| FR22 | PowerSearch and Tokenizer unit tests | A read-only field with a filter: no Clear all, no token remove control, Backspace on the empty input | A read-only field removes a filter through Backspace, Clear all, or a token control. | `audit:PowerSearch/interaction` |
+| FR23 | PowerSearch and Tokenizer unit tests | Clear all with a read-only filter before two editable ones; every filter read-only; Backspace with a read-only last filter; the words with and without a read-only filter left | A read-only filter is removed, Clear all reports an index other than the first removed one, Clear all shows with no editable filter, or its words say every filter went while one remains. | `audit:PowerSearch/interaction` |
+| FR24 | `PowerSearchTokenNaming.test.tsx`; real-Chromium accessibility tree of a popover token | Popover token with a value, read-only token, editor open and closed, a verb-last remove word | A token named without its value, a missing or stale `aria-expanded`, an unnamed or non-dialog editor, or a remove name that loses its locale's word order fails. | `audit:PowerSearch/accessibility` |
+| FR25 | PowerSearch date-zone tests under four host zones (UTC, Los Angeles, Tokyo, Honolulu) with `timezoneID` set to each zone and unset: token text, the removal announcement that carries the accessible label, the editor's opening day, the stored instant after a pick, a round trip that moves the day and back, a `components` Editor override and `PowerSearchFilterEditor` receiving the zone, range parts read and written, and an `isDateOnly: false` value kept on its released reading; plus the formatter's unit tests | a Los Angeles evening instant with `timezoneID` set and unset, a pick across the US daylight-time change, a `date_range` of two instants | The token and the editor show different days for one value, a re-picked day moves the instant, or a day shows a time | `audit:PowerSearch/interaction` |
+| FR10–FR21, AR4–AR6, PR5 | Focused PowerSearch sheet tests with the compact-touch query stubbed both ways, plus real-engine touch evidence | the default resolving both ways, `popover` kept on a compact coarse-pointer screen, forced sheet, adaptive both ways (the default's server markup the same as `popover`'s, server markup and hydration as the popover field on a coarse-pointer client, then the trigger, no recoverable error, focus on the body; with `hasAutoFocus`, the autofocused input's focus ending on the trigger with no `onBlur` or `onFocus` to the caller), trigger name, Filters/Add filter/value steps, each value type, list value through the Tokenizer sheet, Clear all, read-only, disabled while open, focus after each step, focus after an `adaptive` switch from the trigger, the input, a removed control, an open editor popover, and from outside the field, a field inside an open Dialog announcing the count, Clear all, and in-sheet messages inside that Dialog and never on the page body, StrictMode result count, in-sheet live region while a sheet is open (added, removed, count, empty results), Clear all announced only after the dialog's exit, row, token and Removed text sharing one formatter, a date-only value as its day in `timezoneID`, else the UTC day, and a date-and-time value in `timezoneID`, else the viewer's zone, on all three (UTC, Tokyo, Honolulu, unset), summaries and relative-date labels and values from the catalog, the row and Removed through one reorderable message, an unmatched relative-date value as stored, a filter the config no longer knows listed and removable, a cleared number unstaged, choice rows as radios and checkboxes with `aria-checked`, a stale read-only filter as a plain row, a removal next to a nested row focusing that row's remove action, a list value joined by the locale's narrow conjunction list in English, Simplified Chinese, Japanese, and German, an empty-result message spoken once per query from its rendered element, a controlled update that removes the edited field moving focus from the replaced body to Cancel and announcing the unavailable state in the sheet while the step is open and never from a step beneath another or retained closed, Apply and Cancel after a controlled update removed the edited filter focusing the nearest row, else Add filter, a row's trailing remove action focusing the next row's remove action, a one-tap `empty`-valued filter added from its field row and removed from its row, Clear all behind its confirmation keeping read-only filters and leaving Filters open, a dismissed step revealing the step beneath with focus restored to it, Add filter opening with its search unfocused and a touch drag on the rows blurring a focused search, a stale filter's step titled as its row reads (raw keys for what is gone, the field's label when the field remains), Cancel from creation after the opening field was removed focusing the Add filter sheet's first control, a removed focused Filters row, a removed Clear all, and a dropped focused field row each handing focus to the nearest remaining row or the sheet's first control, element counts at rest and with each of the Filters, Add filter and value sheets open, and with the Tokenizer's list-value sheet stacked above the value step, under fine and coarse pointers, nothing of the flow in the DOM at rest before a press and after the exit, a nested filter edited and created through the built-in nested editor (its sub-filter rows wrapping inside a 390 and a 414 px sheet; its root operator picker absent on a mixed field, the Operator group in its place), a nested-only field and its suggestion offered, a suggestion's operator checked over the field's default, the Operator group outside a caller's Editor override on a mixed field, a count changed during the exit spoken with Clear all's message as one catalog message after the close, a radio group's arrow keys, Home, and End moving and checking, Space and Enter checking a focused radio row and toggling a checkbox row, right-to-left layout with the row chevrons mirrored in RTL (`design:bidirectionality/DR4`) | A field with a fine pointer or on a screen that is not compact changes by default beyond what FR19 states, `presentation="popover"` presents the sheet flow, a value commits before the step confirms, Clear all removes a read-only filter, the trigger carries native `disabled`, focus lands elsewhere, an announcement reaches a channel outside the modal that holds the field at that moment, or the popover bundle carries the sheets. | `audit:PowerSearch/sheet` |
+| Record structure | `scripts/check-knowledge.mjs` | Component-contract schema and current-authority dependency | Missing or invalid metadata and sections fail repository validation. | `audit:PowerSearch/knowledge` |
Current-source Chromium evidence establishes the geometry gap, not implementation
completion:
@@ -576,20 +578,29 @@ Rejected: pointer-coordinate placement, pointer-versus-keyboard branches, always
using one edge, anchoring every width to the inner control, continuous tracking,
render-time geometry reads, and showing before hidden placement state commits.
-### DEC-3 — The touch sheet presentation is an experimental option
+### DEC-3 — The touch sheet is a stable presentation, and adaptive is the default
**Reference:** `component:PowerSearch/DEC-3`
-**Decider:** `imdreamrunner`, 2026-10-23
-
-PowerSearch offers its touch surface through the `presentation` option of the
-optional `experimental` prop object, with the values `popover`, `bottom-sheet`,
-and `adaptive` that the selection controls and Tokenizer use. The option is
-marked `@experimental` in declarations and `stability: 'experimental'` in
-authored docs, so it may change or be removed in a patch release
-(`spec:AST-017/FR21`). Omitting `experimental` keeps the tokenizer field and its
-editor popover on every device. `adaptive` resolves through the shared compact
-coarse-pointer policy, so a PowerSearch, a Tokenizer, and a Selector on the same
-page switch together.
+**Decider:** `imdreamrunner`, 2026-11-03
+
+PowerSearch offers its touch surface through a stable `presentation` prop,
+with the values `popover`, `bottom-sheet`, and `adaptive` that the selection
+controls and Tokenizer use, and `adaptive` is the default: the sheet flow on a
+compact coarse-pointer screen, where the editor popover competes with the
+software keyboard, and the tokenizer field with its editor popover everywhere
+else. A caller's explicit value wins on every device, and `popover` keeps the
+tokenizer field and editor popover (`architecture:public-component-api`
+INV16). `adaptive` resolves through the shared compact coarse-pointer policy,
+so a PowerSearch, a Tokenizer, and a Selector on the same page switch
+together. The stable prop and the `adaptive` default ship together
+in a patch release: the API change is additive, the behavior changes only on
+compact coarse-pointer screens, and `presentation="popover"` keeps the
+previous behavior everywhere. That release tier is the engineering owner's
+product decision, made with the agreement of `cixzhang`, an owner of
+`spec:AST-017`. Rejected: keeping `popover` as the default, because a
+phone then gets the editor popover under the software keyboard unless the
+caller opts in (`component:Selector` DEC-1 rejects the same default for the
+same reason).
The sheet surface: the whole field is one trigger
with display-only tokens; a Filters sheet lists the filters as rows with
@@ -613,17 +624,14 @@ edited through the built-in nested editor; every string comes from the catalog
(FR20); the empty results of Add filter's searches carry Core's titles (FR13);
Clear all says "All filters removed" when no read-only filter remains (AR6); a
one-tap `empty` filter added from its field row is announced `Added {label}`
-(AR6); and the flow mounts nothing until a press (PR5). Rejected: switching
-surfaces automatically on `pointer: coarse` without an opt-in (changes stable
-behavior). Rejected: steps that replace one another in place with Back actions
+(AR6); and the flow mounts nothing until a press (PR5). Rejected: steps that replace one another in place with Back actions
to return (an earlier draft of the flow): a dismissal then
closed the whole flow from any step, and the person re-entered Filters by its
entry point rather than finding it where they left it. Rejected: Remove in the
value step's footer (a second removal path, reached only by opening the step;
the row's trailing action removes in one tap). Rejected: focusing Add filter's
search on open (the software keyboard then covers the rows the person came to
-read). Rejected: a top-level stable `presentation` prop before the surface has
-consumer evidence. Rejected: a separate touch component chosen by the caller
+read). Rejected: a separate touch component chosen by the caller
(two components, two draft states, an import swap per breakpoint).
Owner exception to `architecture:component-style-authoring/INV7`'s layer budget:
@@ -638,7 +646,7 @@ elements cannot do the job: a replaced step would have to be rebuilt on return
and its staged state and scroll position recreated, and a dismissal could not
reveal it. The counts are `document.body.querySelectorAll('*').length` at
390×844. The bound AV5 measures the flow against is the popover presentation's
-open editor on the Experimental Adaptive story under a fine pointer: 334, and
+open editor on the Adaptive (default) story under a fine pointer: 334, and
166 at rest. The sheet flow, on that story under a coarse pointer, each state read once it has settled (every open dialog is that state's own and two readings one second apart agree), reads 123 at rest, 313 with Filters open, 314 with Add filter above Filters, 332 with a choice-row value step above both, 349 with a list-value step above both and 420 with the Tokenizer's list-value sheet above that step, 373 with an edit step above Filters, and 333 with the Clear all confirmation above Filters. From the first press until the exit completes, it keeps the closed Add filter sheet and value step mounted, which is most of the step from 123 to 313; the confirmation mounts only while it is open.
Owner exception to INV7's surface budget, which asks that a pointer-specific
@@ -709,8 +717,7 @@ names it).
FR12, FR17). Such a value can therefore read differently on the popover's
token and on the sheet's trigger and rows; a date-only value reads the same
on both (FR25). Bringing the popover presentation's handling of that value
- to the sheet's is a stable change outside this experimental option
- (Compatibility and migration).
+ to the sheet's is a stable change of its own (Compatibility and migration).
- Known gap, pre-existing in the popover presentation, against
`architecture:internationalization/INV1a`: its token writes the list,
date-range, and nested summaries ("{n} items", "date range", "{n} filters") as
@@ -739,7 +746,7 @@ names it).
editor's own text is a separate stable change for the owner.
- Known gap against `family:input-fields/FR10`, opened by DEC-3: the sheet
presentation's trigger composes Field for the box the tokenizer field has,
- so PowerSearch is now a component that composes Field, which FR10 binds
+ so PowerSearch is a component that composes Field, which FR10 binds
even outside the family's membership, and this record departs from FR10 in
two places. Item 1: `ref`, `id`, `data-*`, `aria-*`, `hidden`, `inert`,
`dir`, and DOM event handlers go to the primary semantic control under
diff --git a/packages/core/api-report.md b/packages/core/api-report.md
index e0c9dcfd88..f51a325053 100644
--- a/packages/core/api-report.md
+++ b/packages/core/api-report.md
@@ -1810,7 +1810,6 @@ component PowerSearch(props: PowerSearchProps)
prop config: PowerSearchConfig
prop disabledMessage?: string
prop endContent?: React.ReactNode
- prop experimental?: { presentation?: 'popover' | 'bottom-sheet' | 'adaptive' } @experimental
prop filters: ReadonlyArray<PowerSearchFilter>
prop handleRef?: React.Ref<PowerSearchHandle>
prop hasAutoFocus?: boolean = false
@@ -1828,6 +1827,7 @@ component PowerSearch(props: PowerSearchProps)
prop onFocus?: (e: React.FocusEvent) => void
prop placeholder?: string = 'Search...'
prop popoverSaveButtonLabel?: string = 'Apply'
+ prop presentation?: PowerSearchPresentation = 'adaptive'
prop ref?: React.Ref<HTMLDivElement>
prop resultCount?: number | string
prop size?: PowerSearchSize = 'md'
@@ -4991,6 +4991,7 @@ interface PowerSearchOperatorWithLabel extends PowerSearchOperatorBase
key: string
label: string
value: OperatorValue
+type PowerSearchPresentation = AdaptivePresentation
interface PowerSearchProps extends Omit<BaseProps<HTMLElement>, 'onChange'> (props of PowerSearch)
type PowerSearchSize = 'sm' | 'md' | 'lg'
interface PowerSearchTokenProps (props of PowerSearchToken)
@@ -8239,6 +8240,7 @@ PowerSearchOperator (.)
PowerSearchOperatorBase (.)
PowerSearchOperatorWithI18nKey (.)
PowerSearchOperatorWithLabel (.)
+PowerSearchPresentation (.)
PowerSearchProps (.)
PowerSearchSize (.)
PowerSearchToken (.)
diff --git a/packages/core/src/PowerSearch/PowerSearch.doc.mjs b/packages/core/src/PowerSearch/PowerSearch.doc.mjs
index 3714e51ce8..26f1b80c3e 100644
--- a/packages/core/src/PowerSearch/PowerSearch.doc.mjs
+++ b/packages/core/src/PowerSearch/PowerSearch.doc.mjs
@@ -208,22 +208,22 @@ export const docs = {
'StyleX styles for layout customization. Must be a stylex.create() value.',
},
{
- name: 'experimental',
- type: "{presentation?: 'popover' | 'bottom-sheet' | 'adaptive'}",
- stability: 'experimental',
+ name: 'presentation',
+ type: "'popover' | 'bottom-sheet' | 'adaptive'",
description:
- "Experimental options: anything in this object may change or be removed in a patch release, and omitting it keeps the stable behavior. presentation (default 'popover') chooses how the field presents filter editing. popover is the tokenizer field with its typeahead and the editor popover. bottom-sheet makes the whole field one trigger showing display-only filter tokens: it opens a Filters sheet listing the filters as rows that edit or remove a filter, with Add filter, Done, and Clear all (which asks first and keeps read-only filters); an Add filter sheet with the fields (or the content search with inline suggestions) opens above it, and a value step that stages operator → value and confirms from its footer opens above that. Dismissing a step reveals the one beneath. List values edit through the Tokenizer's own sheet. adaptive uses the bottom sheet on compact touch screens and the popover otherwise, resolved the same way Selector resolves it. In the sheet presentation menuWidth and tokenOverflowBehavior have no surface to act on and warn in development.",
+ 'How the field presents filter editing. adaptive (the default) uses the bottom sheet on compact touch screens and the popover otherwise, resolved the same way Selector resolves it; the server render and the hydrating render are the popover. popover is the tokenizer field with its typeahead and the editor popover on every device. bottom-sheet makes the whole field, on every device, one trigger showing display-only filter tokens: it opens a Filters sheet listing the filters as rows that edit or remove a filter, with Add filter, Done, and Clear all (which asks first and keeps read-only filters); an Add filter sheet with the fields (or the content search with inline suggestions) opens above it, and a value step that stages operator → value and confirms from its footer opens above that. Dismissing a step reveals the one beneath. List values edit through the Tokenizer\'s own sheet. In the sheet presentation menuWidth and tokenOverflowBehavior have no surface to act on and warn in development. Pass presentation="popover" to keep the tokenizer field and the editor popover on every device.',
+ default: "'adaptive'",
},
],
examples: [
{
- label: 'Touch sheet on compact screens (experimental)',
+ label: 'Keep the popover on every device',
code: `const [filters, setFilters] = useState([]);
<PowerSearch
config={config}
filters={filters}
onChange={next => setFilters(next)}
- experimental={{presentation: 'adaptive'}}
+ presentation="popover"
/>`,
},
],
@@ -481,11 +481,11 @@ export const docsZh = {
description: '用于布局自定义的 StyleX 样式。必须是 stylex.create() 值。',
},
{
- name: 'experimental',
- type: "{presentation?: 'popover' | 'bottom-sheet' | 'adaptive'}",
- stability: 'experimental',
+ name: 'presentation',
+ type: "'popover' | 'bottom-sheet' | 'adaptive'",
description:
- "实验性选项:此对象中的任何内容都可能在补丁版本中更改或移除;省略它即保持稳定行为。presentation(默认 'popover')决定字段如何呈现筛选编辑:popover 为带有预输入和编辑弹出层的标记字段;bottom-sheet 将整个字段变为一个显示只读筛选标记的触发按钮——点按后打开列出筛选项的「筛选」面板,每行可编辑或移除筛选(含添加筛选、完成、全部清除;全部清除会先确认,并保留只读筛选);列出字段(或带内联建议的内容搜索)的「添加筛选」面板在其上方打开,按运算符 → 值暂存并在底部确认的取值步骤再在其上方打开。关闭某一步会露出下方的那一步。列表值通过 Tokenizer 自身的面板编辑。adaptive 在紧凑触摸屏上使用底部面板,其他情况使用 popover,解析方式与 Selector 相同。在底部面板呈现中,menuWidth 和 tokenOverflowBehavior 没有作用对象,并会在开发环境中发出警告。",
+ '字段如何呈现筛选编辑。adaptive(默认)在紧凑触摸屏上使用底部面板,其他情况使用 popover,解析方式与 Selector 相同;服务端渲染和水合期间的渲染均为 popover。popover 在所有设备上为带有预输入和编辑弹出层的标记字段。bottom-sheet 在所有设备上将整个字段变为一个显示只读筛选标记的触发按钮——点按后打开列出筛选项的「筛选」面板,每行可编辑或移除筛选(含添加筛选、完成、全部清除;全部清除会先确认,并保留只读筛选);列出字段(或带内联建议的内容搜索)的「添加筛选」面板在其上方打开,按运算符 → 值暂存并在底部确认的取值步骤再在其上方打开。关闭某一步会露出下方的那一步。列表值通过 Tokenizer 自身的面板编辑。在底部面板呈现中,menuWidth 和 tokenOverflowBehavior 没有作用对象,并会在开发环境中发出警告。传入 presentation="popover" 可在所有设备上保留标记字段和编辑弹出层。',
+ default: "'adaptive'",
},
],
usage: {
@@ -582,7 +582,7 @@ export const docsDense = {
size: 'Search input+token size.',
xstyle:
'StyleX styles for layout customization. Must be stylex.create() value.',
- experimental:
- "Experimental; may change in a patch. presentation: 'popover' (default, tokenizer field + editor popover) | 'bottom-sheet' (one trigger with display-only tokens + stacked Filters / Add filter / value sheets; rows remove inline; Clear all confirms, keeps read-only; list values via Tokenizer's sheet) | 'adaptive' (sheet on compact touch, else popover).",
+ presentation:
+ "'adaptive' (default: sheet on compact touch, else popover; SSR/hydration render popover) | 'popover' (tokenizer field + editor popover, every device) | 'bottom-sheet' (one trigger with display-only tokens + stacked Filters / Add filter / value sheets; rows remove inline; Clear all confirms, keeps read-only; list values via Tokenizer's sheet). Sheet: menuWidth/tokenOverflowBehavior inert (dev warning). presentation=\"popover\" keeps the popover on every device.",
},
};
diff --git a/packages/core/src/PowerSearch/PowerSearch.ssr.test.tsx b/packages/core/src/PowerSearch/PowerSearch.ssr.test.tsx
index 9ab246c86f..411cfe341c 100644
--- a/packages/core/src/PowerSearch/PowerSearch.ssr.test.tsx
+++ b/packages/core/src/PowerSearch/PowerSearch.ssr.test.tsx
@@ -4,11 +4,12 @@
* @file PowerSearch.ssr.test.tsx
* @input PowerSearch server markup and React hydration under a compact
* coarse-pointer `matchMedia`
- * @output Proves an `adaptive` PowerSearch server-renders and hydrates as the
- * popover presentation's field without a recoverable error, then swaps to
- * the sheet presentation's trigger on a touch screen with focus undisturbed
+ * @output Proves a PowerSearch with the default `adaptive` presentation
+ * server-renders and hydrates as the popover presentation's field without
+ * a recoverable error, with the same markup as `popover`, then swaps to the
+ * sheet presentation's trigger on a touch screen with focus undisturbed
* (component:PowerSearch FR10)
- * @position SSR acceptance test for PowerSearch's experimental presentation
+ * @position SSR acceptance test for PowerSearch's presentation
*/
import {act} from 'react';
@@ -86,7 +87,6 @@ async function hydrateAdaptiveOnTouchScreen({
hasAutoFocus={hasAutoFocus}
onFocus={onFocus}
onBlur={onBlur}
- experimental={{presentation: 'adaptive'}}
/>
);
@@ -149,7 +149,22 @@ async function hydrateAdaptiveOnTouchScreen({
}
describe('PowerSearch — SSR', () => {
- it('server-renders and hydrates an adaptive field as the popover field, then swaps to the trigger on a touch screen without a mismatch or moving focus (FR10)', async () => {
+ it('server-renders the default the same as presentation="popover"', async () => {
+ vi.resetModules();
+ const {PowerSearch} = await import('./PowerSearch');
+ const render = (presentation?: 'popover') =>
+ renderToString(
+ <PowerSearch
+ config={config}
+ filters={filters}
+ onChange={() => {}}
+ presentation={presentation}
+ />,
+ );
+ expect(render()).toBe(render('popover'));
+ });
+
+ it('server-renders and hydrates the default adaptive field as the popover field, then swaps to the trigger on a touch screen without a mismatch or moving focus (FR10)', async () => {
const {unmount} = await hydrateAdaptiveOnTouchScreen();
// Nothing had focus before the swap, and nothing takes it.
expect(document.activeElement).toBe(document.body);
diff --git a/packages/core/src/PowerSearch/PowerSearch.tsx b/packages/core/src/PowerSearch/PowerSearch.tsx
index ef7595faf9..addd2b8a8a 100644
--- a/packages/core/src/PowerSearch/PowerSearch.tsx
+++ b/packages/core/src/PowerSearch/PowerSearch.tsx
@@ -8,8 +8,8 @@
* useAdaptivePresentation, and PowerSearchBottomSheet (lazy)
* @output Structured filter bar with token-based filter management
* @position Main component; forwards DOM ref and exposes tokenizer control via
- * handleRef. The experimental `presentation` option swaps the tokenizer
- * field and editor popover for one trigger that opens PowerSearchBottomSheet.
+ * handleRef. The `presentation` prop swaps the tokenizer field and editor
+ * popover for one trigger that opens PowerSearchBottomSheet.
*
* SYNC: When modified, update:
* - /packages/core/src/PowerSearch/index.ts
@@ -58,7 +58,10 @@ import {usePopover} from '../Popover/usePopover';
import {useTooltip} from '../Tooltip/useTooltip';
import {layerViewportInset} from '../Layer/layerViewportInset.stylex';
import {useAnnounce} from '../hooks/useAnnounce';
-import {useAdaptivePresentation} from '../hooks/useAdaptivePresentation';
+import {
+ type AdaptivePresentation,
+ useAdaptivePresentation,
+} from '../hooks/useAdaptivePresentation';
import {useDevWarning} from '../hooks/useDevWarning';
import {useIsHydrating} from '../hooks/useIsHydrating';
import {
@@ -416,39 +419,34 @@ export interface PowerSearchProps extends Omit<
* Keys are operator value types (e.g. 'string', 'enum', 'date_absolute').
*/
components?: PowerSearchComponents;
-
/**
- * Experimental options, outside the stable compatibility promise: anything
- * in this object may change or be removed in a patch release. Omit it for
- * the stable behavior.
- * @experimental
+ * How the field presents filter editing.
+ * - `'popover'`: the tokenizer field with its typeahead and the editor
+ * popover, on every device.
+ * - `'bottom-sheet'`: the whole field is one trigger showing display-only
+ * filter tokens; it opens a stack of sheets. Filters lists the filters
+ * as rows that edit or remove one, with Add filter, Done, and Clear
+ * all, which asks first and keeps read-only filters. Add filter opens
+ * above it with the fields (or the content search with inline
+ * suggestions), and a value step opens above that, stages operator →
+ * value, and confirms from its footer. Dismissing a step reveals the
+ * one beneath. Suited to compact touch screens, where the editor
+ * popover competes with the software keyboard.
+ * - `'adaptive'`: the bottom sheet on compact coarse-pointer screens,
+ * otherwise the popover — the same resolution Selector uses. The server
+ * render and the hydrating render are the popover.
+ *
+ * In the sheet presentation `menuWidth` and `tokenOverflowBehavior` have
+ * no surface to act on and warn in development. Pass `'popover'` to keep
+ * the tokenizer field and the editor popover on every device.
+ * @default 'adaptive'
*/
- experimental?: {
- /**
- * How the field presents filter editing.
- * - `'popover'`: the tokenizer field with its typeahead and the editor
- * popover — the stable behavior.
- * - `'bottom-sheet'`: the whole field is one trigger showing display-only
- * filter tokens; it opens a stack of sheets. Filters lists the filters
- * as rows that edit or remove one, with Add filter, Done, and Clear
- * all, which asks first and keeps read-only filters. Add filter opens
- * above it with the fields (or the content search with inline
- * suggestions), and a value step opens above that, stages operator →
- * value, and confirms from its footer. Dismissing a step reveals the
- * one beneath. Suited to compact touch screens, where the editor
- * popover competes with the software keyboard.
- * - `'adaptive'`: the bottom sheet on compact coarse-pointer screens,
- * otherwise the popover — the same resolution Selector uses.
- *
- * In the sheet presentation `menuWidth` and `tokenOverflowBehavior` have
- * no surface to act on and warn in development.
- * @experimental
- * @default 'popover'
- */
- presentation?: 'popover' | 'bottom-sheet' | 'adaptive';
- };
+ presentation?: PowerSearchPresentation;
}
+/** How PowerSearch presents filter editing; see `PowerSearchProps.presentation`. */
+export type PowerSearchPresentation = AdaptivePresentation;
+
// =============================================================================
// State
// =============================================================================
@@ -583,7 +581,7 @@ export function PowerSearch({
className,
style,
components: componentOverrides,
- experimental,
+ presentation = 'adaptive',
}: PowerSearchProps) {
const size = useSize(sizeProp, 'md');
const config = useInternalConfig(configProp);
@@ -597,11 +595,6 @@ export function PowerSearch({
popoverSaveButtonLabelFromProps ?? t('@astryx.powersearch.editor.apply');
const tokenizerRef = useRef<TokenizerHandle>(null);
- // Experimental presentation. `adaptive`
- // resolves through the policy the selection controls share; an open flow
- // keeps its presentation until it closes, so a resolution change mid-task
- // cannot pull the surface out from under the person.
- const presentation = experimental?.presentation ?? 'popover';
const resolvedPresentation = useAdaptivePresentation(presentation);
const [isSheetOpen, setIsSheetOpen] = useState(false);
// Latched for the flow's lifetime: the flow stays presented after it closes
@@ -687,12 +680,12 @@ export function PowerSearch({
}
useDevWarning(
'PowerSearch',
- '`menuWidth` has no surface in the bottom-sheet presentation: the sheet flow has no typeahead popover to size. Scope it to the popover presentation or leave it out.',
+ '`menuWidth` has no surface in the bottom-sheet presentation: the sheet flow has no typeahead popover to size. Pass `presentation="popover"` to keep the popover on every device, or leave it out.',
isSheetPresentation && menuWidth != null,
);
useDevWarning(
'PowerSearch',
- '`tokenOverflowBehavior` has no surface in the bottom-sheet presentation: the trigger wraps its display-only tokens. Scope it to the popover presentation or leave it out.',
+ '`tokenOverflowBehavior` has no surface in the bottom-sheet presentation: the trigger wraps its display-only tokens. Pass `presentation="popover"` to keep the tokenizer field on every device, or leave it out.',
isSheetPresentation && tokenOverflowBehavior != null,
);
diff --git a/packages/core/src/PowerSearch/PowerSearchBottomSheet.test.tsx b/packages/core/src/PowerSearch/PowerSearchBottomSheet.test.tsx
index e3465dbe8d..f13b7b0aa5 100644
--- a/packages/core/src/PowerSearch/PowerSearchBottomSheet.test.tsx
+++ b/packages/core/src/PowerSearch/PowerSearchBottomSheet.test.tsx
@@ -3,7 +3,7 @@
/**
* @file PowerSearchBottomSheet.test.tsx
* @input Uses vitest, @testing-library/react, PowerSearch with
- * `experimental.presentation`, and the sheet helpers
+ * `presentation`, and the sheet helpers
* @output Unit tests for the touch presentation (`component:PowerSearch`
* FR10–FR21, AR4–AR6): presentation resolution, the trigger, the Filters
* sheet, Add filter, the operator step, each value type (list values
@@ -348,9 +348,7 @@ const valueTypesConfig: PowerSearchConfig = {
],
};
-type Presentation = NonNullable<
- NonNullable<PowerSearchProps['experimental']>['presentation']
->;
+type Presentation = NonNullable<PowerSearchProps['presentation']>;
function setup(
props: Partial<PowerSearchProps> & {presentation?: Presentation} = {},
@@ -362,7 +360,7 @@ function setup(
config={config}
filters={[]}
onChange={onChange}
- experimental={{presentation}}
+ presentation={presentation}
{...rest}
/>,
);
@@ -572,23 +570,25 @@ afterEach(() => {
// =============================================================================
describe('PowerSearch presentation resolution (FR10)', () => {
- it('keeps the tokenizer field when experimental is omitted', () => {
- render(<PowerSearch config={config} filters={[]} onChange={vi.fn()} />);
+ const plain = (props: Partial<PowerSearchProps> = {}) => (
+ <PowerSearch config={config} filters={[]} onChange={vi.fn()} {...props} />
+ );
+
+ it('keeps the tokenizer field by default on a screen that is not compact coarse-pointer', () => {
+ render(plain());
expect(screen.getByRole('combobox')).toBeInTheDocument();
expect(document.querySelector(SHEET_TRIGGER)).toBeNull();
});
- it('keeps the tokenizer field for an empty experimental object and for popover', () => {
- const {unmount} = render(
- <PowerSearch
- config={config}
- filters={[]}
- onChange={vi.fn()}
- experimental={{}}
- />,
- );
- expect(screen.getByRole('combobox')).toBeInTheDocument();
- unmount();
+ it('defaults to adaptive: the sheet trigger on a compact coarse-pointer screen', () => {
+ stubMatchMedia(query => query === COMPACT_TOUCH_PRESENTATION_QUERY);
+ render(plain());
+ expect(screen.queryByRole('combobox')).toBeNull();
+ expect(document.querySelector(SHEET_TRIGGER)).not.toBeNull();
+ });
+
+ it('keeps the tokenizer field with presentation="popover" on a compact coarse-pointer screen', () => {
+ stubMatchMedia(query => query === COMPACT_TOUCH_PRESENTATION_QUERY);
setup({presentation: 'popover'});
expect(screen.getByRole('combobox')).toBeInTheDocument();
expect(document.querySelector(SHEET_TRIGGER)).toBeNull();
@@ -719,7 +719,7 @@ describe('PowerSearch sheet trigger (FR11)', () => {
config={config}
filters={[openFilter]}
onChange={vi.fn()}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
isDisabled
/>,
);
@@ -733,7 +733,7 @@ describe('PowerSearch sheet trigger (FR11)', () => {
config={config}
filters={[openFilter]}
onChange={vi.fn()}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>,
);
expect(isSheetOpen()).toBe(false);
@@ -846,7 +846,7 @@ describe('PowerSearch sheet trigger (FR11)', () => {
config={config}
filters={[]}
onChange={vi.fn()}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
resultCount={12}
/>
</StrictMode>,
@@ -862,7 +862,7 @@ describe('PowerSearch sheet trigger (FR11)', () => {
config={config}
filters={[]}
onChange={vi.fn()}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
resultCount={1}
/>
</StrictMode>,
@@ -884,7 +884,7 @@ describe('PowerSearch sheet trigger (FR11)', () => {
config={config}
filters={[openFilter]}
onChange={vi.fn()}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
resultCount={3}
/>,
);
@@ -900,7 +900,7 @@ describe('PowerSearch sheet trigger (FR11)', () => {
config={config}
filters={[openFilter]}
onChange={vi.fn()}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
resultCount={1}
/>,
);
@@ -965,7 +965,7 @@ describe('PowerSearch sheet trigger (FR11)', () => {
filters={filters}
onChange={onChange}
resultCount={resultCount}
- experimental={{presentation}}
+ presentation={presentation}
/>
</Dialog>
);
@@ -1188,7 +1188,7 @@ describe('PowerSearch sheet trigger (FR11)', () => {
onChange={() => {}}
hasAutoFocus
onFocus={onFocus}
- experimental={{presentation: 'adaptive'}}
+ presentation="adaptive"
/>
</>,
);
@@ -1329,7 +1329,7 @@ describe('PowerSearch sheet trigger (FR11)', () => {
// The count follows the filters, so Clear all changes it in the
// same commit as the removal.
resultCount={filters.length === 0 ? 240 : 12}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -1383,7 +1383,7 @@ describe('PowerSearch sheet trigger (FR11)', () => {
filters={filters}
onChange={next => setFilters(next)}
resultCount={resultCount}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -1469,7 +1469,7 @@ describe('PowerSearch Filters sheet (FR12)', () => {
config={config}
filters={filters}
onChange={next => setFilters(next)}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -1587,7 +1587,7 @@ describe('PowerSearch Filters sheet (FR12)', () => {
onChange(next, type, index);
setFilters(next);
}}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -1680,7 +1680,7 @@ describe('PowerSearch Filters sheet (FR12)', () => {
config={config}
filters={[openFilter]}
onChange={vi.fn()}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
isDisabled
/>,
);
@@ -1711,7 +1711,7 @@ describe('PowerSearch Filters sheet (FR12)', () => {
setFilters(next);
setIsDisabled(true);
}}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
</>
);
@@ -1795,7 +1795,7 @@ describe('PowerSearch Filters sheet (FR12)', () => {
setFilters(next);
}}
isReadOnly={readOnly}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -1880,7 +1880,7 @@ describe('PowerSearch Filters sheet (FR12)', () => {
config={config}
filters={[openFilter]}
onChange={vi.fn()}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
</div>,
);
@@ -2058,7 +2058,7 @@ describe('PowerSearch Filters sheet (FR12)', () => {
onChange(next, type, index);
setFilters(next);
}}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -2122,7 +2122,7 @@ describe('PowerSearch Filters sheet (FR12)', () => {
config={config}
filters={filters}
onChange={() => {}}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -2158,7 +2158,7 @@ describe('PowerSearch Filters sheet (FR12)', () => {
config={cfg}
filters={[]}
onChange={() => {}}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -2228,7 +2228,7 @@ describe('PowerSearch Filters sheet (FR12)', () => {
filters={filters}
onChange={() => {}}
hasClear={hasClear}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -2633,7 +2633,7 @@ describe('PowerSearch Add filter (FR13)', () => {
config={config}
filters={filters}
onChange={next => setFilters(next)}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -2670,7 +2670,7 @@ describe('PowerSearch Add filter (FR13)', () => {
onChange(next, type, index);
setFilters(next);
}}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -2793,7 +2793,7 @@ describe('PowerSearch Add filter (FR13)', () => {
config={config}
filters={[]}
onChange={vi.fn()}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
isReadOnly
/>,
);
@@ -3237,7 +3237,7 @@ describe('PowerSearch value step (FR14–FR16)', () => {
config={config}
filters={filters}
onChange={next => setFilters(next)}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -3286,7 +3286,7 @@ describe('PowerSearch value step (FR14–FR16)', () => {
config={withNested}
filters={filters}
onChange={next => setFilters(next)}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -3308,7 +3308,7 @@ describe('PowerSearch value step (FR14–FR16)', () => {
config={config}
filters={filters}
onChange={next => setFilters(next)}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -3328,7 +3328,7 @@ describe('PowerSearch value step (FR14–FR16)', () => {
config={config}
filters={[openFilter, authorFilter]}
onChange={onChange}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>,
);
openEditFlow('Status is Open');
@@ -3337,7 +3337,7 @@ describe('PowerSearch value step (FR14–FR16)', () => {
config={config}
filters={[{...authorFilter}, {...openFilter}]}
onChange={onChange}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>,
);
tapRow('Closed');
@@ -3363,7 +3363,7 @@ describe('PowerSearch value step (FR14–FR16)', () => {
config={config}
filters={[openFilter]}
onChange={onChange}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>,
);
openEditFlow('Status is Open');
@@ -3372,7 +3372,7 @@ describe('PowerSearch value step (FR14–FR16)', () => {
config={config}
filters={[authorFilter]}
onChange={onChange}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>,
);
tapRow('Closed');
@@ -3405,7 +3405,7 @@ describe('PowerSearch value step (FR14–FR16)', () => {
onChange(next, type, index);
setFilters(next);
}}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -3458,7 +3458,7 @@ describe('PowerSearch value step (FR14–FR16)', () => {
config={config}
filters={[openFilter]}
onChange={onChange}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>,
);
openEditFlow('Status is Open');
@@ -3475,7 +3475,7 @@ describe('PowerSearch value step (FR14–FR16)', () => {
}}
filters={[openFilter]}
onChange={onChange}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>,
);
expect(
@@ -3824,7 +3824,7 @@ describe('PowerSearch step sheets (retained stack, FR15a)', () => {
config={stale}
filters={[openFilter, authorFilter]}
onChange={vi.fn()}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>,
);
await new Promise(resolve => setTimeout(resolve, 40));
@@ -4584,7 +4584,7 @@ describe('PowerSearch sheet value text', () => {
filters={filters}
onChange={next => setFilters(next)}
timezoneID={timezoneID}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -4702,7 +4702,7 @@ describe('PowerSearch sheet value text', () => {
config={valueTypesConfig}
filters={filters}
onChange={next => setFilters(next)}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
);
}
@@ -4743,7 +4743,7 @@ describe('PowerSearch sheet value text', () => {
config={config}
filters={filters}
onChange={next => setFilters(next)}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
</InternationalizationProvider>
);
@@ -4782,7 +4782,7 @@ describe('PowerSearch sheet value text', () => {
filters={filters}
onChange={next => setFilters(next)}
resultCount={filters.length === 0 ? 240 : 12}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
</InternationalizationProvider>
);
@@ -4847,7 +4847,7 @@ describe('PowerSearch sheet value text', () => {
},
]}
onChange={() => {}}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
</InternationalizationProvider>,
);
@@ -4894,7 +4894,7 @@ describe('PowerSearch sheet value text', () => {
config={valueTypesConfig}
filters={current}
onChange={next => setCurrent(next)}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
</InternationalizationProvider>
);
@@ -4956,7 +4956,7 @@ describe('PowerSearch sheet value text', () => {
},
]}
onChange={() => {}}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>
</InternationalizationProvider>,
);
diff --git a/packages/core/src/PowerSearch/PowerSearchBottomSheet.tsx b/packages/core/src/PowerSearch/PowerSearchBottomSheet.tsx
index 285dc9b1db..fe2cb46880 100644
--- a/packages/core/src/PowerSearch/PowerSearchBottomSheet.tsx
+++ b/packages/core/src/PowerSearch/PowerSearchBottomSheet.tsx
@@ -10,7 +10,7 @@
* RadioList, Text, TextInput, PowerSearchValueEditor, the internal sheet
* confirmation and search-drag owners, i18n
* @output Exports PowerSearchBottomSheet — the touch surface of
- * `PowerSearch experimental.presentation="bottom-sheet"`: a Filters sheet
+ * `PowerSearch presentation="bottom-sheet"`: a Filters sheet
* with editable rows and trailing remove actions, Add filter in its fixed
* header and Clear all / Done in its fixed footer, an Add filter sheet with
* grouped field rows or the content search with inline suggestions, and a
diff --git a/packages/core/src/PowerSearch/index.ts b/packages/core/src/PowerSearch/index.ts
index ecf784791c..3c4cb81f39 100644
--- a/packages/core/src/PowerSearch/index.ts
+++ b/packages/core/src/PowerSearch/index.ts
@@ -12,7 +12,11 @@
*/
export {PowerSearch} from './PowerSearch';
-export type {PowerSearchProps, PowerSearchSize} from './PowerSearch';
+export type {
+ PowerSearchPresentation,
+ PowerSearchProps,
+ PowerSearchSize,
+} from './PowerSearch';
export {PowerSearchToken} from './PowerSearchToken';
export {PowerSearchFilterEditor} from './PowerSearchFilterEditor';
diff --git a/packages/core/src/Tokenizer/Tokenizer.composites.test.tsx b/packages/core/src/Tokenizer/Tokenizer.composites.test.tsx
index 27dc7c6326..e2d96fa2b6 100644
--- a/packages/core/src/Tokenizer/Tokenizer.composites.test.tsx
+++ b/packages/core/src/Tokenizer/Tokenizer.composites.test.tsx
@@ -72,7 +72,7 @@ describe('Tokenizer in Core composites on a compact coarse-pointer screen', () =
config={config}
filters={[]}
onChange={() => {}}
- experimental={{presentation: 'popover'}}
+ presentation="popover"
/>,
);
expect(screen.getByRole('combobox')).toBeInTheDocument();
diff --git a/packages/core/src/hooks/useAnnounceRenderedText.adopters.test.tsx b/packages/core/src/hooks/useAnnounceRenderedText.adopters.test.tsx
index 05be2b8cf2..780cd0a8fd 100644
--- a/packages/core/src/hooks/useAnnounceRenderedText.adopters.test.tsx
+++ b/packages/core/src/hooks/useAnnounceRenderedText.adopters.test.tsx
@@ -231,7 +231,7 @@ const ADOPTERS: Record<string, () => Promise<void>> = {
label="Filters"
isLabelHidden={false}
onChange={() => {}}
- experimental={{presentation: 'bottom-sheet'}}
+ presentation="bottom-sheet"
/>,
);
fireEvent.click(screen.getByRole('button', {name: /^Filters/}));