mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-06-16 17:48:34 +02:00
a4f302f0d67d2498617db81c33fddf73fdb3807f
Fixed Gift Wrap Sync Issues:
- Add relay fallback: kind 10050 → kind 10002 → kind 3
- Fix loadOlderGiftWraps to work on first use (no existing gift wraps)
- Add comprehensive logging for debugging sync issues
Improved UI/UX:
- Use RelayLink component for relay display (with icons, hover cards)
- Show relays in collapsible dropdown with icon + count
- Add contextual error messages:
- No account active
- Sync disabled
- No relays configured
- No gift wraps received
- Waiting for messages
- Better visual hierarchy with Radio icon
Technical Details:
- getDMRelays now tries kind 10050, then 10002, then 3
- loadOlderGiftWraps uses lastSyncTimestamp or 90 days ago when empty
- Collapsible relay panel with ChevronDown animation
- RelayLink integration with showInboxOutbox={false}
Before: Silent failures when no DM relays configured
After: Clear messaging and automatic fallback to general relays
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%