diff --git a/web/app/components/goto-anything/actions/commands/feedback.tsx b/web/app/components/goto-anything/actions/commands/forum.tsx similarity index 54% rename from web/app/components/goto-anything/actions/commands/feedback.tsx rename to web/app/components/goto-anything/actions/commands/forum.tsx index cce0aeb5f4..66237cb348 100644 --- a/web/app/components/goto-anything/actions/commands/feedback.tsx +++ b/web/app/components/goto-anything/actions/commands/forum.tsx @@ -4,27 +4,27 @@ import { RiFeedbackLine } from '@remixicon/react' import i18n from '@/i18n-config/i18next-config' import { registerCommands, unregisterCommands } from './command-bus' -// Feedback command dependency types -type FeedbackDeps = Record +// Forum command dependency types +type ForumDeps = Record /** - * Feedback command - Opens GitHub feedback discussions + * Forum command - Opens Dify community forum */ -export const feedbackCommand: SlashCommandHandler = { - name: 'feedback', - description: 'Open feedback discussions', +export const forumCommand: SlashCommandHandler = { + name: 'forum', + description: 'Open Dify community forum', mode: 'direct', // Direct execution function execute: () => { - const url = 'https://github.com/langgenius/dify/discussions/categories/feedbacks' + const url = 'https://forum.dify.ai' window.open(url, '_blank', 'noopener,noreferrer') }, async search(args: string, locale: string = 'en') { return [{ - id: 'feedback', - title: i18n.t('common.userProfile.communityFeedback', { lng: locale }), + id: 'forum', + title: i18n.t('common.userProfile.forum', { lng: locale }), description: i18n.t('app.gotoAnything.actions.feedbackDesc', { lng: locale }) || 'Open community feedback discussions', type: 'command' as const, icon: ( @@ -32,20 +32,20 @@ export const feedbackCommand: SlashCommandHandler = { ), - data: { command: 'navigation.feedback', args: { url: 'https://github.com/langgenius/dify/discussions/categories/feedbacks' } }, + data: { command: 'navigation.forum', args: { url: 'https://forum.dify.ai' } }, }] }, - register(_deps: FeedbackDeps) { + register(_deps: ForumDeps) { registerCommands({ - 'navigation.feedback': async (args) => { - const url = args?.url || 'https://github.com/langgenius/dify/discussions/categories/feedbacks' + 'navigation.forum': async (args) => { + const url = args?.url || 'https://forum.dify.ai' window.open(url, '_blank', 'noopener,noreferrer') }, }) }, unregister() { - unregisterCommands(['navigation.feedback']) + unregisterCommands(['navigation.forum']) }, } diff --git a/web/app/components/goto-anything/actions/commands/slash.tsx b/web/app/components/goto-anything/actions/commands/slash.tsx index e0d03d5019..b99215255f 100644 --- a/web/app/components/goto-anything/actions/commands/slash.tsx +++ b/web/app/components/goto-anything/actions/commands/slash.tsx @@ -7,7 +7,7 @@ import { useTheme } from 'next-themes' import { setLocaleOnClient } from '@/i18n-config' import { themeCommand } from './theme' import { languageCommand } from './language' -import { feedbackCommand } from './feedback' +import { forumCommand } from './forum' import { docsCommand } from './docs' import { communityCommand } from './community' import { accountCommand } from './account' @@ -34,7 +34,7 @@ export const registerSlashCommands = (deps: Record) => { // Register command handlers to the registry system with their respective dependencies slashCommandRegistry.register(themeCommand, { setTheme: deps.setTheme }) slashCommandRegistry.register(languageCommand, { setLocale: deps.setLocale }) - slashCommandRegistry.register(feedbackCommand, {}) + slashCommandRegistry.register(forumCommand, {}) slashCommandRegistry.register(docsCommand, {}) slashCommandRegistry.register(communityCommand, {}) slashCommandRegistry.register(accountCommand, {}) @@ -44,7 +44,7 @@ export const unregisterSlashCommands = () => { // Remove command handlers from registry system (automatically calls each command's unregister method) slashCommandRegistry.unregister('theme') slashCommandRegistry.unregister('language') - slashCommandRegistry.unregister('feedback') + slashCommandRegistry.unregister('forum') slashCommandRegistry.unregister('docs') slashCommandRegistry.unregister('community') slashCommandRegistry.unregister('account') diff --git a/web/app/components/header/account-dropdown/support.tsx b/web/app/components/header/account-dropdown/support.tsx index b165c5fcca..f354cc4ab0 100644 --- a/web/app/components/header/account-dropdown/support.tsx +++ b/web/app/components/header/account-dropdown/support.tsx @@ -1,5 +1,5 @@ import { Menu, MenuButton, MenuItem, MenuItems, Transition } from '@headlessui/react' -import { RiArrowRightSLine, RiArrowRightUpLine, RiChatSmile2Line, RiDiscordLine, RiFeedbackLine, RiMailSendLine, RiQuestionLine } from '@remixicon/react' +import { RiArrowRightSLine, RiArrowRightUpLine, RiChatSmile2Line, RiDiscordLine, RiDiscussLine, RiMailSendLine, RiQuestionLine } from '@remixicon/react' import { Fragment } from 'react' import Link from 'next/link' import { useTranslation } from 'react-i18next' @@ -86,10 +86,10 @@ export default function Support({ closeAccountDropdown }: SupportProps) { className={cn(itemClassName, 'group justify-between', 'data-[active]:bg-state-base-hover', )} - href='https://github.com/langgenius/dify/discussions/categories/feedbacks' + href='https://forum.dify.ai/' target='_blank' rel='noopener noreferrer'> - -
{t('common.userProfile.communityFeedback')}
+ +
{t('common.userProfile.forum')}
diff --git a/web/i18n/de-DE/common.ts b/web/i18n/de-DE/common.ts index 9226e81d9b..dcc6e27214 100644 --- a/web/i18n/de-DE/common.ts +++ b/web/i18n/de-DE/common.ts @@ -161,7 +161,6 @@ const translation = { workspace: 'Arbeitsbereich', createWorkspace: 'Arbeitsbereich erstellen', helpCenter: 'Hilfe', - communityFeedback: 'Rückmeldung', roadmap: 'Fahrplan', community: 'Gemeinschaft', about: 'Über', diff --git a/web/i18n/en-US/common.ts b/web/i18n/en-US/common.ts index a18b3dd4a6..bd0f27bd92 100644 --- a/web/i18n/en-US/common.ts +++ b/web/i18n/en-US/common.ts @@ -177,7 +177,7 @@ const translation = { helpCenter: 'Docs', support: 'Support', compliance: 'Compliance', - communityFeedback: 'Feedback', + forum: 'Forum', roadmap: 'Roadmap', github: 'GitHub', community: 'Community', diff --git a/web/i18n/es-ES/common.ts b/web/i18n/es-ES/common.ts index cd854f19fa..edc97d1ce1 100644 --- a/web/i18n/es-ES/common.ts +++ b/web/i18n/es-ES/common.ts @@ -165,7 +165,6 @@ const translation = { workspace: 'Espacio de trabajo', createWorkspace: 'Crear espacio de trabajo', helpCenter: 'Ayuda', - communityFeedback: 'Comentarios', roadmap: 'Hoja de ruta', community: 'Comunidad', about: 'Acerca de', diff --git a/web/i18n/fa-IR/common.ts b/web/i18n/fa-IR/common.ts index dced7bfe82..b335d63119 100644 --- a/web/i18n/fa-IR/common.ts +++ b/web/i18n/fa-IR/common.ts @@ -165,7 +165,6 @@ const translation = { workspace: 'فضای کاری', createWorkspace: 'ایجاد فضای کاری', helpCenter: 'راهنما', - communityFeedback: 'بازخورد', roadmap: 'نقشه راه', community: 'انجمن', about: 'درباره', diff --git a/web/i18n/fr-FR/common.ts b/web/i18n/fr-FR/common.ts index 96ecfe4151..adc7206454 100644 --- a/web/i18n/fr-FR/common.ts +++ b/web/i18n/fr-FR/common.ts @@ -161,7 +161,6 @@ const translation = { workspace: 'Espace de travail', createWorkspace: 'Créer un Espace de Travail', helpCenter: 'Aide', - communityFeedback: 'Retour d\'information', roadmap: 'Feuille de route', community: 'Communauté', about: 'À propos', diff --git a/web/i18n/hi-IN/common.ts b/web/i18n/hi-IN/common.ts index ae6ce65aea..5557d54d32 100644 --- a/web/i18n/hi-IN/common.ts +++ b/web/i18n/hi-IN/common.ts @@ -170,7 +170,6 @@ const translation = { workspace: 'वर्कस्पेस', createWorkspace: 'वर्कस्पेस बनाएं', helpCenter: 'सहायता', - communityFeedback: 'प्रतिक्रिया', roadmap: 'रोडमैप', community: 'समुदाय', about: 'के बारे में', diff --git a/web/i18n/id-ID/common.ts b/web/i18n/id-ID/common.ts index d4180ea218..b69952d933 100644 --- a/web/i18n/id-ID/common.ts +++ b/web/i18n/id-ID/common.ts @@ -163,7 +163,6 @@ const translation = { helpCenter: 'Docs', compliance: 'Kepatuhan', community: 'Masyarakat', - communityFeedback: 'Umpan balik', roadmap: 'Peta jalan', logout: 'Keluar', settings: 'Pengaturan', diff --git a/web/i18n/it-IT/common.ts b/web/i18n/it-IT/common.ts index 306f24829e..8d1663d18a 100644 --- a/web/i18n/it-IT/common.ts +++ b/web/i18n/it-IT/common.ts @@ -170,7 +170,6 @@ const translation = { workspace: 'Workspace', createWorkspace: 'Crea Workspace', helpCenter: 'Aiuto', - communityFeedback: 'Feedback', roadmap: 'Tabella di marcia', community: 'Comunità', about: 'Informazioni', diff --git a/web/i18n/ja-JP/common.ts b/web/i18n/ja-JP/common.ts index bc7970e8eb..a62ad4c31d 100644 --- a/web/i18n/ja-JP/common.ts +++ b/web/i18n/ja-JP/common.ts @@ -173,7 +173,6 @@ const translation = { helpCenter: 'ヘルプ', support: 'サポート', compliance: 'コンプライアンス', - communityFeedback: 'フィードバック', roadmap: 'ロードマップ', community: 'コミュニティ', about: 'Dify について', diff --git a/web/i18n/ko-KR/common.ts b/web/i18n/ko-KR/common.ts index caff086f7c..af0d08ad21 100644 --- a/web/i18n/ko-KR/common.ts +++ b/web/i18n/ko-KR/common.ts @@ -157,7 +157,6 @@ const translation = { workspace: '작업 공간', createWorkspace: '작업 공간 만들기', helpCenter: '도움말 센터', - communityFeedback: '로드맵 및 피드백', roadmap: '로드맵', community: '커뮤니티', about: 'Dify 소개', diff --git a/web/i18n/pl-PL/common.ts b/web/i18n/pl-PL/common.ts index b0ec44d963..3a421a3a69 100644 --- a/web/i18n/pl-PL/common.ts +++ b/web/i18n/pl-PL/common.ts @@ -166,7 +166,6 @@ const translation = { workspace: 'Przestrzeń robocza', createWorkspace: 'Utwórz przestrzeń roboczą', helpCenter: 'Pomoc', - communityFeedback: 'Opinie', roadmap: 'Plan działania', community: 'Społeczność', about: 'O', diff --git a/web/i18n/pt-BR/common.ts b/web/i18n/pt-BR/common.ts index ccce7da2c3..5582e296f8 100644 --- a/web/i18n/pt-BR/common.ts +++ b/web/i18n/pt-BR/common.ts @@ -161,7 +161,6 @@ const translation = { workspace: 'Espaço de trabalho', createWorkspace: 'Criar Espaço de Trabalho', helpCenter: 'Ajuda', - communityFeedback: 'Feedback', roadmap: 'Roteiro', community: 'Comunidade', about: 'Sobre', diff --git a/web/i18n/ro-RO/common.ts b/web/i18n/ro-RO/common.ts index 7e35a9fb26..67877c25f6 100644 --- a/web/i18n/ro-RO/common.ts +++ b/web/i18n/ro-RO/common.ts @@ -161,7 +161,6 @@ const translation = { workspace: 'Spațiu de lucru', createWorkspace: 'Creează Spațiu de lucru', helpCenter: 'Ajutor', - communityFeedback: 'Feedback', roadmap: 'Plan de acțiune', community: 'Comunitate', about: 'Despre', diff --git a/web/i18n/ru-RU/common.ts b/web/i18n/ru-RU/common.ts index 2eb22284a5..d150e1989b 100644 --- a/web/i18n/ru-RU/common.ts +++ b/web/i18n/ru-RU/common.ts @@ -165,7 +165,6 @@ const translation = { workspace: 'Рабочее пространство', createWorkspace: 'Создать рабочее пространство', helpCenter: 'Помощь', - communityFeedback: 'Обратная связь', roadmap: 'План развития', community: 'Сообщество', about: 'О нас', diff --git a/web/i18n/sl-SI/common.ts b/web/i18n/sl-SI/common.ts index 30400edf00..c27866d905 100644 --- a/web/i18n/sl-SI/common.ts +++ b/web/i18n/sl-SI/common.ts @@ -165,7 +165,6 @@ const translation = { workspace: 'Delovni prostor', createWorkspace: 'Ustvari delovni prostor', helpCenter: 'Pomoč', - communityFeedback: 'Povratne informacije', roadmap: 'Načrt razvoja', community: 'Skupnost', about: 'O nas', diff --git a/web/i18n/th-TH/common.ts b/web/i18n/th-TH/common.ts index b7b8cfba53..39b1d1123b 100644 --- a/web/i18n/th-TH/common.ts +++ b/web/i18n/th-TH/common.ts @@ -160,7 +160,6 @@ const translation = { workspace: 'พื้นที่', createWorkspace: 'สร้างพื้นที่ทํางาน', helpCenter: 'วิธีใช้', - communityFeedback: 'การตอบสนอง', roadmap: 'แผนงาน', community: 'ชุมชน', about: 'ประมาณ', diff --git a/web/i18n/tr-TR/common.ts b/web/i18n/tr-TR/common.ts index b03b1423ae..410e4ea0c7 100644 --- a/web/i18n/tr-TR/common.ts +++ b/web/i18n/tr-TR/common.ts @@ -165,7 +165,6 @@ const translation = { workspace: 'Çalışma Alanı', createWorkspace: 'Çalışma Alanı Oluştur', helpCenter: 'Yardım', - communityFeedback: 'Geri Bildirim', roadmap: 'Yol haritası', community: 'Topluluk', about: 'Hakkında', diff --git a/web/i18n/uk-UA/common.ts b/web/i18n/uk-UA/common.ts index a34cfc3725..2d57786efa 100644 --- a/web/i18n/uk-UA/common.ts +++ b/web/i18n/uk-UA/common.ts @@ -161,7 +161,6 @@ const translation = { workspace: 'Робочий простір', createWorkspace: 'Створити робочий простір', helpCenter: 'Довідковий центр', - communityFeedback: 'відгуки', roadmap: 'Дорожня карта', community: 'Спільнота', about: 'Про нас', diff --git a/web/i18n/vi-VN/common.ts b/web/i18n/vi-VN/common.ts index d0d6222d08..42e21edbbd 100644 --- a/web/i18n/vi-VN/common.ts +++ b/web/i18n/vi-VN/common.ts @@ -161,7 +161,6 @@ const translation = { workspace: 'Không gian làm việc', createWorkspace: 'Tạo Không gian làm việc', helpCenter: 'Trung tâm trợ giúp', - communityFeedback: 'Phản hồi', roadmap: 'Lộ trình', community: 'Cộng đồng', about: 'Về chúng tôi', diff --git a/web/i18n/zh-Hans/common.ts b/web/i18n/zh-Hans/common.ts index bae15d71a9..95c9e583c1 100644 --- a/web/i18n/zh-Hans/common.ts +++ b/web/i18n/zh-Hans/common.ts @@ -176,7 +176,7 @@ const translation = { helpCenter: '帮助文档', support: '支持', compliance: '合规', - communityFeedback: '用户反馈', + forum: '论坛', roadmap: '路线图', github: 'GitHub', community: '社区', diff --git a/web/i18n/zh-Hant/common.ts b/web/i18n/zh-Hant/common.ts index 621dd81556..e4b79a7d4a 100644 --- a/web/i18n/zh-Hant/common.ts +++ b/web/i18n/zh-Hant/common.ts @@ -161,7 +161,6 @@ const translation = { workspace: '工作空間', createWorkspace: '建立工作空間', helpCenter: '幫助文件', - communityFeedback: '使用者反饋', roadmap: '路線圖', community: '社群', about: '關於',