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:
Syahdan 2025-12-29 07:12:31 +07:00
parent 22aee93fb3
commit c145d3fb07
8 changed files with 155 additions and 21 deletions

View file

@ -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>