feat(dashboard): Implement system health check and enhance UI for agent management

This commit is contained in:
Abhimanyu Saharan
2026-02-04 23:43:40 +05:30
parent b6f31fe6ea
commit 8452dc110e
15 changed files with 727 additions and 448 deletions

View File

@@ -0,0 +1,27 @@
"use client";
import type { ReactNode } from "react";
import { useState } from "react";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
export function QueryProvider({ children }: { children: ReactNode }) {
const [client] = useState(
() =>
new QueryClient({
defaultOptions: {
queries: {
staleTime: 15_000,
gcTime: 5 * 60 * 1000,
refetchOnWindowFocus: true,
retry: 1,
},
mutations: {
retry: 0,
},
},
})
);
return <QueryClientProvider client={client}>{children}</QueryClientProvider>;
}