This commit is contained in:
Alex Holliday committed 2026-02-01 00:49:35 +00:00
1 parent 874d1b277a
commit 888910abb2
7 files changed
+847 -1044

No files matched your search

@@ -1,5 +1,5 @@
import Stack from "@mui/material/Stack";
import Grid2 from "@mui/material/Grid2";
import Grid2 from "@mui/material/Grid";
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import Paper from "@mui/material/Paper";
@@ -6,48 +6,60 @@ import Typography from "@mui/material/Typography";
import { BaseBox, ValueLabel } from "@/Components/v2/design-elements";
import { useTranslation } from "react-i18next";
import type { Monitor } from "@/Types/Monitor";
import type { Incident } from "@/Types/Incident";
import type { Monitor } from "@/Types/Monitor";
import { useTheme } from "@mui/material";
interface CardDetailsProps {
incident: Incident | null;
monitor: Monitor | null;
sx?: React.CSSProperties;
sx?: object;
}
export const CardDetails = ({ incident, monitor, sx }: CardDetailsProps) => {
const { t } = useTranslation();
const theme = useTheme();
void monitor; // Will be used in future UI implementation
if (!incident) {
return null;
}
return (
<Stack gap={theme.spacing(4)}>
<Stack
gap={theme.spacing(4)}
sx={sx}
>
<Typography textTransform={"uppercase"}>
{t("pages.incidents.dialog.details.title")}
</Typography>
<BaseBox padding={8}>
<Typography textTransform={"uppercase"}>
{t("pages.incidents.dialog.details.overview")}
</Typography>
<Divider />
<Stack gap={theme.spacing(4)}>
<Typography textTransform={"uppercase"}>
{t("pages.incidents.dialog.details.overview")}
</Typography>
<Divider />
<Grid container>
<Grid>
<Box>
<ValueLabel
value={incident.status ? "positive" : "negative"}
text={
incident.status
? t("common.labels.active")
: t("common.labels.resolved")
}
/>
</Box>
<Grid
container
gap={theme.spacing(4)}
>
<Grid size={12}>
<Box>
<ValueLabel
value={incident.status ? "positive" : "negative"}
text={
incident.status
? t("common.labels.active")
: t("common.labels.resolved")
}
/>
</Box>
</Grid>
<Grid size={6}>Test</Grid>
<Grid size={6}>Test</Grid>
</Grid>
</Grid>
</Stack>
</BaseBox>
</Stack>
);
@@ -1,7 +1,7 @@
import Stack from "@mui/material/Stack";
import Box from "@mui/material/Box";
import Divider from "@mui/material/Divider";
import Grid from "@mui/material/Grid2";
import Grid from "@mui/material/Grid";
import Typography from "@mui/material/Typography";
import { ValueLabel } from "@/Components/v2/design-elements";
import { Globe } from "lucide-react";
@@ -1,4 +1,4 @@
import Grid from "@mui/material/Grid2";
import Grid from "@mui/material/Grid";
import { HistogramInfrastructure } from "@/Components/v2/monitors";
import { useTranslation } from "react-i18next";
@@ -1,4 +1,4 @@
import Grid from "@mui/material/Grid2";
import Grid from "@mui/material/Grid";
import { HistogramInfrastructure } from "@/Components/v2/monitors";
import { useTranslation } from "react-i18next";