From a3693e69eb1739a72021972176eb6923120f17f1 Mon Sep 17 00:00:00 2001 From: iamdoubz <> Date: Thu, 5 Nov 2026 16:49:37 -0600 Subject: [PATCH] Add Select all / Clear all to the review selection panel Select all takes only events on screen; collapsed groups stay out so a bulk action can't hit unseen events. Clear all only clears the selection. --- frontend/src/routes/Review.svelte | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/routes/Review.svelte b/frontend/src/routes/Review.svelte index 9602f1b..0dd5e5c 100644 --- a/frontend/src/routes/Review.svelte +++ b/frontend/src/routes/Review.svelte @@ -26,6 +26,11 @@ const fresh = $derived(live.filter((e) => e.include && !e.flags.length && (e.match === 'new' || !e.match))); const unchanged = $derived(live.filter((e) => e.include && !e.flags.length && e.match === 'unchanged')); const excluded = $derived(live.filter((e) => !e.include)); + // Select all takes only events on screen: collapsed groups stay out, so a bulk delete can't hit unseen events. + const visibleIds = $derived([ + ...needs, ...updated, ...fresh, ...(open.unchanged ? unchanged : []), ...(open.excluded ? excluded : []), + ].map((e) => e.id)); + const allSelected = $derived(visibleIds.length > 0 && visibleIds.every((id) => selected.includes(id))); const activeBox = $derived(scan.events.find((e) => e.id === active)?.cell_bbox ?? null); const months = $derived( monthsBetween(scan.date_start ?? `${scan.hint_month}-01`, scan.date_end ?? `${scan.hint_month}-01`), @@ -188,7 +193,12 @@ {#if selecting}
-

{selected.length} selected

+
+

{selected.length} selected

+ +