Skip to content

Tag filters: tags shown without #, their count apart in a badge - #1679

Merged
vmillet-dev merged 1 commit into
dev/1.2.2from
tag-pill-badge
Nov 27, 2026
Merged

vmillet-dev merged 1 commit into
dev/1.2.2from
tag-pill-badge

Conversation

@vmillet-dev

Copy link
Copy Markdown
Owner

Closes #1668

Observed on dev/1.2.2 (first captures) and held by the new test: the tag pill is drawn and named #v2, its count 4 painted after it in the same monospace font, 6 points away, only a shade apart.

Change

  • The Tags rail shows a tag's name alone. The # stays where it is the tag's formatting: cards, the editor's header, the tag manager.
  • The count is a badge: its own rounded fill (bg_3, amber-tinted when the chip is on), a smaller proportional figure (font::CAPTION), set 6 points after the words.
  • One look for one meaning: the kinds, priorities and formats rails get the same badge. The format rail draws its chip apart from the others; it now paints its count with the same function.
  • The pill's accessible name stays the tag's name, the count out of it.
Before After

(The first two rows are the rails enlarged twice.)

Tests

  • notes/header/facets.rs: a tag v2 held by four notes is named v2, no word painted in its pill starts with #, and its 4 sits on a badge of its own that starts after the name. Fails on dev/1.2.2 (#v2).
  • e2e 06_search_and_filters: the tag step clicks tag-pill by its id, unchanged.
  • Run: fmt, clippy (ui, all targets, all features), cargo test -p ui --lib (986 passed).

🤖 Generated with Claude Code

Every rail's count is drawn on a fill of its own, in a smaller proportional figure: a tag ending in a digit no longer runs into it.
@vmillet-dev vmillet-dev added the change Behaviour change to something that already existed label Nov 27, 2026
@vmillet-dev
vmillet-dev merged commit 0e8734b into dev/1.2.2 Nov 27, 2026
11 checks passed
@vmillet-dev
vmillet-dev deleted the tag-pill-badge branch November 27, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change Behaviour change to something that already existed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant