Skip to content

IAV-856/Refactor: Unify agent stores into single useAgentWizardStore with type-based creation

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

Summary

Merged useMainAgentWizardStore and useSubAgentWizardStore (along with their respective service APIs and config files) into a single unified useAgentWizardStore.

Changes

  • Combined shared methods into useAgentWizardStore, eliminating code duplication
  • Agent creation now handles both main and sub types within the same wizard step 2, driven by agent type and business context
  • Simplified business context data retrieval for any agent (main or sub) opened in the wizard
  • Removed redundant service API and config files from the former split stores

Motivation

Backend improvements unified the agent endpoints, making the dual-store approach unnecessary. This refactor aligns the frontend with the new backend structure, reduces maintenance overhead, and simplifies the wizard flow.

Closes IAV-856

Modification effectuée par salaheddine zidani

Rapports de requête de fusion