32 KiB
React 19 Migration System - Changelog
[Unreleased]
Session 12: Wizard Visual Polish - Production Ready UI
2024-12-21
Completed:
- Complete SCSS Overhaul - Transformed all migration wizard styling from basic functional CSS to beautiful, professional, production-ready UI:
Files Enhanced (9 SCSS modules):
-
MigrationWizard.module.scss - Main container styling:
- Added fadeIn and slideIn animations for smooth entry
- Design system variables for consistent spacing, transitions, radius, shadows
- Improved container dimensions (750px width, 85vh max height)
- Custom scrollbar styling with hover effects
- Better backdrop and overlay effects
-
WizardProgress.module.scss - Progress indicator:
- Pulsing animation on active step with shadow effects
- Checkmark bounce animation for completed steps
- Animated connecting lines with slideProgress keyframe
- Larger step circles (36px) with gradient backgrounds
- Hover states with transform effects
-
ConfirmStep.module.scss - Path confirmation:
- ArrowBounce animation for visual flow indication
- Distinct locked/editable path sections with gradients
- Gradient info boxes with left border accent
- Better typography hierarchy and spacing
- Interactive hover states on editable elements
-
ScanningStep.module.scss - Progress display:
- Shimmer animation on progress bar
- Spinning icon with drop shadow
- StatGrid with hover effects and transform
- Gradient progress fill with animated shine effect
- Color-coded log entries with sliding animations
-
ReportStep.module.scss - Scan results:
- CountUp animation for stat values
- Sparkle animation for AI configuration section
- Beautiful category sections with gradient headers
- Collapsible components with smooth height transitions
- AI prompt with animated purple gradient border
- Interactive component cards with hover lift effects
-
MigratingStep.module.scss - Migration progress:
- Budget pulse animation when >80% spent (warning state)
- Shimmer effect on progress bars
- Gradient backgrounds for component sections
- Budget warning panel with animated pulse
- Real-time activity log with color-coded entries
- AI decision panel with smooth transitions
-
CompleteStep.module.scss - Success screen:
- SuccessPulse animation on completion icon
- Celebration header with success gradient
- Stat cards with countUp animation
- Beautiful path display cards with gradients
- Next steps section with hover effects
- Confetti-like visual celebration
-
FailedStep.module.scss - Error display:
- Shake animation on error icon
- Gradient error boxes with proper contrast
- Helpful suggestion cards with hover states
- Safety notice with success coloring
- Better error message typography
-
AIConfigPanel.module.scss - AI configuration:
- Purple AI theming with sparkle/pulse animations
- Gradient header with animated glow effect
- Modern form fields with monospace font for API keys
- Beautiful validation states (checkBounce/shake animations)
- Enhanced security notes with left border accent
- Interactive budget controls with scale effects
- Shimmer effect on primary action button
Design System Implementation:
-
Consistent color palette:
- Primary:
#3b82f6(blue) - Success:
#10b981(green) - Warning:
#f59e0b(orange) - Danger:
#ef4444(red) - AI:
#8b5cf6(purple)
- Primary:
-
Standardized spacing scale:
- xs: 8px, sm: 12px, md: 16px, lg: 24px, xl: 32px, 2xl: 40px
-
Border radius scale:
- sm: 4px, md: 6px, lg: 8px, xl: 12px
-
Shadow system:
- sm, md, lg, glow (for special effects)
-
Transition timing:
- fast: 150ms, base: 250ms, slow: 400ms
Animation Library:
fadeIn/fadeInUp- Entry animationsslideIn/slideInUp- Sliding entrypulse- Gentle attention pulseshimmer- Animated gradient sweepsparkle- Opacity + scale variationcheckBounce- Success icon bouncesuccessPulse- Celebration pulsebudgetPulse- Warning pulse (budget)shake- Error shakespin- Loading spinnercountUp- Number counting effectarrowBounce- Directional bounceslideProgress- Progress line animation
UI Polish Features:
- Smooth micro-interactions on all interactive elements
- Gradient backgrounds for visual depth
- Box shadows for elevation hierarchy
- Custom scrollbar styling
- Hover states with transform effects
- Focus states with glow effects
- Color-coded semantic states
- Responsive animations
- Accessibility-friendly transitions
Result:
Migration wizard transformed from basic functional UI to a beautiful, professional, modern interface that feels native to OpenNoodl. The wizard now provides:
- Clear visual hierarchy and flow
- Delightful animations and transitions
- Professional polish and attention to detail
- Consistent design language
- Production-ready user experience
Next Sessions:
- Session 2: Post-Migration UX Features (component badges, migration notes, etc.)
- Session 3: Polish & Integration (new project dialog, welcome screen, etc.)
Session 11: MigrationWizard AI Integration Complete
2024-12-20
Completed:
- MigrationWizard.tsx - Full AI integration with proper wiring:
- Added imports for MigratingStep, AiDecision, AIConfigPanel, AIConfig types
- Added action types: CONFIGURE_AI, AI_CONFIGURED, BACK_TO_REPORT, AI_DECISION
- Added reducer cases for all AI flow transitions
- Implemented handlers:
handleConfigureAi()- Navigate to AI configuration screenhandleAiConfigured()- Save AI config and return to report (transforms config with spent: 0)handleBackToReport()- Cancel AI config and return to reporthandleAiDecision()- Handle user decisions during AI migrationhandlePauseMigration()- Pause ongoing migration
- Added render cases:
configureAistep - Renders AIConfigPanel with save/cancel callbacks- Updated
reportstep - Added onConfigureAi prop and aiEnabled flag - Updated
migratingstep - Replaced ScanningStep with MigratingStep, includes AI decision handling
Technical Details:
- AIConfig transformation adds
spent: 0to budget before passing to MigrationSessionManager - AI configuration flow: Report → Configure AI → Report (with AI enabled) → Migrate
- MigratingStep receives progress, useAi flag, budget, and decision/pause callbacks
- All unused imports removed (AIBudget, AIPreferences were for type reference only)
- Handlers use console.log for Phase 3 orchestrator hookup points
Integration Status:
✅ UI components complete (MigratingStep, ReportStep, AIConfigPanel) ✅ State management wired (reducer actions, handlers) ✅ Render flow complete (all step cases implemented) ⏳ Backend orchestration (Phase 3 - AIMigrationOrchestrator integration)
Files Modified:
packages/noodl-editor/src/editor/src/views/migration/
└── MigrationWizard.tsx (Complete AI integration)
Next Steps:
- Phase 3: Wire AIMigrationOrchestrator into MigrationSession.startMigration()
- Add event listeners for budget approval dialogs
- Handle real-time migration progress updates
- End-to-end testing with actual Claude API
Session 10: AI Integration into Wizard
2024-12-20
Added:
- MigratingStep Component - Real-time AI migration progress display:
MigratingStep.tsx- Component with budget tracking, progress display, and AI decision panelsMigratingStep.module.scss- Styling with animations for budget warnings and component progress- Features:
- Budget display with warning state when >80% spent
- Component-by-component progress tracking
- Activity log with color-coded entries (info/success/warning/error)
- AI decision panel for handling migration failures
- Pause migration functionality
Updated:
- ReportStep.tsx - Enabled AI configuration:
- Added
onConfigureAicallback prop - Added
aiEnabledprop to track AI configuration state - "Configure AI" button appears when issues exist and AI not yet configured
- "Migrate with AI" button enabled when AI is configured
- Updated AI prompt text from "Coming Soon" to "Available"
- Added
Technical Implementation:
- MigratingStep handles both AI and non-AI migration display
- Decision panel allows user choices: retry, skip, or get help
- Budget bar changes color (orange) when approaching limit
- Real-time log entries with sliding animations
- Integrates with existing AIBudget and MigrationProgress types
Files Created:
packages/noodl-editor/src/editor/src/views/migration/steps/
├── MigratingStep.tsx
└── MigratingStep.module.scss
Files Modified:
packages/noodl-editor/src/editor/src/views/migration/steps/
└── ReportStep.tsx (AI configuration support)
Next Steps:
- Wire MigratingStep into MigrationWizard.tsx
- Connect AI configuration flow (configureAi step)
- Handle migrating step with AI decision logic
- End-to-end testing
Session 9: AI Migration Implementation
2024-12-20
Added:
- Complete AI-Assisted Migration System - Full implementation of Session 4 from spec:
- Core AI infrastructure (5 files):
claudePrompts.ts- System prompts and templates for guiding Claude migrationskeyStorage.ts- Encrypted API key storage using Electron's safeStorage APIclaudeClient.ts- Anthropic API wrapper with cost tracking and response parsingBudgetController.ts- Spending limits and approval flow managementAIMigrationOrchestrator.ts- Coordinates multi-component migrations with retry logic
- UI components (4 files):
AIConfigPanel.tsx+.module.scss- First-time setup for API key, budget, and preferencesBudgetApprovalDialog.tsx+.module.scss- Pause dialog for budget approval
- Core AI infrastructure (5 files):
Technical Implementation:
-
Claude Integration:
- Model:
claude-sonnet-4-20250514 - Pricing: $3/$15 per 1M tokens (input/output)
- Max tokens: 4096 for migrations, 2048 for help requests
- Response format: Structured JSON with success/changes/warnings/confidence
- Model:
-
Budget Controls:
- Default: $5 max per session, $1 pause increments
- Hard limits prevent budget overruns
- Real-time cost tracking and display
- User approval required at spending increments
-
Migration Flow:
- User configures API key + budget (one-time setup)
- Wizard scans project → identifies components needing AI help
- User reviews and approves estimated cost
- AI migrates each component with up to 3 retry attempts
- Babel syntax verification after each migration
- Failed migrations get manual suggestions via "Get Help" option
-
Security:
- API keys stored with OS-level encryption (safeStorage)
- Fallback to electron-store encryption
- Keys never sent to OpenNoodl servers
- All API calls go directly to Anthropic
-
Verification:
- Babel parser checks syntax validity
- Forbidden pattern detection (componentWillMount, string refs, etc.)
- Confidence threshold enforcement (default: 0.7)
- User decision points for low-confidence migrations
Files Created:
packages/noodl-editor/src/editor/src/utils/migration/
├── claudePrompts.ts
├── keyStorage.ts
└── claudeClient.ts
packages/noodl-editor/src/editor/src/models/migration/
├── BudgetController.ts
└── AIMigrationOrchestrator.ts
packages/noodl-editor/src/editor/src/views/migration/
├── AIConfigPanel.tsx
├── AIConfigPanel.module.scss
├── BudgetApprovalDialog.tsx
└── BudgetApprovalDialog.module.scss
Dependencies Added:
@anthropic-ai/sdk- Claude API client@babel/parser- Code syntax verification
Next Steps:
- Integration into MigrationSession.ts (orchestrate AI phase)
- Update ReportStep.tsx to enable AI configuration
- Add MigratingStep.tsx for real-time AI progress display
- Testing with real project migrations
Session 8: Migration Marker Fix
2024-12-15
Fixed:
- Migrated Projects Still Showing as Legacy (
MigrationSession.ts):- Root cause:
executeFinalizePhase()was a placeholder with justawait this.simulateDelay(200)and never updated project.json - The runtime detection system checks for
runtimeVersionormigratedFromfields in project.json - Without these markers, migrated projects were still detected as legacy React 17
- Implemented actual finalization that:
- Reads the project.json from the target path
- Adds
runtimeVersion: "react19"field - Adds
migratedFrommetadata object with:version: "react17"- what it was migrated fromdate- ISO timestamp of migrationoriginalPath- path to source projectaiAssisted- whether AI was used
- Writes the updated project.json back
- Migrated projects now correctly identified as React 19 in project list
- Root cause:
Technical Notes:
- Runtime detection checks these fields in order:
runtimeVersionfield (highest confidence)migratedFromfield (indicates already migrated)editorVersioncomparison to 1.2.0- Legacy pattern scanning
- Creation date heuristic (lowest confidence)
- Adding
runtimeVersion: "react19"provides "high" confidence detection
Files Modified:
packages/noodl-editor/src/editor/src/models/migration/MigrationSession.ts
Session 7: Complete Migration Implementation
2024-12-14
Fixed:
-
Text Color Invisible (Gray on Gray) (All migration SCSS files):
- Root cause: SCSS files used non-existent CSS variables like
--theme-color-fg-1and--theme-color-secondaryfor text --theme-color-fg-1doesn't exist in the theme - it's--theme-color-fg-highlight--theme-color-secondaryis a dark teal color (#005769) meant for backgrounds, not text- For text, should use
--theme-color-secondary-as-fgwhich is a visible teal (#7ec2cf) - Updated all migration SCSS files with correct variable names:
--theme-color-fg-1→--theme-color-fg-highlight(white text,#f5f5f5)--theme-color-secondary(when used for text color) →--theme-color-secondary-as-fg(readable teal,#7ec2cf)
- Text is now visible with proper contrast against dark backgrounds
- Root cause: SCSS files used non-existent CSS variables like
-
Migration Does Not Create Project Folder (
MigrationSession.ts):- Root cause:
executeCopyPhase()was a placeholder that never actually copied files - Implemented actual file copying using
@noodl/platformfilesystem API - New
copyDirectoryRecursive()method recursively copies all project files - Skips
node_modulesand.gitdirectories for efficiency - Checks if target directory exists before copying (prevents overwrites)
- Root cause:
-
"Open Migrated Project" Button Does Nothing (
projectsview.ts):- Root cause:
onCompletecallback didn't receive or use the target path - Updated callback signature to receive
targetPath: stringparameter - Now opens the migrated project from the correct target path
- Shows success toast and updates project list
- Root cause:
Technical Notes:
- Theme color variable naming conventions:
--theme-color-bg-*for backgrounds (bg-1 through bg-4, darker to lighter)--theme-color-fg-*for foreground/text (fg-highlight, fg-default, fg-default-shy, fg-muted)--theme-color-secondaryis#005769(dark teal) - background only!--theme-color-secondary-as-fgis#7ec2cf(light teal) - use for text
- filesystem API:
filesystem.exists(path)- check if path existsfilesystem.makeDirectory(path)- create directoryfilesystem.listDirectory(path)- list contents (returns entries withfullPath,name,isDirectory)filesystem.readFile(path)- read file contentsfilesystem.writeFile(path, content)- write file contents
Files Modified:
packages/noodl-editor/src/editor/src/models/migration/MigrationSession.ts
packages/noodl-editor/src/editor/src/views/projectsview.ts
packages/noodl-editor/src/editor/src/views/migration/steps/ConfirmStep.module.scss
packages/noodl-editor/src/editor/src/views/migration/steps/CompleteStep.module.scss
packages/noodl-editor/src/editor/src/views/migration/steps/FailedStep.module.scss
packages/noodl-editor/src/editor/src/views/migration/steps/ReportStep.module.scss
packages/noodl-editor/src/editor/src/views/migration/steps/ScanningStep.module.scss
packages/noodl-editor/src/editor/src/views/migration/components/WizardProgress.module.scss
Session 6: Dialog Pattern Fix & Button Functionality
2024-12-14
Fixed:
-
"Start Migration" Button Does Nothing (
MigrationWizard.tsx):- Root cause: useReducer
state.sessionwas never initialized - Component used two sources of truth:
migrationSessionManager.getSession()for rendering - worked finestate.sessionin reducer for actions - always null!
- All action handlers checked
if (!state.session) return state;and returned unchanged - Added
SET_SESSIONaction type to initialize reducer state after session creation - Button clicks now properly dispatch actions and update state
- Root cause: useReducer
-
Switched from Modal to CoreBaseDialog (
MigrationWizard.tsx):- Modal component was causing layout and interaction issues
- CoreBaseDialog is the pattern used by working dialogs like ConfirmDialog
- Changed import and component usage to use CoreBaseDialog directly
- Props:
isVisible,hasBackdrop,onClose
-
Fixed duplicate variable declaration (
MigrationWizard.tsx):- Had two
const session = migrationSessionManager.getSession()declarations - Renamed one to
currentSessionto avoid redeclaration error
- Had two
Technical Notes:
-
When using both an external manager AND useReducer, reducer state must be explicitly synchronized
-
CoreBaseDialog is the preferred pattern for dialogs - simpler and more reliable than Modal
-
Pattern for initializing reducer with async data:
// In useEffect after async operation: dispatch({ type: 'SET_SESSION', session: createdSession }); // In reducer: case 'SET_SESSION': return { ...state, session: action.session };
Files Modified:
packages/noodl-editor/src/editor/src/views/migration/MigrationWizard.tsx
Session 5: Critical UI Bug Fixes
2024-12-14
Fixed:
-
Migration Wizard Buttons Not Clickable (
BaseDialog.module.scss):- Root cause: The
::afterpseudo-element on.VisibleDialogwas covering the entire dialog - This overlay had no
pointer-events: none, blocking all click events - Added
pointer-events: noneto::afterpseudo-element - All buttons, icons, and interactive elements now work correctly
- Root cause: The
-
Migration Wizard Not Scrollable (
MigrationWizard.module.scss):- Root cause: Missing proper flex layout and overflow settings
- Added
display: flex,flex-direction: column, andoverflow: hiddento.MigrationWizard - Added
flex: 1,min-height: 0, andoverflow-y: autoto.WizardContent - Modal content now scrolls properly on shorter screen heights
-
Gray-on-Gray Text (Low Contrast) (All step SCSS modules):
- Root cause: SCSS files used undefined CSS variables like
--color-grey-800,--color-grey-400, etc. - The theme only defines
--theme-color-*variables, causing undefined values - Updated all migration wizard SCSS files to use proper theme variables:
--theme-color-bg-1,--theme-color-bg-2,--theme-color-bg-3for backgrounds--theme-color-fg-1for primary text--theme-color-secondaryfor secondary text--theme-color-primary,--theme-color-success,--theme-color-warning,--theme-color-dangerfor status colors
- Text now has proper contrast against modal background
- Root cause: SCSS files used undefined CSS variables like
Technical Notes:
- BaseDialog uses a
::afterpseudo-element for background color rendering - Without
pointer-events: none, this pseudo covers content and blocks interaction - Theme color variables follow pattern:
--theme-color-{semantic-name} - Custom color variables like
--color-grey-*don't exist - always use theme variables - Flex containers need
min-height: 0on children to allow proper shrinking/scrolling
Files Modified:
packages/noodl-core-ui/src/components/layout/BaseDialog/BaseDialog.module.scss
packages/noodl-editor/src/editor/src/views/migration/MigrationWizard.module.scss
packages/noodl-editor/src/editor/src/views/migration/components/WizardProgress.module.scss
packages/noodl-editor/src/editor/src/views/migration/steps/ConfirmStep.module.scss
packages/noodl-editor/src/editor/src/views/migration/steps/ScanningStep.module.scss
packages/noodl-editor/src/editor/src/views/migration/steps/ReportStep.module.scss
packages/noodl-editor/src/editor/src/views/migration/steps/CompleteStep.module.scss
packages/noodl-editor/src/editor/src/views/migration/steps/FailedStep.module.scss
Session 4: Bug Fixes & Polish
2024-12-14
Fixed:
-
EPIPE Error on Project Open (
cloud-function-server.js):- Added
safeLog()wrapper function that catches and ignores EPIPE errors - EPIPE occurs when stdout pipe is broken (e.g., terminal closed)
- All console.log calls in cloud-function-server now use safeLog
- Prevents editor crash when output pipe becomes unavailable
- Added
-
Runtime Detection Defaulting (
ProjectScanner.ts):- Changed fallback runtime version from
'unknown'to'react17' - Projects without explicit markers now correctly identified as legacy
- Ensures old Noodl projects trigger migration UI even without version flags
- Updated indicator message: "No React 19 markers found - assuming legacy React 17 project"
- Changed fallback runtime version from
-
Migration UI Not Showing (
projectsview.ts):- Added listener for
'runtimeDetectionComplete'event - Project list now re-renders after async runtime detection completes
- Legacy badges and migrate buttons appear correctly for React 17 projects
- Added listener for
-
SCSS Import Error (
MigrationWizard.module.scss):- Removed invalid
@use '../../../../styles/utils/colors' as *;import - File was referencing non-existent styles/utils/colors.scss
- Webpack cache required clearing after fix
- Removed invalid
Technical Notes:
- safeLog pattern:
try { console.log(...args); } catch (e) { /* ignore EPIPE */ } - Runtime detection is async - UI must re-render after detection completes
- Webpack caches SCSS files aggressively - cache clearing may be needed after SCSS fixes
- The
runtimeDetectionCompleteevent fires afterdetectAllProjectRuntimes()completes
Files Modified:
packages/noodl-editor/src/main/src/cloud-function-server.js
packages/noodl-editor/src/editor/src/models/migration/ProjectScanner.ts
packages/noodl-editor/src/editor/src/views/projectsview.ts
packages/noodl-editor/src/editor/src/views/migration/MigrationWizard.module.scss
Session 3: Projects View Integration
2024-12-14
Added:
-
Extended
DialogLayerModel.tsxwith genericshowDialog()method:- Accepts render function
(close: () => void) => JSX.Element - Options include
onClosecallback for cleanup - Enables mounting custom React components (like MigrationWizard) as dialogs
- Type:
ShowDialogOptionsinterface added
- Accepts render function
-
Extended
LocalProjectsModel.tswith runtime detection:RuntimeVersionInfoimport from migration/typesdetectRuntimeVersionimport from migration/ProjectScannerProjectItemWithRuntimeinterface extending ProjectItem with runtimeInfo- In-memory cache:
runtimeInfoCache: Map<string, RuntimeVersionInfo> - Detection tracking:
detectingProjects: Set<string> - New methods:
getRuntimeInfo(projectPath)- Get cached runtime infoisDetectingRuntime(projectPath)- Check if detection in progressgetProjectsWithRuntime()- Get all projects with runtime infodetectProjectRuntime(projectPath)- Detect and cache runtime versiondetectAllProjectRuntimes()- Background detection for all projectsisLegacyProject(projectPath)- Check if project is React 17clearRuntimeCache(projectPath)- Clear cache after migration
-
Updated
projectsview.htmltemplate with legacy project indicators:data-class="isLegacy:projects-item--legacy"conditional styling- Legacy badge with warning SVG icon (positioned top-right)
- Legacy actions overlay with "Migrate Project" and "Open Read-Only" buttons
- Click handlers:
data-click="onMigrateProjectClicked",data-click="onOpenReadOnlyClicked" - Detecting spinner with
data-class="isDetecting:projects-item-detecting"
-
Added CSS styles in
projectsview.css:.projects-item--legacy- Orange border for legacy projects.projects-item-legacy-badge- Top-right warning badge.projects-item-legacy-actions- Hover overlay with migration buttons.projects-item-migrate-btn- Primary orange CTA button.projects-item-readonly-btn- Secondary ghost button.projects-item-detecting- Loading spinner animation.hiddenutility class
-
Updated
projectsview.tswith migration handler logic:- Imports for React, MigrationWizard, ProjectItemWithRuntime
- Extended
ProjectItemScopetype withisLegacyandisDetectingflags - Updated
renderProjectItems()to:- Check
isLegacyProject()andisDetectingRuntime()for each project - Include flags in template scope for conditional rendering
- Trigger
detectAllProjectRuntimes()on render
- Check
- New handlers:
onMigrateProjectClicked()- Opens MigrationWizard via DialogLayerModel.showDialog()onOpenReadOnlyClicked()- Opens project normally (banner display deferred)
Technical Notes:
- DialogLayerModel uses existing Modal wrapper pattern with custom render function
- Runtime detection uses in-memory cache to avoid persistence to localStorage
- Template binding uses jQuery-based View system with
data-*attributes - CSS hover overlay only shows for legacy projects
- Tracker analytics integrated for "Migration Wizard Opened" and "Legacy Project Opened Read-Only"
- ToastLayer.showSuccess() used for migration completion notification
Files Modified:
packages/noodl-editor/src/editor/src/models/DialogLayerModel.tsx
packages/noodl-editor/src/editor/src/utils/LocalProjectsModel.ts
packages/noodl-editor/src/editor/src/templates/projectsview.html
packages/noodl-editor/src/editor/src/styles/projectsview.css
packages/noodl-editor/src/editor/src/views/projectsview.ts
Remaining for Future Sessions:
- EditorBanner component for legacy read-only mode warning (Post-Migration UX)
- wire open project flow for legacy detection (auto-detect on existing project open)
Session 2: Wizard UI (Basic Flow)
2024-12-14
Added:
-
Created
packages/noodl-editor/src/editor/src/views/migration/directory with:MigrationWizard.tsx- Main wizard container component:- Uses Modal component from @noodl-core-ui
- useReducer for local state management
- Integrates with migrationSessionManager from Session 1
- Renders step components based on current session.step
components/WizardProgress.tsx- Visual step progress indicator:- Shows 5 steps with check icons for completed
- Connectors between steps with completion status
steps/ConfirmStep.tsx- Step 1: Confirm source/target paths:- Source path locked (read-only)
- Target path editable with filesystem.exists() validation
- Warning about original project being safe
steps/ScanningStep.tsx- Step 2 & 4: Progress display:- Reused for both scanning and migrating phases
- Progress bar with percentage
- Activity log with color-coded entries (info/success/warning/error)
steps/ReportStep.tsx- Step 3: Scan results report:- Stats row with automatic/simpleFixes/needsReview counts
- Collapsible category sections with component lists
- AI prompt section (disabled - future session)
steps/CompleteStep.tsx- Step 5: Final summary:- Stats cards (migrated/needsReview/failed)
- Duration and AI cost display
- Source/target path display
- Next steps guidance
steps/FailedStep.tsx- Error handling step:- Error details display
- Contextual suggestions (network/permission/general)
- Safety notice about original project
-
Created SCSS modules for all components:
MigrationWizard.module.scsscomponents/WizardProgress.module.scsssteps/ConfirmStep.module.scsssteps/ScanningStep.module.scsssteps/ReportStep.module.scsssteps/CompleteStep.module.scsssteps/FailedStep.module.scss
Technical Notes:
- Text component uses
classNamenotUNSAFE_classNamefor styling - Text component uses
textTypeprop (TextType.Secondary, TextType.Shy) not variants - TextInput onChange expects standard React ChangeEventHandler
- PrimaryButtonVariant has: Cta (default), Muted, Ghost, Danger (NO "Secondary")
- Using @noodl/platform filesystem.exists() for path checking
- VStack/HStack from @noodl-core-ui/components/layout/Stack for layout
- SVG icons defined inline in each component for self-containment
Files Created:
packages/noodl-editor/src/editor/src/views/migration/
├── MigrationWizard.tsx
├── MigrationWizard.module.scss
├── components/
│ ├── WizardProgress.tsx
│ └── WizardProgress.module.scss
└── steps/
├── ConfirmStep.tsx
├── ConfirmStep.module.scss
├── ScanningStep.tsx
├── ScanningStep.module.scss
├── ReportStep.tsx
├── ReportStep.module.scss
├── CompleteStep.tsx
├── CompleteStep.module.scss
├── FailedStep.tsx
└── FailedStep.module.scss
Remaining for Session 2:
- DialogLayerModel integration for showing wizard (deferred to Session 3)
Session 1: Foundation + Detection
2024-12-13
Added:
- Created CHECKLIST.md for tracking implementation progress
- Created CHANGELOG.md for documenting changes
- Created
packages/noodl-editor/src/editor/src/models/migration/directory with:types.ts- Complete TypeScript interfaces for migration system:- Runtime version types (
RuntimeVersion,RuntimeVersionInfo,ConfidenceLevel) - Migration issue types (
MigrationIssue,MigrationIssueType,ComponentMigrationInfo) - Session types (
MigrationSession,MigrationScan,MigrationStep,MigrationPhase) - AI types (
AIConfig,AIBudget,AIPreferences,AIMigrationResponse) - Project manifest extensions (
ProjectMigrationMetadata,ComponentMigrationNote) - Legacy pattern definitions (
LegacyPattern,LegacyPatternScan)
- Runtime version types (
ProjectScanner.ts- Version detection and legacy pattern scanning:- 5-tier detection system with confidence levels
detectRuntimeVersion()- Main detection functionscanForLegacyPatterns()- Scans for React 17 patternsscanProjectForMigration()- Full project migration scan- 13 legacy React patterns detected (componentWillMount, string refs, etc.)
MigrationSession.ts- State machine for migration workflow:MigrationSessionManagerclass extending EventDispatcher- Step transitions (confirm → scanning → report → configureAi → migrating → complete/failed)
- Progress tracking and logging
- Helper functions (
checkProjectNeedsMigration,getStepLabel, etc.)
index.ts- Clean module exports
Technical Notes:
- IFileSystem interface from
@noodl/platformusesreadFile(path)with single argument (no encoding) - IFileSystem doesn't expose file stat/birthtime - creation date heuristic relies on project.json metadata
- Migration phases: copying → automatic → ai-assisted → finalizing
- Default AI budget: $5 max per session, $1 pause increments
Files Created:
packages/noodl-editor/src/editor/src/models/migration/
├── index.ts
├── types.ts
├── ProjectScanner.ts
└── MigrationSession.ts
Overview
This changelog tracks the implementation of the React 19 Migration System feature, which allows users to safely upgrade legacy Noodl projects (React 17) to the new OpenNoodl runtime (React 19), with optional AI-assisted code migration.
Feature Specs
- 00-OVERVIEW.md - Feature summary and architecture
- 01-PROJECT-DETECTION.md - Detecting legacy projects
- 02-MIGRATION-WIZARD.md - Step-by-step wizard UI
- 03-AI-MIGRATION.md - AI-assisted code migration
- 04-POST-MIGRATION-UX.md - Editor experience after migration
- 05-NEW-PROJECT-NOTICE.md - New project messaging
Implementation Sessions
- Session 1: Foundation + Detection (types, scanner, models)
- Session 2: Wizard UI (basic flow without AI)
- Session 3: Projects View Integration (legacy badges, buttons)
- Session 4: AI Migration + Polish (Claude integration, UX)