mirror of
https://github.com/LittleQuartZ/addmon.git
synced 2026-02-07 02:45:28 +07:00
feat(monitor): add search, status filter, and bulk invalid toggle
- Add search input to filter alerts by alertName or label values - Add status filter dropdown (All/Resolved/Unresolved) - Add Select All checkbox with indeterminate state for bulk invalid toggle - Add indeterminate prop support to Checkbox component - Add Monitor link to header navigation - Fix KPI dashboard padding for empty state
This commit is contained in:
parent
22aee93fb3
commit
c145d3fb07
8 changed files with 155 additions and 21 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import { Skeleton } from "@/components/ui/skeleton";
|
||||
import { cn } from "@/lib/utils";
|
||||
import type { KpiMetrics } from "@/lib/types/alerts";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface KpiDashboardProps {
|
||||
kpis: KpiMetrics | null;
|
||||
|
|
@ -51,7 +51,7 @@ export function KpiDashboard({ kpis, isLoading = false }: KpiDashboardProps) {
|
|||
if (!kpis) {
|
||||
return (
|
||||
<Card className="rounded-none">
|
||||
<CardContent className="pt-6 text-center text-xs text-muted-foreground">
|
||||
<CardContent className="py-6 text-center text-xs text-muted-foreground">
|
||||
No KPI data available
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue