99 EditFormatInstructions
1010} from '@/views/settings/types/messages'
1111import { WebConfiguration } from '@shared/types/web-configuration'
12- import { PreferencesSection } from './sections/PreferencesSection '
12+ import { GeneralSection } from './sections/GeneralSection '
1313import { ToolType } from '@/views/settings/types/tools'
1414import { use_translation , TranslationKey } from '../i18n/use-translation'
1515import { WebConfigurationsSection } from './sections/WebConfigurationsSection'
@@ -18,13 +18,13 @@ import { default_system_instructions } from '@shared/constants/default-system-in
1818import { GROUP_TITLE_HEIGHT , SECTION_HEADER_HEIGHT } from '@ui/constants/sizes'
1919
2020export type NavItem =
21- | 'section:preferences '
22- | 'section:preferences :group:open-links'
23- | 'section:preferences :group:context'
24- | 'section:preferences :group:prompt-field'
25- | 'section:preferences :group:checkpoints'
26- | 'section:preferences :group:commit-messages'
27- | 'section:preferences :group:edit-format'
21+ | 'section:general '
22+ | 'section:general :group:open-links'
23+ | 'section:general :group:context'
24+ | 'section:general :group:prompt-field'
25+ | 'section:general :group:checkpoints'
26+ | 'section:general :group:commit-messages'
27+ | 'section:general :group:edit-format'
2828 | 'section:chatbots'
2929 | 'section:chatbots:group:web-configurations'
3030 | 'section:chatbots:group:chatbots-other'
@@ -38,32 +38,32 @@ type NavConfigItem = { id: NavItem; label: TranslationKey }
3838
3939const NAV_ITEMS_CONFIG : NavConfigItem [ ] = [
4040 {
41- id : 'section:preferences ' ,
41+ id : 'section:general ' ,
4242 label : 'sections.general'
4343 } ,
4444 {
45- id : 'section:preferences :group:open-links' ,
46- label : 'preferences .open-links.title'
45+ id : 'section:general :group:open-links' ,
46+ label : 'general .open-links.title'
4747 } ,
4848 {
49- id : 'section:preferences :group:context' ,
50- label : 'preferences .context.title'
49+ id : 'section:general :group:context' ,
50+ label : 'general .context.title'
5151 } ,
5252 {
53- id : 'section:preferences :group:prompt-field' ,
54- label : 'preferences .prompt-field.title'
53+ id : 'section:general :group:prompt-field' ,
54+ label : 'general .prompt-field.title'
5555 } ,
5656 {
57- id : 'section:preferences :group:checkpoints' ,
58- label : 'preferences .checkpoints.title'
57+ id : 'section:general :group:checkpoints' ,
58+ label : 'general .checkpoints.title'
5959 } ,
6060 {
61- id : 'section:preferences :group:commit-messages' ,
62- label : 'preferences .commit-messages.title'
61+ id : 'section:general :group:commit-messages' ,
62+ label : 'general .commit-messages.title'
6363 } ,
6464 {
65- id : 'section:preferences :group:edit-format' ,
66- label : 'preferences .edit-formats.title'
65+ id : 'section:general :group:edit-format' ,
66+ label : 'general .edit-formats.title'
6767 } ,
6868 {
6969 id : 'section:chatbots' ,
@@ -180,13 +180,13 @@ export const Home: React.FC<Props> = (props) => {
180180
181181 const scroll_container_ref = useRef < HTMLDivElement > ( null )
182182 const section_refs = useRef < Record < NavItem , HTMLDivElement | null > > ( {
183- 'section:preferences ' : null ,
184- 'section:preferences :group:open-links' : null ,
185- 'section:preferences :group:context' : null ,
186- 'section:preferences :group:prompt-field' : null ,
187- 'section:preferences :group:checkpoints' : null ,
188- 'section:preferences :group:commit-messages' : null ,
189- 'section:preferences :group:edit-format' : null ,
183+ 'section:general ' : null ,
184+ 'section:general :group:open-links' : null ,
185+ 'section:general :group:context' : null ,
186+ 'section:general :group:prompt-field' : null ,
187+ 'section:general :group:checkpoints' : null ,
188+ 'section:general :group:commit-messages' : null ,
189+ 'section:general :group:edit-format' : null ,
190190 'section:chatbots' : null ,
191191 'section:chatbots:group:web-configurations' : null ,
192192 'section:chatbots:group:chatbots-other' : null ,
@@ -366,8 +366,8 @@ export const Home: React.FC<Props> = (props) => {
366366 )
367367 } ) }
368368 >
369- < PreferencesSection
370- ref = { ( el ) => set_section_ref ( 'section:preferences ' , el ) }
369+ < GeneralSection
370+ ref = { ( el ) => set_section_ref ( 'section:general ' , el ) }
371371 set_section_ref = { set_section_ref }
372372 context_size_warning_threshold = { props . context_size_warning_threshold }
373373 on_context_size_warning_threshold_change = {
0 commit comments