merge charts
This commit is contained in:
1 parent
58f1ae7fe9
commit
0e0cace676
6 files changed
+178
-251
No files matched your search
@@ -31,10 +31,6 @@ import type { RootState } from "@/Types/state";
|
||||
import { formatDateWithTz } from "@/Utils/TimeUtils";
|
||||
import { t } from "i18next";
|
||||
import { Typography } from "@mui/material";
|
||||
import {
|
||||
HistogramDetailsStacked,
|
||||
PHASE_KEYS,
|
||||
} from "@/Components/monitors/charts/HistogramDetailsStacked";
|
||||
|
||||
const certificateDateFormat = "MMM D, YYYY h A";
|
||||
|
||||
@@ -79,14 +75,6 @@ const UptimeDetailsPage = () => {
|
||||
const monitor = monitorData?.monitor;
|
||||
const monitorStats = monitorDetailsData?.monitorStats ?? null;
|
||||
|
||||
const hasTimingPhases = useMemo(
|
||||
() =>
|
||||
(monitorData?.groupedChecks ?? []).some((check) =>
|
||||
PHASE_KEYS.some((key) => check[key] > 0)
|
||||
),
|
||||
[monitorData]
|
||||
);
|
||||
|
||||
// Certificate fetch - only for HTTP monitors
|
||||
const certificateUrl = useMemo(() => {
|
||||
if (!monitorId || monitor?.type !== "http") {
|
||||
@@ -238,12 +226,6 @@ const UptimeDetailsPage = () => {
|
||||
checks={monitorData.groupedChecks}
|
||||
range={dateRange}
|
||||
/>
|
||||
{hasTimingPhases && (
|
||||
<HistogramDetailsStacked
|
||||
checks={monitorData.groupedChecks}
|
||||
range={dateRange}
|
||||
/>
|
||||
)}
|
||||
<ChecksTable
|
||||
checks={checks}
|
||||
count={checksCount}
|
||||
|
||||
Reference in new issue
Block a user