Skip to content

IAV-879/feat(integrations): implement global integration management with real API connectivity

mohamed kaanoun a demandé de fusionner feature/IAV-879 vers develop

Global Integration Management System with Real API Connectivity

Integration Page & Dashboard

  • Connect IntegrationsGridView to real backend data instead of static state
  • Add platform-to-credential-type mapping for all 25+ supported platforms
  • Implement real toggle functionality via agent integration store
  • Add Snackbar success/error feedback on account operations
  • Remove static account count text from GlassIntegrationCard

AddAccountModal Refactor

  • Integrate with OAuth store, credential schema store, and agent integration store
  • Support multi-agent account creation (fetch agents from all services: CM, Legal, SEO, SAV, Public Tender)
  • Route to platform-specific config views based on selected agent type
  • Add dynamic credential form fallback for unsupported platform/agent combinations

ManageAccountsModal Refactor

  • Replace hardcoded mock agents with real agent data from all backend services
  • Implement real account-to-agent assignment with credential switching
  • Add per-agent toggle (activate/deactivate) with snackbar notifications
  • Create AccountCard and AgentCard extracted reusable components

Helper Utilities (New)

  • Create fetch-all-agents helper to normalize agents from 5 different services
  • Add config-view-resolver to determine the correct config view per integration/agent pair
  • Add credential-type-mapping for credential type normalization across platforms
  • Add constants for shared platform mappings and agent name-to-type conversions
  • Add ensure-seo-credentials utility for WordPress credential resolution

Agent Integration Store Enhancements

  • Add WIX, SHOPIFY, WORDPRESS to credential-to-platform type mapping
  • Add localCredentialToAccount converter for SEO service credentials
  • Add new state: allAgentIntegrations, platformIntegrations
  • Add new actions: fetchAllAgentIntegrationsByUser, createUserAndAgentIntegration, getPlatformIntegrations, getAgentsByPlatform
  • Implement platform-specific fetching: WIX/SHOPIFY via SEO service, WORDPRESS with credentialUid resolution
  • Update toggleIntegrationActive to sync both agentIntegrations and allAgentIntegrations
  • Refactor fetchCMExistingAccounts to use user integration endpoints

API Endpoints & Services

  • Add user-integration endpoints: createWithOAuth, getByCredentialInstanceUid, checkExists
  • Add checkAccountExists to SocialMediaConnectionTestService for duplicate account prevention
  • Add Instagram to credential-schema-store platform mapping
  • Add credentialInstanceUid to SEO LocalCredentialResponse type

Ziri Wizard Improvements

  • Implement wizard status restoration on re-entry (fetch + restore company info, objectives, platforms)
  • Reorder step flow: defer platform selection save to step 4 (prevents empty configs)
  • Add completeWizard action call on final step
  • Add duplicate account detection before credential creation in step-integration-config
  • Improve account name display by stripping prefix
  • Switch useAgentWizardStatus from progress endpoint to status endpoint

Community Manager Agent

  • Fix agent activation/deactivation: use dedicated activateAgent/deactivateAgent instead of toggleAgentStatus
  • Sync agent active state from backend response
  • Add comingSoon prop to integration cards (TikTok marked as coming soon)
  • Filter comingSoon platforms from ideas section platform dropdown
  • Add OAuth platform integration creation for LinkedIn, Twitter, TikTok
  • Replace router.push with window.history.replaceState for smoother tab navigation

Legal Agent Config Views

  • Refactor Slack config view: replace manual channel fetching with webhook generation flow
  • Refactor Teams config view: add webhook URL generation, team/channel URL fields
  • Integrate with legal wizard store for proper integration creation
  • Add microsoftTeamsTeamUrl and microsoftTeamsChannelUrl to AddPlatformIntegrationRequest

SEO Agent Config Views

  • Add credentialInstanceUid to onSave callbacks in Shopify, WIX, and WordPress config views

SAV (Customer Care) Agent Config Views

  • Rewrite Instagram, Messenger, Shopify, Telegram, WhatsApp, WooCommerce config views
  • Replace static mock forms with dynamic credential forms and real API integration
  • Integrate with credential schema store and agent wizard store

Bug Fixes

  • Defer resetConnection in LinkedIn/Twitter config views to avoid setState during render
  • Add null-safe access for OAuth connection.accountName and connection.accountId
  • Fix snackbar autoHideDuration from 4000ms to 2000ms in community-manager view
  • Fix duplicate agent entries in existing accounts fetch

CLOSE IAV-759

Rapports de requête de fusion