Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

✨(frontend) allow parametrization of the transcrip document destination

lebaudantoine19f8c96e9dce
diff --git a/src/backend/meet/settings.py b/src/backend/meet/settings.py
index 5f7f6c1b..ca9c74d2 100755
--- a/src/backend/meet/settings.py
+++ b/src/backend/meet/settings.py
@@ -345,6 +345,9 @@ class Base(Configuration):
"manifest_link": values.Value(
None, environ_name="FRONTEND_MANIFEST_LINK", environ_prefix=None
),
+ "transcription_destination": values.Value(
+ None, environ_name="FRONTEND_TRANSCRIPTION_DESTINATION", environ_prefix=None
+ ),
}
# Mail
diff --git a/src/frontend/src/api/useConfig.ts b/src/frontend/src/api/useConfig.ts
index 5c760092..f936023c 100644
--- a/src/frontend/src/api/useConfig.ts
+++ b/src/frontend/src/api/useConfig.ts
@@ -44,6 +44,7 @@ export interface ApiConfig {
enable_firefox_proxy_workaround: boolean
default_sources: string[]
}
+ transcription_destination?: string
}
const fetchConfig = (): Promise<ApiConfig> => {
diff --git a/src/frontend/src/features/recording/components/TranscriptSidePanel.tsx b/src/frontend/src/features/recording/components/TranscriptSidePanel.tsx
index 57900df5..b2d055e8 100644
--- a/src/frontend/src/features/recording/components/TranscriptSidePanel.tsx
+++ b/src/frontend/src/features/recording/components/TranscriptSidePanel.tsx
@@ -389,14 +389,20 @@ export const TranscriptSidePanel = () => {
})}
>
<Text variant="sm">
- {t('details.destination')}{' '}
- <A
- href="https://docs.numerique.gouv.fr"
- target="_blank"
- rel="noopener noreferrer"
- >
- docs.numerique.gouv.fr
- </A>
+ {data?.transcription_destination ? (
+ <>
+ {t('details.destination')}{' '}
+ <A
+ href={data.transcription_destination}
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ {data.transcription_destination.replace('https://', '')}
+ </A>
+ </>
+ ) : (
+ t('details.destinationUnknown')
+ )}
</Text>
</div>
</div>
diff --git a/src/frontend/src/locales/de/rooms.json b/src/frontend/src/locales/de/rooms.json
index 9503572f..f93458ae 100644
--- a/src/frontend/src/locales/de/rooms.json
+++ b/src/frontend/src/locales/de/rooms.json
@@ -316,6 +316,7 @@
"details": {
"receiver": "Das Transkript wird an den Organisator und die Mitorganisatoren gesendet.",
"destination": "Ein neues Dokument wird erstellt auf",
+ "destinationUnknown": "Ein neues Dokument wird erstellt",
"language": "Meeting-Sprachen: Französisch (fr)",
"recording": "Auch eine Aufzeichnung starten"
},
diff --git a/src/frontend/src/locales/en/rooms.json b/src/frontend/src/locales/en/rooms.json
index 3e0cb8d3..5eae0399 100644
--- a/src/frontend/src/locales/en/rooms.json
+++ b/src/frontend/src/locales/en/rooms.json
@@ -316,6 +316,7 @@
"details": {
"receiver": "The transcript will be sent to the host and co-hosts.",
"destination": "A new document will be created on",
+ "destinationUnknown": "A new document will be created",
"language": "Meeting language: French (fr)",
"recording": "Also start a recording"
},
diff --git a/src/frontend/src/locales/fr/rooms.json b/src/frontend/src/locales/fr/rooms.json
index e5126903..56e87e34 100644
--- a/src/frontend/src/locales/fr/rooms.json
+++ b/src/frontend/src/locales/fr/rooms.json
@@ -316,6 +316,7 @@
"details": {
"receiver": "La transcription sera envoyée à l'organisateur et aux coorganisateurs.",
"destination": "Un nouveau document sera créé sur",
+ "destinationUnknown": "Un nouveau document sera créé",
"language": "Langues de la réunion : Français (fr)",
"recording": "Démarrer aussi un enregistrement"
},
diff --git a/src/frontend/src/locales/nl/rooms.json b/src/frontend/src/locales/nl/rooms.json
index f44ccd99..99bbaaca 100644
--- a/src/frontend/src/locales/nl/rooms.json
+++ b/src/frontend/src/locales/nl/rooms.json
@@ -316,6 +316,7 @@
"details": {
"receiver": "Het transcript wordt verzonden naar de organisator en medeorganisatoren.",
"destination": "Er wordt een nieuw document aangemaakt op",
+ "destinationUnknown": "Een nieuw document wordt aangemaakt",
"language": "Vergadertalen: Frans (fr)",
"recording": "Start ook een opname"
},
diff --git a/src/helm/env.d/dev-keycloak/values.meet.yaml.gotmpl b/src/helm/env.d/dev-keycloak/values.meet.yaml.gotmpl
index 12079fa3..71b5eba0 100644
--- a/src/helm/env.d/dev-keycloak/values.meet.yaml.gotmpl
+++ b/src/helm/env.d/dev-keycloak/values.meet.yaml.gotmpl
@@ -57,6 +57,7 @@ backend:
FRONTEND_FEEDBACK: "{'url': 'https://grist.numerique.gouv.fr/o/docs/cbMv4G7pLY3Z/USER-RESEARCH-or-LA-SUITE/f/26'}"
FRONTEND_MANIFEST_LINK: "https://docs.numerique.gouv.fr/docs/1ef86abf-f7e0-46ce-b6c7-8be8b8af4c3d/"
FRONTEND_IDLE_DISCONNECT_WARNING_DELAY: 9000
+ FRONTEND_TRANSCRIPTION_DESTINATION: "https://docs.numerique.gouv.fr"
AWS_S3_ENDPOINT_URL: http://minio.meet.svc.cluster.local:9000
AWS_S3_ACCESS_KEY_ID: meet
AWS_S3_SECRET_ACCESS_KEY: password