Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: minor tweak ChatSQL UX (#5098)

Tianzhou (天舟)c443361ad87e
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 00a56749d9..189c228026 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -2034,7 +2034,7 @@
"new-conversation": "Start new conversation",
"no-message": "No message in this conversation",
"tips": {
- "try": "Try:",
+ "suggest-prompt": "Suggesting prompts...",
"more": "More",
"no-more": "no more"
}
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 61f658bfc8..51038cf5dd 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -2031,7 +2031,7 @@
"view-history-conversations": "查看历史对话",
"new-conversation": "开启新对话",
"tips": {
- "try": "试一试:",
+ "suggest-prompt": "生成提示词...",
"more": "更多",
"no-more": "没有了"
}
diff --git a/frontend/src/plugins/ai/components/DynamicSuggestions.vue b/frontend/src/plugins/ai/components/DynamicSuggestions.vue
index 3c35cd055a..49e270854a 100644
--- a/frontend/src/plugins/ai/components/DynamicSuggestions.vue
+++ b/frontend/src/plugins/ai/components/DynamicSuggestions.vue
@@ -1,16 +1,16 @@
<template>
<div class="flex items-center overflow-hidden h-[22px]">
<template v-if="dynamicSuggestions && !ready">
- <BBSpin class="w-4 h-4" />
+ <BBSpin class="w-4 h-4 mr-2" />
+ <span class="text-sm">{{
+ $t("plugin.ai.conversation.tips.suggest-prompt")
+ }}</span>
</template>
<template v-if="ready && suggestions.length > 0">
<div
class="relative flex items-center gap-x-2 overflow-hidden text-xs leading-4"
>
- <div class="shrink-0 text-sm font-medium">
- {{ $t("plugin.ai.conversation.tips.try") }}
- </div>
<div
class="flex items-stretch gap-x-2 whitespace-nowrap overflow-x-auto hide-scrollbar"
>
@@ -18,7 +18,7 @@
v-for="(sug, i) in suggestions"
:key="i"
style="max-width: 20rem"
- class="border shrink-0 py-0.5 px-1 rounded-md cursor-pointer hover:bg-indigo-100 hover:border-indigo-500"
+ class="border shrink-0 py-0.5 px-2 cursor-pointer hover:bg-indigo-100 hover:border-indigo-500"
@click.capture="consume(sug)"
>
{{ sug }}