feat(telephony/phase3): wiring wizard + reprise depuis [agentId]/page
Phase 3 — Wiring Wizard + URL Navigation
telephony-wizard.tsx
-
useTelephonyWizardStoreinjecté - StepWelcome : form Nom de l'agent + Nom prononcé (TextField dark theme)
-
handleNextasync : appelle le backend à chaque step- step 1 →
wizardStep1(userUid, {name, spokenName})→ sauveagentUid - step 2 →
wizardStep2(agentUid, numbers) - step 3 →
wizardStep3(agentUid, fileName) - step 4 →
wizardStep4(agentUid, {selectedIntegrationTypes}) - step 5 →
wizardStep5(agentUid, integrations) - last →
wizardComplete(agentUid)+completeWizard() - Graceful degradation : navigation toujours effectuée même si erreur API
- step 1 →
[agentId]/page.tsx
- Import
TelephonyWizard+useTelephonyWizardStore -
handleTryFree(ines) : appellecheckTelephonyWizardStatus(userUid)- Si wizard existant + non complété → reprend à l'étape courante (slug URL)
- Sinon → démarre sur
welcome