mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-13 08:57:04 +02:00
d6aa39b8181ba9879b29d9ebec5dc70968834448
Add compose and reply actions to the user interface: ## User Menu Integration - Add "Compose Note" menu item to user menu (when logged in) - Opens ComposeDialog for creating new kind 1 notes - Positioned prominently after user profile section ## Event Menu Integration - Add "Reply" menu item to EventMenu dropdown (when logged in) - Opens ComposeDialog with replyTo context - Automatically handles NIP-10/NIP-22 threading - Available on all event renderers via BaseEventRenderer ## Changes - src/components/nostr/user-menu.tsx: - Import ComposeDialog and PenSquare icon - Add showCompose state - Add "Compose Note" menu item - src/components/nostr/kinds/BaseEventRenderer.tsx: - Import ComposeDialog, Reply icon, and account manager - Add showReply state to EventMenu - Add conditional "Reply" menu item (only when account exists) - Render ComposeDialog with replyTo event Users can now compose notes and reply to events directly from the UI!
Grimoire
A Nostr protocol explorer and developer tool with a tiling window manager interface.
Features
- Tiling Windows - Each window is a Nostr "app" (profile viewer, event feed, NIP docs, etc.)
- Command Palette - Unix-style commands via
Cmd+Kto open apps and navigate - Multi-workspace - Virtual desktops with independent layouts
- Real-time - Reactive event subscriptions with automatic updates
Stack
React 19, TypeScript, Vite, TailwindCSS, Jotai, Dexie, Applesauce
Getting Started
npm install
npm run dev
Scripts
| Command | Description |
|---|---|
npm run dev |
Start dev server |
npm run build |
Build for production |
npm test |
Run tests in watch mode |
npm run lint |
Lint code |
npm run format |
Format code |
License
MIT
Languages
TypeScript
98.9%
CSS
0.8%
JavaScript
0.3%