feat(kaak): enrich channel chat message rows

This commit is contained in:
Corrupted ILLUSIA committed 2026-10-10 18:52:11 +08:00
1 parent 36ece5e582
commit d9b83f12cc
8 files changed
+102 -29

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
# KAAK voice skin
KAAK is a schema v3 open-skin package with full connection and voice-workspace surfaces. Its voice page uses a narrow server rail, a server/channel tree, a central participant stage, right-side chat attached to the current voice channel, and a lower-left voice dock. The KOOK voice room is the point-to-point visual reference: composition, member presentation, styling, and motion should be compared directly, rather than treating matching component types or approximate placement as sufficient. The left tree contains the TeamSpeak voice channels only; KOOK's separate text-channel group is outside this pass because TeamSpeak has no equivalent channel type. The current voice channel's text chat remains on the right and can collapse into a narrow rail, then expand again without leaving the voice room. The central stage uses WebSpeak's reusable member-card widget so available TeamSpeak profile avatars appear inside KAAK's large portrait tiles; KAAK's CSS styles the cards and adds hover depth, a speaking ring, and a waveform pulse driven by live voice state. The host's screen-share player appears in the room stage when someone is sharing. The dock retains WebSpeak's trusted voice-quality, audio, screen-share, and disconnect controls. The roster shows connected TeamSpeak clients only; it does not invent an offline list. Channel selection is single-click; joining is double-click. The narrow layout keeps the host's mobile controls available while retaining readable member tiles.
KAAK is a schema v3 open-skin package with full connection and voice-workspace surfaces. Its voice page uses a narrow server rail, a server/channel tree, a central participant stage, right-side chat attached to the current voice channel, and a lower-left voice dock. The KOOK voice room is the point-to-point visual reference: composition, member presentation, styling, and motion should be compared directly, rather than treating matching component types or approximate placement as sufficient. The left tree contains the TeamSpeak voice channels only; KOOK's separate text-channel group is outside this pass because TeamSpeak has no equivalent channel type. The current voice channel's text chat remains on the right and can collapse into a narrow rail, then expand again without leaving the voice room; messages use author monograms, a separate identity/time line, and readable message text. The central stage uses WebSpeak's reusable member-card widget so available TeamSpeak profile avatars appear inside KAAK's large portrait tiles; KAAK's CSS styles the cards and adds hover depth, a speaking ring, and a waveform pulse driven by live voice state. The host's screen-share player appears in the room stage when someone is sharing. The dock retains WebSpeak's trusted voice-quality, audio, screen-share, and disconnect controls. The roster shows connected TeamSpeak clients only; it does not invent an offline list. Channel selection is single-click; joining is double-click. The narrow layout keeps the host's mobile controls available while retaining readable member tiles.
The design target is the voice-client portion of KOOK, as requested by the project owner. It does not include discovery, companion/party, event, store, advertising, administrator, or other service-operator pages. It does not add a KOOK account flow, direct messages, server administration, or channels absent from the connected TeamSpeak server.
Binary file not shown.
+42 -21
View File
@@ -633,35 +633,56 @@
},
"children": [
{
"tag": "header",
"part": "chat-message-heading",
"tag": "span",
"part": "chat-message-avatar",
"attributes": {
"aria-hidden": "true"
},
"children": [
{
"tag": "strong",
"part": "chat-message-author",
"children": [
{
"text": "{{message.author}}"
}
]
},
{
"tag": "time",
"part": "chat-message-time",
"children": [
{
"text": "{{message.time}}"
}
]
"text": "{{message.author}}"
}
]
},
{
"tag": "p",
"part": "chat-message-text",
"tag": "div",
"part": "chat-message-body",
"attributes": {
"data-kind": "{{message.kind}}"
},
"children": [
{
"text": "{{message.text}}"
"tag": "header",
"part": "chat-message-heading",
"children": [
{
"tag": "strong",
"part": "chat-message-author",
"children": [
{
"text": "{{message.author}}"
}
]
},
{
"tag": "time",
"part": "chat-message-time",
"children": [
{
"text": "{{message.time}}"
}
]
}
]
},
{
"tag": "p",
"part": "chat-message-text",
"children": [
{
"text": "{{message.text}}"
}
]
}
]
}
+1 -1
View File
@@ -3,7 +3,7 @@
"packageType": "open-skin",
"id": "community.kaak-voice",
"name": "KAAK",
"version": "3.1.6",
"version": "3.1.7",
"author": "WebSpeak Project",
"license": "AGPL-3.0-only",
"description": "A KOOK-inspired voice workspace with collapsible current voice-channel chat, TeamSpeak profile cards, and animated speaker states.",
+53 -4
View File
@@ -559,11 +559,60 @@
font-size: 13px;
}
[data-ws-plugin-part="kaak-workspace.chat-message"] { min-width: 0; }
[data-ws-plugin-part="kaak-workspace.chat-message-heading"] { display: flex; align-items: baseline; gap: 8px; }
[data-ws-plugin-part="kaak-workspace.chat-message-author"] { color: var(--skin-kaak-text); font-size: 12px; }
[data-ws-plugin-part="kaak-workspace.chat-message"] {
display: grid;
grid-template-columns: 34px minmax(0, 1fr);
align-items: start;
gap: 0 10px;
min-width: 0;
}
[data-ws-plugin-part="kaak-workspace.chat-message-avatar"] {
grid-column: 1;
grid-row: 1;
display: grid;
place-items: center;
width: 34px;
height: 34px;
margin-top: 1px;
overflow: hidden;
border: 1px solid #ffffff18;
border-radius: 50%;
color: transparent;
background: linear-gradient(145deg, #3a3c42, #25262b);
font-size: 0;
font-weight: 800;
line-height: 0;
}
[data-ws-plugin-part="kaak-workspace.chat-message-avatar"]::first-letter {
color: #e7f8ec;
font-size: 14px;
line-height: 1;
}
[data-ws-plugin-part="kaak-workspace.chat-message-body"][data-kind="self"] [data-ws-plugin-part="kaak-workspace.chat-message-avatar"] {
border-color: #58c87755;
background: linear-gradient(145deg, #286c49, #194b3b);
}
[data-ws-plugin-part="kaak-workspace.chat-message-body"] {
grid-column: 2;
min-width: 0;
}
[data-ws-plugin-part="kaak-workspace.chat-message-heading"] {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 3px 8px;
min-height: 20px;
}
[data-ws-plugin-part="kaak-workspace.chat-message-author"] { color: var(--skin-kaak-text); font-size: 12px; font-weight: 700; }
[data-ws-plugin-part="kaak-workspace.chat-message-body"][data-kind="self"] [data-ws-plugin-part="kaak-workspace.chat-message-author"] { color: #a2e8b4; }
[data-ws-plugin-part="kaak-workspace.chat-message-time"] { color: var(--skin-kaak-dim); font-size: 10px; }
[data-ws-plugin-part="kaak-workspace.chat-message-text"] { margin: 3px 0 0; color: var(--skin-kaak-muted); font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
[data-ws-plugin-part="kaak-workspace.chat-message-text"] { margin: 2px 0 0; color: #d3d4d8; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
[data-ws-plugin-part="kaak-workspace.chat-composer"] {
display: flex;
Binary file not shown.
+1 -1
View File
@@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
{
id: BUILTIN_KAAK_SKIN_ID,
name: "KAAK",
version: "3.1.6",
version: "3.1.7",
author: "WebSpeak Project",
license: "AGPL-3.0-only",
description: "A KOOK-inspired voice-room workspace with collapsible current voice-channel chat, TeamSpeak profile cards, and host-owned voice controls.",
+4 -1
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.6");
assert.equal(skin.version, "3.1.7");
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");
@@ -515,6 +515,9 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
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, "chat-message-avatar")?.children?.[0]?.text, "{{message.author}}");
assert.equal(findPart(voice?.root, "chat-message-body")?.children?.[0]?.part, "chat-message-heading");
assert.equal(findPart(voice?.root, "chat-message-body")?.attributes?.["data-kind"], "{{message.kind}}");
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"]'));