[search] smarter dynamic filters #1915

Closed
opened 2026-10-05 01:01:07 +02:00 by adam · 0 comments
Owner

Let's take an example. You're in the gallery search, with filters {added_by=plegall, filetypes=jpg, date_posted:y2023}. With version 14, the list of values for filter added_by will be only "plegall", because the list of added_by values is based on the current list of search results. Of course it will only find photos added by "plegall". But this is not smart. If you want to filter on another user, you have to clear this filter, validate, open the filter again. Bad UX.

The list of values for added_by filter should be computed from the photos filtered by {filetypes=jpg, date_posted:y2023}. The list of values for filetypes filter should be computed from the photos filtered by {added_by=plegall, date_posted:y2023}... ie the "other" filters.

Let's take an example. You're in the gallery search, with filters `{added_by=plegall, filetypes=jpg, date_posted:y2023}`. With version 14, the list of values for filter `added_by` will be only "plegall", because the list of `added_by` values is based on the current list of search results. Of course it will only find photos added by "plegall". But this is not smart. If you want to filter on another user, you have to clear this filter, validate, open the filter again. Bad UX. The list of values for `added_by` filter should be computed from the photos filtered by `{filetypes=jpg, date_posted:y2023}`. The list of values for `filetypes` filter should be computed from the photos filtered by `{added_by=plegall, date_posted:y2023}`... ie the "other" filters. <!-- github-sync-id:2451042419 -->
adam closed this issue 2026-10-05 01:01:07 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1915