From 7e2386c0ebbc2d1cafc670ad4fd05b884f8b8fa7 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Wed, 15 Jul 2026 18:23:38 +0000 Subject: feat(tasks): add HTTP endpoints for projects and label colors Extends the task-detail response with project/labels so the popup can display them without a second round trip. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01VTUSAEKfsPc6WGDq45yPHD --- cmd/dashboard/main.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd') diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index f78e5b5..929dfc3 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -383,6 +383,12 @@ func main() { r.With(widgetAuth).Post("/api/widget/task/update", h.HandleWidgetTaskUpdate) r.With(widgetAuth).Post("/api/widget/task/recurrence", h.HandleWidgetTaskRecurrence) r.With(widgetAuth).Post("/api/widget/task/next-date", h.HandleWidgetTaskNextDate) + r.With(widgetAuth).Get("/api/widget/projects", h.HandleWidgetProjectsGet) + r.With(widgetAuth).Post("/api/widget/projects", h.HandleWidgetProjectsCreate) + r.With(widgetAuth).Post("/api/widget/task/project", h.HandleWidgetTaskProject) + r.With(widgetAuth).Post("/api/widget/task/labels", h.HandleWidgetTaskLabels) + r.With(widgetAuth).Get("/api/widget/labels", h.HandleWidgetLabelsGet) + r.With(widgetAuth).Post("/api/widget/labels/color", h.HandleWidgetLabelsColorSet) } else { log.Println("WIDGET_TOKEN not set — /api/widget disabled") } -- cgit v1.2.3