From 70e6e51b6781a3986c51e3496b81c88665286872 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Mon, 26 Jan 2026 19:00:36 -1000 Subject: Add shopping mode for focused single-store shopping (#34) - Full-screen view for one store at a time - Tap items to toggle completion - Completed items greyed and sorted to bottom - Quick-add form at bottom of screen - Store switcher pills for easy navigation - "Shop" button on each store in shopping tab Co-Authored-By: Claude Opus 4.5 --- web/templates/partials/shopping-mode-items.html | 45 ++++++++++++ web/templates/partials/shopping-tab.html | 11 ++- web/templates/shopping-mode.html | 93 +++++++++++++++++++++++++ 3 files changed, 148 insertions(+), 1 deletion(-) create mode 100644 web/templates/partials/shopping-mode-items.html create mode 100644 web/templates/shopping-mode.html (limited to 'web/templates') diff --git a/web/templates/partials/shopping-mode-items.html b/web/templates/partials/shopping-mode-items.html new file mode 100644 index 0000000..fdf0674 --- /dev/null +++ b/web/templates/partials/shopping-mode-items.html @@ -0,0 +1,45 @@ +{{define "shopping-mode-items"}} +
+ {{if .Items}} + {{range .Items}} +
+ + +
+ {{if .Checked}} + + + + {{end}} +
+ + +
+ {{.Name}} + {{if .Quantity}} + {{.Quantity}} + {{end}} +
+ + + + {{.Source}} + +
+ {{end}} + {{else}} +
+

No items

+

Add items using the form below

+
+ {{end}} +
+{{end}} diff --git a/web/templates/partials/shopping-tab.html b/web/templates/partials/shopping-tab.html index f247f3d..4d0ac02 100644 --- a/web/templates/partials/shopping-tab.html +++ b/web/templates/partials/shopping-tab.html @@ -29,7 +29,16 @@ {{if .Stores}} {{range .Stores}}
-

{{.Name}}

+
+

{{.Name}}

+ + + + + Shop + +
{{range .Categories}}
{{if .Name}}

{{.Name}}

{{end}} diff --git a/web/templates/shopping-mode.html b/web/templates/shopping-mode.html new file mode 100644 index 0000000..9e21ac6 --- /dev/null +++ b/web/templates/shopping-mode.html @@ -0,0 +1,93 @@ + + + + + + {{.StoreName}} - Shopping + + + + + + + +
+
+ + + + + +

{{.StoreName}}

+
+
+ + + {{if gt (len .StoreNames) 1}} +
+ {{range .StoreNames}} + + {{.}} + + {{end}} +
+ {{end}} +
+ + +
+ {{template "shopping-mode-items" .}} +
+ + +
+
+ + + + +
+
+ + +
+ + -- cgit v1.2.3