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.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/handlers/timeline_logic.go b/internal/handlers/timeline_logic.go
index e3da760..b008221 100644
--- a/internal/handlers/timeline_logic.go
+++ b/internal/handlers/timeline_logic.go
@@ -146,6 +146,13 @@ func BuildTimeline(ctx context.Context, s *store.Store, start, end time.Time) ([
IsCompleted: gTask.Completed,
Source: "gtasks",
ListID: gTask.ListID,
+ // No due date -- flag IsAllDay like nativeUndated tasks below so
+ // TimelineItemToWidgetItem leaves Start nil instead of pinning it
+ // 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.
+ IsAllDay: gTask.DueDate == nil,
}
item.ComputeDaySection(now)
items = append(items, item)