From bbf12fc441ca36c423e865107d34df178e3d26de Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Mon, 26 Jan 2026 17:00:30 -1000 Subject: Fix multiple UI issues and shopping completion bug - #54: Fix shopping item completion - now works for all sources (trello, plantoeat, user) with state stored in local DB - #48: Hide 12:00am times in timeline (all-day items) - #49: Remove "Task" type label from timeline items for cleaner UI - #51: Combine multiple PlanToEat meals for same date+mealType - #52: Change Conditions tab to standard link to standalone page Co-Authored-By: Claude Opus 4.5 --- web/templates/index.html | 9 ++------- web/templates/partials/shopping-tab.html | 6 +++--- web/templates/partials/timeline-tab.html | 8 ++++++++ 3 files changed, 13 insertions(+), 10 deletions(-) (limited to 'web/templates') diff --git a/web/templates/index.html b/web/templates/index.html index 1dc433b..6bc513c 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -64,14 +64,9 @@ onclick="setActiveTab(this)"> 🛒 Shopping - +
diff --git a/web/templates/partials/shopping-tab.html b/web/templates/partials/shopping-tab.html index 1f589e5..f247f3d 100644 --- a/web/templates/partials/shopping-tab.html +++ b/web/templates/partials/shopping-tab.html @@ -38,9 +38,9 @@
  • {{.Name}} {{if .Quantity}}{{.Quantity}}{{end}} diff --git a/web/templates/partials/timeline-tab.html b/web/templates/partials/timeline-tab.html index 5f32530..8486ab7 100644 --- a/web/templates/partials/timeline-tab.html +++ b/web/templates/partials/timeline-tab.html @@ -83,12 +83,15 @@ class="mt-1 h-5 w-5 rounded bg-black/40 border-white/30 text-white/80 focus:ring-white/30 cursor-pointer flex-shrink-0"> {{end}} + {{/* Only show time if it's not midnight (12:00 AM = all-day/no specific time) */}} + {{if or (ne .Time.Hour 0) (ne .Time.Minute 0)}}
    {{.Time.Format "3:04 PM"}} {{if .EndTime}} {{.EndTime.Format "3:04 PM"}} {{end}}
    + {{end}}
    @@ -106,16 +109,21 @@

    {{.Description}}

    {{end}} + {{/* Only show type badge for non-task items, and done badge if completed */}} + {{if or (ne .Type "task") .IsCompleted}}
    + {{if ne .Type "task"}} {{.Type}} + {{end}} {{if .IsCompleted}} done {{end}}
    + {{end}}
  • -- cgit v1.2.3