From 018eec8a460f38bab79990cc93ee0b73f6ff9c11 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Fri, 6 Jun 2025 21:57:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(frontend)=20make=20app=20title=20c?= =?UTF-8?q?ustomizable=20with=20env=20variable=20override?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace default "visio" with "LaSuite Meet" and allow env variable customization. Default Docker image uses "LaSuite Meet", but deployments can override with custom values by setting env vars and rebuilding. --- compose.yml | 1 + src/frontend/.env.development | 1 + src/frontend/.env.production | 1 + src/frontend/index.html | 2 +- src/frontend/src/features/sdk/routes/CreateMeetingButton.tsx | 2 +- src/frontend/src/vite-env.d.ts | 1 + src/helm/env.d/dev-keycloak/values.meet.yaml.gotmpl | 1 + src/helm/env.d/dev/values.meet.yaml.gotmpl | 1 + 8 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/frontend/.env.production diff --git a/compose.yml b/compose.yml index 5afc394d..9251a620 100644 --- a/compose.yml +++ b/compose.yml @@ -138,6 +138,7 @@ services: target: frontend-production args: VITE_API_BASE_URL: "http://localhost:8071" + VITE_APP_TITLE: "LaSuite Meet" image: meet:frontend-development ports: - "3000:8080" diff --git a/src/frontend/.env.development b/src/frontend/.env.development index a22395f9..5e821a69 100644 --- a/src/frontend/.env.development +++ b/src/frontend/.env.development @@ -1 +1,2 @@ VITE_API_BASE_URL=http://localhost:8071/ +VITE_APP_TITLE=LaSuite Meet diff --git a/src/frontend/.env.production b/src/frontend/.env.production new file mode 100644 index 00000000..0bc3e825 --- /dev/null +++ b/src/frontend/.env.production @@ -0,0 +1 @@ +VITE_APP_TITLE=LaSuite Meet diff --git a/src/frontend/index.html b/src/frontend/index.html index ae0159c7..0e8c0d6b 100644 --- a/src/frontend/index.html +++ b/src/frontend/index.html @@ -4,7 +4,7 @@ - Visio + %VITE_APP_TITLE%
diff --git a/src/frontend/src/features/sdk/routes/CreateMeetingButton.tsx b/src/frontend/src/features/sdk/routes/CreateMeetingButton.tsx index 96fe65de..3c1c29c9 100644 --- a/src/frontend/src/features/sdk/routes/CreateMeetingButton.tsx +++ b/src/frontend/src/features/sdk/routes/CreateMeetingButton.tsx @@ -160,7 +160,7 @@ export const CreateMeetingButton = () => { })} > {/* - * Using popup for Visio to access session cookies (blocked in iframes). + * Using popup for La Suite Meet to access session cookies (blocked in iframes). * If authenticated: Popup creates room and returns data directly. * If not: Popup sends callbackId, redirects to login, then backend * associates new room with callbackId after authentication. diff --git a/src/frontend/src/vite-env.d.ts b/src/frontend/src/vite-env.d.ts index 8e1606d5..c7205443 100644 --- a/src/frontend/src/vite-env.d.ts +++ b/src/frontend/src/vite-env.d.ts @@ -1,6 +1,7 @@ /// interface ImportMetaEnv { readonly VITE_API_BASE_URL: string + readonly VITE_APP_TITLE: string } interface ImportMeta { 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 01ea7505..fd1b75f7 100644 --- a/src/helm/env.d/dev-keycloak/values.meet.yaml.gotmpl +++ b/src/helm/env.d/dev-keycloak/values.meet.yaml.gotmpl @@ -127,6 +127,7 @@ backend: frontend: envVars: + VITE_APP_TITLE: "LaSuite Meet" VITE_PORT: 8080 VITE_HOST: 0.0.0.0 VITE_API_BASE_URL: https://meet.127.0.0.1.nip.io/ diff --git a/src/helm/env.d/dev/values.meet.yaml.gotmpl b/src/helm/env.d/dev/values.meet.yaml.gotmpl index 4d9912c0..f86ff40c 100644 --- a/src/helm/env.d/dev/values.meet.yaml.gotmpl +++ b/src/helm/env.d/dev/values.meet.yaml.gotmpl @@ -153,6 +153,7 @@ backend: frontend: envVars: + VITE_APP_TITLE: "LaSuite Meet" VITE_PORT: 8080 VITE_HOST: 0.0.0.0 VITE_API_BASE_URL: https://meet.127.0.0.1.nip.io/