Restore source files from Google Drive backup
This commit is contained in:
1 parent
dff2b5a9c4
commit
328525b37f
27 files changed
+975
-106
No files matched your search
@@ -6,6 +6,7 @@ import { api, useApi, toast } from "@/lib/api";
|
||||
import { Card, Button, Badge, Tabs, EmptyState, Modal } from "@/components/ui";
|
||||
import { TimeSeriesChart, Sparkline, type Point } from "@/components/charts";
|
||||
import { fmtBytes } from "@/lib/format";
|
||||
import { usePublicMode } from "@/lib/publicmode";
|
||||
|
||||
type MetricRow = {
|
||||
bucket: number;
|
||||
@@ -66,6 +67,7 @@ const VERDICTS: Record<LagData["verdict"], { badge: "good" | "warn" | "crit" | "
|
||||
};
|
||||
|
||||
export default function PerformancePage() {
|
||||
const publicMode = usePublicMode();
|
||||
const [range, setRange] = useState("1h");
|
||||
const { data: rows } = useApi<MetricRow[]>(`/api/metrics?range=${range}`, 30000);
|
||||
const { data: lag, refresh: refreshLag } = useApi<LagData>("/api/lag", 30000);
|
||||
@@ -116,9 +118,11 @@ export default function PerformancePage() {
|
||||
<Card
|
||||
title="Lag diagnosis"
|
||||
actions={
|
||||
<Button size="sm" onClick={runHealthReport} busy={busyReport}>
|
||||
<Stethoscope size={13} /> Full health report
|
||||
</Button>
|
||||
publicMode ? undefined : (
|
||||
<Button size="sm" onClick={runHealthReport} busy={busyReport}>
|
||||
<Stethoscope size={13} /> Full health report
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
>
|
||||
<div className="flex flex-wrap items-start gap-4">
|
||||
|
||||
Reference in new issue
Block a user