From f9127d5272042f4980ece8b39a47613f95eeaf8e Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sat, 31 Jan 2026 21:23:56 -1000 Subject: Fix timeline calendar view and shopping UI bugs (#56, #65-73) - #56: Add overflow-hidden to card/panel classes to prevent content overflow - #65: Fix Google Tasks not showing by including tasks without due dates - #66: Add no-cache headers to prevent stale template responses - #67: Increase dropdown z-index to 100 for proper layering - #69: Implement calendar-style Today section with hourly grid (6am-10pm), duration-based event heights, and compact overdue/all-day section - #70: Only reset shopping-mode form on successful submission - #71: Remove checkboxes from shopping tab (only show in shopping mode) - #72: Add inline add-item input at end of each store section - #73: Add Grouped/Flat view toggle for shopping list Co-Authored-By: Claude Opus 4.5 --- web/static/css/input.css | 16 ++- web/templates/index.html | 2 +- web/templates/partials/shopping-tab.html | 69 ++++++++-- web/templates/partials/timeline-tab.html | 221 ++++++++++++++++++++++++++++++- web/templates/shopping-mode.html | 2 +- 5 files changed, 293 insertions(+), 17 deletions(-) (limited to 'web') diff --git a/web/static/css/input.css b/web/static/css/input.css index c7fa1d2..321aa4f 100644 --- a/web/static/css/input.css +++ b/web/static/css/input.css @@ -24,7 +24,7 @@ @layer components { /* Dark Glass Card */ .card { - @apply bg-black/70 backdrop-blur-sm rounded-lg p-4 transition-all duration-200; + @apply bg-black/70 backdrop-blur-sm rounded-lg p-4 transition-all duration-200 overflow-hidden; box-shadow: 0 0 12px black; } @@ -32,6 +32,11 @@ @apply hover:bg-black/80; } + /* Panel with overflow clipping */ + .bg-panel { + @apply overflow-hidden; + } + /* Navigation Pills */ .tab-button { @apply px-2 sm:px-4 py-2 rounded-lg text-xs sm:text-sm font-light text-white/70 tracking-wide transition-all duration-200; @@ -59,11 +64,11 @@ } .trello-card-item { - @apply bg-black/40 rounded-lg p-4 hover:bg-black/50 transition-all; + @apply bg-black/40 rounded-lg p-4 hover:bg-black/50 transition-all overflow-hidden; } .task-item { - @apply bg-black/70 rounded-lg transition-colors; + @apply bg-black/70 rounded-lg transition-colors overflow-hidden; box-shadow: 0 0 12px black; } @@ -71,6 +76,11 @@ @apply bg-black/80; } + /* Text truncation for long content */ + .truncate-text { + @apply truncate; + } + .line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; diff --git a/web/templates/index.html b/web/templates/index.html index 3451623..5322ca6 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -75,7 +75,7 @@ onclick="toggleDetailsDropdown(event)"> 📁 Details ▾ - +
{{if .Stores}} + {{if .Grouped}} + {{range .Stores}}
@@ -44,14 +65,8 @@ {{if .Name}}

{{.Name}}

{{end}}
    {{range .Items}} -
  • - - {{.Name}} +
  • + {{.Name}} {{if .Quantity}}{{.Quantity}}{{end}} {{.Source}} @@ -61,6 +76,42 @@
{{end}} + + + + + + +
+ {{end}} + {{else}} + +
+
    + {{range .Stores}} + {{range .Categories}} + {{range .Items}} +
  • + {{.Name}} + {{if .Quantity}}{{.Quantity}}{{end}} + + {{.Store}} + + + {{.Source}} + +
  • + {{end}} + {{end}} + {{end}} +
{{end}} {{else}} diff --git a/web/templates/partials/timeline-tab.html b/web/templates/partials/timeline-tab.html index b1045c6..8745d1d 100644 --- a/web/templates/partials/timeline-tab.html +++ b/web/templates/partials/timeline-tab.html @@ -1,11 +1,92 @@ {{define "timeline-tab"}} + +
- + {{if .TodayItems}}
@@ -15,11 +96,145 @@ -
+ + +
{{range .TodayItems}} - {{template "timeline-item" .}} + {{if or .IsOverdue .IsAllDay}} +
+ {{if or (eq .Type "task") (eq .Type "card") (eq .Type "gtask")}} + + {{end}} + {{.Title}} + {{if .IsOverdue}}overdue{{end}} + {{if .URL}} + + + + + + {{end}} +
+ {{end}} {{end}}
+ + +
+ +
6am
+
7am
+
8am
+
9am
+
10am
+
11am
+
12pm
+
1pm
+
2pm
+
3pm
+
4pm
+
5pm
+
6pm
+
7pm
+
8pm
+
9pm
+
10pm
+ + + {{range .TodayItems}} + {{if and (not .IsOverdue) (not .IsAllDay)}} + + {{end}} + {{end}} +
+ +
{{end}} diff --git a/web/templates/shopping-mode.html b/web/templates/shopping-mode.html index 9e21ac6..88d8561 100644 --- a/web/templates/shopping-mode.html +++ b/web/templates/shopping-mode.html @@ -74,7 +74,7 @@
-- cgit v1.2.3