Skip to content

Commit 8a873f5

Browse files
committed
Remove the default-configurations section from the settings page
- move 'defaults' immediately below configurations, so that they're not in a subsection
1 parent 27b06b0 commit 8a873f5

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export type NavItem =
3030
| 'api-calls'
3131
| 'model-providers'
3232
| 'api-configurations'
33-
| 'default-configurations'
3433
| 'instructions'
3534

3635
type NavConfigItem = { id: NavItem; label: TranslationKey; is_nested?: boolean }
@@ -88,11 +87,6 @@ const NAV_ITEMS_CONFIG: NavConfigItem[] = [
8887
label: 'web-configurations.configurations.title',
8988
is_nested: true
9089
},
91-
{
92-
id: 'default-configurations',
93-
label: 'configurations.default-configurations.title',
94-
is_nested: true
95-
},
9690
{
9791
id: 'instructions',
9892
label: 'configurations.instructions.title',
@@ -200,7 +194,6 @@ export const Home: React.FC<Props> = (props) => {
200194
'api-calls': null,
201195
'model-providers': null,
202196
'api-configurations': null,
203-
'default-configurations': null,
204197
instructions: null
205198
})
206199

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { Group as UiGroup } from '@ui/components/editor/settings/Group/Group'
44
import { Notice as UiNotice } from '@ui/components/editor/settings/Notice'
55
import { Textarea as UiTextarea } from '@ui/components/editor/common/Textarea'
66
import { Item as UiItem } from '@ui/components/editor/settings/Item'
7-
import { Button as UiButton } from '@ui/components/editor/common/Button'
87
import { SortableList } from '@ui/components/editor/settings/SortableList'
98
import { IconButton } from '@ui/components/editor/common/IconButton'
109
import { Toggler as UiToggler } from '@ui/components/editor/common/Toggler'
@@ -244,11 +243,6 @@ export const ApiConfigurationsSection = forwardRef<HTMLDivElement, Props>(
244243
)}
245244
/>
246245
)}
247-
</UiGroup>
248-
</div>
249-
250-
<div ref={(el) => props.set_section_ref('default-configurations', el)}>
251-
<UiGroup title={t('configurations.default-configurations.title')}>
252246
<DefaultConfigurationSelector
253247
title={t('configurations.tool.intelligent-update')}
254248
value={props.defaults['intelligent-update'] || null}

0 commit comments

Comments
 (0)