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 8b9c8d8
Browse filesBrowse the repository at this point in the historyBrowse files
`experimental={{presentation: 'bottom-sheet' | 'adaptive'}}` makes the whole
field one trigger with display-only filter tokens and moves filter editing
into a flow of tall modal sheets: Filters (rows, Add filter, Done, Clear all),
Add filter (grouped fields or the content search with inline suggestions),
and a value step that stages field → operator → value and confirms from its
footer. The flow loads on demand; `adaptive` resolves through the shared
compact-touch policy. Value editors are Core's own in a sheet presentation;
list values edit through the Tokenizer's sheet titled with the field label.
Implements `component:PowerSearch` DEC-3 (FR10–FR21, AR4–AR6, PR5) and
deletes the record's implementation-gap notes.
[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: a Filters sheet listing the active filters as rows with Add filter, Done, and Clear all; an Add filter sheet with the fields grouped (searchable from eight fields), or the content search with the field typeahead's suggestions listed inline; and a value step that stages field → operator → value and confirms from its footer, with Remove while editing. 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. The result-count announcement is now StrictMode-safe in both presentations (no announcement on mount). Anything inside PowerSearch's `experimental` prop may change or be removed in a patch release; omitting it keeps the stable behavior.
Copy file name to clipboardExpand all lines: packages/core/locales/en.json
+64Lines changed: 64 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -255,6 +255,70 @@
255
255
"defaultMessage": "{count, number} {count, plural, one {result} other {results}}",
256
256
"description": "Live result-count text next to the PowerSearch input, announced to screen readers on change. Example: `12 results`, `1 result`; keep compact."
257
257
},
258
+
"@astryx.powersearch.sheet.filtersTitle": {
259
+
"defaultMessage": "Filters",
260
+
"description": "Heading and accessible name of the PowerSearch touch sheet that lists the active filters (experimental bottom-sheet presentation). Plural noun."
261
+
},
262
+
"@astryx.powersearch.sheet.addFilter": {
263
+
"defaultMessage": "Add filter",
264
+
"description": "Button label in the PowerSearch touch flow: in the Filters sheet header it opens the field list; in the value step it confirms a new filter. Imperative verb; no leading plus sign."
265
+
},
266
+
"@astryx.powersearch.sheet.noFilters": {
267
+
"defaultMessage": "No filters selected",
268
+
"description": "Empty-state text in the PowerSearch Filters sheet when no filter is active. Neutral tone."
269
+
},
270
+
"@astryx.powersearch.sheet.clearAll": {
271
+
"defaultMessage": "Clear all",
272
+
"description": "Button label in the PowerSearch Filters sheet footer that removes every active filter and closes the sheet. Imperative verb + determiner."
273
+
},
274
+
"@astryx.powersearch.sheet.done": {
275
+
"defaultMessage": "Done",
276
+
"description": "Primary button label in the PowerSearch Filters sheet footer that closes the sheet. Short; marks the end of the filtering task."
277
+
},
278
+
"@astryx.powersearch.sheet.back": {
279
+
"defaultMessage": "Back",
280
+
"description": "Icon-only button label in the PowerSearch Add filter sheet that returns to the Filters sheet or closes the flow. Imperative navigation action."
281
+
},
282
+
"@astryx.powersearch.sheet.search": {
283
+
"defaultMessage": "Search",
284
+
"description": "Screen-reader-only label of the content-search box at the top of the PowerSearch Add filter sheet; its suggestions list inline below it. Noun or verb as reads best."
285
+
},
286
+
"@astryx.powersearch.sheet.searchResults": {
287
+
"defaultMessage": "Search results",
288
+
"description": "Screen-reader-only name of the inline suggestion list under the PowerSearch Add filter sheet's content search. Plural noun."
289
+
},
290
+
"@astryx.powersearch.sheet.searchFields": {
291
+
"defaultMessage": "Search filters",
292
+
"description": "Screen-reader-only label of the field-list filter box in the PowerSearch Add filter sheet, shown once the config has eight or more fields. Imperative verb + plural noun."
"description": "Placeholder inside the field-list filter box in the PowerSearch Add filter sheet. Imperative verb; trailing `…` is one character."
297
+
},
298
+
"@astryx.powersearch.sheet.noMatchingFields": {
299
+
"defaultMessage": "No filters match your search",
300
+
"description": "Empty-state text in the PowerSearch Add filter sheet when the field-list filter matches no field. Neutral tone."
301
+
},
302
+
"@astryx.powersearch.sheet.noResults": {
303
+
"defaultMessage": "No results found",
304
+
"description": "Empty-state text in the PowerSearch Add filter sheet when the content search has no suggestion for the typed query. Neutral tone (not error-y)."
305
+
},
306
+
"@astryx.powersearch.sheet.editFilter": {
307
+
"defaultMessage": "Edit filter",
308
+
"description": "Fallback title of the PowerSearch value step while editing, when the field being edited is no longer in the config. Imperative verb."
309
+
},
310
+
"@astryx.powersearch.sheet.filterUnavailable": {
311
+
"defaultMessage": "This filter is no longer available",
312
+
"description": "Message in the PowerSearch value step when a config update removed the field or operator being edited; Cancel remains as the way out."
313
+
},
314
+
"@astryx.powersearch.sheet.remove": {
315
+
"defaultMessage": "Remove",
316
+
"description": "Button label in the PowerSearch value step footer that deletes the filter being edited. Imperative verb; pairs with Cancel and Apply."
317
+
},
318
+
"@astryx.powersearch.sheet.selectedChoice": {
319
+
"defaultMessage": "{label}, selected",
320
+
"description": "Screen-reader-only name of a selected choice row in the PowerSearch value step (enum, multi-value, relative-date rows). `{label}` is the row's visible text; the suffix states the selected state."
321
+
},
258
322
"@astryx.alertDialog.cancel": {
259
323
"defaultMessage": "Cancel",
260
324
"description": "Button label on the secondary/dismiss button of an AlertDialog (modal confirmation). Imperative verb; consumers usually override with task-specific text."
"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 with Add filter, Done, and Clear all, an Add filter sheet with the fields (or the content search with inline suggestions), and a value step that stages field → operator → value and confirms from its footer; 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.",
211
+
},
212
+
],
213
+
examples: [
214
+
{
215
+
label: 'Touch sheet on compact screens (experimental)',
'StyleX styles for layout customization. Must be stylex.create() value.',
561
+
experimental:
562
+
"Experimental; may change in a patch. presentation: 'popover' (default, tokenizer field + editor popover) | 'bottom-sheet' (one trigger with display-only tokens + Filters / Add filter / value sheets; list values via Tokenizer's sheet) | 'adaptive' (sheet on compact touch, else popover).",
0 commit comments