From 3cbf7b37b36361cc26c9c6a504423ec30424209f Mon Sep 17 00:00:00 2001 From: Laurent LAPORTE Date: Mon, 22 Apr 2024 20:11:05 +0200 Subject: [PATCH] feat(table-mode): add "Geographic Trimming (Binding Constraints)" table in "CONFIGURATION" tab --- webapp/public/locales/en/main.json | 1 + webapp/public/locales/fr/main.json | 1 + .../App/Singlestudy/explore/Configuration/index.tsx | 11 +++++++++++ 3 files changed, 13 insertions(+) diff --git a/webapp/public/locales/en/main.json b/webapp/public/locales/en/main.json index f3d8e241a9..a8229c38f7 100644 --- a/webapp/public/locales/en/main.json +++ b/webapp/public/locales/en/main.json @@ -391,6 +391,7 @@ "study.configuration.economicOpt": "Economic Opt.", "study.configuration.geographicTrimmingAreas": "Geographic Trimming (areas)", "study.configuration.geographicTrimmingLinks": "Geographic Trimming (links)", + "study.configuration.geographicTrimmingBindingConstraints": "Geographic Trimming (Binding Constraints)", "study.modelization.properties": "Properties", "study.modelization.properties.energyCost": "Energy cost (€/Wh)", "study.modelization.properties.unsupplied": "Unsupplied", diff --git a/webapp/public/locales/fr/main.json b/webapp/public/locales/fr/main.json index bec0e911cc..4f67d17420 100644 --- a/webapp/public/locales/fr/main.json +++ b/webapp/public/locales/fr/main.json @@ -391,6 +391,7 @@ "study.configuration.economicOpt": "Options économiques", "study.configuration.geographicTrimmingAreas": "Filtre géographique (zones)", "study.configuration.geographicTrimmingLinks": "Filtre géographique (liens)", + "study.configuration.geographicTrimmingBindingConstraints": "Filtre géographique (Contraintes Couplantes)", "study.modelization.properties": "Propriétés", "study.modelization.properties.energyCost": "Coût de l'énergie", "study.modelization.properties.unsupplied": "Non distribuée", diff --git a/webapp/src/components/App/Singlestudy/explore/Configuration/index.tsx b/webapp/src/components/App/Singlestudy/explore/Configuration/index.tsx index cfc8f21993..9afe3aa7a7 100644 --- a/webapp/src/components/App/Singlestudy/explore/Configuration/index.tsx +++ b/webapp/src/components/App/Singlestudy/explore/Configuration/index.tsx @@ -31,6 +31,7 @@ function Configuration() { { id: 5, name: t("study.configuration.economicOpt") }, { id: 6, name: t("study.configuration.geographicTrimmingAreas") }, { id: 7, name: t("study.configuration.geographicTrimmingLinks") }, + { id: 8, name: t("study.configuration.geographicTrimmingBindingConstraints") }, ].filter(Boolean), [study.version, t], ); @@ -96,6 +97,16 @@ function Configuration() { /> ), ], + [ + R.equals(8), + () => ( + + ), + ], ])(tabList[currentTabIndex].id)} }