From cbb0b53de1d06918c142171fd084f14f03798bc1 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sat, 31 Jan 2026 20:16:12 -1000 Subject: Add feature toggles system with settings UI (#74) - Add feature_toggles table (migration 012) - Add source_config table for future source selection (migration 013) - Create settings page at /settings with: - Feature toggle management (enable/disable/create/delete) - Data source configuration (sync and toggle boards/calendars) - Add store methods for feature toggles and source config - Add GetCalendarList and GetTaskLists to Google API clients - Document feature toggle workflow in DESIGN.md Co-Authored-By: Claude Opus 4.5 --- cmd/dashboard/main.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cmd') diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index 8f87e30..f1428ed 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -232,6 +232,14 @@ func main() { r.Get("/shopping/mode/{store}", h.HandleShoppingMode) r.Post("/shopping/mode/{store}/toggle", h.HandleShoppingModeToggle) + // Settings + r.Get("/settings", h.HandleSettingsPage) + r.Post("/settings/sync", h.HandleSyncSources) + r.Post("/settings/toggle", h.HandleToggleSourceConfig) + r.Post("/settings/features", h.HandleCreateFeature) + r.Post("/settings/features/toggle", h.HandleToggleFeature) + r.Delete("/settings/features/{name}", h.HandleDeleteFeature) + // WebSocket for notifications r.Get("/ws/notifications", h.HandleWebSocket) }) -- cgit v1.2.3