This commit is contained in:
Alex Holliday committed 2025-11-25 23:37:56 +00:00
1 parent b5bdd73a90
commit 33aab936fe
5 files changed
+60 -34

No files matched your search

+20 -15
View File
@@ -1,6 +1,7 @@
import Stack from "@mui/material/Stack";
import { BasePage, ConfigBox } from "@/components/design-elements";
import { AutoComplete, Select, LanguageSelector } from "@/components/inputs";
import { RadioWithDescription } from "@/components/inputs/RadioInput";
import MenuItem from "@mui/material/MenuItem";
import Typography from "@mui/material/Typography";
import { SettingsForm } from "@/pages/settings/SettingsForm";
@@ -100,22 +101,26 @@ const SettingsPage = () => {
subtitle="Choose what type of Uptime chart you want to see on the dashboard and status page"
leftContent={<DummyChart type={chartType} />}
rightContent={
<Stack spacing={theme.spacing(2)}>
<Stack gap={theme.spacing(4)}>
<Typography>Chart Type</Typography>
<Select
value={chartType}
onChange={(e: SelectChangeEvent<string>) => {
dispatch(setChartType(e.target.value as ChartType));
}}
>
<MenuItem value="heatmap">Heatmap</MenuItem>
<MenuItem value="histogram">Histogram</MenuItem>
</Select>
<Typography>
{chartType === "heatmap"
? "Heatmap: colored line indicates status"
: "Bar chart: color denotes status (up/down). height denotes response time"}
</Typography>
<Stack gap={theme.spacing(4)}>
<RadioWithDescription
checked={chartType === "heatmap"}
onChange={() => dispatch(setChartType("heatmap"))}
value="heatmap"
label="Heatmap"
description="Compact tiles; color shows response speed, top strip shows availability."
name="chart-type"
/>
<RadioWithDescription
checked={chartType === "histogram"}
onChange={() => dispatch(setChartType("histogram"))}
value="histogram"
label="Histogram"
description="One bar per check; height shows response time, color shows status."
name="chart-type"
/>
</Stack>
</Stack>
}
/>