constellation-analyzer/src/stores
Jan-Henrik Bruhn 89117415ed refactor: establish document as source of truth for node/edge types
Refactors the type management system to properly follow the
Workspace→Document→Timeline→Graph hierarchy, where nodeTypes and
edgeTypes are owned by the document rather than being independent
state in graphStore.

Changes:
- Add type management actions to workspaceStore (document-level)
- Update workspaceStore.saveDocument to stop copying types from graphStore
- Modify useActiveDocument to only track node/edge changes for dirty state
- Update useGraphWithHistory to route type operations through workspaceStore
- Update useDocumentHistory to read/restore types from document

Architecture:
- Document: Source of truth for types (persistent storage)
- graphStore: Synchronized working memory (optimized for React Flow)
- useActiveDocument: Bridge that syncs document → graphStore
- Type mutations: Always go through workspaceStore, then sync to graphStore

This ensures proper data ownership while maintaining graphStore as a
performance optimization layer for the UI.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-12 14:27:57 +02:00
..
persistence fix: preserve timeline states in document import/export 2025-10-12 11:11:32 +02:00
workspace refactor: establish document as source of truth for node/edge types 2025-10-12 14:27:57 +02:00
editorStore.ts Initial commit 2025-10-10 11:15:51 +02:00
graphStore.ts fix: preserve timeline states in document import/export 2025-10-12 11:11:32 +02:00
historyStore.ts refactor: migrate undo/redo from per-state to per-document level 2025-10-11 22:38:23 +02:00
panelStore.ts fix: improve bottom panel collapsed state and remove broken right panel close button 2025-10-11 22:22:42 +02:00
searchStore.ts feat: add search and filter functionality with Ctrl+F shortcut 2025-10-12 12:11:29 +02:00
timelineStore.ts refactor: migrate undo/redo from per-state to per-document level 2025-10-11 22:38:23 +02:00
toastStore.ts feat: add toast notification system for visual feedback 2025-10-10 23:13:28 +02:00
workspaceStore.ts refactor: establish document as source of truth for node/edge types 2025-10-12 14:27:57 +02:00