From ac9ba0df623f9a783f791e3d7792de22cc87f613 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Fri, 4 Apr 2025 17:11:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A9(frontend)=20introduce=20transcript?= =?UTF-8?q?ion=20store?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce a dedicated store for transcription to better manage its status independently of meeting recording status. This lays the groundwork for future improvements, especially as we plan to support additional recording options beyond the current setup. This isn't perfect and still coupled with room recording status --- src/frontend/src/stores/transcription.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/frontend/src/stores/transcription.ts diff --git a/src/frontend/src/stores/transcription.ts b/src/frontend/src/stores/transcription.ts new file mode 100644 index 00000000..1b4b8caf --- /dev/null +++ b/src/frontend/src/stores/transcription.ts @@ -0,0 +1,16 @@ +import { proxy } from 'valtio' + +export enum TranscriptionStatus { + STARTING, + STARTED, + STOPPING, + STOPPED, +} + +type State = { + status: TranscriptionStatus +} + +export const transcriptionStore = proxy({ + status: TranscriptionStatus.STOPPED, +})