diff --git a/ccw/frontend/src/locales/en/help.json b/ccw/frontend/src/locales/en/help.json new file mode 100644 index 00000000..703e1459 --- /dev/null +++ b/ccw/frontend/src/locales/en/help.json @@ -0,0 +1,32 @@ +{ + "title": "Help Center", + "description": "Get complete documentation, guides, and support resources for CCW platform", + "fullDocs": "Full Docs", + "commandsOverview": { + "title": "Commands Overview", + "description": "Master the visual workflow editor with drag-and-drop flows" + }, + "workflowsOverview": { + "title": "Workflows Overview", + "description": "Browse 40+ commands across workflow, issue, CLI, and memory categories" + }, + "quickStart": { + "title": "Quick Start", + "description": "Get up and running with CCW in minutes", + "guide": "Getting Started Guide", + "faq": "Frequently Asked Questions" + }, + "getStarted": "Get Started", + "viewAll": "View All", + "searchDocs": { + "title": "Search Documentation", + "description": "Find detailed documentation and examples for specific topics or commands", + "button": "Search Docs" + }, + "support": { + "title": "Need Help?", + "description": "Access our documentation, tutorials, and community support resources", + "documentation": "Documentation", + "tutorials": "Tutorials" + } +} diff --git a/ccw/frontend/src/locales/en/index.ts b/ccw/frontend/src/locales/en/index.ts index 303ecbca..01accc5e 100644 --- a/ccw/frontend/src/locales/en/index.ts +++ b/ccw/frontend/src/locales/en/index.ts @@ -36,6 +36,7 @@ import graph from './graph.json'; import notification from './notification.json'; import notifications from './notifications.json'; import workspace from './workspace.json'; +import help from './help.json'; /** * Flattens nested JSON object to dot-separated keys @@ -95,4 +96,5 @@ export default { ...flattenMessages(notification, 'notificationPanel'), ...flattenMessages(notifications, 'notifications'), ...flattenMessages(workspace, 'workspace'), + ...flattenMessages(help, 'help'), } as Record; diff --git a/ccw/frontend/src/locales/zh/help.json b/ccw/frontend/src/locales/zh/help.json new file mode 100644 index 00000000..454dd8f4 --- /dev/null +++ b/ccw/frontend/src/locales/zh/help.json @@ -0,0 +1,32 @@ +{ + "title": "帮助中心", + "description": "获取 CCW 平台的完整文档、指南和支持资源", + "fullDocs": "完整文档", + "commandsOverview": { + "title": "命令概览", + "description": "了解可视化拖放式工作流编辑器" + }, + "workflowsOverview": { + "title": "工作流概览", + "description": "浏览 40+ 命令,适用于工作流、问题、CLI 和内存" + }, + "quickStart": { + "title": "快速开始", + "description": "在几分钟内上手 CCW", + "guide": "入门指南", + "faq": "常见问题" + }, + "getStarted": "开始使用", + "viewAll": "查看全部", + "searchDocs": { + "title": "搜索文档", + "description": "查找特定主题或命令的详细文档和示例", + "button": "搜索文档" + }, + "support": { + "title": "需要帮助?", + "description": "访问我们的文档、教程和社区支持资源", + "documentation": "文档", + "tutorials": "教程" + } +} diff --git a/ccw/frontend/src/locales/zh/index.ts b/ccw/frontend/src/locales/zh/index.ts index 339587de..775a1564 100644 --- a/ccw/frontend/src/locales/zh/index.ts +++ b/ccw/frontend/src/locales/zh/index.ts @@ -36,6 +36,7 @@ import graph from './graph.json'; import notification from './notification.json'; import notifications from './notifications.json'; import workspace from './workspace.json'; +import help from './help.json'; /** * Flattens nested JSON object to dot-separated keys @@ -95,4 +96,5 @@ export default { ...flattenMessages(notification, 'notificationPanel'), ...flattenMessages(notifications, 'notifications'), ...flattenMessages(workspace, 'workspace'), + ...flattenMessages(help, 'help'), } as Record; diff --git a/ccw/frontend/src/pages/HelpPage.tsx b/ccw/frontend/src/pages/HelpPage.tsx index 92453de6..9b317e9c 100644 --- a/ccw/frontend/src/pages/HelpPage.tsx +++ b/ccw/frontend/src/pages/HelpPage.tsx @@ -90,27 +90,30 @@ export function HelpPage() { return (
{/* Page Header with CTA */} -
-
-

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

-

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

+
+
+
+

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

+

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

+
+
-
{/* Quick Links */} @@ -119,27 +122,33 @@ export function HelpPage() { const Icon = section.icon; const isDocsLink = section.link?.startsWith('/docs'); const content = ( - - {section.badge && ( -
- {section.badge} + +
+
+
+ +
+
+
+

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

+ {section.badge && ( + + {section.badge} + + )} +
+

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

+
- )} -
-
- -
-
-

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

-

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

-
- {isDocsLink || section.isExternal ? ( - - ) : null} + {(isDocsLink || section.isExternal) && ( +
+ +
+ )}
); @@ -171,34 +180,34 @@ export function HelpPage() { {/* Documentation Overview Cards */}
{/* Commands Card */} - +
-
+

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

-

+

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

-
+
- + Workflow Commands
- + Issue Commands
- + CLI & Memory Commands
-
{/* Search Documentation CTA */} - -
-
-
+ +
+
+
-
+

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

-

+

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

-