From 4474dd74e13219d38167f25e852399c2b6c2a734 Mon Sep 17 00:00:00 2001 From: spark Date: Fri, 6 Nov 2026 22:17:05 +0000 Subject: [PATCH] feat(library): split the toolbar into filters and quiet tools The library kept every action in one wrapping row of equal buttons. Filters stay on the first row; sources and event tools are text on the second; gallery, move and remove sit on the selection bar. --- apps/app/src/develop/SyncSettings.tsx | 2 +- apps/app/src/library/Autopilot.tsx | 2 +- apps/app/src/library/CardIngest.tsx | 2 +- apps/app/src/library/EventSettings.tsx | 2 +- apps/app/src/library/LibraryMenus.tsx | 2 +- apps/app/src/library/LocalFtp.tsx | 2 +- apps/app/src/library/MergeButton.tsx | 2 +- apps/app/src/library/SelectionBar.tsx | 9 +- apps/app/src/library/SendButton.tsx | 8 +- apps/app/src/library/Squads.tsx | 2 +- apps/app/src/library/UsbCamera.tsx | 2 +- apps/app/src/pages/LibraryPage.tsx | 199 +++++++++++++------------ apps/app/src/styles.css | 23 +++ 13 files changed, 146 insertions(+), 111 deletions(-) diff --git a/apps/app/src/develop/SyncSettings.tsx b/apps/app/src/develop/SyncSettings.tsx index 8d5928a..d6eb437 100644 --- a/apps/app/src/develop/SyncSettings.tsx +++ b/apps/app/src/develop/SyncSettings.tsx @@ -33,7 +33,7 @@ export function SyncSettingsButton({ count, disabled, onApply }: { count: number diff --git a/apps/app/src/library/CardIngest.tsx b/apps/app/src/library/CardIngest.tsx index 55d055f..8a0f5ee 100644 --- a/apps/app/src/library/CardIngest.tsx +++ b/apps/app/src/library/CardIngest.tsx @@ -45,7 +45,7 @@ export function CardIngestButton() { diff --git a/apps/app/src/library/EventSettings.tsx b/apps/app/src/library/EventSettings.tsx index cf0c5f5..c9bea4f 100644 --- a/apps/app/src/library/EventSettings.tsx +++ b/apps/app/src/library/EventSettings.tsx @@ -122,7 +122,7 @@ export function EventSettingsButton(props: { diff --git a/apps/app/src/library/LocalFtp.tsx b/apps/app/src/library/LocalFtp.tsx index 3fb2e82..3b5a40b 100644 --- a/apps/app/src/library/LocalFtp.tsx +++ b/apps/app/src/library/LocalFtp.tsx @@ -486,7 +486,7 @@ export function LocalFtpButton({ ftp, events, openEventId }: { ftp: LocalFtpStat diff --git a/apps/app/src/library/SelectionBar.tsx b/apps/app/src/library/SelectionBar.tsx index d3ae2f6..3028348 100644 --- a/apps/app/src/library/SelectionBar.tsx +++ b/apps/app/src/library/SelectionBar.tsx @@ -1,4 +1,5 @@ import type { ColorLabel } from "@photoreport/contracts"; +import type { ReactNode } from "react"; import { t } from "../i18n.js"; import { LABEL_COLOR } from "./Grid.js"; @@ -10,6 +11,7 @@ export function SelectionBar(props: { onColor: (color: ColorLabel) => void; onRating: (rating: number) => void; onFlag: (flag: "PICK" | "REJECT" | "NONE") => void; + extra?: ReactNode; }) { return (
@@ -40,15 +42,16 @@ export function SelectionBar(props: { ))} - - - + {props.extra}
); } diff --git a/apps/app/src/library/SendButton.tsx b/apps/app/src/library/SendButton.tsx index 66e93db..1ab2d3a 100644 --- a/apps/app/src/library/SendButton.tsx +++ b/apps/app/src/library/SendButton.tsx @@ -102,7 +102,7 @@ export function SendButton(props: { api: ApiClient; orgId: string; selection: Ph if (!targets.length) { return ( - ); @@ -213,7 +213,7 @@ export function SendButton(props: { api: ApiClient; orgId: string; selection: Ph aria-expanded={pickOpen} aria-label={t.deliverTo} title={selectedLabel} - className="h-6 max-w-[180px] truncate border border-black bg-cell px-2 text-[12px] text-ink hover:bg-cell-on" + className="pr-quiet max-w-[180px] truncate" > {selected.length ? selectedLabel : t.deliverTo} @@ -270,7 +270,7 @@ export function SendButton(props: { api: ApiClient; orgId: string; selection: Ph )} {/* Always visible next to Enviar — desktop may still be on a cached UI until reload. */}