From c290113bd1a8af694b648bba4c801e00b049683a Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sat, 24 Jan 2026 20:12:07 -1000 Subject: Add Shopping tab combining Trello and PlanToEat lists - New Shopping tab aggregates items from Trello Shopping board and PlanToEat - Items grouped by store, then by category (for PlanToEat) - Trello list names treated as store names - Replace PlanToEat meals API with web scraping (uses session cookie) - Add error logging for PlanToEat fetch operations - Recipe links now point to cooking view (/recipes/{id}/cook/{event_id}) Co-Authored-By: Claude Opus 4.5 --- web/templates/partials/shopping-tab.html | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 web/templates/partials/shopping-tab.html (limited to 'web/templates/partials/shopping-tab.html') diff --git a/web/templates/partials/shopping-tab.html b/web/templates/partials/shopping-tab.html new file mode 100644 index 0000000..2362eef --- /dev/null +++ b/web/templates/partials/shopping-tab.html @@ -0,0 +1,42 @@ +{{define "shopping-tab"}} +
+ {{if .Stores}} + {{range .Stores}} +
+

{{.Name}}

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

{{.Name}}

{{end}} +
    + {{range .Items}} +
  • + + {{.Name}} + {{if .Quantity}}{{.Quantity}}{{end}} + + {{.Source}} + +
  • + {{end}} +
+
+ {{end}} +
+ {{end}} + {{else}} +
+

No shopping items

+

Add items from PlanToEat or Trello's Shopping board

+
+ {{end}} +
+{{end}} -- cgit v1.2.3