mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-12 16:37:06 +02:00
35e1f9fe1a20f57c06fbe0fa219cd1ba051fde69
Fixes several issues with the inbox feature:
1. Load persisted decrypted content on init:
- Load stored encrypted content IDs from Dexie on service init
- Subscribe to eventStore.update$ to detect cache restoration
- Automatically update conversations when restored content is available
2. Mark already-decrypted gift wraps correctly:
- Check both in-memory unlock state AND persisted IDs
- Prevents showing decrypted messages as "pending" after reload
3. Hide manual decrypt UI when auto-decrypt is enabled:
- Only show "Decrypt All" button when auto-decrypt is off
- Show "Auto-decrypting..." status when auto-decrypt is on
4. Show pending count in user menu:
- Add pendingCount$ observable to gift wrap service
- Display badge on "Private Messages" menu item when there are
undecrypted messages and auto-decrypt is disabled
5. Expose full rumor for future kind support:
- Add decryptedRumors$ observable with all decrypted rumors
- Full rumor event (id, pubkey, kind, tags, content) is preserved
- Enables future support for any kind sent via gift wrap
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%