Add tags and tag-based stream filtering

Implements tag management (create/delete) and per-article tagging with
a freeform "add tag" input that creates the tag on first use instead
of requiring a separate create-then-assign flow. Tags render as pills
in the stream header; clicking one filters the stream to articles
carrying that tag, combinable with the existing read/starred/saved
filters.

The "Saved" filter already added in the reading-UI milestone functions
as the reading list, so this closes out the reading-list/tags
milestone without a separate dedicated view.

Verified live in-browser: creating a tag from an article, the pill
appearing in the stream nav, filtering by it, and deleting it from the
tag-management page, all via htmx without full page reloads.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
ksmithandClaude Sonnet 5 committed 2026-10-30 16:26:30 -06:00
1 parent 69e3520e3b
commit 579696efc0
12 files changed
+386 -5

No files matched your search

+71
View File
@@ -139,6 +139,77 @@ input, button {
text-align: center;
}
.tag-tabs {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin-bottom: 1rem;
}
.tag-pill {
--tag-color: #6b7280;
display: inline-flex;
align-items: center;
gap: 0.3rem;
padding: 0.2rem 0.6rem;
border-radius: 999px;
border: 1px solid var(--tag-color);
color: var(--tag-color);
text-decoration: none;
font-size: 0.85rem;
}
.tag-pill.active {
background: var(--tag-color);
color: #111;
}
.tag-remove {
background: none;
border: none;
color: inherit;
cursor: pointer;
padding: 0;
font-size: 1rem;
line-height: 1;
}
.article-tags {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.4rem;
margin: 1rem 0;
}
.add-tag-form {
display: inline-flex;
gap: 0.3rem;
}
.add-tag-form input {
padding: 0.25rem 0.5rem;
font-size: 0.85rem;
width: 8rem;
}
.tag-manage-list {
list-style: none;
padding: 0;
}
.tag-manage-list li {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0;
border-bottom: 1px solid #eee;
}
.inline-form {
display: inline;
}
.article-content {
line-height: 1.6;
margin-top: 1rem;