diff options
Diffstat (limited to 'internal/models/timeline.go')
| -rw-r--r-- | internal/models/timeline.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/models/timeline.go b/internal/models/timeline.go index 1313712..4b90856 100644 --- a/internal/models/timeline.go +++ b/internal/models/timeline.go @@ -45,6 +45,9 @@ type TimelineItem struct { ListID string `json:"list_id,omitempty"` // For Google Tasks RecurringEventID string `json:"recurring_event_id,omitempty"` // For calendar events ProjectColor string `json:"project_color,omitempty"` // For doot-native tasks with a project assigned + ChainPosition int `json:"chain_position,omitempty"` // For doot-native tasks that belong to a linear chain (1-indexed for display) + ChainTotal int `json:"chain_total,omitempty"` // Total tasks in the chain, paired with ChainPosition + BucketState string `json:"bucket_state,omitempty"` // "active" for doot-native tasks that are a maintenance-bucket item (dormant items never reach the timeline) } // ComputeDaySection sets the DaySection, IsOverdue, and IsAllDay based on the item's time |
