diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-01-28 23:32:26 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-01-28 23:32:26 -1000 |
| commit | d39220eac03fbc5b714bde989665ed1c92dd24a5 (patch) | |
| tree | 03e1985745043b9af6e7442ac21fdcd5d843146f /internal/models | |
| parent | 05b1930e04ac222d73ffb2f45c1b1febb69f893d (diff) | |
Expand agent context API with completed log and calendar view
- Add completed_tasks table to log task completions with title, due date,
and completion timestamp
- Extend agent context date range: 7 days back to 14 days forward
- Add completed_log to API response (last 50 completed tasks)
- Add day_section field to timeline items (overdue/today/tomorrow/later)
- Add calendar-style view for today's schedule (6am-10pm hourly grid)
- Add tabbed interface for Timeline vs Completed Log in HTML view
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'internal/models')
| -rw-r--r-- | internal/models/types.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/models/types.go b/internal/models/types.go index 5214bf8..e28d985 100644 --- a/internal/models/types.go +++ b/internal/models/types.go @@ -197,3 +197,13 @@ const ( AgentTrustRecognized AgentTrustLevel = "recognized" AgentTrustSuspicious AgentTrustLevel = "suspicious" ) + +// CompletedTask represents a logged completed task +type CompletedTask struct { + ID int64 `json:"id"` + Source string `json:"source"` + SourceID string `json:"source_id"` + Title string `json:"title"` + DueDate *time.Time `json:"due_date,omitempty"` + CompletedAt time.Time `json:"completed_at"` +} |
