add battery charge to systems table

This commit is contained in:
henrygd
2025-12-08 18:20:51 -05:00
parent 570e1cbf40
commit 8d41a797d3
9 changed files with 152 additions and 45 deletions

View File

@@ -5,7 +5,7 @@ import { EthernetIcon, GpuIcon } from "@/components/ui/icons"
import { $alerts } from "@/lib/stores"
import type { AlertInfo, AlertRecord } from "@/types"
import { pb } from "./api"
import { ThermometerIcon, BatteryIcon, HourglassIcon } from "@/components/ui/icons"
import { ThermometerIcon, BatteryMediumIcon, HourglassIcon } from "@/components/ui/icons"
/** Alert info for each alert type */
export const alertInfo: Record<string, AlertInfo> = {
@@ -87,9 +87,10 @@ export const alertInfo: Record<string, AlertInfo> = {
Battery: {
name: () => t`Battery`,
unit: "%",
icon: BatteryIcon,
icon: BatteryMediumIcon,
desc: () => t`Triggers when battery charge drops below a threshold`,
start: 20,
invert: true,
},
} as const