resolution card

This commit is contained in:
Alex Holliday committed 2025-12-08 02:29:52 +00:00
1 parent b4135e26ce
commit 2b3c601a05
8 files changed
+150 -80

No files matched your search

+14 -1
View File
@@ -1,7 +1,20 @@
import type { MonitorStatus } from "@/types/monitor";
import type { IMonitor } from "@/types/monitor";
import type { IMonitor, MonitorType } from "@/types/monitor";
import type { PaletteKey } from "@/theme/theme";
import type { ValueType } from "@/components/design-elements/StatusLabel";
export const getMonitorPath = (type: MonitorType): string => {
const pathMap: Record<MonitorType, string> = {
http: "uptime",
https: "uptime",
port: "uptime",
ping: "uptime",
infrastructure: "infrastructure",
pagespeed: "pagespeed",
};
return pathMap[type];
};
export const getStatusPalette = (status: MonitorStatus): PaletteKey => {
const paletteMap: Record<MonitorStatus, PaletteKey> = {
up: "success",