diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-01-31 20:16:12 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-01-31 20:16:12 -1000 |
| commit | cbb0b53de1d06918c142171fd084f14f03798bc1 (patch) | |
| tree | beb642057178bce8f50e3ad67f5a62671e3e6dda /cmd/dashboard/main.go | |
| parent | d39220eac03fbc5b714bde989665ed1c92dd24a5 (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'cmd/dashboard/main.go')
| -rw-r--r-- | cmd/dashboard/main.go | 8 |
1 files changed, 8 insertions, 0 deletions
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) }) |
