Skip to content

New partition component - #1363

Merged
lovasoa merged 6 commits into
sqlpage:mainfrom
olivierauverlot:partition
Aug 30, 2026
Merged

New partition component#1363
lovasoa merged 6 commits into
sqlpage:mainfrom
olivierauverlot:partition

Conversation

@olivierauverlot

Copy link
Copy Markdown
Contributor

Provides a mechanism to define custom pagination rules.

It allows splitting records on the generated page based on a user-specified partitioning criterion, ensuring controlled data distribution across pages.

@olivierauverlot

Copy link
Copy Markdown
Contributor Author
partition

@olivierauverlot

Copy link
Copy Markdown
Contributor Author
image

@lovasoa

lovasoa commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

The compact control does not reveal the active facet while it is closed: the button says Classes, while the active Constitution value is only visible after opening the menu.

Mobile screenshot of the compact facet control; Classes is the closed label and Constitution is active only in the opened menu

@lovasoa

lovasoa commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Added optional dropdown_title for compact facets. Item rows are streamed after the dropdown button, so the template cannot derive the active item title before rendering that button. The query can now supply the selected title explicitly; it defaults to description when omitted.

@olivierauverlot

Copy link
Copy Markdown
Contributor Author

My latest commit is a proposed improvement. The description property can now be used in both modes (normal and compact). I kept dropdown_title, but it is now used to display text on the selector when no facet has been selected by the user. I also added the selected_facet property to indicate the selected facet. This seems more consistent to me and allows for greater flexibility when using the component.

image image

It’s just a detail, but I’m not a big fan of the name facet for this component. I prefer partition, which seems more appropriate to me.

@lovasoa

lovasoa commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

The name partition in SQL is generally used to refer to table partitions or window function groups. I think the general term for the UI widget that is implemented in this PR is facet.

@lovasoa
lovasoa merged commit 4765568 into sqlpage:main Aug 30, 2026
51 checks passed
@lovasoa

lovasoa commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

Thank you @olivierauverlot 🤗 Your component will be in the next version, to be released today :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants