feat: clickthrough historical data view for status page downtime (#3972)

This adds the ability for users to click on any day block in the historical uptime chart to see the specific incidents that occurred on that day.

Closes #3972
This commit is contained in:
nikhil2004 committed 2026-09-22 03:31:14 +05:30
1 parent da8b230cec
commit 7f0e577dd2
15 files changed
+234 -33

No files matched your search

@@ -16,6 +16,7 @@ interface Props {
barSx: (kind: BarKind, heightPct: number, severity?: number) => SxProps<Theme>;
statsSx: SxProps<Theme>;
statsGap?: number;
onCellClick?: (date: string) => void;
}
export const ThemedHistogram = ({
@@ -24,6 +25,7 @@ export const ThemedHistogram = ({
barSx,
statsSx,
statsGap = 1,
onCellClick,
}: Props) => {
const { t } = useTranslation();
@@ -61,8 +63,16 @@ export const ThemedHistogram = ({
placement="top"
>
<Box
sx={barSx(cell.barKind, cell.heightPct, cell.severity)}
sx={[
barSx(cell.barKind, cell.heightPct, cell.severity),
!!cell.date && !!onCellClick && { cursor: "pointer" },
]}
aria-label={cell.ariaLabel}
onClick={() => {
if (cell.date && onCellClick) {
onCellClick(cell.date);
}
}}
/>
</Tooltip>
);