11import type { IconProps } from '@gravity-ui/uikit' ;
22
3- import favoriteFilledIcon from '../../assets/icons/star.svg' ;
4- import flaskIcon from '../../assets/icons/flask.svg' ;
3+ import { PencilToSquare , Flask , StarFill } from '@gravity-ui/icons' ;
54
65import {
76 INVERTED_DISKS_KEY ,
@@ -11,6 +10,7 @@ import {
1110 USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY ,
1211 QUERY_USE_MULTI_SCHEMA_KEY ,
1312 BINARY_DATA_IN_PLAIN_TEXT_DISPLAY ,
13+ ENABLE_AUTOCOMPLETE ,
1414} from '../../utils/constants' ;
1515import { Lang , defaultLang } from '../../utils/i18n' ;
1616
@@ -107,6 +107,12 @@ export const queryUseMultiSchemaSetting: SettingProps = {
107107 helpPopoverContent : i18n ( 'settings.queryUseMultiSchema.popover' ) ,
108108} ;
109109
110+ export const enableAutocompleteSetting : SettingProps = {
111+ settingKey : ENABLE_AUTOCOMPLETE ,
112+ title : i18n ( 'settings.editor.autocomplete.title' ) ,
113+ description : i18n ( 'settings.editor.autocomplete.description' ) ,
114+ } ;
115+
110116export const appearanceSection : SettingsSection = {
111117 id : 'appearanceSection' ,
112118 title : i18n ( 'section.appearance' ) ,
@@ -117,18 +123,29 @@ export const experimentsSection: SettingsSection = {
117123 title : i18n ( 'section.experiments' ) ,
118124 settings : [ useNodesEndpointSetting , useVirtualTables , queryUseMultiSchemaSetting ] ,
119125} ;
126+ export const devSettingsSection : SettingsSection = {
127+ id : 'devSettingsSection' ,
128+ title : i18n ( 'section.dev-setting' ) ,
129+ settings : [ enableAutocompleteSetting ] ,
130+ } ;
120131
121132export const generalPage : SettingsPage = {
122133 id : 'generalPage' ,
123134 title : i18n ( 'page.general' ) ,
124- icon : { data : favoriteFilledIcon , height : 14 , width : 14 } ,
135+ icon : { data : StarFill , height : 14 , width : 14 } ,
125136 sections : [ appearanceSection ] ,
126137} ;
127138export const experimentsPage : SettingsPage = {
128139 id : 'experimentsPage' ,
129140 title : i18n ( 'page.experiments' ) ,
130- icon : { data : flaskIcon } ,
141+ icon : { data : Flask } ,
131142 sections : [ experimentsSection ] ,
132143} ;
144+ export const editorPage : SettingsPage = {
145+ id : 'editorPage' ,
146+ title : i18n ( 'page.editor' ) ,
147+ icon : { data : PencilToSquare } ,
148+ sections : [ devSettingsSection ] ,
149+ } ;
133150
134- export const settings : YDBEmbeddedUISettings = [ generalPage , experimentsPage ] ;
151+ export const settings : YDBEmbeddedUISettings = [ generalPage , editorPage , experimentsPage ] ;
0 commit comments