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 /migrations | |
| 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 'migrations')
| -rw-r--r-- | migrations/011_completed_tasks.sql | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/migrations/011_completed_tasks.sql b/migrations/011_completed_tasks.sql new file mode 100644 index 0000000..0b782e9 --- /dev/null +++ b/migrations/011_completed_tasks.sql @@ -0,0 +1,12 @@ +-- Completed tasks log +CREATE TABLE IF NOT EXISTS completed_tasks ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + source TEXT NOT NULL, -- 'todoist', 'trello', 'gtasks', 'bug' + source_id TEXT NOT NULL, -- original ID from source + title TEXT NOT NULL, + due_date TEXT, -- original due date + completed_at TEXT NOT NULL DEFAULT (datetime('now', 'localtime')), + UNIQUE(source, source_id) +); + +CREATE INDEX IF NOT EXISTS idx_completed_tasks_completed_at ON completed_tasks(completed_at); |
