summaryrefslogtreecommitdiff
path: root/internal/models
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-01-24 20:28:15 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-01-24 20:28:15 -1000
commit22efca3118676926dec4af74fe8e225606063a35 (patch)
tree9ecbf7885fb97bb0b6666452109916359ad0f59c /internal/models
parentc290113bd1a8af694b648bba4c801e00b049683a (diff)
Fix UI bugs and add Timeline view
Bug fixes: - #25: Replace 📅 with 🗓️ to avoid misleading date display - #30: Standardize background opacity (shopping items now use bg-white/5) New feature: - #11: Add Timeline view showing chronological events/tasks/meals Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'internal/models')
-rw-r--r--internal/models/timeline.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/internal/models/timeline.go b/internal/models/timeline.go
new file mode 100644
index 0000000..4a619fa
--- /dev/null
+++ b/internal/models/timeline.go
@@ -0,0 +1,23 @@
+package models
+
+import "time"
+
+type TimelineItemType string
+
+const (
+ TimelineItemTypeTask TimelineItemType = "task"
+ TimelineItemTypeMeal TimelineItemType = "meal"
+ TimelineItemTypeCard TimelineItemType = "card"
+ TimelineItemTypeEvent TimelineItemType = "event"
+)
+
+type TimelineItem struct {
+ ID string `json:"id"`
+ Type TimelineItemType `json:"type"`
+ Title string `json:"title"`
+ Time time.Time `json:"time"`
+ EndTime *time.Time `json:"end_time,omitempty"`
+ Description string `json:"description,omitempty"`
+ URL string `json:"url,omitempty"`
+ OriginalItem interface{} `json:"-"`
+}