aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/web_test.go
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2026-09-15 23:17:17 +0300
committergrm <grm@eyesin.space>2026-09-15 23:17:17 +0300
commit628dcb814ece6335667e2b719049728aa161d8c9 (patch)
tree8fa4654771bee0166286b32fc123beec892870bb /internal/web/web_test.go
parent2c85ca1a46ddf4652f8fffc53d6bcfbe32b2b4ff (diff)
downloadblogspace-628dcb814ece6335667e2b719049728aa161d8c9.tar.gz
blogspace-628dcb814ece6335667e2b719049728aa161d8c9.tar.bz2
blogspace-628dcb814ece6335667e2b719049728aa161d8c9.zip
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A
Diffstat (limited to 'internal/web/web_test.go')
-rw-r--r--internal/web/web_test.go4
1 files changed, 2 insertions, 2 deletions
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)
}
}