mirror of
https://github.com/OFFIS-ESC/constellation-analyzer
synced 2026-01-26 23:43:40 +00:00
Removes ~350 lines of legacy code from single-document system. Changes: - Delete src/stores/persistence/loader.ts (legacy load functions) - Delete src/stores/persistence/saver.ts (legacy save functions) - Delete src/stores/workspace/migration.ts (no migration support needed) - Create src/stores/workspace/documentUtils.ts (consolidated utilities) Extracted and consolidated: - validateDocument() - document structure validation - getCurrentGraphFromDocument() - extract current graph from timeline - deserializeGraphState() - convert storage to runtime format - serializeActors/Relations/Groups() - convert runtime to storage format - createDocument() - create new document with initial timeline state Updated imports: - workspaceStore.ts: use documentUtils instead of loader/saver - useActiveDocument.ts: use documentUtils.getCurrentGraphFromDocument - fileIO.ts: use documentUtils for serialization/validation - persistence.ts: use documentUtils.validateDocument - graphStore.ts: remove legacy loadGraphState, start with empty state Removed legacy storage keys: - LEGACY_GRAPH_STATE from workspace/persistence.ts - hasLegacyData() function (no longer needed) - References to LEGACY_GRAPH_STATE in cleanupStorage.ts Impact: - No breaking changes for existing users (workspace format unchanged) - Cleaner code organization (all document utils in one place) - No migration support (old documents will not be loaded) - Reduced technical debt (~350 lines removed) Related: Phase 1 of STATE_MANAGEMENT_REFACTORING_PLAN.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| DIRECTIONAL_RELATIONSHIPS_UX_SPEC.md | ||
| IMPLEMENTATION_CHECKLIST.md | ||
| KEYBOARD_SHORTCUTS.md | ||
| MULTI_FILE_PLAN.md | ||
| PERSISTENCE_PLAN.md | ||
| PHASE_4_1_COMPLETION_SUMMARY.md | ||
| PHASE_4_1_TEST_PLAN.md | ||
| PROJECT_SUMMARY.md | ||
| SIDE_PANELS_UX_DESIGN.md | ||
| STATE_MANAGEMENT_REFACTORING_PLAN.md | ||
| TEMPORAL_ANALYSIS_SUMMARY.md | ||
| TEMPORAL_QUICK_START.md | ||
| TEMPORAL_SCENARIO_IMPLEMENTATION_PLAN.md | ||
| TEMPORAL_SCENARIO_UX_CONCEPT.md | ||
| UNDO_REDO_IMPLEMENTATION.md | ||
| UX_ANALYSIS.md | ||
| UX_ANALYSIS_ACTOR_TYPE_SETTINGS.md | ||
| UX_CONCEPT_MULTI_VERSION_GRAPH.md | ||
| VISUAL_EXAMPLES.md | ||
| WORKSPACE_PERSISTENCE.md | ||