Add search view (NIP-50 + hashtag + people)

- searchNotes: NIP-50 full-text for text queries, #t tag filter for #hashtags
- searchUsers: NIP-50 kind 0 search for people
- SearchView with tabbed notes/people results, follow/unfollow inline
- Hashtag queries skip people search and use universal #t filter
- Graceful empty state explains NIP-50 relay support caveat
- Search added to sidebar nav (⌕)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jure
2026-03-09 17:38:54 +01:00
parent 0a0a00a1b3
commit 2370fc21f9
6 changed files with 232 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ import { create } from "zustand";
import { NDKEvent } from "@nostr-dev-kit/ndk";
type View = "feed" | "relays" | "settings" | "profile" | "thread" | "article-editor";
type View = "feed" | "search" | "relays" | "settings" | "profile" | "thread" | "article-editor";
interface UIState {
currentView: View;