Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions packages/app-shell/src/console/ai/AiChatPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,18 @@ function ChatPane({
connectionWaiting: t('console.ai.connectionWaiting', { defaultValue: 'Waiting for server…' }),
connectionStalledLabel: t('console.ai.connectionStalled', { defaultValue: 'Still working…' }),
connectionOfflineLabel: t('console.ai.connectionOffline', { defaultValue: 'Connection lost — reconnecting…' }),
// Friendly in-progress feedback for the long, atomic propose_blueprint
// call — a lead-in plus rotating hints so the wait reads as deliberate
// design work, not a hang. Each hint is translated individually (the
// established per-string pattern; avoids an i18n returnObjects array).
designingPlanLabel: t('console.ai.designingPlan', { defaultValue: 'Designing your app…' }),
designingPlanHints: [
t('console.ai.designingPlanHint.data', { defaultValue: 'Mapping out the data you’ll track…' }),
t('console.ai.designingPlanHint.objects', { defaultValue: 'Shaping objects and their fields…' }),
t('console.ai.designingPlanHint.relations', { defaultValue: 'Connecting related records…' }),
t('console.ai.designingPlanHint.views', { defaultValue: 'Planning the screens and views…' }),
t('console.ai.designingPlanHint.finalize', { defaultValue: 'Pulling the plan together…' }),
],
toolDetailsHidden: t('console.ai.toolDetailsHidden'),
copy: t('console.ai.copy'),
copied: t('console.ai.copied'),
Expand Down Expand Up @@ -1342,6 +1354,9 @@ function ChatPane({
planApproveLabel={t('console.ai.planApprove', { defaultValue: 'Build it' })}
planAdjustLabel={t('console.ai.planAdjust', { defaultValue: 'Adjust' })}
planBuiltLabel={t('console.ai.planBuilt', { defaultValue: 'Built' })}
planReadyLabel={t('console.ai.planReady', {
defaultValue: 'The plan is ready. Build it now, or tell me what to adjust.',
})}
planApproveMessage={t('console.ai.planApproveMessage', {
defaultValue: 'Looks good — build it as proposed.',
})}
Expand Down
19 changes: 19 additions & 0 deletions packages/app-shell/src/layout/ConsoleFloatingChatbot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ function buildChatLocale(
connectionWaiting: '正在等待服务器响应…',
connectionStalledLabel: '仍在处理中…',
connectionOfflineLabel: '网络已断开,正在重连…',
designingPlanLabel: '正在为你设计方案…',
designingPlanHints: [
'梳理需要记录的数据…',
'设计对象与字段…',
'关联相关记录…',
'规划页面与视图…',
'汇总成完整方案…',
],
toolDetailsHidden: '已隐藏工具参数和原始结果,仅保留过程摘要。',
copy: '复制',
copied: '已复制',
Expand Down Expand Up @@ -141,6 +149,7 @@ function buildChatLocale(
planApprove: '开始搭建',
planAdjust: '调整方案',
planBuilt: '已搭建',
planReady: '方案已就绪。点击开始搭建,或告诉我需要调整什么。',
// These messages the button SENDS must match the cloud confirm gate's
// APPROVAL_RE (service-ai-studio confirm-gate.ts) or the agent re-proposes
// and "开始搭建" looks inert — the gate anchors Chinese approval on 确认 /
Expand Down Expand Up @@ -178,6 +187,14 @@ function buildChatLocale(
connectionWaiting: 'Waiting for server…',
connectionStalledLabel: 'Still working…',
connectionOfflineLabel: 'Connection lost — reconnecting…',
designingPlanLabel: 'Designing your app…',
designingPlanHints: [
'Mapping out the data you’ll track…',
'Shaping objects and their fields…',
'Connecting related records…',
'Planning the screens and views…',
'Pulling the plan together…',
],
toolDetailsHidden: 'Tool inputs and raw results are hidden in this view.',
copy: 'Copy',
copied: 'Copied',
Expand Down Expand Up @@ -205,6 +222,7 @@ function buildChatLocale(
planApprove: 'Build it',
planAdjust: 'Adjust',
planBuilt: 'Built',
planReady: 'The plan is ready. Build it now, or tell me what to adjust.',
planApproveMessage: 'Looks good — build it as proposed.',
planApproveDefaultsMessage: 'Build it with your best assumptions; use sensible defaults for the open questions.',
planAnswer: (question: string, option: string) => `For "${question}", go with: ${option}.`,
Expand Down Expand Up @@ -726,6 +744,7 @@ function ChatbotInner({
planApproveLabel={locale.planApprove}
planAdjustLabel={locale.planAdjust}
planBuiltLabel={locale.planBuilt}
planReadyLabel={locale.planReady}
planApproveMessage={locale.planApproveMessage}
planApproveDefaultsMessage={locale.planApproveDefaultsMessage}
planAnswerMessage={locale.planAnswer}
Expand Down
Loading
Loading