Show a note's tags under its title (#168) #202

Closed
kayg wants to merge 0 commits from issue/168-title-tags into dev
Owner

Closes #168.

A quiet row of tag chips under a note's title, read from the frontmatter tags: field.

  • Tap a chip: opens that tag's list (same route as the sidebar's #tag rows).
  • +: opens a small picker (existing tags, or type a new one and press Return). The suggestions come from lib/tag-source.ts; #165's search-backed picker only has to replace tagSource.suggest.
  • x: on hover (pointer) it springs in at the chip's corner and takes no room; on touch it sits inside each chip (24px+ target).
  • Every change is a plain frontmatter edit through the note's live editor (setTags, like the Info sheet's properties), never a file write. The tag line keeps its shape (tags: a, b, [a, b] or a - a list); the last removed tag removes the field.
  • No tags, no row. Source mode hides the row (the frontmatter shows as it is). Inline #tags keep their own styling.
  • Phone: chips wrap whole, never mid-word; a very long tag is cut with an ellipsis inside its own chip.
  • Daily notes: the row follows the date heading widget (#148 owns the Today badge; no change to it here).

Tests: apps/web/e2e/tags.spec.ts (row order, open, add, remove, last removal, source mode, touch, overflow at 320/390/1440). Evidence on the issue.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Closes #168. A quiet row of tag chips under a note's title, read from the frontmatter `tags:` field. - Tap a chip: opens that tag's list (same route as the sidebar's #tag rows). - `+`: opens a small picker (existing tags, or type a new one and press Return). The suggestions come from `lib/tag-source.ts`; #165's search-backed picker only has to replace `tagSource.suggest`. - `x`: on hover (pointer) it springs in at the chip's corner and takes no room; on touch it sits inside each chip (24px+ target). - Every change is a plain frontmatter edit through the note's live editor (`setTags`, like the Info sheet's properties), never a file write. The tag line keeps its shape (`tags: a, b`, `[a, b]` or a `- a` list); the last removed tag removes the field. - No tags, no row. Source mode hides the row (the frontmatter shows as it is). Inline `#tags` keep their own styling. - Phone: chips wrap whole, never mid-word; a very long tag is cut with an ellipsis inside its own chip. - Daily notes: the row follows the date heading widget (#148 owns the Today badge; no change to it here). Tests: `apps/web/e2e/tags.spec.ts` (row order, open, add, remove, last removal, source mode, touch, overflow at 320/390/1440). Evidence on the issue. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Show a note's tags under its title (#168)
Some checks failed
CI / rust (pull_request) Failing after 22s
CI / web (pull_request) Failing after 10m7s
88c6e35f40
A quiet row of chips from the frontmatter tags: a chip opens that tag's list, the + picks a
tag (existing tags, or a new one), the x removes one. Every change is an edit of the
frontmatter through the live editor. No tags, no row; source mode shows the frontmatter itself.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Author
Owner

Review, from the screenshots I checked myself:

  • 390 light, 8 tags: the chips wrap whole, and the long tag stays in one chip.
  • 1440 dark: the row sits under the title, with the + at the end.

Edits go through the live editor. After merging dev, svelte-check reports 0 errors.

Merging.

Follow-up: a note with no tags has no way to add its first tag (no row, so no +). Show the + on hover or focus of the title area, and on phones always show a quiet '+ tag'.

Review, from the screenshots I checked myself: - **390 light, 8 tags:** the chips wrap whole, and the long tag stays in one chip. - **1440 dark:** the row sits under the title, with the + at the end. Edits go through the live editor. After merging dev, svelte-check reports 0 errors. Merging. **Follow-up:** a note with no tags has no way to add its first tag (no row, so no +). Show the + on hover or focus of the title area, and on phones always show a quiet '+ tag'.
kayg closed this pull request 2026-10-14 08:38:31 +00:00
Some checks failed
CI / rust (pull_request) Failing after 22s
CI / web (pull_request) Failing after 10m7s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!202
No description provided.