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 --- web/templates/partials/buckets-section.html | 53 +++++++++++++++++++++++++++++ web/templates/settings.html | 49 ++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 web/templates/partials/buckets-section.html (limited to 'web') diff --git a/web/templates/partials/buckets-section.html b/web/templates/partials/buckets-section.html new file mode 100644 index 0000000..d2f5b7e --- /dev/null +++ b/web/templates/partials/buckets-section.html @@ -0,0 +1,53 @@ +{{define "buckets-section"}} +
+ {{if .Buckets}} + {{range .Buckets}} +
+
+
+ {{.Bucket.Name}} + every {{.Bucket.CycleDays}}d, picks {{.Bucket.PickN}} +
+ +
+ +
+ {{if .Items}} + {{range .Items}} +
+ {{.Content}} +
+ {{.BucketState}} + +
+
+ {{end}} + {{else}} +

Pool is empty.

+ {{end}} +
+ +
+ + +
+
+ {{end}} + {{else}} +
No maintenance buckets yet.
+ {{end}} +
+{{end}} diff --git a/web/templates/settings.html b/web/templates/settings.html index a955f64..3bb143c 100644 --- a/web/templates/settings.html +++ b/web/templates/settings.html @@ -264,6 +264,55 @@ {{end}} + + +
+

Maintenance Buckets

+ {{template "buckets-section" .}} +
+ + + + +
+
+ + +
+

Projects

+
+ {{if .Projects}} + {{range .Projects}} +
+ + {{.Name}} +
+ {{end}} + {{else}} +
No projects yet.
+ {{end}} +
+
+ + +
+

Labels

+
+ {{if .Labels}} + {{range .Labels}} +
+ + {{.Name}} +
+ {{end}} + {{else}} +
No labels assigned a color yet.
+ {{end}} +
+
-- cgit v1.2.3