Increase max recent checks limit from 25 -> 50, extract constants

This commit is contained in:
Alex Holliday committed 2026-04-30 10:30:54 -07:00
1 parent e077fe52e7
commit d47cc65fed
12 files changed
+62 -48

No files matched your search

@@ -8,8 +8,9 @@ import { useSelector } from "react-redux";
import type { RootState } from "@/store";
import type { CheckSnapshot } from "@/Types/Check";
import { formatDateWithTz } from "@/Utils/TimeUtils";
import { MAX_RECENT_CHECKS } from "@/Types/Monitor";
const CELLS = 25;
const CELLS = MAX_RECENT_CHECKS;
export type HeatCellKind = "fast" | "med" | "slow" | "down" | "empty";
@@ -9,8 +9,8 @@ import { useSelector } from "react-redux";
import type { RootState } from "@/store";
import type { CheckSnapshot } from "@/Types/Check";
import { formatDateWithTz } from "@/Utils/TimeUtils";
const CELLS = 25;
import { MAX_RECENT_CHECKS } from "@/Types/Monitor";
const CELLS = MAX_RECENT_CHECKS;
const MIN_HEIGHT_PCT = 6;
export type BarKind = "up" | "down" | "empty";