Skip to content

Commit

Permalink
refactor(ui): update clusters group names to lowercase (#2271)
Browse files Browse the repository at this point in the history
  • Loading branch information
hdinia authored Dec 17, 2024
1 parent bb72234 commit 961df68
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ 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,7 +81,6 @@ 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,6 +49,7 @@ 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,7 +95,6 @@ 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,6 +59,7 @@ 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 961df68

Please sign in to comment.