Skip to content

Commit 1781b93

Browse files
committed
Remove the group property from the Section component and its usages in the settings view
- sometimes not all english words are capitalized, e.g. [Fragment] - remove the 'api tool:' prefix from sections (and the ability to set such prefixes)
1 parent 96578d1 commit 1781b93

6 files changed

Lines changed: 3 additions & 34 deletions

File tree

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,6 @@ export const Home: React.FC<Props> = (props) => {
595595

596596
<UiSection
597597
ref={(el) => (section_refs.current['edit-context'] = el)}
598-
group={t('section.api-tool')}
599598
title={t('sidebar.edit-context')}
600599
subtitle={t('edit-context.subtitle')}
601600
on_stuck_change={edit_context_on_stuck_change}
@@ -628,7 +627,6 @@ export const Home: React.FC<Props> = (props) => {
628627

629628
<UiSection
630629
ref={(el) => (section_refs.current['code-at-cursor'] = el)}
631-
group={t('section.api-tool')}
632630
title={t('sidebar.code-at-cursor')}
633631
subtitle={t('code-at-cursor.subtitle')}
634632
on_stuck_change={code_at_cursor_on_stuck_change}
@@ -653,7 +651,6 @@ export const Home: React.FC<Props> = (props) => {
653651

654652
<UiSection
655653
ref={(el) => (section_refs.current['commit-messages'] = el)}
656-
group={t('section.api-tool')}
657654
title={t('sidebar.commit-messages')}
658655
subtitle={t('commit-messages.subtitle')}
659656
on_stuck_change={commit_messages_on_stuck_change}
@@ -696,7 +693,6 @@ export const Home: React.FC<Props> = (props) => {
696693

697694
<UiSection
698695
ref={(el) => (section_refs.current['voice-input'] = el)}
699-
group={t('section.api-tool')}
700696
title={t('sidebar.voice-input')}
701697
subtitle={t('voice-input.subtitle')}
702698
on_stuck_change={voice_input_on_stuck_change}

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -341,24 +341,6 @@ export const actions = {
341341
hu: 'Hiányzó konfiguráció.',
342342
bg: 'Липсваща конфигурация.'
343343
},
344-
'section.api-tool': {
345-
en: 'API Tool',
346-
pl: 'Narzędzie API',
347-
'zh-cn': 'API 工具',
348-
ja: 'API ツール',
349-
'zh-tw': 'API 工具',
350-
de: 'API-Tool',
351-
es: 'Herramienta API',
352-
fr: 'Outil API',
353-
'pt-br': 'Ferramenta API',
354-
ru: 'Инструмент API',
355-
ko: 'API 도구',
356-
it: 'Strumento API',
357-
tr: 'API Aracı',
358-
cs: 'Nástroj API',
359-
hu: 'API Eszköz',
360-
bg: 'API Инструмент'
361-
},
362344
'action.default-configuration': {
363345
en: 'Default Configuration',
364346
pl: 'Domyślna konfiguracja',

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const general = {
7373
bg: 'Отваряне на настройки на редактора'
7474
},
7575
'general.ignore-patterns.title': {
76-
en: 'Ignore patterns',
76+
en: 'Ignore Patterns',
7777
pl: 'Wzorce ignorowania',
7878
'zh-cn': '忽略模式',
7979
ja: '除外パターン',
@@ -127,7 +127,7 @@ export const general = {
127127
bg: 'Отваряне на файла с настройки'
128128
},
129129
'general.allow-patterns.title': {
130-
en: 'Allow patterns',
130+
en: 'Allow Patterns',
131131
pl: 'Wzorce zezwalania',
132132
'zh-cn': '允许模式',
133133
ja: '許可パターン',

‎apps/editor/src/views/settings/frontend/i18n/translations/intelligent-update.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const intelligent_update = {
3737
bg: 'Заявката включва оригиналния файл и грешния код.'
3838
},
3939
'intelligent-update.auto-run-intelligent-update.title': {
40-
en: 'Auto-run Intelligent Update',
40+
en: 'Auto-Run Intelligent Update',
4141
pl: 'Automatycznie uruchom inteligentną integrację',
4242
'zh-cn': '自动运行智能更新',
4343
ja: 'インテリジェントアップデートを自動実行',

‎packages/ui/src/components/editor/settings/Section/Section.module.scss‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@
5656
overflow: hidden;
5757
}
5858

59-
&__group {
60-
font-weight: 400;
61-
color: var(--vscode-textLink-foreground);
62-
}
63-
6459
&__title {
6560
margin: 0;
6661
font-size: 20px;

‎packages/ui/src/components/editor/settings/Section/Section.tsx‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ type Props = {
77
subtitle: React.ReactNode
88
children: React.ReactNode
99
on_stuck_change: (is_stuck: boolean) => void
10-
group?: string
1110
actions?: React.ReactNode
1211
}
1312

@@ -97,9 +96,6 @@ export const Section = forwardRef<HTMLDivElement, Props>((props, ref) => {
9796
title={`${props.title}—${props.subtitle}`}
9897
>
9998
<div className={styles.header__title}>
100-
{props.group && (
101-
<span className={styles.header__group}>{props.group}: </span>
102-
)}
10399
{props.title}
104100
</div>
105101
<div className={styles.header__subtitle}>{props.subtitle}</div>

0 commit comments

Comments
 (0)