Updated project to React 19

This commit is contained in:
Richard Osborne
2025-12-07 17:32:53 +01:00
parent 2153baf627
commit 8fed72d025
70 changed files with 4534 additions and 5309 deletions

View File

@@ -2,6 +2,45 @@
---
## [2025-07-12] - Backup System Implementation
### Summary
Analyzed the v1.1.0 template-project and discovered that projects are already at version "4" (the current supported version). Created the project backup utility for safe migrations.
### Key Discovery
**Legacy projects from Noodl v1.1.0 are already at project format version "4"**, which means:
- No version upgrade is needed for the basic project structure
- The existing `ProjectPatches/` system handles node-level migrations
- The `Upgraders` in `projectmodel.ts` already handle format versions 0→1→2→3→4
### Files Created
- `packages/noodl-editor/src/editor/src/utils/projectBackup.ts` - Backup utility with:
- `createProjectBackup()` - Creates timestamped backup before migration
- `listProjectBackups()` - Lists all backups for a project
- `restoreProjectBackup()` - Restores from a backup
- `getLatestBackup()` - Gets most recent backup
- `validateBackup()` - Validates backup JSON integrity
- Automatic cleanup of old backups (default: keeps 5)
### Project Format Analysis
```
project.json structure:
├── name: string # Project name
├── version: "4" # Already at current version!
├── components: [] # Array of component definitions
├── settings: {} # Project settings
├── rootNodeId: string # Root node reference
├── metadata: {} # Styles, colors, cloud services
└── variants: [] # UI component variants
```
### Next Steps
- Integrate backup into project loading flow
- Add backup trigger before any project upgrades
- Optionally create CLI tool for batch validation
---
## [2025-01-XX] - Task Created
### Summary
@@ -16,7 +55,7 @@ Task documentation created for legacy project migration and backward compatibili
### Notes
- This task depends on TASK-001 (Dependency Updates) being complete or in progress
- Critical for ensuring existing Noodl users can migrate their production projects
- Scope includes CLI tool, migration engine, and editor integration
- Scope may be reduced since projects are already at version "4"
---