Skip to content

Commit 39d1024

Browse files
committed
Merge branch 'feat/audio-03-recording-ui' of github.com:PostHog/Array into feat/audio-03-recording-ui
2 parents 34f4d88 + 77fcf5c commit 39d1024

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/renderer/components/command/CommandMenu.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@ export function CommandMenu({
9595
onOpenChange(false);
9696
};
9797

98+
const handleNavigateToRecordings = () => {
99+
const recordingsTab = tabs.find((tab) => tab.type === "recordings");
100+
if (recordingsTab) {
101+
setActiveTab(recordingsTab.id);
102+
} else {
103+
createTab({
104+
type: "recordings",
105+
title: "Recordings",
106+
});
107+
}
108+
onOpenChange(false);
109+
};
110+
98111
const handleCreateTask = () => {
99112
onOpenChange(false);
100113
onCreateTask?.();
@@ -170,6 +183,14 @@ export function CommandMenu({
170183
<MicrophoneIcon className="mr-3 h-4 w-4 text-gray-11" />
171184
<Text size="2">Go to recordings</Text>
172185
</Command.Item>
186+
187+
<Command.Item
188+
value="Go to recordings"
189+
onSelect={handleNavigateToRecordings}
190+
>
191+
<MicrophoneIcon className="mr-3 h-4 w-4 text-gray-11" />
192+
<Text size="2">Go to recordings</Text>
193+
</Command.Item>
173194
</Command.Group>
174195

175196
{tasks.length > 0 && (

0 commit comments

Comments
 (0)