From d9a36934696770de105b2159d1a26ae2c5e20ef6 Mon Sep 17 00:00:00 2001 From: mariosemes Date: Thu, 26 Mar 2026 22:58:45 +0100 Subject: [PATCH] Add category-grouped store picker on search page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces dropdown filters with visual store picker organized by category. Each category shows as a header with checkbox — clicking it selects/deselects all stores in that category. Individual stores are toggleable chips with checkmarks. Partial selection shows a dash indicator on the category checkbox. Only passes specific store IDs to search when not all stores are selected. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/client/src/routes/+page.svelte | 171 +++++++++++++++++++++++------ 1 file changed, 135 insertions(+), 36 deletions(-) diff --git a/src/client/src/routes/+page.svelte b/src/client/src/routes/+page.svelte index e9e1376..a2e5482 100644 --- a/src/client/src/routes/+page.svelte +++ b/src/client/src/routes/+page.svelte @@ -1,34 +1,100 @@
-
+

Price Hunter

Search across all your stores at once

@@ -57,34 +123,67 @@ Search
- - {#if categories.length > 0 || groups.length > 0} -
- {#if categories.length > 0} - - {/if} - - {#if groups.length > 0} - - {/if} -
- {/if} + + + {#if storesByCategory().length > 0} +
+ {#each storesByCategory() as group} +
+ + + + +
+ {#each group.stores as store} + + {/each} +
+
+ {/each} +
+ {/if}