/** Friendly label and in-app destination for each setup step. WordPress routes * have no ``/app`` prefix (HashRouter). The agent's WordPress step set drives * which keys actually surface; unknown keys fall back gracefully. */ export const SETUP_STEPS: Record = { import_products: { label: 'Import your products', path: '/import', }, customize_popup: { label: 'Customize your AI ChatBot', path: '/customization', }, run_ai_visibility: { label: 'Run AI Visibility', path: '/ai-visibility' }, knowledge_base: { label: 'Add a knowledge base', path: '/knowledge-base' }, }; /** * Resolve a setup step key to a friendly label and destination path. * * @param key - Canonical step key (e.g. "import_products"). * @return Display label and target path. */ export function resolveSetupStep(key: string): { label: string; path: string } { return SETUP_STEPS[key] ?? { label: key, path: '/' }; }