Commit Graph

4 Commits

Author SHA1 Message Date
Claude
1266003c4b feat: Improve thread reply resolution and focusing
- Fetch BOTH kind 1 (NIP-10) and kind 1111 (NIP-22) replies for all root events
- Track original event ID when opening thread from a reply
- Auto-expand parent if focused event is a 2nd level reply
- Highlight focused event with ring-2 ring-primary/50
- Auto-scroll to focused event on mount
- Determine thread kind dynamically per event instead of globally
- Show clicked reply even when opening thread from nested reply
2026-01-17 19:46:24 +00:00
Claude
2515545e36 refactor: Make thread comments more compact
- Create ThreadCommentRenderer for compact comment display
- Remove reply preview from comments
- Remove footer from comments
- Remove reply count display when collapsed
- Reduce padding in comments section
- Tighter spacing between comments (space-y-0)
- Use compact renderer for both kind 1 and 1111 in thread view
2026-01-17 19:32:03 +00:00
Claude
616cc083ce fix: Resolve TypeScript errors in thread components
- Handle undefined types from getCommentReplyPointer
- Fix pointer type assertions for AddressPointer
- Remove unused customTitle prop
- Change null to undefined for useNostrEvent compatibility
2026-01-17 19:10:00 +00:00
Claude
e7ab643538 feat: Add thread command with NIP-10 and NIP-22 support
Implements a thread viewer that displays Nostr conversations with:
- Automatic root resolution for NIP-10 (kind 1) and NIP-22 (kind 1111)
- 2-level tree structure with expand/collapse
- Thread participants display with usernames
- Read-only relay dropdown showing connection status
- Chronological sorting of replies
- Context menu integration on all events

Components:
- ThreadViewer: Main thread display with header and root event
- ThreadConversation: 2-level threaded reply tree
- thread-parser: Command argument parsing

UI Integration:
- Added "Thread" action to event dropdown menu
- Added right-click context menu to all events
- Wired into window rendering system
- Added to man pages with examples

Usage: thread <note1|nevent1|naddr1|hex-id>
2026-01-17 19:01:05 +00:00