Skip to content

Commit b1c804b

Browse files
committed
fix: better char
1 parent f15c1bf commit b1c804b

File tree

3 files changed

+44
-13
lines changed

3 files changed

+44
-13
lines changed

src/features/chat/components/ChatInput/ChatInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const ChatInput = ({
1818
disabled = false,
1919
isStreaming = false,
2020
onStopGeneration,
21-
placeholder = 'Ask about your YDB cluster, databases, or queries...',
21+
placeholder = 'Спросите о кластере YDB, базах данных или запросах...',
2222
}: ChatInputProps) => {
2323
const [message, setMessage] = React.useState('');
2424
const textAreaRef = React.useRef<HTMLTextAreaElement>(null);

src/features/chat/components/ChatPanel/ChatPanel.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
}
2020

2121
&__header {
22+
z-index: 100;
23+
2224
display: flex;
2325
flex-shrink: 0;
2426
justify-content: space-between;
@@ -112,6 +114,8 @@
112114
}
113115

114116
&__input {
117+
z-index: 100;
118+
115119
flex-shrink: 0;
116120

117121
padding: 16px;

src/features/chat/components/ChatPanel/ChatPanel.tsx

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ export const ChatPanel = () => {
110110
{/* Header */}
111111
<div className={b('header')}>
112112
<div className={b('header-left')}>
113-
<Text variant="subheader-2">AI Assistant</Text>
113+
<Text variant="subheader-2">AI Ассистент</Text>
114114
<QuotaDisplay compact refreshTrigger={quotaRefreshTrigger} />
115115
</div>
116116
<div className={b('controls')}>
117-
<ActionTooltip title="Clear history (⌘K)">
117+
<ActionTooltip title="Очистить историю (⌘K)">
118118
<Button
119119
view="flat"
120120
size="s"
@@ -126,7 +126,7 @@ export const ChatPanel = () => {
126126
🗑
127127
</Button>
128128
</ActionTooltip>
129-
<ActionTooltip title="Close">
129+
<ActionTooltip title="Закрыть">
130130
<Button view="flat" size="s" onClick={closeChat}>
131131
<Icon data={Xmark} size={16} />
132132
</Button>
@@ -138,34 +138,61 @@ export const ChatPanel = () => {
138138
<div className={b('messages')}>
139139
{messages.filter((msg) => msg.role !== 'tool').length === 0 && (
140140
<div className={b('welcome')}>
141-
<h4>Welcome to YDB AI Assistant</h4>
141+
<h4>Добро пожаловать в YDB AI Ассистент</h4>
142142
<p>
143-
Ask questions about your YDB cluster, databases, or get help with
144-
queries.
143+
Задавайте вопросы о состоянии кластера, базах данных или получите
144+
помощь с запросами.
145145
</p>
146146
<div className={b('suggestions')}>
147+
<Button
148+
view="outlined"
149+
size="s"
150+
onClick={() => handleSendMessage('Покажи состояние кластера')}
151+
>
152+
Состояние кластера
153+
</Button>
154+
<Button
155+
view="outlined"
156+
size="s"
157+
onClick={() => handleSendMessage('Какие есть базы данных?')}
158+
>
159+
Список БД
160+
</Button>
161+
<Button
162+
view="outlined"
163+
size="s"
164+
onClick={() => handleSendMessage('Есть ли проблемы с нодами?')}
165+
>
166+
Проверить ноды
167+
</Button>
147168
<Button
148169
view="outlined"
149170
size="s"
150171
onClick={() =>
151-
handleSendMessage('Show me cluster health status')
172+
handleSendMessage(
173+
'Помоги написать YQL запрос для выборки данных',
174+
)
152175
}
153176
>
154-
Check cluster health
177+
Помощь с YQL
155178
</Button>
156179
<Button
157180
view="outlined"
158181
size="s"
159-
onClick={() => handleSendMessage('List all databases')}
182+
onClick={() =>
183+
handleSendMessage('Покажи топ медленных запросов')
184+
}
160185
>
161-
List databases
186+
Медленные запросы
162187
</Button>
163188
<Button
164189
view="outlined"
165190
size="s"
166-
onClick={() => handleSendMessage('Help me write a YQL query')}
191+
onClick={() =>
192+
handleSendMessage('Сколько места занимают таблицы?')
193+
}
167194
>
168-
Help with queries
195+
Размер таблиц
169196
</Button>
170197
</div>
171198
</div>

0 commit comments

Comments
 (0)