From 7828e19501b3ca8b2e86ca7297f580c659e5c9b8 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Fri, 23 Jan 2026 16:10:52 -1000 Subject: Fix bugs #24-27: calendar dedup, uncomplete tasks, planning view Bug fixes: - #24: Deduplicate calendar events across multiple calendars using summary + start time as key - #25: Change event icon from calendar to clock to avoid confusion with date display - #26: Add task uncomplete functionality via ReopenTask API for Todoist and closed=false for Trello - #27: Restructure planning view with sections for Scheduled (timed events/tasks), Today (unscheduled), Quick Add, and Upcoming (3 days) Co-Authored-By: Claude Opus 4.5 --- web/templates/partials/planning-tab.html | 166 ++++++++++++++++++++++++++----- 1 file changed, 142 insertions(+), 24 deletions(-) (limited to 'web/templates/partials') diff --git a/web/templates/partials/planning-tab.html b/web/templates/partials/planning-tab.html index 77bd3d8..bfb3eee 100644 --- a/web/templates/partials/planning-tab.html +++ b/web/templates/partials/planning-tab.html @@ -1,43 +1,161 @@ {{define "planning-tab"}} -
- - {{if .Events}} -
-

- 📅 Upcoming Events +
+ + + {{if .Scheduled}} +
+

+ Scheduled

- {{range .Events}} - -
- 📅 + {{range .Scheduled}} +
+
+ {{.SourceIcon}}
-
- {{.Start.Format "Jan 2"}} - {{if eq (.Start.Format "15:04") "00:00"}} - All Day +
+ {{if eq .Type "event"}} + {{if eq (.Start.Format "15:04") "00:00"}} + All Day + {{else}} + {{.Start.Format "3:04 PM"}} - {{.End.Format "3:04 PM"}} + {{end}} {{else}} - {{.Start.Format "3:04 PM"}} - {{.End.Format "3:04 PM"}} + {{.Start.Format "3:04 PM"}} + {{end}} +
+
+
+
+ {{end}} +
+
+ {{end}} + + + {{if .Unscheduled}} +
+

+ 📝 Today +

+
+ {{range .Unscheduled}} +
+
+ + {{.SourceIcon}} +
+
+

{{.Title}}

+ {{if .URL}} + + + + + {{end}}
- {{if .Description}} -

{{.Description}}

+ {{if gt .Priority 2}} + P{{.Priority}} {{end}}
- +
{{end}}
{{end}} - - {{template "trello-boards" .}} + +
+

+ + Quick Add +

+
+
+ + + + +
+
+
+ + + {{if .Upcoming}} +
+

+ 📆 Upcoming +

+
+ {{range .Upcoming}} +
+
+ {{.SourceIcon}} +
+
+

{{.Title}}

+ {{if .URL}} + + + + + + {{end}} +
+
+ {{.Start.Format "Mon, Jan 2"}} + {{if eq .Type "event"}} + {{if ne (.Start.Format "15:04") "00:00"}} + at {{.Start.Format "3:04 PM"}} + {{end}} + {{else}} + {{if or (ne .Start.Hour 0) (ne .Start.Minute 0)}} + at {{.Start.Format "3:04 PM"}} + {{end}} + {{end}} +
+
+
+
+ {{end}} +
+
+ {{end}} + + + {{if and (not .Scheduled) (not .Unscheduled) (not .Upcoming)}} +
+

No scheduled items for the next few days.

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