mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-09 23:16:50 +02:00
96216450f4cb64fc5f404d9cff850926ce7cbc21
- Create src/lib/nostr-kinds.ts with: - Re-exports from nostr-tools/kinds (isRegularKind, isReplaceableKind, etc.) - New isParameterizedReplaceableKind() function - New isAddressableKind() for determining naddr vs nevent encoding - NIP-01 boundary constants with clarifying comments - getKindCategory() for display purposes - Update KindRenderer.tsx to use shared utilities: - Replace inline range checks with helper functions - Fix "Regular Lists" -> "Replaceable Events" naming - Simplify redundant condition (isReplaceableKind includes kinds 0, 3) - Update BaseEventRenderer.tsx to use isAddressableKind() - Add comprehensive tests for all utilities
Languages
TypeScript
98.9%
CSS
0.8%
JavaScript
0.3%