mirror of
https://github.com/The-Low-Code-Foundation/OpenNoodl.git
synced 2026-03-09 02:23:30 +01:00
feat(launcher): add ProjectCreationWizard multi-step flow
Replaces CreateProjectModal with a guided wizard supporting: - Quick Start (name + location, direct creation) - Guided Setup (basics → style preset → review → create) - AI Builder stub (V2, same flow as Guided for now) Files added: - WizardContext.tsx — state machine with step sequencing + canProceed validation - EntryModeStep — card-based mode selector - ProjectBasicsStep — name/description/location picker - StylePresetStep — preset card grid - ReviewStep — summary before creation - ProjectCreationWizard.tsx — drop-in replacement for CreateProjectModal - SCSS + index.ts barrel Integration: - ProjectsPage.tsx imports ProjectCreationWizard (API-identical swap) Tests: - tests/models/ProjectCreationWizard.test.ts — 17 pure logic tests (infra note: npm run test:editor required, not npx jest directly) Pre-existing broken tests in tests/components/ and tests/git/ are unrelated and not modified.
This commit is contained in:
@@ -10,11 +10,11 @@ import React, { useCallback, useEffect, useState, useMemo } from 'react';
|
||||
import { clone } from '@noodl/git/src/core/clone';
|
||||
import { filesystem } from '@noodl/platform';
|
||||
|
||||
import { CreateProjectModal } from '@noodl-core-ui/preview/launcher/Launcher/components/CreateProjectModal';
|
||||
import {
|
||||
CloudSyncType,
|
||||
LauncherProjectData
|
||||
} from '@noodl-core-ui/preview/launcher/Launcher/components/LauncherProjectCard';
|
||||
import { ProjectCreationWizard } from '@noodl-core-ui/preview/launcher/Launcher/components/ProjectCreationWizard';
|
||||
import {
|
||||
useGitHubRepos,
|
||||
NoodlGitHubRepo,
|
||||
@@ -942,7 +942,7 @@ export function ProjectsPage(props: ProjectsPageProps) {
|
||||
onCloneRepo={handleCloneRepo}
|
||||
/>
|
||||
|
||||
<CreateProjectModal
|
||||
<ProjectCreationWizard
|
||||
isVisible={isCreateModalVisible}
|
||||
onClose={handleCreateModalClose}
|
||||
onConfirm={handleCreateProjectConfirm}
|
||||
|
||||
Reference in New Issue
Block a user