From 62aa70b60612a309d0ccd735ac25ad8c57368f43 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 16 Feb 2026 12:10:19 +0000 Subject: [PATCH] feat: Voice chat in Mission Control with browser mic --- .../MissionControlDashboard.tsx | 8 +- components/mission-control/VoiceChat.tsx | 202 ++++++++++++++++++ 2 files changed, 209 insertions(+), 1 deletion(-) create mode 100644 components/mission-control/VoiceChat.tsx diff --git a/components/mission-control/MissionControlDashboard.tsx b/components/mission-control/MissionControlDashboard.tsx index 5dc8d6e..489e799 100644 --- a/components/mission-control/MissionControlDashboard.tsx +++ b/components/mission-control/MissionControlDashboard.tsx @@ -3,7 +3,8 @@ import { useState } from "react"; import { motion } from "framer-motion"; import { useMissionControl } from "@/lib/mission-control/store"; -import { Task, TaskStatus } from "@/lib/mission-control/types"; +import { TaskStatus } from "@/lib/mission-control/types"; +import VoiceChat from "./VoiceChat"; interface ProjectSummary { id: string; @@ -273,6 +274,11 @@ export default function MissionControlDashboard() { )} + {/* Voice Chat */} +
+ +
+ {/* Quick Actions */}
+
+ + {/* Messages */} +
+ {response && ( + +
+ 👁️ +
+
+

{response}

+
+
+ )} + + {isProcessing && ( +
+ Processing... +
+ )} +
+ + {/* Input */} +
+
+ setTranscript(e.target.value)} + onKeyPress={handleKeyPress} + placeholder="Or type a message..." + className="flex-1 bg-white/10 border border-white/20 rounded-lg px-3 py-2 text-sm text-white placeholder:text-white/40 focus:outline-none focus:border-brand-pink" + /> + +
+
+ + ); +}