From 46aaf7351d37b31f47ee7dbf3765bdf2e8b9bcb1 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Mon, 13 May 2024 16:19:48 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F(app-desk)=20adapt=20La=20Gau?= =?UTF-8?q?fre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adapt La Gaufre with the new configuration. --- src/frontend/apps/desk/package.json | 1 + .../src/features/header/ApplicationsMenu.tsx | 34 ------------------- .../apps/desk/src/features/header/Header.tsx | 4 +-- .../desk/src/features/header/LaGaufre.tsx | 15 ++++++++ .../apps/desk/src/pages/_document.tsx | 13 +------ .../e2e/__tests__/app-desk/header.spec.ts | 33 +++++++++++++++++- src/frontend/yarn.lock | 5 +++ 7 files changed, 56 insertions(+), 49 deletions(-) delete mode 100644 src/frontend/apps/desk/src/features/header/ApplicationsMenu.tsx create mode 100644 src/frontend/apps/desk/src/features/header/LaGaufre.tsx diff --git a/src/frontend/apps/desk/package.json b/src/frontend/apps/desk/package.json index 0ccba3b..bf0a02a 100644 --- a/src/frontend/apps/desk/package.json +++ b/src/frontend/apps/desk/package.json @@ -15,6 +15,7 @@ "test:watch": "jest --watch" }, "dependencies": { + "@gouvfr-lasuite/integration": "0.1.3", "@openfun/cunningham-react": "2.9.0", "@tanstack/react-query": "5.36.0", "i18next": "23.11.4", diff --git a/src/frontend/apps/desk/src/features/header/ApplicationsMenu.tsx b/src/frontend/apps/desk/src/features/header/ApplicationsMenu.tsx deleted file mode 100644 index b8a64fa..0000000 --- a/src/frontend/apps/desk/src/features/header/ApplicationsMenu.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import Script from 'next/script'; -import React from 'react'; - -/** - * ApplicationsMenu Component - * - * This component is a work in progress (WIP) and serves as a proof of concept (POC) to showcase a future advanced feature. - * The purpose of this component is to render an applications menu for La Suite, allowing users to switch between different La Suite apps seamlessly. - * To ensure synchronized content across applications, it utilizes an iframe hosted on Scalingo. - * - * This PoC has been created by @manuhabitela. - * - * It includes external CSS and JavaScript files for styling and functionality. - * - * Style has to be included as well: https://suite-numerique-gaufre.osc-fr1.scalingo.io/public/styles/gaufre-vanilla.css \ - * To respect next.js standards, the css is included using the `_document.ts` component. - * @see https://github.com/numerique-gouv/people/blob/main/src/frontend/apps/desk/src/pages/_document.tsx#L8 - */ -export const ApplicationsMenu = () => ( - <> -