feat: add multi-session desktop workspace

This commit is contained in:
2026-08-13 21:34:04 +02:00
parent 12b9b83d51
commit 475f95ba70
56 changed files with 8998 additions and 3805 deletions
+13 -6
View File
@@ -2,7 +2,7 @@ import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";
import test from "node:test";
test("ships a Noctalia plugin with compact bar and presentation-only panel entry points", async () => {
test("ships a Noctalia aggregate launcher without a primary panel", async () => {
const manifestText = await readFile(
"noctalia-plugin/pi-status-bridge/manifest.json",
"utf8",
@@ -15,9 +15,8 @@ test("ships a Noctalia plugin with compact bar and presentation-only panel entry
error instanceof Error ? error.message : "manifest was not valid JSON",
);
}
const [bar, panel, main] = await Promise.all([
const [bar, main] = await Promise.all([
readFile("noctalia-plugin/pi-status-bridge/BarWidget.qml", "utf8"),
readFile("noctalia-plugin/pi-status-bridge/Panel.qml", "utf8"),
readFile("noctalia-plugin/pi-status-bridge/Main.qml", "utf8"),
]);
@@ -25,10 +24,18 @@ test("ships a Noctalia plugin with compact bar and presentation-only panel entry
assert.deepEqual(manifest.entryPoints, {
main: "Main.qml",
barWidget: "BarWidget.qml",
panel: "Panel.qml",
});
assert.match(bar, /pluginApi\.togglePanel\(root\.screen, visualCapsule\)/);
assert.match(panel, /allowAttach: true/);
assert.match(bar, /systemctl", "--user", "start", "pi-status-bridge\.service/);
assert.match(bar, /PI_STATUS_UI_BINARY/);
assert.match(bar, /pi-status-ui/);
assert.match(bar, /setsid -f env TMPDIR=\/tmp/);
assert.match(bar, /--toggle/);
assert.doesNotMatch(bar, /togglePanel/);
assert.doesNotMatch(bar, /Panel\.qml/);
assert.match(main, /IpcHandler/);
assert.match(main, /setBridgeState/);
assert.match(main, /openCount/);
assert.match(main, /workingCount/);
assert.match(main, /recoveringCount/);
assert.match(main, /errorCount/);
});