From 3c000c37afd33381276851b3706da88ff62abbda Mon Sep 17 00:00:00 2001 From: Manus Date: Sat, 24 Oct 2026 13:44:44 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20r=C3=A9f=C3=A9rencer=20les=20portails=20?= =?UTF-8?q?nomm=C3=A9s=20par=20entit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/config.js | 6 +++--- frontend/src/pages/DocumentationPage.jsx | 8 ++++---- frontend/src/pages/InventairePage.jsx | 4 ++-- .../test/applications-ui-contract.test.js | 18 ++++++++++++++++++ src/frontend/src/pages/DocumentationPage.jsx | 8 ++++---- src/frontend/src/pages/InventairePage.jsx | 4 ++-- 6 files changed, 33 insertions(+), 15 deletions(-) diff --git a/backend/src/config.js b/backend/src/config.js index 257a6e7..4d89f0d 100644 --- a/backend/src/config.js +++ b/backend/src/config.js @@ -201,11 +201,11 @@ module.exports = { giteaRepo: 'portail-santinova', giteaOwner: 'manus-admin', urls: { - recette: 'https://portail.recette.santinova-soft.org', - prod: 'https://portail.santinova-soft.org', + recette: 'https://portail-santinova.recette.santinova-soft.org', + prod: 'https://portail-santinova.santinova-soft.org', }, containerName: 'portail-santinova', - healthCheckUrl: 'https://portail.recette.santinova-soft.org', + healthCheckUrl: 'https://portail-santinova.recette.santinova-soft.org', port: 3000, category: 'INFRA', status: 'production', diff --git a/frontend/src/pages/DocumentationPage.jsx b/frontend/src/pages/DocumentationPage.jsx index 4e59256..2f15be3 100644 --- a/frontend/src/pages/DocumentationPage.jsx +++ b/frontend/src/pages/DocumentationPage.jsx @@ -53,9 +53,9 @@ const RECETTE = { icon: Globe, color: 'teal', name: 'Portail Applicatif', - url: 'portail.recette.santinova-soft.org', + url: 'portail-santinova.recette.santinova-soft.org', desc: 'Vitrine centralisée des applications', - href: 'https://portail.recette.santinova-soft.org', + href: 'https://portail-santinova.recette.santinova-soft.org', }, { icon: Shield, @@ -141,9 +141,9 @@ const PRODUCTION = { icon: Globe, color: 'teal', name: 'Portail Applicatif', - url: 'portail.santinova-soft.org', + url: 'portail-santinova.santinova-soft.org', desc: 'Vitrine applicative production', - href: 'https://portail.santinova-soft.org', + href: 'https://portail-santinova.santinova-soft.org', }, { icon: Shield, diff --git a/frontend/src/pages/InventairePage.jsx b/frontend/src/pages/InventairePage.jsx index 10be926..45167c4 100644 --- a/frontend/src/pages/InventairePage.jsx +++ b/frontend/src/pages/InventairePage.jsx @@ -84,8 +84,8 @@ const APPS_CONFIG = [ id: 'portail-santinova', name: 'Portail Applicatif', repoName: 'portail-santinova', - urlRecette: 'https://portail.recette.santinova-soft.org', - urlProd: 'https://portail.santinova-soft.org', + urlRecette: 'https://portail-santinova.recette.santinova-soft.org', + urlProd: 'https://portail-santinova.santinova-soft.org', }, { id: 'manus-dashboard', diff --git a/src/backend/test/applications-ui-contract.test.js b/src/backend/test/applications-ui-contract.test.js index 694d8cd..1f9c30b 100644 --- a/src/backend/test/applications-ui-contract.test.js +++ b/src/backend/test/applications-ui-contract.test.js @@ -10,6 +10,19 @@ const appSorting = fs.readFileSync( path.resolve(__dirname, '../../frontend/src/utils/appSorting.js'), 'utf8' ); +const historicalRecetteHost = ['portail', 'recette', 'santinova-soft', 'org'].join('.'); +const historicalProductionHost = ['portail', 'santinova-soft', 'org'].join('.'); +const portalMetadataSources = [ + '../../frontend/src/pages/DocumentationPage.jsx', + '../../frontend/src/pages/InventairePage.jsx', + '../../../frontend/src/pages/DocumentationPage.jsx', + '../../../frontend/src/pages/InventairePage.jsx', + '../../../backend/src/config.js', + '../../frontend/public/infra_schema_v3.svg', + '../../frontend/public/infra_schema_v4.svg', +].map((relativePath) => path.resolve(__dirname, relativePath)) + .filter((filePath) => fs.existsSync(filePath)) + .map((filePath) => fs.readFileSync(filePath, 'utf8')); assert.match(appCard, /const isInfra = app\.category === 'INFRA';/); assert.doesNotMatch(appCard, /\['portail-santinova', 'manus-dashboard'\]\.includes\(app\.id\)/); @@ -29,4 +42,9 @@ assert.match(appCard, /text-orange-300/); assert.match(appCard, /Configuration active indisponible/); assert.match(appSorting, /app\?\.category === 'INFRA' \? 0 : 1/); +for (const source of portalMetadataSources) { + assert.equal(source.includes(historicalRecetteHost), false, 'le dashboard ne doit plus référencer le portail historique recette'); + assert.equal(source.includes(historicalProductionHost), false, 'le dashboard ne doit plus référencer le portail historique production'); +} + console.log('applications-ui-contract: OK'); diff --git a/src/frontend/src/pages/DocumentationPage.jsx b/src/frontend/src/pages/DocumentationPage.jsx index 33c64b2..b32a39a 100644 --- a/src/frontend/src/pages/DocumentationPage.jsx +++ b/src/frontend/src/pages/DocumentationPage.jsx @@ -63,9 +63,9 @@ const RECETTE = { icon: Globe, color: 'teal', name: 'Portail Applicatif', - url: 'portail.recette.santinova-soft.org', + url: 'portail-santinova.recette.santinova-soft.org', desc: 'Vitrine centralisée des applications', - href: 'https://portail.recette.santinova-soft.org', + href: 'https://portail-santinova.recette.santinova-soft.org', }, { icon: Shield, @@ -167,9 +167,9 @@ const PRODUCTION = { icon: Globe, color: 'teal', name: 'Portail Applicatif', - url: 'portail.santinova-soft.org', + url: 'portail-santinova.santinova-soft.org', desc: 'Vitrine applicative production', - href: 'https://portail.santinova-soft.org', + href: 'https://portail-santinova.santinova-soft.org', }, { icon: Shield, diff --git a/src/frontend/src/pages/InventairePage.jsx b/src/frontend/src/pages/InventairePage.jsx index be463b1..b0e51a1 100644 --- a/src/frontend/src/pages/InventairePage.jsx +++ b/src/frontend/src/pages/InventairePage.jsx @@ -84,8 +84,8 @@ const APPS_CONFIG = [ id: 'portail-santinova', name: 'Portail Applicatif', repoName: 'portail-santinova', - urlRecette: 'https://portail.recette.santinova-soft.org', - urlProd: 'https://portail.santinova-soft.org', + urlRecette: 'https://portail-santinova.recette.santinova-soft.org', + urlProd: 'https://portail-santinova.santinova-soft.org', }, { id: 'manus-dashboard',