ui: name the common event kinds from a data table #13

Merged
raucao merged 2 commits from feat/event-kinds into main 2026-12-01 12:43:53 +00:00
2 Commits
Author SHA1 Message Date
raucao c23b947001 ui: name the first community-NIP kind (360, Place media)
CI / test (push) Successful in 51s
CI / test (pull_request) Successful in 50s
The kind table now takes kinds from community NIPs that have no assigned
number, cited by title in the `spec` column with the nostr address on a
comment above the row. The first is Place Photos and Videos (kind 360),
named "Place media" because an event carries one photo or video.
2026-12-01 16:38:22 +04:00
raucao 6676cec9b5 ui: name the common event kinds from a data table
Move the kind names out of src/ui/kind.rs into data/event-kinds.tsv — one
kind per line, with the standard that defines it — and cover the whole NIPs
table plus the NIP-82 draft, Blossom and git kinds: around 230 kinds instead
of 80. The module embeds the file with include_str! and parses it once; a
malformed, duplicated or overlapping row panics and fails the tests. The file
is an input of the Meson cargo target, so editing it triggers a rebuild.

Render the kind as a sentence-cased name with the number alongside: the
approval dialog shows `Kind: Reaction (7)`, an Apps permission row
`Sign kind 7 (Reaction)`, and an activity entry
`Reaction (kind 7) — allowed silently`.
2026-12-01 16:35:09 +04:00