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

@@ -38,6 +38,18 @@ describe(`${manifest.id} activate`, () => {
}
});
it("fills core's metric slots and offers disk usage to other plugins", async () => {
rendered = await renderWithApp(plugin, { manifest, locales });
expect(rendered.registered.slot("dashboard.hostMetrics")).toEqual([
"host-metrics.dashboardHost",
]);
expect(rendered.registered.slot("homepage.hostMetrics")).toEqual([
"host-metrics.homepageHost",
]);
expect(rendered.registered.actions()).toContain("host-metrics.disk");
expect(rendered.registered.hostEditorSections()).toEqual(["host-metrics"]);
});
it("removes everything it registered on deactivate", async () => {
const app = await renderWithApp(plugin, { manifest, locales });
await app.deactivate();