summaryrefslogtreecommitdiff
path: root/internal/handlers/timeline_logic.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers/timeline_logic.go')
-rw-r--r--internal/handlers/timeline_logic.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/internal/handlers/timeline_logic.go b/internal/handlers/timeline_logic.go
index b008221..b25be1f 100644
--- a/internal/handlers/timeline_logic.go
+++ b/internal/handlers/timeline_logic.go
@@ -151,8 +151,13 @@ func BuildTimeline(ctx context.Context, s *store.Store, start, end time.Time) ([
// to "now", which otherwise lands it among scheduledEvents and
// renders it via EventBlock/HourRow -- rows whose click handler
// always opens the source URL/Google Calendar, not the task's
- // detail sheet.
+ // detail sheet. Undated (not just IsAllDay) also has to be set
+ // here: a gtask WITH a due date is midnight-anchored too (see
+ // reference_google_tasks_due_date_utc_quirk), which sets IsAllDay
+ // true regardless -- Undated is what actually tells
+ // TimelineItemToWidgetItem "no date at all" vs "has a date".
IsAllDay: gTask.DueDate == nil,
+ Undated: gTask.DueDate == nil,
}
item.ComputeDaySection(now)
items = append(items, item)
@@ -230,6 +235,7 @@ func BuildTimeline(ctx context.Context, s *store.Store, start, end time.Time) ([
IsCompleted: task.Completed,
Source: "doot",
IsAllDay: true,
+ Undated: true,
ProjectColor: projectColors[task.ProjectID],
}
setChainBadge(s, &item, task)