File tree Expand file tree Collapse file tree 4 files changed +44
-1
lines changed
Expand file tree Collapse file tree 4 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 1+ import { MicrophoneIcon } from "@phosphor-icons/react" ;
12import {
23 ComponentInstanceIcon ,
34 FileTextIcon ,
@@ -98,6 +99,19 @@ export function CommandMenu({
9899 onOpenChange ( false ) ;
99100 } ;
100101
102+ const handleNavigateToRecordings = ( ) => {
103+ const recordingsTab = tabs . find ( ( tab ) => tab . type === "recordings" ) ;
104+ if ( recordingsTab ) {
105+ setActiveTab ( recordingsTab . id ) ;
106+ } else {
107+ createTab ( {
108+ type : "recordings" ,
109+ title : "Recordings" ,
110+ } ) ;
111+ }
112+ onOpenChange ( false ) ;
113+ } ;
114+
101115 const handleCreateTask = ( ) => {
102116 onOpenChange ( false ) ;
103117 onCreateTask ?.( ) ;
@@ -173,6 +187,14 @@ export function CommandMenu({
173187 < ComponentInstanceIcon className = "mr-3 h-4 w-4 text-gray-11" />
174188 < Text size = "2" > Go to workflows</ Text >
175189 </ Command . Item >
190+
191+ < Command . Item
192+ value = "Go to recordings"
193+ onSelect = { handleNavigateToRecordings }
194+ >
195+ < MicrophoneIcon className = "mr-3 h-4 w-4 text-gray-11" />
196+ < Text size = "2" > Go to recordings</ Text >
197+ </ Command . Item >
176198 </ Command . Group >
177199
178200 { tasks . length > 0 && (
Original file line number Diff line number Diff line change 1+ // Implementation in the next PR
2+
3+ import type { RecordingMode } from "@/renderer/features/recordings/stores/recordingStore" ;
4+
5+ interface SettingsPanelProps {
6+ open : boolean ;
7+ onClose : ( ) => void ;
8+ recordingMode : RecordingMode ;
9+ availableDevices : MediaDeviceInfo [ ] ;
10+ selectedMicId : string ;
11+ onRecordingModeChange : ( mode : RecordingMode ) => void ;
12+ onMicrophoneChange : ( deviceId : string ) => void ;
13+ }
14+
15+ export function SettingsPanel ( _props : SettingsPanelProps ) {
16+ return < div > SettingsPanel</ div > ;
17+ }
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ export { AudioPlayer } from "./components/AudioPlayer";
55export { RecordingControls } from "./components/RecordingControls" ;
66export { RecordingsView } from "./components/RecordingsView" ;
77export { SettingsPanel } from "./components/SettingsPanel" ;
8- export { TranscriptionSection } from "./components/TranscriptionSection" ;
98
109// Hooks
1110export { useAudioRecorder } from "./hooks/useAudioRecorder" ;
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ interface AuthState {
88 encryptedKey : string | null ;
99 isAuthenticated : boolean ;
1010 client : PostHogAPIClient | null ;
11+ openaiApiKey : string | null ;
12+ encryptedOpenaiKey : string | null ;
1113
1214 setCredentials : ( apiKey : string , apiHost : string ) => Promise < void > ;
1315 checkAuth : ( ) => Promise < boolean > ;
@@ -21,6 +23,9 @@ export const useAuthStore = create<AuthState>()(
2123 apiHost : "https://us.posthog.com" ,
2224 encryptedKey : null ,
2325 isAuthenticated : false ,
26+ openaiApiKey : null ,
27+ encryptedOpenaiKey : null ,
28+
2429 client : null ,
2530
2631 setCredentials : async ( apiKey : string , apiHost : string ) => {
You can’t perform that action at this time.
0 commit comments