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.
This commit is contained in:
raucao committed 2026-12-01 16:38:22 +04:00
1 parent 6676cec9b5
commit c23b947001
3 files changed
+18 -5

No files matched your search

+4 -3
View File
@@ -17,9 +17,10 @@ the only place release notes are written.
- Names for many more event kinds. The table moved out of the code into
`data/event-kinds.tsv` — one kind per line, with the standard that defines it —
and grew from around 80 kinds to around 230, including the NIP-82 software
catalogue, Blossom authorisation and git-repository kinds a Zapstore-style
client asks for. Kinds not in the table keep a generic name.
and grew from around 80 kinds to more than 230, including the NIP-82 software
catalogue, Blossom authorisation, git-repository kinds a Zapstore-style client
asks for, and community NIPs such as Place Photos and Videos (kind 360). Kinds
not in the table keep a generic name.
### Changed
+7 -2
View File
@@ -9,8 +9,10 @@
# dialog field and in permission rows.
# `spec` the standard that defines the kind, kept for provenance. It is
# documentary only: the UI does not show it. `NIP-XX` for a NIP,
# otherwise the spec's own name. A `(draft)` or `(deprecated)` suffix
# marks a proposal or an unrecommended NIP.
# otherwise the spec's own name (e.g. `Marmot`). A `(draft)` or
# `(deprecated)` suffix marks a proposal or an unrecommended NIP. A
# community NIP with no assigned number is cited by its title, with its
# nostr address on a `#` comment line above the row.
#
# Blank lines and lines starting with `#` are ignored. Kinds must not overlap; a
# malformed or duplicated line panics at first use and fails `cargo test`, which
@@ -53,6 +55,9 @@
62 Request to vanish NIP-62
64 Chess game NIP-64
78 Application data NIP-78
# Community NIP by Râu Cao: Place Photos and Videos (draft), defines kind 360.
# https://nostrhub.io/naddr1qvzqqqrcvypzq8meqkx80g3yuklzymy0qfx2ekk56aqc2ht4ak03z3em4r4cdcwtqqthqmrpvdjj6urgda6x7uedv9hxgttkd9jx2mmnl2q70n
360 Place media Place Photos and Videos (draft)
443 Key package Marmot
444 Welcome message Marmot
445 Group event Marmot
Can't render this file because it contains an unexpected character in line 23 and column 57.
+7
View File
@@ -197,6 +197,13 @@ mod tests {
assert_eq!(name(32267), "Software application");
}
/// A community NIP with no assigned number is named like any other; kind
/// 360 (Place Photos and Videos) is the first one in the table.
#[test]
fn community_kinds_are_named() {
assert_eq!(name(360), "Place media");
}
/// Each surface puts the number in its own place: the dialog leads with the
/// name, the permission row leads with "Sign kind", the activity row names
/// the kind in parentheses.