Compose, reactions, replies + feed filtering

- Add ComposeBox with Ctrl+Enter shortcut and char limit
- Add reply/like actions to NoteCard with inline reply box
- Add publishNote, publishReaction, publishReply to nostr lib
- Filter bot JSON blobs from feed (content starting with { or [)
- Fix sidebar login button always visible (shrink-0 + nav overflow)
- Restore pubkey sessions from localStorage on startup
- Add CLAUDE.md with project guidance
- Add thread view and onboarding notes to AGENTS.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jure
2026-03-08 18:44:04 +01:00
parent 0b70d25712
commit 5e20e5a128
9 changed files with 352 additions and 13 deletions

View File

@@ -2,6 +2,16 @@ import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App";
import "./index.css";
import { useUserStore } from "./stores/user";
// Restore session from localStorage
const savedPubkey = localStorage.getItem("wrystr_pubkey");
const savedLoginType = localStorage.getItem("wrystr_login_type");
if (savedPubkey && savedLoginType === "pubkey") {
useUserStore.getState().loginWithPubkey(savedPubkey);
}
// Note: nsec is never stored, so nsec sessions can't be auto-restored.
// Future: restore via OS keychain.
createRoot(document.getElementById("root") as HTMLElement).render(
<StrictMode>