Skip to content

Commit 39b1f10

Browse files
committed
add stubs to fix import; add go to recordings on menu
1 parent cb49c82 commit 39b1f10

File tree

4 files changed

+44
-1
lines changed

4 files changed

+44
-1
lines changed

src/renderer/components/command/CommandMenu.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { MicrophoneIcon } from "@phosphor-icons/react";
12
import {
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 && (
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
}

src/renderer/features/recordings/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export { AudioPlayer } from "./components/AudioPlayer";
55
export { RecordingControls } from "./components/RecordingControls";
66
export { RecordingsView } from "./components/RecordingsView";
77
export { SettingsPanel } from "./components/SettingsPanel";
8-
export { TranscriptionSection } from "./components/TranscriptionSection";
98

109
// Hooks
1110
export { useAudioRecorder } from "./hooks/useAudioRecorder";

src/renderer/stores/authStore.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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) => {

0 commit comments

Comments
 (0)