feat(kaak): match provided voice dock layout

This commit is contained in:
Corrupted ILLUSIA committed 2026-10-11 12:31:02 +08:00
1 parent b9f3272210
commit 74ee82a927
10 files changed
+77 -41

No files matched your search

+7 -2
View File
@@ -464,7 +464,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
const file = new File([archive], "kaak-voice.wskin", { type: "application/octet-stream" });
const skin = await importSkinPack(file);
assert.equal(skin.id, "community.kaak-voice");
assert.equal(skin.version, "3.1.56");
assert.equal(skin.version, "3.1.58");
assert.equal(BUILTIN_SKIN_CATALOG.find((entry) => entry.id === skin.id)?.version, skin.version);
assert.equal(skin.schemaVersion, 3);
const home = skin.pluginData?.components.find((component) => component.page === "home");
@@ -560,6 +560,11 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
assert.match(skin.css, /voice-dock-actions"\] \{[\s\S]*?grid-template-columns: minmax\(0, 1fr\) 37px 37px;[\s\S]*?grid-template-rows: 28px 23px;/);
assert.match(skin.css, /desktop-audio-dock-room-panel \{[\s\S]*?grid-template-columns: subgrid;[\s\S]*?grid-template-rows: subgrid;/);
assert.match(skin.css, /kaak-workspace\.voice-dock-share[\s\S]*?skin-runtime-screen-share-start \{[\s\S]*?height: 28px;[\s\S]*?background: #6cbf00;/);
assert.match(skin.css, /room-panel-audio-settings[\s\S]*?grid-column: 1;[\s\S]*?grid-row: 2;/);
assert.match(skin.css, /noise-suppression-toggle \{ grid-column: 2; grid-row: 1; align-self: center; \}/);
assert.match(skin.css, /voice\.audio-dock\.microphone[\s\S]*?grid-column: 2;[\s\S]*?grid-row: 2;/);
assert.match(skin.css, /voice\.audio-dock\.output[\s\S]*?grid-column: 3;[\s\S]*?grid-row: 2;/);
assert.match(skin.css, /accompaniment-toggle \{[\s\S]*?grid-column: 3;[\s\S]*?grid-row: 1;/);
assert.match(skin.css, /voice\.member\.action-trigger[\s\S]*?width: 44px;/);
assert.match(skin.css, /--skin-kaak-accent-hover: #7ac51a;/);
assert.match(skin.css, /voice-card\[data-ws-speaking="true"\] > span \{\s*color: var\(--skin-kaak-accent\);\s*\}/);
@@ -752,7 +757,7 @@ test("the Harbor voice skin imports a complete voice-only KOOK-inspired workspac
assert.ok(skin.css.includes('[data-ws-plugin-part="harbor-workspace.channel-row"][data-depth="1"]'));
assert.ok(skin.css.includes('[data-ws-plugin-part="harbor-workspace.identity-entry"]'));
assert.ok(skin.css.includes('data-ws-plugin-part="harbor-workspace.screen-share-start"'), "the host screen-share control uses the stable plugin part hook");
assert.ok(skin.css.includes(".accompaniment-toggle { display: none; }"));
assert.ok(skin.css.includes(".accompaniment-toggle { display: none; }"));
assert.ok(!skin.css.includes("https://"), "the skin uses no remote artwork or font resources");
});