(frontend) allow parametrization of the transcrip document destination

Not all self-hosted instances will configure this setting, so a default text is
shown when the destination is unknown.

This is important to let users quickly click the link and understand which
platform is used to handle the transcription documents.
This commit is contained in:
lebaudantoine
2025-12-30 23:07:47 +01:00
committed by aleb_the_flash
parent 857b4bd1f1
commit 19f8c96e9d
8 changed files with 23 additions and 8 deletions

View File

@@ -345,6 +345,9 @@ class Base(Configuration):
"manifest_link": values.Value( "manifest_link": values.Value(
None, environ_name="FRONTEND_MANIFEST_LINK", environ_prefix=None None, environ_name="FRONTEND_MANIFEST_LINK", environ_prefix=None
), ),
"transcription_destination": values.Value(
None, environ_name="FRONTEND_TRANSCRIPTION_DESTINATION", environ_prefix=None
),
} }
# Mail # Mail

View File

@@ -44,6 +44,7 @@ export interface ApiConfig {
enable_firefox_proxy_workaround: boolean enable_firefox_proxy_workaround: boolean
default_sources: string[] default_sources: string[]
} }
transcription_destination?: string
} }
const fetchConfig = (): Promise<ApiConfig> => { const fetchConfig = (): Promise<ApiConfig> => {

View File

@@ -389,14 +389,20 @@ export const TranscriptSidePanel = () => {
})} })}
> >
<Text variant="sm"> <Text variant="sm">
{t('details.destination')}{' '} {data?.transcription_destination ? (
<A <>
href="https://docs.numerique.gouv.fr" {t('details.destination')}{' '}
target="_blank" <A
rel="noopener noreferrer" href={data.transcription_destination}
> target="_blank"
docs.numerique.gouv.fr rel="noopener noreferrer"
</A> >
{data.transcription_destination.replace('https://', '')}
</A>
</>
) : (
t('details.destinationUnknown')
)}
</Text> </Text>
</div> </div>
</div> </div>

View File

@@ -316,6 +316,7 @@
"details": { "details": {
"receiver": "Das Transkript wird an den Organisator und die Mitorganisatoren gesendet.", "receiver": "Das Transkript wird an den Organisator und die Mitorganisatoren gesendet.",
"destination": "Ein neues Dokument wird erstellt auf", "destination": "Ein neues Dokument wird erstellt auf",
"destinationUnknown": "Ein neues Dokument wird erstellt",
"language": "Meeting-Sprachen: Französisch (fr)", "language": "Meeting-Sprachen: Französisch (fr)",
"recording": "Auch eine Aufzeichnung starten" "recording": "Auch eine Aufzeichnung starten"
}, },

View File

@@ -316,6 +316,7 @@
"details": { "details": {
"receiver": "The transcript will be sent to the host and co-hosts.", "receiver": "The transcript will be sent to the host and co-hosts.",
"destination": "A new document will be created on", "destination": "A new document will be created on",
"destinationUnknown": "A new document will be created",
"language": "Meeting language: French (fr)", "language": "Meeting language: French (fr)",
"recording": "Also start a recording" "recording": "Also start a recording"
}, },

View File

@@ -316,6 +316,7 @@
"details": { "details": {
"receiver": "La transcription sera envoyée à l'organisateur et aux coorganisateurs.", "receiver": "La transcription sera envoyée à l'organisateur et aux coorganisateurs.",
"destination": "Un nouveau document sera créé sur", "destination": "Un nouveau document sera créé sur",
"destinationUnknown": "Un nouveau document sera créé",
"language": "Langues de la réunion : Français (fr)", "language": "Langues de la réunion : Français (fr)",
"recording": "Démarrer aussi un enregistrement" "recording": "Démarrer aussi un enregistrement"
}, },

View File

@@ -316,6 +316,7 @@
"details": { "details": {
"receiver": "Het transcript wordt verzonden naar de organisator en medeorganisatoren.", "receiver": "Het transcript wordt verzonden naar de organisator en medeorganisatoren.",
"destination": "Er wordt een nieuw document aangemaakt op", "destination": "Er wordt een nieuw document aangemaakt op",
"destinationUnknown": "Een nieuw document wordt aangemaakt",
"language": "Vergadertalen: Frans (fr)", "language": "Vergadertalen: Frans (fr)",
"recording": "Start ook een opname" "recording": "Start ook een opname"
}, },

View File

@@ -57,6 +57,7 @@ backend:
FRONTEND_FEEDBACK: "{'url': 'https://grist.numerique.gouv.fr/o/docs/cbMv4G7pLY3Z/USER-RESEARCH-or-LA-SUITE/f/26'}" 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_MANIFEST_LINK: "https://docs.numerique.gouv.fr/docs/1ef86abf-f7e0-46ce-b6c7-8be8b8af4c3d/"
FRONTEND_IDLE_DISCONNECT_WARNING_DELAY: 9000 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_ENDPOINT_URL: http://minio.meet.svc.cluster.local:9000
AWS_S3_ACCESS_KEY_ID: meet AWS_S3_ACCESS_KEY_ID: meet
AWS_S3_SECRET_ACCESS_KEY: password AWS_S3_SECRET_ACCESS_KEY: password