feat(wizard): integrate backend APIs for Main Agent SAV wizard
Summary
Complete refactoring of the Itri wizard to integrate with Java backend APIs, adding TypeScript types compatible with backend enums, Zustand store for state management, and validation/save hooks for each wizard step.
Changes
- Added TypeScript types and enums compatible with Java backend (
BusinessModel,TeamSize,DailyRequestVolume,ObjectiveType,ToneVoice,DayOfWeek) - Created API service layer (
main-agent-wizard.service.api.ts) with endpoints configuration - Implemented Zustand store with persistence for wizard state management
- Refactored wizard steps to sync with backend:
-
StepContext: company context (business model, team size, request volume) -
StepObjectives: agent objectives with enum mapping -
StepFeatures: standard instructions configuration -
StepIdentity: tone, languages, working hours, blocked keywords -
StepNotifications: notification channels and events configuration
-
- Added validation and save hooks for each step (
useStepContextActions,useStepObjectivesActions,useStepFeaturesActions,useStepIdentityActions,useStepNotificationsActions) - Created option files with enum mappings for UI compatibility
- Added loading states and error handling across all steps
- Updated
itri-wizard.tsxto orchestrate all step actions
Related Issue
Closes IAV-589