diff --git a/www/app/layout.tsx b/www/app/layout.tsx index 5747c4dc..ff35ff03 100644 --- a/www/app/layout.tsx +++ b/www/app/layout.tsx @@ -67,7 +67,7 @@ export default function RootLayout({ children }) {
{/* Logo on the left */} diff --git a/www/app/transcripts/[transcriptId]/page.tsx b/www/app/transcripts/[transcriptId]/page.tsx index 70ac2756..74fede74 100644 --- a/www/app/transcripts/[transcriptId]/page.tsx +++ b/www/app/transcripts/[transcriptId]/page.tsx @@ -35,7 +35,12 @@ export default function TranscriptDetails(details: TranscriptDetails) { ); } - const fullTranscript = topics.topics?.map(topic => topic.transcript).join('\n\n').replace(/ +/g, ' ').trim() || ''; + const fullTranscript = + topics.topics + ?.map((topic) => topic.transcript) + .join("\n\n") + .replace(/ +/g, " ") + .trim() || ""; return ( <> @@ -58,10 +63,13 @@ export default function TranscriptDetails(details: TranscriptDetails) { useActiveTopic={useActiveTopic} autoscroll={false} /> -
+
{transcript?.response?.longSummary && ( - + )}
@@ -73,7 +81,7 @@ export default function TranscriptDetails(details: TranscriptDetails) { size={98} />
-
+
diff --git a/www/app/transcripts/audioInputsDropdown.tsx b/www/app/transcripts/audioInputsDropdown.tsx index 7772358b..56204286 100644 --- a/www/app/transcripts/audioInputsDropdown.tsx +++ b/www/app/transcripts/audioInputsDropdown.tsx @@ -6,19 +6,9 @@ const AudioInputsDropdown: React.FC<{ audioDevices: Option[]; disabled: boolean; hide: () => void; + deviceId: string; setDeviceId: React.Dispatch>; }> = (props) => { - const [ddOptions, setDdOptions] = useState([]); - - useEffect(() => { - if (props.audioDevices) { - setDdOptions(props.audioDevices); - props.setDeviceId( - props.audioDevices.length > 0 ? props.audioDevices[0].value : null, - ); - } - }, [props.audioDevices]); - const handleDropdownChange = (option: Option) => { props.setDeviceId(option.value); props.hide(); @@ -26,9 +16,9 @@ const AudioInputsDropdown: React.FC<{ return ( diff --git a/www/app/transcripts/finalSummary.tsx b/www/app/transcripts/finalSummary.tsx index d3fb4e3d..ddb3bee3 100644 --- a/www/app/transcripts/finalSummary.tsx +++ b/www/app/transcripts/finalSummary.tsx @@ -34,29 +34,31 @@ export default function FinalSummary(props: FinalSummaryProps) { return (
-
-

Final Summary

-
- - +
+

+ Final Summary +

+
+ +
diff --git a/www/app/transcripts/recorder.tsx b/www/app/transcripts/recorder.tsx index d43f7d5b..ed86a73f 100644 --- a/www/app/transcripts/recorder.tsx +++ b/www/app/transcripts/recorder.tsx @@ -110,8 +110,7 @@ export default function Recorder(props: RecorderProps) { : undefined, }); - if (!props.transcriptId) - { + if (!props.transcriptId) { const _wshack: any = _wavesurfer; _wshack.renderer.renderSingleCanvas = () => {}; } @@ -280,7 +279,7 @@ export default function Recorder(props: RecorderProps) { useEffect(() => { if (props.audioDevices && props.audioDevices.length > 0) { - setDeviceId[props.audioDevices[0].value]; + setDeviceId(props.audioDevices[0].value); } }, [props.audioDevices]); @@ -348,7 +347,7 @@ export default function Recorder(props: RecorderProps) { > {isRecording ? "Stop" : "Record"} - {props.audioDevices && props.audioDevices?.length > 0 && ( + {props.audioDevices && props.audioDevices?.length > 0 && deviceId && ( <>
diff --git a/www/app/transcripts/shareLink.tsx b/www/app/transcripts/shareLink.tsx index d5166d47..04f348bc 100644 --- a/www/app/transcripts/shareLink.tsx +++ b/www/app/transcripts/shareLink.tsx @@ -39,7 +39,7 @@ const ShareLink = () => { value={currentUrl} ref={inputRef} onChange={() => {}} - className="border rounded-lg md:rounded-xl p-2 flex-grow mr-2 text-sm bg-slate-100 outline-slate-400" + className="border rounded-lg md:rounded-xl p-2 flex-grow flex-shrink overflow-auto mr-2 text-sm bg-slate-100 outline-slate-400" />