// ======================================== // Help Page // ======================================== // Help documentation and guides with link to full documentation import { HelpCircle, Book, Video, MessageCircle, ExternalLink, Workflow, FolderKanban, Terminal, FileText, ArrowRight, Search, Code, Layers, } from 'lucide-react'; import { Link } from 'react-router-dom'; import { useIntl } from 'react-intl'; import { Card } from '@/components/ui/Card'; import { Button } from '@/components/ui/Button'; interface HelpSection { i18nKey: string; descriptionI18nKey: string; headingI18nKey?: string; icon: React.ElementType; link?: string; isExternal?: boolean; badge?: string; } interface HelpSectionConfig { i18nKey: string; descriptionKey: string; headingKey?: string; icon: React.ElementType; link?: string; isExternal?: boolean; badge?: string; } const helpSectionsConfig: HelpSectionConfig[] = [ { i18nKey: 'home.help.gettingStarted.title', descriptionKey: 'home.help.gettingStarted.description', headingKey: 'home.help.gettingStarted.heading', icon: Book, link: '/docs/overview', isExternal: false, badge: 'Docs', }, { i18nKey: 'home.help.orchestratorGuide.title', descriptionKey: 'home.help.orchestratorGuide.description', icon: Workflow, link: '/docs/workflows/introduction', isExternal: false, badge: 'Docs', }, { i18nKey: 'home.help.commands.title', descriptionKey: 'home.help.commands.description', icon: Terminal, link: '/docs/commands', isExternal: false, badge: 'Docs', }, { i18nKey: 'home.help.sessionsManagement.title', descriptionKey: 'home.help.sessionsManagement.description', icon: FolderKanban, link: '/sessions', }, ]; export function HelpPage() { const { formatMessage } = useIntl(); // Build help sections with i18n const helpSections: HelpSection[] = helpSectionsConfig.map(section => ({ ...section, descriptionI18nKey: section.descriptionKey, headingI18nKey: section.headingKey, })); return (
{/* Page Header with CTA */}

{formatMessage({ id: 'help.title' })}

{formatMessage({ id: 'help.description' })}

{/* Quick Links */}
{helpSections.map((section) => { const Icon = section.icon; const isDocsLink = section.link?.startsWith('/docs'); const content = ( {section.badge && (
{section.badge}
)}

{formatMessage({ id: section.i18nKey })}

{formatMessage({ id: section.descriptionI18nKey })}

{isDocsLink || section.isExternal ? ( ) : null}
); if (section.link?.startsWith('/docs')) { return ( {content} ); } if (section.link?.startsWith('/') && !section.link.startsWith('/docs')) { return ( {content} ); } return ( {content} ); })}
{/* Documentation Overview Cards */}
{/* Commands Card */}

{formatMessage({ id: 'help.commandsOverview.title' })}

{formatMessage({ id: 'help.commandsOverview.description' })}

Workflow Commands
Issue Commands
CLI & Memory Commands
{/* Workflows Card */}

{formatMessage({ id: 'help.workflowsOverview.title' })}

{formatMessage({ id: 'help.workflowsOverview.description' })}

Level 1-5 Workflows
Interactive Diagrams
Best Practices
{/* Quick Start Card */}

{formatMessage({ id: 'help.quickStart.title' })}

{formatMessage({ id: 'help.quickStart.description' })}

{/* Search Documentation CTA */}

{formatMessage({ id: 'help.searchDocs.title' })}

{formatMessage({ id: 'help.searchDocs.description' })}

{/* Support Section */}

{formatMessage({ id: 'help.support.title' })}

{formatMessage({ id: 'help.support.description' })}

); } export default HelpPage;