mirror of
https://github.com/OFFIS-ESC/constellation-analyzer
synced 2026-01-27 15:53:42 +00:00
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> |
||
|---|---|---|
| .. | ||
| persistence | ||
| workspace | ||
| editorStore.ts | ||
| graphStore.ts | ||
| historyStore.ts | ||
| panelStore.ts | ||
| searchStore.ts | ||
| timelineStore.ts | ||
| toastStore.ts | ||
| workspaceStore.ts | ||