Skip to content

Commit

Permalink
feat(table-mode): add "Geographic Trimming (Binding Constraints)" tab…
Browse files Browse the repository at this point in the history
…le in "CONFIGURATION" tab
  • Loading branch information
laurent-laporte-pro committed Apr 22, 2024
1 parent 862b5fa commit 3cbf7b3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions webapp/public/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions webapp/public/locales/fr/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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") },

Check failure on line 34 in webapp/src/components/App/Singlestudy/explore/Configuration/index.tsx

View workflow job for this annotation

GitHub Actions / npm-test (ubuntu-20.04)

Replace `·id:·8,·name:·t("study.configuration.geographicTrimmingBindingConstraints")` with `⏎··········id:·8,⏎··········name:·t("study.configuration.geographicTrimmingBindingConstraints"),⏎·······`
].filter(Boolean),
[study.version, t],
);
Expand Down Expand Up @@ -96,6 +97,16 @@ function Configuration() {
/>
),
],
[
R.equals(8),
() => (
<TableMode
studyId={study.id}
type="binding-constraints"
columns={["filterYearByYear", "filterSynthesis"]}
/>
),
],
])(tabList[currentTabIndex].id)}
</Paper>
}
Expand Down

0 comments on commit 3cbf7b3

Please sign in to comment.