diff --git a/www/app/components/dashboard.js b/www/app/components/dashboard.js
index 9c73f6f3..f20f7427 100644
--- a/www/app/components/dashboard.js
+++ b/www/app/components/dashboard.js
@@ -1,18 +1,16 @@
-import { Mulberry32 } from "../utils.js";
import React, { useState, useEffect } from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
faChevronRight,
faChevronDown,
+ faLinkSlash,
} from "@fortawesome/free-solid-svg-icons";
export function Dashboard({
- isRecording,
- onRecord,
transcriptionText,
finalSummary,
topics,
- stream,
+ disconnected,
}) {
const [openIndex, setOpenIndex] = useState(null);
const [autoscrollEnabled, setAutoscrollEnabled] = useState(true);
@@ -98,6 +96,15 @@ export function Dashboard({
)}
+ {disconnected && (
+
+ )}
+
diff --git a/www/app/components/record.js b/www/app/components/record.js
index 0ad807c0..445f7e50 100644
--- a/www/app/components/record.js
+++ b/www/app/components/record.js
@@ -186,7 +186,7 @@ export default function Recorder(props) {
-
+
{isRecording && (
)}
diff --git a/www/app/page.js b/www/app/page.js
index 128d8703..56119bb1 100644
--- a/www/app/page.js
+++ b/www/app/page.js
@@ -1,5 +1,5 @@
"use client";
-import React, { useState } from "react";
+import React, { useEffect, useState } from "react";
import Recorder from "./components/record.js";
import { Dashboard } from "./components/dashboard.js";
import useWebRTC from "./components/webrtc.js";
@@ -7,6 +7,17 @@ import "../public/button.css";
const App = () => {
const [stream, setStream] = useState(null);
+ const [disconnected, setDisconnected] = useState(false);
+
+ useEffect(() => {
+ if (process.env.NEXT_PUBLIC_ENV === "development") {
+ document.onkeyup = (e) => {
+ if (e.key === "d") {
+ setDisconnected((prev) => !prev);
+ }
+ };
+ }
+ }, []);
// This is where you'd send the stream and receive the data from the server.
// transcription, summary, etc
@@ -28,6 +39,7 @@ const App = () => {
finalSummary={serverData.finalSummary}
topics={serverData.topics ?? []}
stream={stream}
+ disconnected={disconnected}
/>
);