diff --git a/www/app/styles/globals.scss b/www/app/styles/globals.scss index c24395c8..90f54fe5 100644 --- a/www/app/styles/globals.scss +++ b/www/app/styles/globals.scss @@ -15,8 +15,15 @@ body { } .temp-transcription { - background: beige; + background: rgb(151 190 255); border-radius: 5px; + border: solid 1px #808080; + margin: 1em 0; +} + +.temp-transcription h2 { + font-weight: bold; + font-size: 130%; } .Dropdown-placeholder { @@ -25,3 +32,9 @@ body { .Dropdown-arrow { top: 47% !important; } + +@media (max-width: 768px) { + .audio-source-dropdown .Dropdown-control { + max-width: 90px; + } +} diff --git a/www/app/transcripts/dashboard.tsx b/www/app/transcripts/dashboard.tsx index 1f0c28e1..b74082d0 100644 --- a/www/app/transcripts/dashboard.tsx +++ b/www/app/transcripts/dashboard.tsx @@ -56,14 +56,10 @@ export function Dashboard({ return ( <> -
+

Meeting Notes

-
-
Timestamp
-
Topic
-
-
{formatTime(item.timestamp)}
-
- {item.title} +
+ + [{formatTime(item.timestamp)}] + {" "} + {item.title} +

Final Summary

{props.text}

diff --git a/www/app/transcripts/recorder.tsx b/www/app/transcripts/recorder.tsx index 6467494f..eae79b18 100644 --- a/www/app/transcripts/recorder.tsx +++ b/www/app/transcripts/recorder.tsx @@ -235,7 +235,7 @@ export default function Recorder(props: RecorderProps) { return (
-
+
{ const [status, setStatus] = useState({ value: "disconnected" }); useEffect(() => { + document.onkeyup = (e) => { + if (e.key === "a" && process.env.NEXT_PUBLIC_ENV === "development") { + setTranscriptText("Lorem Ipsum"); + setTopics([ + { + id: "1", + timestamp: 10, + summary: "This is test topic 1", + title: "Topic 1: Introduction to Quantum Mechanics", + transcript: + "A brief overview of quantum mechanics and its principles.", + }, + { + id: "2", + timestamp: 20, + summary: "This is test topic 2", + title: "Topic 2: Machine Learning Algorithms", + transcript: + "Understanding the different types of machine learning algorithms.", + }, + { + id: "3", + timestamp: 30, + summary: "This is test topic 3", + title: "Topic 3: Mental Health Awareness", + transcript: "Ways to improve mental health and reduce stigma.", + }, + { + id: "4", + timestamp: 40, + summary: "This is test topic 4", + title: "Topic 4: Basics of Productivity", + transcript: "Tips and tricks to increase daily productivity.", + }, + { + id: "5", + timestamp: 50, + summary: "This is test topic 5", + title: "Topic 5: Future of Aviation", + transcript: + "Exploring the advancements and possibilities in aviation.", + }, + ]); + + setFinalSummary({ summary: "This is the final summary" }); + } + }; + if (!transcriptId) return; const url = `${process.env.NEXT_PUBLIC_WEBSOCKET_URL}/v1/transcripts/${transcriptId}/events`; @@ -32,7 +80,9 @@ export const useWebSockets = (transcriptId: string | null): UseWebSockets => { switch (message.event) { case "TRANSCRIPT": if (message.data.text) { - setTranscriptText(message.data.text.trim()); + setTranscriptText( + (message.data.translation ?? message.data.text ?? "").trim(), + ); console.debug("TRANSCRIPT event:", message.data); } break;