From 0c1a66b4c6e46a19dda77a171a73665161880546 Mon Sep 17 00:00:00 2001 From: Thomas Richter Date: Sat, 31 Jan 2026 13:09:34 +0100 Subject: [PATCH] feat(04-03): create TagInput component and integrate into EntryCard - Create TagInput.svelte with Svelecte for multi-select autocomplete - Support creating new tags inline via creatable mode - Display tags on collapsed entry cards (max 3 with +N indicator) - Add TagInput in expanded view for editing entry tags - Pass availableTags through EntryList to EntryCard - Handle tag changes with immediate save via updateTags action --- src/lib/components/EntryCard.svelte | 49 +++++++++++++++++++--- src/lib/components/EntryList.svelte | 14 ++++--- src/lib/components/TagInput.svelte | 64 +++++++++++++++++++++++++++++ src/routes/+page.svelte | 2 +- 4 files changed, 117 insertions(+), 12 deletions(-) create mode 100644 src/lib/components/TagInput.svelte diff --git a/src/lib/components/EntryCard.svelte b/src/lib/components/EntryCard.svelte index 2f94892..c8f8a37 100644 --- a/src/lib/components/EntryCard.svelte +++ b/src/lib/components/EntryCard.svelte @@ -1,20 +1,23 @@ + + + + diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 7cb3720..7ac77a6 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -42,7 +42,7 @@
- +