feat: finish the host-metrics plugin, move host status into core (B16)

This commit is contained in:
LukeGus committed 2026-09-24 11:21:23 -05:00
1 parent 14eb558b85
commit 0a3f05d99d
308 files changed
+53073 -8985

No files matched your search

+2 -14
View File
@@ -23,13 +23,7 @@ describe("HostStatusCard", () => {
online: false,
} as Host;
render(
<HostStatusCard
hosts={[host]}
hostMetrics={new Map()}
onOpenTab={() => {}}
/>,
);
render(<HostStatusCard hosts={[host]} onOpenTab={() => {}} />);
const name = screen.getByText(host.name);
const ip = screen.getByText(host.ip);
@@ -90,13 +84,7 @@ describe("dashboard host routing", () => {
...flags,
} as unknown as Host;
const onOpenTab = vi.fn();
render(
<HostStatusCard
hosts={[host]}
hostMetrics={new Map()}
onOpenTab={onOpenTab}
/>,
);
render(<HostStatusCard hosts={[host]} onOpenTab={onOpenTab} />);
fireEvent.click(screen.getByText("Remote host"));
expect(onOpenTab).toHaveBeenCalledWith(host, expected);
});