Hi everyone,
I’d like your feedback on a design for the “Filter & sort” tab of the Records macro (XWIKI-25520).
Why: today the tab uses plain suggest inputs. Picking a field inserts staticList1= and you type the value by hand, the operator is always =, sort lists every field twice and can’t be reordered, and it gets hard to read past 3 criteria.
Full proposal: https://design.xwiki.org/xwiki/bin/view/Proposal/UIdesignforfilterandsortpickersoftheRecordsmacro
Live prototype: Claude Artifact
The idea in short
Each filter and each sort is a row that reads as a sentence (“Genre is any of Drama, Comedy”), with Edit and Remove buttons visible. Filters are combined with AND, sorts apply top to bottom.
- Filters are edited in place: The field picker lists the class fields first, then page metadata (title, creator, dates…).
- Each field type gets its own input: checkboxes for lists, date ranges, user and page pickers, Yes/No radios. Only the operators the source supports are offered.
- Sorts can be reordered (drag or keyboard), with direction labels that fit the type (“Oldest first”, “A → Z”).
- Broken criteria: a filter on a field that no longer exists stays as a warning row you can fix or remove. Fields that can’t be used are greyed out.
Shared with Live Data
The rows, editor, field picker and value inputs would be shared components, used both in the macro dialog and in the Live Data filter panel. Only the containers differ. Live Data would get some fixes along the way, e.g. XWIKI-18274 (no more “Contains” on dates) and XWIKI-20040.
Questions
- Does the “row as a sentence” approach work for you?
- AND-only for now (OR could come later): OK?
- OK to share these components with Live Data’s filter panel?
WDYT?
Thanks!
Note: this post was written with AI assistance.



