You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 464f988
Browse filesBrowse the repository at this point in the historyBrowse files
feat(PowerSearch): presentation is a stable prop, and adaptive is its default
PowerSearch's touch sheet flow graduates from `experimental.presentation`
to a stable top-level `presentation` prop (`'popover' | 'bottom-sheet' |
'adaptive'`, typed by the new exported `PowerSearchPresentation`), and an
omitted `presentation` resolves `adaptive`: the stacked filter sheets on a
compact coarse-pointer screen, and the tokenizer field with its editor
popover with a fine pointer, on a screen that is not compact, on the
server, and while hydrating.
`experimental.presentation` stays as a deprecated experimental alias; the
top-level prop wins when both are set, with one development warning. A
staged codemod rewrites a static `experimental={{presentation: x}}` to
`presentation={x}`. Stories that pass `menuWidth` or
`tokenOverflowBehavior`, which the sheet does not render, pin
`presentation="popover"`.
The default change is `[breaking]` under spec:AST-017 FR1, FR3, and FR31,
so it is held for a declared minor; the promotion is `[feat]`.
Copy file name to clipboardExpand all lines: .changeset/powersearch-experimental-bottom-sheet.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,6 @@
2
2
'@astryxdesign/core': patch
3
3
---
4
4
5
-
[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.
5
+
[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, only when a field presents 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.
[breaking] PowerSearch's `presentation` defaults to `'adaptive'` instead of `'popover'`. A PowerSearch that passes no `presentation` keeps the tokenizer field and editor popover with a mouse or trackpad, on a screen that is not compact, in the server render, and while it hydrates; on a compact coarse-pointer screen (a phone) the whole field becomes one trigger with display-only filter tokens that opens the stacked filter sheets. There, filters are added and edited in the Filters, Add filter and value sheets instead of the typeahead and editor popover, a filter reaches `onChange` when its value step confirms, and `menuWidth` and `tokenOverflowBehavior` have no surface, with a development warning that names them. Migration: pass `presentation="popover"` to keep the tokenizer field and editor popover on every device. No codemod adds it, because adding it to every PowerSearch would opt every caller out of the new default; add it where your product needs the popover on phones.
[feat] PowerSearch's `presentation` prop is stable: `'popover' | 'bottom-sheet' | 'adaptive'`, typed by the new exported `PowerSearchPresentation`. It promotes the touch sheet flow that `experimental.presentation` selected, with the same values and behavior. `experimental={{presentation: 'adaptive'}}` becomes `presentation="adaptive"`, and `astryx upgrade` rewrites it. The earlier spelling keeps working as a deprecated experimental alias; when both are set, `presentation` wins and the field warns once in development.
0 commit comments