diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-02-03 15:17:46 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-02-03 15:17:46 -1000 |
| commit | 4ac78382343e14c00ba21ee11ee4642255509eef (patch) | |
| tree | 89501f12dcad768ca354473b9c6cdca0623e265c /web/templates/partials/shopping-tab.html | |
| parent | 25a5b7ecf9ddd31da54e91f87988b77aea857571 (diff) | |
Document Quick Add UX pattern and filter checked shopping items
- Add Quick Add UX pattern to DESIGN.md documenting expected behaviors
for form submission, error handling, and completed item display
- Filter checked items from shopping-tab.html display (both grouped
and ungrouped views)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'web/templates/partials/shopping-tab.html')
| -rw-r--r-- | web/templates/partials/shopping-tab.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/templates/partials/shopping-tab.html b/web/templates/partials/shopping-tab.html index 0b22c15..b09a54f 100644 --- a/web/templates/partials/shopping-tab.html +++ b/web/templates/partials/shopping-tab.html @@ -64,6 +64,7 @@ {{if .Name}}<h3 class="text-sm text-white/60 mb-2 uppercase tracking-wide">{{.Name}}</h3>{{end}} <ul class="space-y-2"> {{range .Items}} + {{if not .Checked}} <li class="flex items-center gap-3 p-3 bg-card bg-card-hover transition-colors rounded-lg border border-white/5"> <span class="flex-1 text-white">{{.Name}}</span> {{if .Quantity}}<span class="text-white/50 text-sm">{{.Quantity}}</span>{{end}} @@ -72,6 +73,7 @@ </span> </li> {{end}} + {{end}} </ul> </div> {{end}} @@ -97,6 +99,7 @@ {{range .Stores}} {{range .Categories}} {{range .Items}} + {{if not .Checked}} <li class="flex items-center gap-3 p-3 bg-card bg-card-hover transition-colors rounded-lg border border-white/5"> <span class="flex-1 text-white">{{.Name}}</span> {{if .Quantity}}<span class="text-white/50 text-sm">{{.Quantity}}</span>{{end}} @@ -110,6 +113,7 @@ {{end}} {{end}} {{end}} + {{end}} </ul> </section> {{end}} |
