Skip to content

Commit 729bf3c

Browse files
committed
Refine settings UI, simplify warning logic, and update configuration translations
- don't show potential 'warning' on 'api calls' section. keep it on appropriate sub-sections. - add missing translations to [Fragment]
1 parent 5ddadb3 commit 729bf3c

3 files changed

Lines changed: 19 additions & 18 deletions

File tree

‎apps/editor/src/views/settings/frontend/Home/Home.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ export const Home: React.FC<Props> = (props) => {
209209
const get_has_warning = (id: NavItem): boolean => {
210210
if (id == 'model-providers') {
211211
return props.providers.length == 0
212-
} else if (id == 'api-calls' || id == 'api-configurations') {
212+
} else if (id == 'api-configurations') {
213213
return props.api_configurations.length == 0
214-
} else if (id == 'chatbots' || id == 'web-configurations') {
214+
} else if (id == 'web-configurations') {
215215
return props.web_configurations.length == 0
216216
} else {
217217
return false

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
export const configurations = {
22
'configurations.subtitle': {
3-
en: 'Send CWC-generated prompts from within the editor.',
4-
pl: 'Wysyłaj prompty wygenerowane przez CWC z poziomu edytora.',
5-
'zh-cn': '在编辑器内发送 CWC 生成的提示。',
6-
ja: 'エディタ内からCWCが生成したプロンプトを送信します。',
7-
'zh-tw': '在編輯器內傳送 CWC 產生的提示。',
8-
de: 'Senden Sie CWC-generierte Prompts direkt aus dem Editor.',
9-
es: 'Envía prompts generados por CWC desde dentro del editor.',
10-
fr: "Envoyez les prompts générés par CWC depuis l'éditeur.",
11-
'pt-br': 'Envie prompts gerados pelo CWC de dentro do editor.',
12-
ru: 'Отправляйте сгенерированные CWC промпты прямо из редактора.',
13-
ko: '에디터 내에서 CWC가 생성한 프롬프트를 보냅니다.',
14-
it: "Invia prompt generati da CWC dall'interno dell'editor.",
15-
tr: 'CWC tarafından oluşturulan istemleri düzenleyici içinden gönderin.',
16-
cs: 'Odesílejte prompty generované CWC přímo z editoru.',
17-
hu: 'CWC által generált promptok küldése a szerkesztőből.',
18-
bg: 'Изпращайте генерирани от CWC промптове от самия редактор.'
3+
en: 'Send prompts from within the editor.',
4+
pl: 'Wysyłaj prompty z poziomu edytora.',
5+
'zh-cn': '在编辑器内发送提示。',
6+
ja: 'エディター内からプロンプトを送信します。',
7+
'zh-tw': '在編輯器內傳送提示。',
8+
de: 'Prompts direkt aus dem Editor senden.',
9+
es: 'Envía prompts desde dentro del editor.',
10+
fr: "Envoyez des prompts depuis l'éditeur.",
11+
'pt-br': 'Envie prompts de dentro do editor.',
12+
ru: 'Отправляйте промпты из редактора.',
13+
ko: '에디터 내에서 프롬프트를 보냅니다.',
14+
it: "Invia prompt dall'interno dell'editor.",
15+
tr: 'Editörün içinden promptlar gönderin.',
16+
cs: 'Odesílejte prompty přímo z editoru.',
17+
hu: 'Küldjön promptokat a szerkesztőből.',
18+
bg: 'Изпращайте промптове от самия редактор.'
1919
},
2020
'configurations.notice.missing': {
2121
en: 'Missing configuration.',

‎packages/ui/src/components/editor/common/QuickPickButton/QuickPickButton.module.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
justify-content: space-between;
55
background: var(--vscode-input-background);
66
color: var(--vscode-input-foreground);
7+
border: 1px solid var(--cwc-border-color);
78
padding: 0 3px 0 7px;
89
border-radius: 4px;
910
height: 28px;

0 commit comments

Comments
 (0)