From 6b1c34ceffd7306539b992782fccb6ad327e904f Mon Sep 17 00:00:00 2001 From: Pantry Lead Agent Date: Tue, 24 Feb 2026 00:05:12 +0000 Subject: [PATCH 1/2] feat: create TagBadge and TagPicker components (#26 #27) TagBadge: - Display tag with icon, name, color - Automatic contrast text color (light/dark) - Optional removable with X button - Configurable size (sm/md/lg) TagPicker: - Select multiple tags by category - Visual feedback for selected tags - Category-based organization - Position category prioritized - Two-way binding with v-model Closes #26, #27 --- app/components/tags/TagBadge.vue | 71 +++++++++++++++++ app/components/tags/TagPicker.vue | 125 ++++++++++++++++++++++++++++++ 2 files changed, 196 insertions(+) create mode 100644 app/components/tags/TagBadge.vue create mode 100644 app/components/tags/TagPicker.vue diff --git a/app/components/tags/TagBadge.vue b/app/components/tags/TagBadge.vue new file mode 100644 index 0000000..c77e87b --- /dev/null +++ b/app/components/tags/TagBadge.vue @@ -0,0 +1,71 @@ + + + diff --git a/app/components/tags/TagPicker.vue b/app/components/tags/TagPicker.vue new file mode 100644 index 0000000..c0d585a --- /dev/null +++ b/app/components/tags/TagPicker.vue @@ -0,0 +1,125 @@ + + + From 080d2424c857d96005103765d884f43ccb5abb17 Mon Sep 17 00:00:00 2001 From: Pantry Lead Agent Date: Tue, 24 Feb 2026 00:05:44 +0000 Subject: [PATCH 2/2] feat: integrate TagBadge and TagPicker in inventory (#28 #29) Issue #28 - Tag assignment in AddItemForm: - Replace custom tag selection with TagPicker component - Simplified code (removed manual tag state management) - Cleaner UI with reusable component Issue #29 - Display tags in InventoryList: - Replace UBadge with TagBadge in InventoryCard - Automatic contrast color for readability - Consistent tag display across app Closes #28, #29 --- app/components/inventory/AddItemForm.vue | 76 +--------------------- app/components/inventory/InventoryCard.vue | 13 ++-- 2 files changed, 8 insertions(+), 81 deletions(-) diff --git a/app/components/inventory/AddItemForm.vue b/app/components/inventory/AddItemForm.vue index 3fe8082..cf16d44 100644 --- a/app/components/inventory/AddItemForm.vue +++ b/app/components/inventory/AddItemForm.vue @@ -68,37 +68,7 @@ -
- -
- - {{ tag.icon }} {{ tag.name }} ✕ - -
- - -
-

{{ category.name }}

-
- - {{ tag.icon }} {{ tag.name }} - -
-
-
+
@@ -129,7 +99,6 @@