From de435fda250f93dc897fcb6414f418e7ed9b3595 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Thu, 16 Jul 2026 06:53:07 +0000 Subject: Add availability CRUD, task estimate, and budget-tracked toggle endpoints Adds 6 widget HTTP handlers (availability get/create/delete, task estimate, project and label budget-tracked toggles) plus route registration, following the existing widget handler conventions. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01PQaPGQVSfmKUiHXB87qRTC --- cmd/dashboard/main.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd/dashboard/main.go') diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index 929dfc3..9691d5b 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -389,6 +389,12 @@ func main() { 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) + r.With(widgetAuth).Get("/api/widget/availability", h.HandleWidgetAvailabilityGet) + r.With(widgetAuth).Post("/api/widget/availability", h.HandleWidgetAvailabilityCreate) + r.With(widgetAuth).Post("/api/widget/availability/delete", h.HandleWidgetAvailabilityDelete) + r.With(widgetAuth).Post("/api/widget/task/estimate", h.HandleWidgetTaskEstimate) + r.With(widgetAuth).Post("/api/widget/projects/budget-tracked", h.HandleWidgetProjectsBudgetTracked) + r.With(widgetAuth).Post("/api/widget/labels/budget-tracked", h.HandleWidgetLabelsBudgetTracked) } else { log.Println("WIDGET_TOKEN not set — /api/widget disabled") } -- cgit v1.2.3