Repository navigation
Tag
github-actions[bot] edited this page Sep 27, 2026
·
2 revisions
[!info] Current vs Future State This document distinguishes the current implementation in code from proposed/future-state enhancements.
-
Store:
tags -
Key path:
id -
Type source:
apps/playground/src/types/storage.ts -
Database version:
wodwiki-db(v23)
Normalized note tag (V10). Attached to notes exclusively through the NoteTag relationship table.
| Field | Type | Notes |
|---|---|---|
id |
string | UUID |
label |
string | Unique |
type? |
TagType | Dynamic string matching a TagType name (e.g. 'equipment', 'discipline') |
createdAt |
number | Unix ms |
| Index | Key path | Unique | Purpose |
|---|---|---|---|
by-label |
label |
yes | label lookup |
by-type |
type |
no | filter by tag kind |
-
NoteTag.
tagId
- NoteTag — joins Tag ↔ Note
-
tag_types(V23) — dynamic tag classification dimensions ({ id, name, label, color?, createdAt }) with unique indexby-name.
- Keep tags as classification/discovery, separate from Note type, Page placement and source-write authority. Tagging a note
effortorpagedoes not create an owning relationship or parsed projection. - Reuse NoteTag for actual note records. An effort's proposed owning note can use that junction; no polymorphic tag target is needed merely to call an effort a note.
Feedback question: if a tag changes which collection queries display a note, should it ever change the editor mode or ownership? Recommended answer: no; those contracts belong to Note#Wayfinder questions and proposed answers and Page#Mode and write destinations.
These are review proposals, not implemented changes. The earlier idea of direct session/query-document tagging is separate and needs a concrete use case before expanding the schema.
!