@@ -8,12 +8,12 @@ import { useSupermaven } from "@/context/SupermavenContext";
88import { useFormatter , type FormatterType } from "@/context/FormatterContext" ;
99import { useSettings , type SettingsScope , type SettingSource , type CortexSettings , type ExplorerSortOrder } from "@/context/SettingsContext" ;
1010import { useWorkspace } from "@/context/WorkspaceContext" ;
11- import { useMultiRepo , type GitSyncSettings } from "@/context/MultiRepoContext" ;
11+ import { useMultiRepo } from "@/context/MultiRepoContext" ;
1212import { KeymapProvider } from "@/context/KeymapContext" ;
1313import { KeymapEditor , Toggle , Select , SectionHeader , OptionCard , FormGroup , InfoBox , Button , Kbd , EditorSettingsPanel , TerminalSettingsPanel , FilesSettingsPanel , NetworkSettingsPanel , JsonSettingsEditor , GitSettingsPanel } from "@/components/settings" ;
1414import { CopilotSettingsPanel , CopilotSignInModal } from "@/components/ai/CopilotStatus" ;
1515import { ExtensionsPanel } from "@/components/extensions" ;
16- import { Button as UIButton , IconButton , Input , Card , ListItem , Text , Badge } from "@/components/ui" ;
16+ import { Button as UIButton , IconButton , Input , Card , Text , Badge } from "@/components/ui" ;
1717import type { LLMProviderType } from "@/utils/llm" ;
1818
1919/** Map tree item IDs to settings sections for modified count */
@@ -163,12 +163,11 @@ function SettingsTreeItem(props: {
163163 < span class = "text-sm truncate flex-1" > { props . item . label } </ span >
164164 { /* Modified count badge */ }
165165 < Show when = { totalModifiedCount ( ) > 0 } >
166- < Badge
167- size = "sm"
168- title = { `${ totalModifiedCount ( ) } modified setting${ totalModifiedCount ( ) > 1 ? 's' : '' } ` }
169- >
170- { totalModifiedCount ( ) }
171- </ Badge >
166+ < span title = { `${ totalModifiedCount ( ) } modified setting${ totalModifiedCount ( ) > 1 ? 's' : '' } ` } >
167+ < Badge size = "sm" >
168+ { totalModifiedCount ( ) }
169+ </ Badge >
170+ </ span >
172171 </ Show >
173172 </ UIButton >
174173 < Show when = { hasChildren ( ) && isExpanded ( ) } >
@@ -290,13 +289,13 @@ function SettingRow(props: {
290289}
291290
292291export function SettingsDialog ( props : SettingsDialogProps ) {
293- const { theme , setTheme } = useTheme ( ) ;
292+ const { setTheme } = useTheme ( ) ;
294293 const { state, updateConfig } = useSDK ( ) ;
295294 const vim = useVim ( ) ;
296295 const llm = useLLM ( ) ;
297296 const supermaven = useSupermaven ( ) ;
298297 const formatter = useFormatter ( ) ;
299- const multiRepo = useMultiRepo ( ) ;
298+ useMultiRepo ( ) ; // Context provider hook (values not destructured yet)
300299 const settings = useSettings ( ) ;
301300 const [ activeTab , setActiveTab ] = createSignal < string > ( props . initialSection ?? "general" ) ;
302301 const [ searchQuery , setSearchQuery ] = createSignal ( "" ) ;
@@ -309,8 +308,7 @@ export function SettingsDialog(props: SettingsDialogProps) {
309308 } , 100 ) ;
310309 }
311310 } ) ;
312- const [ supermavenApiKey , setSupermavenApiKey ] = createSignal ( "" ) ;
313- const [ showSupermavenKey , setShowSupermavenKey ] = createSignal ( false ) ;
311+ // Removed unused signals: supermavenApiKey, showSupermavenKey
314312 const [ showCopilotSignIn , setShowCopilotSignIn ] = createSignal ( false ) ;
315313
316314 // Settings scope toggle: user vs workspace
@@ -355,7 +353,7 @@ export function SettingsDialog(props: SettingsDialogProps) {
355353 } ) ;
356354 const [ validatingProvider , setValidatingProvider ] = createSignal < LLMProviderType | null > ( null ) ;
357355
358- const [ contentRef , setContentRef ] = createSignal < HTMLDivElement | null > ( null ) ;
356+ const [ , setContentRef ] = createSignal < HTMLDivElement | null > ( null ) ;
359357
360358 const findTreeItem = ( items : TreeItem [ ] , id : string ) : TreeItem | undefined => {
361359 for ( const item of items ) {
@@ -946,11 +944,10 @@ export function SettingsDialog(props: SettingsDialogProps) {
946944 icon = { < Icon name = "desktop" class = "h-4 w-4" /> }
947945 />
948946 < div >
949- < Text as = "h4 " size = "sm" weight = "medium" style = { { "margin-bottom" : "12px" , color : "var(--jb-text-body-color)" } } > Theme</ Text >
947+ < Text as = "h3 " size = "sm" weight = "medium" style = { { "margin-bottom" : "12px" , color : "var(--jb-text-body-color)" } } > Theme</ Text >
950948 < div style = { { display : "flex" , gap : "8px" } } >
951949 < For each = { themes } >
952950 { ( t ) => {
953- const source = ( ) => settings . getSettingSource ( "theme" , "theme" ) ;
954951 const hasOverride = ( ) => settings . hasWorkspaceOverride ( "theme" , "theme" ) ;
955952 const isSelected = ( ) => settings . effectiveSettings ( ) . theme . theme === t . value ;
956953
@@ -965,7 +962,7 @@ export function SettingsDialog(props: SettingsDialogProps) {
965962 }
966963 } }
967964 variant = { isSelected ( ) ? "primary" : "secondary" }
968- icon = { < t . icon style = { { width : "16px" , height : "16px" } } / >}
965+ icon = { < span style = { { width : "16px" , height : "16px" , display : "inline-flex" } } > < t . icon /> </ span > }
969966 style = { hasOverride ( ) ? { "box-shadow" : "0 0 0 2px rgba(168, 85, 247, 0.5)" } : { } }
970967 >
971968 { t . label }
@@ -1006,7 +1003,7 @@ export function SettingsDialog(props: SettingsDialogProps) {
10061003
10071004 { /* Editor Tabs Settings */ }
10081005 < div >
1009- < Text as = "h4 " size = "sm" weight = "medium" style = { { "margin-bottom" : "12px" , color : "var(--jb-text-body-color)" } } > Editor Tabs</ Text >
1006+ < Text as = "h3 " size = "sm" weight = "medium" style = { { "margin-bottom" : "12px" , color : "var(--jb-text-body-color)" } } > Editor Tabs</ Text >
10101007 < div style = { { position : "relative" } } >
10111008 < OptionCard
10121009 selected = { settings . effectiveSettings ( ) . theme . wrapTabs }
@@ -1087,7 +1084,7 @@ export function SettingsDialog(props: SettingsDialogProps) {
10871084
10881085 { /* Sort Order */ }
10891086 < div >
1090- < Text as = "h4 " size = "sm" weight = "medium" style = { { "margin-bottom" : "12px" , color : "var(--jb-text-body-color)" } } > Sort Order</ Text >
1087+ < Text as = "h3 " size = "sm" weight = "medium" style = { { "margin-bottom" : "12px" , color : "var(--jb-text-body-color)" } } > Sort Order</ Text >
10911088 < FormGroup
10921089 label = "File Sort Order"
10931090 description = "Choose how files and folders are sorted in the explorer"
@@ -1127,7 +1124,7 @@ export function SettingsDialog(props: SettingsDialogProps) {
11271124 </ div >
11281125
11291126 < div >
1130- < Text as = "h4 " size = "sm" weight = "medium" style = { { "margin-bottom" : "12px" , color : "var(--jb-text-body-color)" } } > Drag and Drop</ Text >
1127+ < Text as = "h3 " size = "sm" weight = "medium" style = { { "margin-bottom" : "12px" , color : "var(--jb-text-body-color)" } } > Drag and Drop</ Text >
11311128 < OptionCard
11321129 selected = { settings . effectiveSettings ( ) . files ?. confirmDragAndDrop ?? true }
11331130 onSelect = { async ( ) => {
@@ -1295,7 +1292,7 @@ export function SettingsDialog(props: SettingsDialogProps) {
12951292
12961293 { /* Vim Mode Toggle */ }
12971294 < div >
1298- < Text as = "h4 " size = "sm" weight = "medium" style = { { "margin-bottom" : "12px" , color : "var(--jb-text-body-color)" } } > Vim Mode</ Text >
1295+ < Text as = "h3 " size = "sm" weight = "medium" style = { { "margin-bottom" : "12px" , color : "var(--jb-text-body-color)" } } > Vim Mode</ Text >
12991296 < div style = { { position : "relative" } } >
13001297 < OptionCard
13011298 selected = { vim . enabled ( ) }
0 commit comments