mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-09 15:07:10 +02:00
005605b385832ba93983cb3574ff4d7e30cb47ef
Improve the preview route UX with better loading states, error handling, and metadata display. Add version comparison logic and conflict resolution dialog for handling local vs network spellbook conflicts. Changes: - Enhanced preview route in Home.tsx: - Add loading state with spinner while resolving actor - Add NIP-05 resolution timeout (10 seconds) - Display error banner for resolution failures - Show author name and creation date in preview banner - Add copy link button to share spellbook easily - Improve banner layout with metadata - Add compareSpellbookVersions() in spellbook-manager.ts: - Detects conflicts between local and network versions - Compares timestamps, workspace counts, window counts - Identifies newer version and content differences - Returns structured comparison data - Create ConflictResolutionDialog component: - Side-by-side comparison of local vs network versions - Shows metadata: timestamps, counts, author, publish status - Clear explanation of resolution choices - Accessible UI with proper button hierarchy TypeScript compilation successful ✅ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Languages
TypeScript
98.9%
CSS
0.8%
JavaScript
0.3%