From 7bdadbe96201123d03c6160257f90382c8c0f270 Mon Sep 17 00:00:00 2001 From: Marcel Raddatz Date: Sat, 4 Apr 2026 18:54:12 +0200 Subject: [PATCH] feat(shopping): add ChecklistItem.svelte component Checkbox row with name, quantity/unit, recipe source label, and strikethrough styling when checked. Each toggle submits a form action. Co-Authored-By: Claude Opus 4.6 --- .../src/lib/shopping/ChecklistItem.svelte | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 frontend/src/lib/shopping/ChecklistItem.svelte diff --git a/frontend/src/lib/shopping/ChecklistItem.svelte b/frontend/src/lib/shopping/ChecklistItem.svelte new file mode 100644 index 0000000..8e443aa --- /dev/null +++ b/frontend/src/lib/shopping/ChecklistItem.svelte @@ -0,0 +1,79 @@ + + +
+ + + + + + +
+

+ {name} +

+ {#if recipeLabel && !isChecked} +

+ Für: {recipeLabel} +

+ {/if} +
+ + {#if quantityLabel} + + {quantityLabel} + + {/if} +