From 0e6a1361da44f2ce5e0a392a6cfdc81d798d2d7c Mon Sep 17 00:00:00 2001 From: spark Date: Tue, 20 Oct 2026 09:06:17 +0100 Subject: [PATCH] Give the filmstrip the same flag, star and colour filter as the grid. The open photo stays in the strip, and the choice is the one the library already keeps. --- apps/app/src/library/FilterBar.tsx | 16 ++++++++++------ apps/app/src/pages/DevelopPage.tsx | 23 ++++++++++++++++++----- 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/apps/app/src/library/FilterBar.tsx b/apps/app/src/library/FilterBar.tsx index be533c6..2b3662f 100644 --- a/apps/app/src/library/FilterBar.tsx +++ b/apps/app/src/library/FilterBar.tsx @@ -10,14 +10,14 @@ const COLORS = ["RED", "YELLOW", "GREEN", "BLUE", "PURPLE"] as const satisfies r const chip = (on: boolean) => (on ? "font-semibold text-ink" : "text-faint hover:text-muted"); /** - * Photo Mechanic / Lightroom style filter bar: flag, stars (at least), colour, delivery state and photos without - * players, all combinable. Clicking an active stars or colour choice again turns it off. + * Flag, stars (at least) and colour, plus delivery and photos without players on the grid. All combinable. + * The filmstrip uses `compact`: flag, stars and colour only. Clicking an active stars or colour choice again turns it off. */ -export function FilterBar(props: { filter: LibraryFilter; onChange: (f: LibraryFilter) => void }) { - const { filter: f, onChange } = props; +export function FilterBar(props: { filter: LibraryFilter; onChange: (f: LibraryFilter) => void; compact?: boolean }) { + const { filter: f, onChange, compact = false } = props; const set = (patch: Partial) => onChange({ ...f, ...patch }); return ( -
+
{t.filter}: {FLAGS.map((flag) => (