Skip to content

IAV-578/feat(customer-care): SAV dashboard refactor — type consolidation, store fixes & integration config extension

salaheddine zidani a demandé de fusionner feature/IAV-578 vers develop

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 fixescheckSubAgentExists and getSubAgentByName were writing to wrong state fields (mainAgentExists / mainAgent), now correctly target subAgentExists / subAgent

  • Type consolidation — removed duplicate WizardCreateIntegrationRequest and ToneVoice definitions; added backend-aligned types (AgentSummary, SubAgentListItem, UserIntegrationResponse, AgentActivationStatusResponse)

  • Integration config extension — added WHATSAPP_OAUTH and INSTAGRAM_HEADER_AUTH credential types, SECONDARY_CREDENTIAL_PLATFORMS map, SecondaryCredentialRequest, and WizardIntegrationAndWorkflowResponse

  • Wizard step utilities — added AgentWizardStep enum with bidirectional step-number mapping helpers

  • Dashboard retry fixhandleRetry now directly re-invokes init logic instead of relying on a blocked useEffect ref

  • Export cleanup — removed duplicate export block in config-views index, added missing IaviaConfigView and InstagramConfigView

Related Issues

IAV-578 Closes IAV-1081, IAV-1082, IAV-1099, IAV-1100

Rapports de requête de fusion