IAV-578/feat(customer-care): SAV dashboard refactor — type consolidation, store fixes & integration config extension
Summary
Refactoring and extension of the SAV customer-care agent dashboard, covering type safety, store correctness, export hygiene, and integration configuration.
Key Changes
-
Store bug fixes —
checkSubAgentExistsandgetSubAgentByNamewere writing to wrong state fields (mainAgentExists/mainAgent), now correctly targetsubAgentExists/subAgent -
Type consolidation — removed duplicate
WizardCreateIntegrationRequestandToneVoicedefinitions; added backend-aligned types (AgentSummary,SubAgentListItem,UserIntegrationResponse,AgentActivationStatusResponse) -
Integration config extension — added
WHATSAPP_OAUTHandINSTAGRAM_HEADER_AUTHcredential types,SECONDARY_CREDENTIAL_PLATFORMSmap,SecondaryCredentialRequest, andWizardIntegrationAndWorkflowResponse -
Wizard step utilities — added
AgentWizardStepenum with bidirectional step-number mapping helpers -
Dashboard retry fix —
handleRetrynow directly re-invokes init logic instead of relying on a blockeduseEffectref -
Export cleanup — removed duplicate export block in config-views index, added missing
IaviaConfigViewandInstagramConfigView