better-codex 0.1.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,13 @@
1
1
  import { useState } from 'react'
2
2
  import { Dialog, Button, Icons } from '../ui'
3
+ import { CodexSettings } from './codex-settings'
3
4
 
4
5
  interface SettingsDialogProps {
5
6
  open: boolean
6
7
  onClose: () => void
7
8
  }
8
9
 
9
- type SettingsTab = 'general' | 'accounts' | 'appearance' | 'shortcuts'
10
+ type SettingsTab = 'general' | 'accounts' | 'codex' | 'appearance' | 'shortcuts'
10
11
 
11
12
  export function SettingsDialog({ open, onClose }: SettingsDialogProps) {
12
13
  const [activeTab, setActiveTab] = useState<SettingsTab>('general')
@@ -29,6 +30,12 @@ export function SettingsDialog({ open, onClose }: SettingsDialogProps) {
29
30
  active={activeTab === 'accounts'}
30
31
  onClick={() => setActiveTab('accounts')}
31
32
  />
33
+ <SettingsNavItem
34
+ icon={<Icons.Terminal className="w-4 h-4" />}
35
+ label="Codex"
36
+ active={activeTab === 'codex'}
37
+ onClick={() => setActiveTab('codex')}
38
+ />
32
39
  <SettingsNavItem
33
40
  icon={<Icons.Bolt className="w-4 h-4" />}
34
41
  label="Appearance"
@@ -52,6 +59,7 @@ export function SettingsDialog({ open, onClose }: SettingsDialogProps) {
52
59
  <div className="flex-1 overflow-y-auto">
53
60
  {activeTab === 'general' && <GeneralSettings />}
54
61
  {activeTab === 'accounts' && <AccountsSettings />}
62
+ {activeTab === 'codex' && <CodexSettings />}
55
63
  {activeTab === 'appearance' && <AppearanceSettings />}
56
64
  {activeTab === 'shortcuts' && <ShortcutsSettings />}
57
65
  </div>