From 92909ebed5df68908f32c899de1e480f8d7fb01f Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sat, 18 Jul 2026 09:38:26 +0000 Subject: Add bucket CRUD and read-only Projects/Labels to Settings page New "Maintenance Buckets" section: create a bucket, add a pool item by title (creates the task and assigns it in one step), remove an item, delete a bucket (unbuckets its tasks rather than deleting them). New read-only Projects and Labels sections (name + color swatch) -- both are simple enough that read-only is the right call on web, per user direction, rather than duplicating the Android popup's editing UX. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01EZ7ikw2ukGJFTHE3bJS7zL --- internal/handlers/settings.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'internal/handlers/settings.go') diff --git a/internal/handlers/settings.go b/internal/handlers/settings.go index 28988b1..43fce20 100644 --- a/internal/handlers/settings.go +++ b/internal/handlers/settings.go @@ -17,6 +17,9 @@ func (h *Handler) HandleSettingsPage(w http.ResponseWriter, r *http.Request) { toggles, _ := h.store.GetFeatureToggles() syncLog, _ := h.store.GetRecentSyncLog(20) agents, _ := h.store.GetAllAgents() + buckets, _ := BuildBucketSummaries(h.store) + projects, _ := h.store.GetProjects() + labels, _ := h.store.GetLabelColors() // Group configs by source bySource := make(map[string][]models.SourceConfig) @@ -30,6 +33,9 @@ func (h *Handler) HandleSettingsPage(w http.ResponseWriter, r *http.Request) { Toggles []models.FeatureToggle SyncLog []store.SyncLogEntry Agents []models.Agent + Buckets []models.BucketSummary + Projects []models.Project + Labels []models.LabelColor CSRFToken string WebAuthnEnabled bool }{ @@ -38,6 +44,9 @@ func (h *Handler) HandleSettingsPage(w http.ResponseWriter, r *http.Request) { Toggles: toggles, SyncLog: syncLog, Agents: agents, + Buckets: buckets, + Projects: projects, + Labels: labels, CSRFToken: auth.GetCSRFTokenFromContext(r.Context()), WebAuthnEnabled: h.WebAuthnEnabled, } -- cgit v1.2.3