Skip to content

Commit 9023843

Browse files
committed
Remove the missing chatbot warning status bar and associated message handler
- add missing translations
1 parent e8e46e5 commit 9023843

5 files changed

Lines changed: 22 additions & 77 deletions

File tree

‎apps/editor/src/views/prompt/backend/prompt-view-provider.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,8 +772,6 @@ export class PromptViewProvider implements vscode.WebviewViewProvider {
772772
open_settings.api.providers()
773773
} else if (message.command == 'MANAGE_MODELS') {
774774
open_settings.api.models()
775-
} else if (message.command == 'MANAGE_CHATBOTS') {
776-
open_settings.web.chatbots()
777775
} else if (message.command == 'PREVIEW_SWITCH_CHOICE') {
778776
if (this.preview_switch_choice_resolver) {
779777
this.preview_switch_choice_resolver(message.choice)

‎apps/editor/src/views/prompt/frontend/Main/Main.tsx‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,6 @@ export const Main: React.FC<Props> = (props) => {
325325
})
326326
}
327327

328-
const handle_manage_chatbots = () => {
329-
post_message(props.vscode, {
330-
command: 'MANAGE_CHATBOTS'
331-
})
332-
}
333-
334328
const handle_toggle_pinned_api_configuration = (id: string) => {
335329
post_message(props.vscode, {
336330
command: 'TOGGLE_PINNED_API_CONFIGURATION',
@@ -501,7 +495,6 @@ export const Main: React.FC<Props> = (props) => {
501495
on_create_api_configuration={handle_create_api_configuration}
502496
on_manage_models={handle_manage_models}
503497
on_manage_providers={handle_manage_providers}
504-
on_manage_chatbots={handle_manage_chatbots}
505498
on_at_sign_click={handle_at_sign_click}
506499
on_hash_sign_click={handle_hash_sign_click}
507500
on_slash_click={handle_slash_click}

‎apps/editor/src/views/prompt/frontend/Main/MainView/MainView.tsx‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ type Props = {
5353
}) => void
5454
on_manage_models: () => void
5555
on_manage_providers: () => void
56-
on_manage_chatbots: () => void
5756
currently_open_file_path?: string
5857
current_selection?: SelectionState | null
5958
chat_history: string[]
@@ -285,28 +284,6 @@ export const MainView: React.FC<Props> = (props) => {
285284
}}
286285
/>
287286

288-
{props.target == TARGET.WEB &&
289-
props.is_connected &&
290-
props.web_configurations.length == 0 && (
291-
<>
292-
<UiStatusBar
293-
theme="warning"
294-
icon="codicon-warning"
295-
label={t('chatbots.missing-chatbot')}
296-
actions={[
297-
{
298-
id: 'settings',
299-
icon: 'codicon-gear',
300-
label: t('action.settings'),
301-
title: t('action.settings'),
302-
on_click: props.on_manage_chatbots
303-
}
304-
]}
305-
/>
306-
<UiSeparator height={4} />
307-
</>
308-
)}
309-
310287
{props.target == TARGET.API &&
311288
props.setup_progress &&
312289
!props.setup_progress.has_provider && (

‎apps/editor/src/views/prompt/frontend/i18n/translations/configurations.ts‎

Lines changed: 22 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -36,57 +36,39 @@ export const configurations = {
3636
bg: 'Липсващ модел'
3737
},
3838
'configurations.empty': {
39-
en: 'No models configured yet',
40-
pl: 'Nie ustawiono jeszcze żadnych modeli',
39+
en: 'No model configured yet',
40+
pl: 'Nie ustawiono jeszcze żadnego modelu',
4141
'zh-cn': '尚未配置模型',
42-
ja: 'まだモデルは設定されていません',
43-
'zh-tw': '尚未設定模型',
44-
de: 'Noch keine Modelle konfiguriert',
45-
es: 'Aún no se han configurado modelos',
42+
ja: 'モデルはまだ設定されていません',
43+
'zh-tw': '尚未配置模型',
44+
de: 'Noch kein Modell konfiguriert',
45+
es: 'Aún no se ha configurado ningún modelo',
4646
fr: 'Aucun modèle configuré pour le moment',
4747
'pt-br': 'Nenhum modelo configurado ainda',
48-
ru: 'Модели еще не настроены',
48+
ru: 'Модель еще не настроена',
4949
ko: '아직 구성된 모델이 없습니다',
5050
it: 'Nessun modello ancora configurato',
51-
tr: 'Henüz hiçbir model yapılandırılmadı',
52-
cs: 'Zatím nebyly nakonfigurovány žádné modely',
53-
hu: 'Még nincsenek modellek konfigurálva',
54-
bg: 'Все още няма конфигурирани модели'
55-
},
56-
'chatbots.missing-chatbot': {
57-
en: 'Missing chatbot',
58-
pl: 'Brak chatbota',
59-
'zh-cn': '缺少聊天机器人',
60-
ja: 'チャットボットが不足しています',
61-
'zh-tw': '缺少聊天機器人',
62-
de: 'Fehlender Chatbot',
63-
es: 'Falta chatbot',
64-
fr: 'Chatbot manquant',
65-
'pt-br': 'Chatbot ausente',
66-
ru: 'Отсутствует чат-бот',
67-
ko: '챗봇이 누락되었습니다',
68-
it: 'Chatbot mancante',
69-
tr: 'Eksik sohbet robotu',
70-
cs: 'Chybějící chatbot',
71-
hu: 'Hiányzó chatbot',
72-
bg: 'Липсващ чатбот'
51+
tr: 'Henüz yapılandırılmış model yok',
52+
cs: 'Zatím není nakonfigurován žádný model',
53+
hu: 'Még nincs modell konfigurálva',
54+
bg: 'Все още няма конфигуриран модел'
7355
},
7456
'chatbots.empty': {
75-
en: 'No chatbots configured yet',
76-
pl: 'Nie ustawiono jeszcze żadnych chatbotów',
57+
en: 'No chatbot configured yet',
58+
pl: 'Nie ustawiono jeszcze żadnego chatbota',
7759
'zh-cn': '尚未配置聊天机器人',
78-
ja: 'まだチャットボットは設定されていません',
79-
'zh-tw': '尚未設定聊天機器人',
80-
de: 'Noch keine Chatbots konfiguriert',
81-
es: 'Aún no se han configurado chatbots',
60+
ja: 'チャットボットはまだ設定されていません',
61+
'zh-tw': '尚未配置聊天機器人',
62+
de: 'Noch kein Chatbot konfiguriert',
63+
es: 'Aún no se ha configurado ningún chatbot',
8264
fr: 'Aucun chatbot configuré pour le moment',
8365
'pt-br': 'Nenhum chatbot configurado ainda',
84-
ru: 'Чат-боты еще не настроены',
66+
ru: 'Чат-бот еще не настроен',
8567
ko: '아직 구성된 챗봇이 없습니다',
8668
it: 'Nessun chatbot ancora configurato',
87-
tr: 'Henüz hiçbir sohbet botu yapılandırılmadı',
88-
cs: 'Zatím nebyli nakonfigurováni žádní chatboti',
89-
hu: 'Még nincsenek chatbotok konfigurálva',
90-
bg: 'Все още няма конфигурирани чатботове'
69+
tr: 'Henüz yapılandırılmış sohbet robotu yok',
70+
cs: 'Zatím není nakonfigurován žádný chatbot',
71+
hu: 'Még nincs chatbot konfigurálva',
72+
bg: 'Все още няма конфигуриран чатбот'
9173
}
9274
} as const

‎apps/editor/src/views/prompt/types/messages.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,6 @@ export interface ManageProvidersMessage extends BaseMessage {
349349
command: 'MANAGE_PROVIDERS'
350350
}
351351

352-
export interface ManageChatbotsMessage extends BaseMessage {
353-
command: 'MANAGE_CHATBOTS'
354-
}
355-
356352
export interface UndoMessage extends BaseMessage {
357353
command: 'UNDO'
358354
}
@@ -612,7 +608,6 @@ export type FrontendMessage =
612608
| FixAllFailedFilesMessage
613609
| ManageModelsMessage
614610
| ManageProvidersMessage
615-
| ManageChatbotsMessage
616611
| UndoMessage
617612
| ApplyResponseFromHistoryMessage
618613
| RemoveResponseHistoryItemMessage

0 commit comments

Comments
 (0)