From 2757977fd68a02a3b4214af4345bc71a6afdfde3 Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Mon, 28 Sep 2026 01:01:54 +0200 Subject: [PATCH] feat(gui): one Filters popover for the photos timeline Favorites, "not in an album" and the month move from separate pills and a dropdown into a Filters popover next to the kind tabs. The kind tabs stay in the row because their counts are worth a glance. The button carries a badge with the number of active filters, kind included, and the popover has a "Clear filters" action that resets everything in one reload. Flipping a filter while a page was still loading used to drop the reload, leaving the timeline answering the old filter. The request is now queued and the stale page is discarded. --- .../scalable/actions/pdfs-filter-symbolic.svg | 5 + crates/pdfs-gui/resources/pdfs.gresource.xml | 1 + crates/pdfs-gui/resources/style.css | 3 + crates/pdfs-gui/src/app/main.rs | 8 +- crates/pdfs-gui/src/app/pages/photos.rs | 202 +++++++--- po/de.po | 375 +++++++++--------- po/en_GB.po | 375 +++++++++--------- po/es.po | 375 +++++++++--------- po/fr.po | 375 +++++++++--------- po/it.po | 375 +++++++++--------- po/nl.po | 375 +++++++++--------- po/pdfs.pot | 367 ++++++++--------- po/pl.po | 375 +++++++++--------- po/pt_BR.po | 375 +++++++++--------- 14 files changed, 1910 insertions(+), 1676 deletions(-) create mode 100644 crates/pdfs-gui/resources/icons/scalable/actions/pdfs-filter-symbolic.svg diff --git a/crates/pdfs-gui/resources/icons/scalable/actions/pdfs-filter-symbolic.svg b/crates/pdfs-gui/resources/icons/scalable/actions/pdfs-filter-symbolic.svg new file mode 100644 index 0000000..60f7968 --- /dev/null +++ b/crates/pdfs-gui/resources/icons/scalable/actions/pdfs-filter-symbolic.svg @@ -0,0 +1,5 @@ + + + + diff --git a/crates/pdfs-gui/resources/pdfs.gresource.xml b/crates/pdfs-gui/resources/pdfs.gresource.xml index 52b9c7d..360185c 100644 --- a/crates/pdfs-gui/resources/pdfs.gresource.xml +++ b/crates/pdfs-gui/resources/pdfs.gresource.xml @@ -7,6 +7,7 @@ scalable/actions/pdfs-build-thumbnails-symbolic.svg scalable/actions/pdfs-folder-upload-symbolic.svg scalable/actions/pdfs-upload-symbolic.svg + scalable/actions/pdfs-filter-symbolic.svg scalable/actions/pdfs-offline-symbolic.svg scalable/actions/pdfs-online-only-symbolic.svg