diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-06-29 09:31:37 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-06-29 09:31:37 +0000 |
| commit | e7aee6b9d0c2be22530f7813bf677c0c8bff99e4 (patch) | |
| tree | 2699db4618635115c317fdbcfae3018da7c0c678 /cmd/dashboard/main.go | |
| parent | 509ae15621a3981246e8b2b54804959294938d42 (diff) | |
feat: reschedule tasks from widget bottom sheet
Tapping a doot task shows a date picker. On confirm, POSTs to
/api/widget/reschedule, updates due_date in native_tasks, refreshes
widget. Reschedule button only shows for source="doot" tasks.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'cmd/dashboard/main.go')
| -rw-r--r-- | cmd/dashboard/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index c154d9b..9f69d46 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -366,6 +366,7 @@ func main() { } r.With(widgetAuth).Get("/api/widget", h.HandleWidgetGet) r.With(widgetAuth).Post("/api/widget/complete", h.HandleWidgetComplete) + r.With(widgetAuth).Post("/api/widget/reschedule", h.HandleWidgetReschedule) } else { log.Println("WIDGET_TOKEN not set — /api/widget disabled") } |
