This commit is contained in:
Alex Holliday
2026-02-02 18:45:52 +00:00
parent 294fb13005
commit 43fe66022b
5 changed files with 21 additions and 8 deletions
@@ -8,8 +8,9 @@ import type { TooltipProps } from "recharts";
import { useSelector } from "react-redux";
import type { RootState } from "@/Types/state";
interface HistogramPageSpeedScoresTooltipProps
extends Partial<TooltipProps<number, string>> {
interface HistogramPageSpeedScoresTooltipProps extends Partial<
TooltipProps<number, string>
> {
config: Record<string, ConfigItem>;
}
export const HistogramPageSpeedScoresTooltip = ({
@@ -171,7 +171,9 @@ export const CardDetails = ({ incident, monitor, sx }: CardDetailsProps) => {
</Typography>
</Grid>
<Grid size={10}>
<Typography>{incident.resolvedByEmail ?? incident.resolvedBy}</Typography>
<Typography>
{incident.resolvedByEmail ?? incident.resolvedBy}
</Typography>
</Grid>
</>
)}
@@ -86,7 +86,9 @@ interface SummaryCardActiveIncidentsProps {
summary?: IncidentSummary | null;
}
export const SummaryCardActiveIncidents = ({ summary }: SummaryCardActiveIncidentsProps) => {
export const SummaryCardActiveIncidents = ({
summary,
}: SummaryCardActiveIncidentsProps) => {
const { t } = useTranslation();
const theme = useTheme();
@@ -184,7 +186,9 @@ interface SummaryCardLatestIncidentsProps {
summary?: IncidentSummary | null;
}
export const SummaryCardLatestIncidents = ({ summary }: SummaryCardLatestIncidentsProps) => {
export const SummaryCardLatestIncidents = ({
summary,
}: SummaryCardLatestIncidentsProps) => {
const { t } = useTranslation();
const theme = useTheme();
@@ -232,7 +236,11 @@ export const SummaryCardStats = ({ summary }: SummaryCardStatsProps) => {
<SummaryItem
icon={<Wrench size={18} />}
label={t("pages.incidents.summaryCard.incidentStats.avgResolutionTime")}
value={summary.total > 0 ? `${summary.avgResolutionTimeHours || 0} hours` : t("common.labels.na")}
value={
summary.total > 0
? `${summary.avgResolutionTimeHours || 0} hours`
: t("common.labels.na")
}
/>
</SummaryCard>
);
@@ -28,7 +28,9 @@ export const ControlsIncidentFilter = ({
const { t } = useTranslation();
const theme = useTheme();
const isSmall = useMediaQuery(theme.breakpoints.down("md"));
const isFilterActive = selectedMonitor !== "0" || (selectedResolutionType !== "" && selectedResolutionType !== "all");
const isFilterActive =
selectedMonitor !== "0" ||
(selectedResolutionType !== "" && selectedResolutionType !== "all");
return (
<Stack
+1 -1
View File
@@ -408,7 +408,7 @@
"status": {
"active": "Active",
"resolved": "Resolved",
"na": "N/A"
"na": "N/A"
},
"actions": {
"details": "Details",