IAV-599/ feat(community-manager): Implement wizard and add URL navigation system
This MR introduces the complete ZIRI (Community Manager) agent configuration wizard with a new URL-based navigation system that allows users to navigate through wizard steps using browser history.
ZIRI Wizard Features
- Welcome: Introduction to ZIRI agent with animated presentation
- Company Info: Collect business sector, products/services, and website URL
- Marketing Objectives: Select marketing goals
- Channels: Choose social media platforms
- Integration Config: Configure API credentials for each platform with option to select existing accounts or create new ones
- Platform Settings: Customize content tone, caption length, posting frequency per platform
- Summary: Review all configuration before agent creation
Dynamic Credential Forms
- Forms are generated dynamically based on platform schema
- Currently uses mock schemas, easily replaceable with real API calls
- Each platform has its own required fields (access tokens, API keys, account IDs, etc.)
UI Improvements
- Migrated from emojis to Lucide React icons for a cleaner, more professional look
URL-Based Navigation System
The wizard now uses URL query parameters to track the current step: /dashboard/agents/new/ziri?step=welcome /dashboard/agents/new/ziri?step=company /dashboard/agents/new/ziri?step=configuration ...
Implementation Details
- Routes centralized in
/src/routes/paths.ts - Wizard step configuration in
/src/shared/config/wizard-steps.ts - Custom hooks:
useWizardNavigationanduseWizardUrlInit
How to Add Other Agents
Step 1: Add wizard steps configuration in /src/shared/config/wizard-steps.ts
Step 2: Import and render wizard in /src/app/dashboard/agents/new/[agentType]/page.tsx
Step 3: Remove the agent from the showWizard switch case in /src/app/dashboard/agents/[agentId]/page.tsx,