From d39220eac03fbc5b714bde989665ed1c92dd24a5 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Wed, 28 Jan 2026 23:32:26 -1000 Subject: 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 --- migrations/011_completed_tasks.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 migrations/011_completed_tasks.sql (limited to 'migrations') 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); -- cgit v1.2.3