How rami6782/plan-generate works
This is a React project-plan generator. A user enters project basics, chooses scope, configures resources and commercial assumptions, then reviews a cost breakdown and triggers a success notification. Reference data comes through React Query hooks and an API layer that uses local mock values by default, with REST fetching available when configured. The graph follows the wizard and data-fetch path; unsampled step implementations are represented by their exact component paths, but their internal behavior and additional connections are not inferred.
Main entry points: PlanWizard.tsx Plan wizard · use-api-data.ts Reference data hooks · StepBasics.tsx Project basics · StepReview.tsx Plan review
Components 18
Plan workflow
- Plan wizard
src/components/PlanWizard.tsx - Project basics
src/components/StepBasics.tsx - Scope selection
src/components/StepScope.tsx - Resource mix
src/components/StepResources.tsx - Commercial inputs
src/components/StepCommercial.tsx - Plan review
src/components/StepReview.tsx - Cost breakdown
src/components/CostBreakdownTable.tsx - Step indicator
src/components/StepIndicator.tsx
Reference data
- Reference data hooks
src/hooks/use-api-data.ts - API service
src/lib/api.ts - Mock reference data
src/lib/mock-data.ts
App runtime
- App routing
src/App.tsx - Plan page
src/pages/Index.tsx - Not-found page
src/pages/NotFound.tsx
UI primitives
- Button primitive
src/components/ui/button.tsx - Input primitive
src/components/ui/input.tsx
Other components
- Plan author
- Configured REST API
Connections 23
- Plan author → App routing: opens app
src/App.tsx - App routing → Plan page: routes /
src/App.tsx - App routing → Not-found page: routes fallback
src/App.tsx - Plan page → Plan wizard: renders
src/pages/Index.tsx - Plan wizard → Step indicator: renders
src/components/PlanWizard.tsx - Plan wizard → Project basics: renders step
src/components/PlanWizard.tsx - Plan wizard → Scope selection: renders step
src/components/PlanWizard.tsx - Plan wizard → Resource mix: renders step
src/components/PlanWizard.tsx - Plan wizard → Commercial inputs: renders step
src/components/PlanWizard.tsx - Plan wizard → Plan review: renders step
src/components/PlanWizard.tsx - Plan wizard → Button primitive: uses controls
src/components/PlanWizard.tsx - Plan wizard → Mock reference data: initializes defaults
src/components/PlanWizard.tsx - Project basics → Reference data hooks: loads countries
src/components/StepBasics.tsx - Project basics → Input primitive: uses input
src/components/StepBasics.tsx - Scope selection → Reference data hooks: loads reference data
src/components/StepScope.tsx - Resource mix → Reference data hooks: loads reference data
src/components/StepResources.tsx - Plan review → Reference data hooks: loads review data
src/components/StepReview.tsx - Plan review → Cost breakdown: renders breakdown
src/components/StepReview.tsx - Cost breakdown → Mock reference data: reads reference data
src/components/CostBreakdownTable.tsx - Plan wizard → Plan author: shows success
src/components/PlanWizard.tsx - Reference data hooks → API service: queries data
src/hooks/use-api-data.ts - API service → Mock reference data: uses fallback data
src/lib/api.ts - API service → Configured REST API: fetches when configured
src/lib/api.ts