Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(ui): update clusters group names to lowercase #2271

Merged
merged 3 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading