fix: référencer les portails nommés par entité
All checks were successful
Validation Dashboard / Tests backend et build frontend (push) Successful in 42s

This commit is contained in:
Manus
2026-10-24 13:44:44 +00:00
parent df1dd3d15b
commit 3c000c37af
6 changed files with 33 additions and 15 deletions

View File

@@ -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');

View File

@@ -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,

View File

@@ -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',