From 628dcb814ece6335667e2b719049728aa161d8c9 Mon Sep 17 00:00:00 2001 From: grm Date: Tue, 15 Sep 2026 23:17:17 +0300 Subject: Make the post form's tag input a box with a folded list of chips A checkbox per existing tag stops working once a blog has dozens of them. The form is now one comma-separated box, prefilled with the post's tags, and the blog's tags sit folded under it as chips; a small script toggles a clicked chip in the box, and without it the chips are a plain list to copy from. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A --- internal/web/web_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/web/web_test.go') diff --git a/internal/web/web_test.go b/internal/web/web_test.go index 5ab8219..afb289a 100644 --- a/internal/web/web_test.go +++ b/internal/web/web_test.go @@ -241,8 +241,8 @@ func TestParseTags(t *testing.T) { if _, ok := parseTags(many); ok { t.Error("21 tags should be too many") } - if !tagSet(tags)["ntomates"] || tagSet(tags)["nope"] { - t.Error("tagSet") + if got := tagsText(tags); got != "Go, tomatoes plants, Ντομάτες" { + t.Errorf("tagsText: %q", got) } } -- cgit v1.2.3