filters approach: #12

Open
opened 2026-03-20 14:07:24 +11:00 by Ghost · 0 comments
Ghost commented 2026-03-20 14:07:24 +11:00 (Migrated from codeberg.org)

the ui lib filter implementation should be mostly ok now, just need those functions i was working on, but only:

filters -> pb filter string.
pb filter string -> filters.

when going from pb string to filters, need to populate field label, type, and select options.
rest should be ok??

although for ui, should add: 'advanced' use case, ability to construct pb filter string manually. If a string cannot be parsed into filters (if it has dots [relations], or maybe complex ||/&&, or other unrecognised operators), then we make an 'advanced' filter. -> actually, always do this.

quickly: can add a button, to save a filter preset (if callback is supplied). use textarea, and have a 'validateFilter' callback (or just onsave), that can return an error message for validation. (in the app we can call getfirstlistitem or something with this filter to validate it).

the ui lib filter implementation should be mostly ok now, just need those functions i was working on, but only: filters -> pb filter string. pb filter string -> filters. when going from pb string to filters, need to populate field label, type, and select options. rest should be ok?? although for ui, should add: 'advanced' use case, ability to construct pb filter string manually. If a string cannot be parsed into filters (if it has dots [relations], or maybe complex ||/&&, or other unrecognised operators), then we make an 'advanced' filter. -> actually, always do this. quickly: can add a button, to save a filter preset (if callback is supplied). use textarea, and have a 'validateFilter' callback (or just onsave), that can return an error message for validation. (in the app we can call getfirstlistitem or something with this filter to validate it).
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
davenh99/solidpb-ui-kit#12
No description provided.