feat(skins): refine KAAK voice room fidelity

This commit is contained in:
illusia committed 2026-10-10 17:15:02 +08:00
1 parent 7f5d3e1b3c
commit 7b31c9106a
8 files changed
+420 -141

No files matched your search

+2 -2
View File
@@ -46,10 +46,10 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
{
id: BUILTIN_KAAK_SKIN_ID,
name: "KAAK",
version: "3.0.6",
version: "3.0.9",
author: "WebSpeak Project",
license: "AGPL-3.0-only",
description: "A complete dark voice workspace with server switching, channels, chat, members, and host-owned voice controls.",
description: "A KOOK-inspired voice-room workspace with server switching, channels, participant stage, chat, and host-owned voice controls.",
minAppVersion: "0.2.7-preview",
installedAt: 0,
builtIn: true,
+15 -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.0.6");
assert.equal(skin.version, "3.0.9");
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");
@@ -499,13 +499,26 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
assert.deepEqual(findPart(voice?.root, "channel-voice-members")?.when, { path: "channel.members", empty: false });
assert.equal(findPart(voice?.root, "channel-voice-member")?.repeat?.path, "channel.members");
assert.equal(findPart(voice?.root, "channel-member-avatar")?.children?.[0]?.text, "{{voicemember.avatarInitial}}");
assert.equal(findPart(voice?.root, "member-group-label")?.children?.[0]?.text, "在线 / ONLINE");
assert.equal(findPart(voice?.root, "voice-stage")?.attributes?.["aria-label"], "语音房间 / Voice room");
assert.equal(findPart(voice?.root, "member-group-label"), undefined);
assert.equal(findPart(voice?.root, "member-avatar")?.children?.[0]?.text, "{{member.avatarInitial}}");
assert.equal(findPart(voice?.root, "member-speaking-ring")?.when?.path, "member.speaking");
assert.equal(findPart(voice?.root, "member-speaking-wave")?.attributes?.["aria-hidden"], "true");
assert.equal(findPart(voice?.root, "member-speaking-bar")?.tag, "i");
assert.equal(findPart(voice?.root, "screen-player")?.widget, "voice.screen-share-player");
assert.equal(findPart(voice?.root, "performance-panel")?.widget, "voice.performance-panel");
assert.equal(findPart(voice?.root, "chat-input")?.bindValue, "message");
assert.equal(findPart(voice?.root, "screen-share-start")?.widget, "voice.screen-share-start");
assert.equal(findPart(voice?.root, "audio-controls")?.widget, "voice.audio-controls");
assert.ok(skin.css.includes('[data-ws-plugin-part="kaak-workspace.channel-row"]'));
assert.match(skin.css, /kaak-workspace\.voice-stage[\s\S]*?grid-column: 3;/);
assert.match(skin.css, /kaak-workspace\.conversation[\s\S]*?grid-column: 4;/);
assert.match(skin.css, /kaak-workspace\.member-row[\s\S]*?min-height: 274px;/);
assert.match(skin.css, /@keyframes ws-community-kaak-voice-kaak-member-speaking-ring/);
assert.match(skin.css, /animation: ws-community-kaak-voice-kaak-member-speaking-ring 1\.8s ease-out infinite/);
assert.match(skin.css, /@keyframes ws-community-kaak-voice-kaak-member-speaking-bars/);
assert.match(skin.css, /animation: ws-community-kaak-voice-kaak-member-speaking-bars \.72s ease-in-out infinite alternate/);
assert.match(skin.css, /kaak-workspace\.identity-entry[\s\S]*?position: absolute;/);
assert.ok(skin.css.includes("@media (max-width: 820px)"));
});