Perf/combine entity dialogs (#1555)

* feat: combine bot settings and bot log dialogs

* perf: dialog style when creating bot

* perf: bot creation dialog

* feat: combine pipeline dialogs

* perf: ui

* perf: move buttons

* perf: ui layout in pipeline detail dialog

* perf: remove debug button from pipeline card

* perf: open pipeline dialog after creating

* perf: placeholder in send input

* perf: no close dialog when save done

* fix: linter errors
This commit is contained in:
Junyan Qin (Chin)
2025-06-28 21:50:51 +08:00
committed by GitHub
parent c34232a26c
commit 35f76cb7ae
27 changed files with 2271 additions and 812 deletions

View File

@@ -129,6 +129,8 @@ const enUS = {
dateFormat: '{{month}}/{{day}}',
setBotEnableError: 'Failed to set bot enable status',
log: 'Log',
configuration: 'Configuration',
logs: 'Logs',
},
plugins: {
title: 'Plugins',
@@ -185,6 +187,8 @@ const enUS = {
createPipeline: 'Create Pipeline',
editPipeline: 'Edit Pipeline',
chat: 'Chat',
configuration: 'Configuration',
debugChat: 'Debug Chat',
getPipelineListError: 'Failed to get pipeline list: ',
daysAgo: 'days ago',
today: 'Today',
@@ -204,6 +208,8 @@ const enUS = {
deleteConfirmation:
'Are you sure you want to delete this pipeline? Bots bound to this pipeline will not work.',
defaultPipelineCannotDelete: 'Default pipeline cannot be deleted',
deleteSuccess: 'Deleted successfully',
deleteError: 'Delete failed: ',
debugDialog: {
title: 'Pipeline Chat',
selectPipeline: 'Select Pipeline',
@@ -212,7 +218,7 @@ const enUS = {
groupChat: 'Group Chat',
send: 'Send',
reset: 'Reset Conversation',
inputPlaceholder: 'Enter message...',
inputPlaceholder: 'Send {{type}} message...',
noMessages: 'No messages',
userMessage: 'User',
botMessage: 'Bot',

View File

@@ -130,6 +130,8 @@ const jaJP = {
dateFormat: '{{month}}月{{day}}日',
setBotEnableError: 'ボットの有効状態の設定に失敗しました',
log: 'ログ',
configuration: '設定',
logs: 'ログ',
},
plugins: {
title: 'プラグイン',
@@ -185,6 +187,8 @@ const jaJP = {
createPipeline: 'パイプラインを作成',
editPipeline: 'パイプラインを編集',
chat: 'チャット',
configuration: '設定',
debugChat: 'チャットデバッグ',
getPipelineListError: 'パイプラインリストの取得に失敗しました:',
daysAgo: '日前',
today: '今日',
@@ -205,6 +209,8 @@ const jaJP = {
deleteConfirmation:
'本当にこのパイプラインを削除しますか?このパイプラインに紐付けられたボットは動作しなくなります。',
defaultPipelineCannotDelete: 'デフォルトパイプラインは削除できません',
deleteSuccess: '削除に成功しました',
deleteError: '削除に失敗しました:',
debugDialog: {
title: 'パイプラインのチャット',
selectPipeline: 'パイプラインを選択',
@@ -213,7 +219,7 @@ const jaJP = {
groupChat: 'グループチャット',
send: '送信',
reset: '会話をリセット',
inputPlaceholder: 'メッセージを入力...',
inputPlaceholder: '{{type}}メッセージを送信...',
noMessages: 'メッセージがありません',
userMessage: 'ユーザー',
botMessage: 'ボット',

View File

@@ -26,7 +26,7 @@ const zhHans = {
save: '保存',
saving: '保存中...',
confirm: '确认',
confirmDelete: '删除确认',
confirmDelete: '确认删除',
deleteConfirmation: '你确定要删除这个吗?',
selectOption: '选择一个选项',
required: '必填',
@@ -127,6 +127,8 @@ const zhHans = {
dateFormat: '{{month}}月{{day}}日',
setBotEnableError: '设置机器人启用状态失败',
log: '日志',
configuration: '配置',
logs: '日志',
},
plugins: {
title: '插件管理',
@@ -180,6 +182,8 @@ const zhHans = {
createPipeline: '创建流水线',
editPipeline: '编辑流水线',
chat: '对话',
configuration: '配置',
debugChat: '对话调试',
getPipelineListError: '获取流水线列表失败:',
daysAgo: '天前',
today: '今天',
@@ -199,6 +203,8 @@ const zhHans = {
deleteConfirmation:
'你确定要删除这个流水线吗?已绑定此流水线的机器人将无法使用。',
defaultPipelineCannotDelete: '默认流水线不可删除',
deleteSuccess: '删除成功',
deleteError: '删除失败:',
debugDialog: {
title: '流水线对话',
selectPipeline: '选择流水线',
@@ -207,7 +213,7 @@ const zhHans = {
groupChat: '群聊',
send: '发送',
reset: '重置对话',
inputPlaceholder: '输入消息...',
inputPlaceholder: '发送 {{type}} 消息...',
noMessages: '暂无消息',
userMessage: '用户',
botMessage: '机器人',