Skip to content

Commit

Permalink
Revert "refactor(ui): update clusters group names to lowercase (#2271)"
Browse files Browse the repository at this point in the history
This reverts commit 961df68.
  • Loading branch information
sylvlecl committed Jan 6, 2025
1 parent 1d83b02 commit 7e77416
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ function Fields() {
name="group"
control={control}
options={RENEWABLE_GROUPS}
startCaseLabel={false}
sx={{
alignSelf: "center",
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function Renewables() {
config={{ defaultValues }}
onSubmit={handleSubmit}
enableUndoRedo
sx={{ height: "50%" }}
>
<Fields />
</Form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ import type { ClusterWithCapacity } from "../common/clustersUtils";
////////////////////////////////////////////////////////////////

export const RENEWABLE_GROUPS = [
"wind onshore",
"wind offshore",
"solar thermal",
"solar pv",
"solar rooftop",
"other res 1",
"other res 2",
"other res 3",
"other res 4",
"Wind Onshore",
"Wind Offshore",
"Solar Thermal",
"Solar PV",
"Solar Rooftop",
"Other RES 1",
"Other RES 2",
"Other RES 3",
"Other RES 4",
] as const;

export const TS_INTERPRETATION_OPTIONS = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ function Fields() {
name="group"
control={control}
options={STORAGE_GROUPS}
startCaseLabel={false}
sx={{
alignSelf: "center",
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ function Storages() {
}}
onSubmit={handleSubmit}
enableUndoRedo
sx={{ height: "50%" }}
>
<Fields />
</Form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ import type { PartialExceptFor } from "../../../../../../../utils/tsUtils";
////////////////////////////////////////////////////////////////

export const STORAGE_GROUPS = [
"psp_open",
"psp_closed",
"pondage",
"battery",
"other1",
"other2",
"other3",
"other4",
"other5",
"PSP_open",
"PSP_closed",
"Pondage",
"Battery",
"Other1",
"Other2",
"Other3",
"Other4",
"Other5",
] as const;

////////////////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ function Fields() {
name="group"
control={control}
options={THERMAL_GROUPS}
startCaseLabel={false}
sx={{
alignSelf: "center",
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ export const TS_GEN_MATRIX_COLS = [
] as const;

export const THERMAL_GROUPS = [
"gas",
"hard coal",
"lignite",
"mixed fuel",
"nuclear",
"oil",
"other 1",
"other 2",
"other 3",
"other 4",
"Gas",
"Hard Coal",
"Lignite",
"Mixed fuel",
"Nuclear",
"Oil",
"Other 1",
"Other 2",
"Other 3",
"Other 4",
] as const;

export const THERMAL_POLLUTANTS = [
Expand Down

0 comments on commit 7e77416

Please sign in to comment.