feat(kaak): refine interaction feedback and permissions

This commit is contained in:
illusia committed 2026-10-11 01:31:44 +08:00
1 parent bdd0c3473c
commit 83902e0fb5
19 files changed
+236 -54

No files matched your search

+2 -2
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 desktop voice page follows KOOK's proportions: an 80px server rail, a 290px channel pane, a 40px top bar, a central participant stage, right-side chat attached to the current voice channel, and a lower-left voice dock. The server rail uses KOOK's rounded-square silhouette and left-edge active marker, with distinct colored monogram tiles as placeholders. WebSpeak currently exposes the saved server label but no server icon image, so these tiles do not copy KOOK's artwork or expose a connection address. The host provides a stable color-tone number derived only from the privacy-safe label, so a tile keeps its color when the saved list order changes. 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. Its header uses the `#` channel mark and an unobtrusive close control; the composer sits at the bottom edge. 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 participant tiles; the tiles use a wide 1.82:1 layout with a responsive grid to match KOOK's participant presentation. Member names stay hidden at rest while chat is open and appear on hover; they remain visible in a compact lower-left label while chat is collapsed. KAAK's CSS 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 desktop voice page follows KOOK's proportions: an 80px server rail, a 290px channel pane, a 40px top bar, a central participant stage, right-side chat attached to the current voice channel, and a lower-left voice dock. The server rail uses KOOK's rounded-square silhouette and left-edge active marker, with distinct colored monogram tiles as placeholders. WebSpeak currently exposes the saved server label but no server icon image, so these tiles do not copy KOOK's artwork or expose a connection address. The host provides a stable color-tone number derived only from the privacy-safe label, so a tile keeps its color when the saved list order changes. 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. Its header uses the `#` channel mark and an unobtrusive close control; the composer sits at the bottom edge. 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 participant tiles; the tiles use a wide 1.82:1 layout with a responsive grid to match KOOK's participant presentation. Member names stay hidden at rest while chat is open and appear on hover; they remain visible in a compact lower-left label while chat is collapsed. KAAK's CSS adds hover depth, a speaking ring, and a waveform pulse driven by live voice state. Paid screen sharing is outside this skin; its member cards and performance panel omit share actions and share-state details. The dock retains WebSpeak's trusted connection-quality, audio, and disconnect controls. Input/output volume buttons open hover or keyboard-focus panels with live numeric levels; sliders use a skin-colored progress track, a distinct thumb, and visible focus feedback. The audio settings dialog keeps the host's device-change handlers while KAAK styles the selectors' idle, hover, focus, and disabled states. The performance card opens with a short entrance motion and readable network/audio metrics. This pass did not change a real device, volume, or microphone state. 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 single TeamSpeak voice-channel group in the left tree can collapse and expand like KOOK's voice group; the separate KOOK text-channel group remains outside this pass. The current voice-room heading keeps the channel name and live member count visible above the participant stage while the attached chat is expanded, matching KOOK's room view.
@@ -12,7 +12,7 @@ The owner authorized inspection of the first two voice rooms in the KOOK server.
## Components and permissions
The connection page and voice workspace are full-page declarative surfaces in [components.json](./kaak-voice/components.json). The voice surface requests only the capabilities it uses: visible server shortcuts, channel and member data, cached profile-avatar display inside the trusted member-card widget, channel joining, channel chat, voice status, microphone/output controls, whisper controls, disconnect, and screen sharing. The host renders trusted connection, language, skin, audio, and screen-share controls. It rechecks permissions and connection state when each action runs; approval is local to this skin version and can be revoked from the host access control.
The connection page and voice workspace are full-page declarative surfaces in [components.json](./kaak-voice/components.json). The voice surface requests only the capabilities it uses: visible server shortcuts, channel and member data, cached profile-avatar display inside the trusted member-card widget, channel joining, channel chat, voice status, microphone/output controls, whisper controls, and disconnect. KAAK explicitly disables the share UI and does not request its member-card permissions. The host renders trusted connection, language, skin, and audio controls. It rechecks permissions and connection state when each action runs; approval is local to this skin version and can be revoked from the host access control.
Member cards are rendered by WebSpeak's trusted `voice.member-cards` widget. It displays an already available TeamSpeak profile avatar, or the host-generated nickname initial when no avatar is available; image bytes stay in the host and are not exposed in the skin's data context or Wasm runtime. The skin does not receive server addresses, passwords, identity keys, raw audio, private messages, or arbitrary network/storage APIs. Its markup is data-only; it contains no executable JavaScript or Wasm. The `/demo` page uses synthetic data and does not connect to TeamSpeak.
Binary file not shown.
+8 -4
View File
@@ -116,8 +116,6 @@
"audio.status.read",
"audio.microphone.control",
"audio.output.control",
"voice.screenShare.read",
"voice.screenShare.control",
"voice.whisper.status.read",
"voice.whisper.control",
"voice.disconnect"
@@ -859,7 +857,10 @@
},
{
"widget": "voice.member-cards",
"part": "member-cards"
"part": "member-cards",
"options": {
"screenShare": false
}
},
{
"tag": "div",
@@ -940,7 +941,10 @@
},
{
"widget": "voice.performance-panel",
"part": "performance-panel"
"part": "performance-panel",
"options": {
"screenShare": false
}
},
{
"tag": "button",
+1 -1
View File
@@ -3,7 +3,7 @@
"packageType": "open-skin",
"id": "community.kaak-voice",
"name": "KAAK",
"version": "3.1.27",
"version": "3.1.28",
"author": "WebSpeak Project",
"license": "AGPL-3.0-only",
"description": "A KOOK-inspired voice workspace with collapsible voice groups and current voice-channel chat, TeamSpeak profile cards, and animated speaker states.",
+93 -12
View File
@@ -944,9 +944,6 @@
[data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="false"]) [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > span { display: none; }
[data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="true"]) [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > strong { display: none; }
[data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="true"]) [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card:hover > strong { display: block; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .screen-share-card-actions,
[data-ws-plugin-part="kaak-workspace.member-cards"] .screen-share-live-indicator,
[data-ws-plugin-part="kaak-workspace.member-cards"] .screen-share-stop-button { display: none; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-member-action { position: absolute; z-index: 2; top: 9px; right: 9px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #ffffff22; border-radius: 50%; color: var(--skin-kaak-text); background: #17181bcc; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-empty { display: grid; min-height: 160px; place-content: center; justify-items: center; gap: 8px; color: var(--skin-kaak-muted); text-align: center; }
@@ -1373,6 +1370,12 @@
border: 1px solid #3b3c42;
border-radius: 12px;
box-shadow: 0 16px 36px #0009;
animation: kaak-performance-enter .16s cubic-bezier(.2, .75, .25, 1) both;
}
@keyframes kaak-performance-enter {
from { opacity: 0; transform: translateY(7px) scale(.985); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-panel header strong {
@@ -1406,9 +1409,14 @@
[data-ws-plugin-part="kaak-workspace.performance-panel"] .voice-audio-details,
[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-route {
color: #a4a6ad;
font-size: 10px;
font-size: 11px;
line-height: 1.45;
}
[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-metrics small { font-size: 10px; }
[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-metrics strong,
[data-ws-plugin-part="kaak-workspace.performance-panel"] .voice-status-summary strong { font-variant-numeric: tabular-nums; }
[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-refresh {
color: #91e5a6;
background: #303136;
@@ -1441,16 +1449,67 @@
[data-ws-plugin-part="kaak-workspace"] .dock-slider-heading strong {
color: #80df98;
font-size: 12px;
font-variant-numeric: tabular-nums;
}
[data-ws-plugin-part="kaak-workspace"] .dock-slider {
height: 22px;
margin: 8px 0 0;
appearance: auto;
accent-color: #58c877;
background: transparent !important;
appearance: none;
border: 0;
border-radius: 99px;
background: linear-gradient(to right, #58c877 0%, #58c877 var(--ws-range-progress, 0%), #414248 var(--ws-range-progress, 0%), #414248 100%) center / 100% 4px no-repeat !important;
cursor: pointer;
}
[data-ws-plugin-part="kaak-workspace"] .dock-slider::-webkit-slider-runnable-track,
[data-ws-part="voice.audio-settings"] .settings-range::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: transparent; }
[data-ws-plugin-part="kaak-workspace"] .dock-slider::-moz-range-track,
[data-ws-part="voice.audio-settings"] .settings-range::-moz-range-track { height: 4px; border-radius: 99px; background: transparent; }
[data-ws-plugin-part="kaak-workspace"] .dock-slider::-moz-range-progress,
[data-ws-part="voice.audio-settings"] .settings-range::-moz-range-progress { height: 4px; border-radius: 99px; background: #58c877; }
[data-ws-plugin-part="kaak-workspace"] .dock-slider::-webkit-slider-thumb,
[data-ws-part="voice.audio-settings"] .settings-range::-webkit-slider-thumb {
width: 15px;
height: 15px;
margin-top: -5.5px;
appearance: none;
border: 2px solid #202126;
border-radius: 50%;
background: #d8f6df;
box-shadow: 0 0 0 1px #58c87780, 0 2px 7px #0008;
transition: box-shadow .14s ease, transform .14s ease, background-color .14s ease;
}
[data-ws-plugin-part="kaak-workspace"] .dock-slider::-moz-range-thumb,
[data-ws-part="voice.audio-settings"] .settings-range::-moz-range-thumb {
width: 11px;
height: 11px;
border: 2px solid #202126;
border-radius: 50%;
background: #d8f6df;
box-shadow: 0 0 0 1px #58c87780, 0 2px 7px #0008;
transition: box-shadow .14s ease, transform .14s ease, background-color .14s ease;
}
[data-ws-plugin-part="kaak-workspace"] .dock-slider:hover::-webkit-slider-thumb,
[data-ws-part="voice.audio-settings"] .settings-range:hover::-webkit-slider-thumb,
[data-ws-plugin-part="kaak-workspace"] .dock-slider:focus-visible::-webkit-slider-thumb,
[data-ws-part="voice.audio-settings"] .settings-range:focus-visible::-webkit-slider-thumb {
background: #fff;
box-shadow: 0 0 0 3px #58c87745, 0 2px 8px #0009;
transform: scale(1.12);
}
[data-ws-plugin-part="kaak-workspace"] .dock-slider:hover::-moz-range-thumb,
[data-ws-part="voice.audio-settings"] .settings-range:hover::-moz-range-thumb,
[data-ws-plugin-part="kaak-workspace"] .dock-slider:focus-visible::-moz-range-thumb,
[data-ws-part="voice.audio-settings"] .settings-range:focus-visible::-moz-range-thumb {
background: #fff;
box-shadow: 0 0 0 3px #58c87745, 0 2px 8px #0009;
transform: scale(1.12);
}
[data-ws-plugin-part="kaak-workspace"] .dock-slider:focus-visible,
[data-ws-part="voice.audio-settings"] .settings-range:focus-visible { outline: 2px solid #58c87770; outline-offset: 4px; }
[data-ws-part="voice.audio-settings"] .settings-range-row strong { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
[data-ws-plugin-part="kaak-workspace"] .dock-audio-button {
border: 1px solid transparent;
border-radius: 8px;
@@ -1537,7 +1596,12 @@
[data-ws-part="voice.audio-settings"] .settings-select {
min-height: 42px;
color: #e9eaed;
background: #2a2b31;
appearance: none;
padding-right: 42px;
background:
linear-gradient(45deg, transparent 50%, #aeb0b7 50%) calc(100% - 17px) 50% / 6px 6px no-repeat,
linear-gradient(135deg, #aeb0b7 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
#2a2b31;
border: 1px solid #414249;
border-radius: 9px;
font-size: 14px;
@@ -1545,7 +1609,10 @@
}
[data-ws-part="voice.audio-settings"] .settings-select:hover:not(:disabled) {
background: #303137;
background:
linear-gradient(45deg, transparent 50%, #aeb0b7 50%) calc(100% - 17px) 50% / 6px 6px no-repeat,
linear-gradient(135deg, #aeb0b7 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
#303137;
border-color: #595a62;
}
@@ -1559,6 +1626,10 @@
background: #2a2b31;
}
[data-ws-part="voice.audio-settings"] .settings-select:active:not(:disabled) { border-color: #70d48a; }
[data-ws-part="voice.audio-settings"] .settings-select:disabled { cursor: not-allowed; opacity: .55; }
[data-ws-part="voice.audio-settings"] .settings-select option:checked { color: #e9eaed; background: #303b34; }
[data-ws-part="voice.audio-settings"] .microphone-control,
[data-ws-part="voice.audio-settings"] .audio-diagnostic,
[data-ws-part="voice.audio-settings"] .mic-test,
@@ -1599,9 +1670,11 @@
[data-ws-part="voice.audio-settings"] .settings-range {
height: 22px;
margin: 8px 0 20px;
appearance: auto;
accent-color: #58c877;
background: transparent !important;
appearance: none;
border: 0;
border-radius: 99px;
background: linear-gradient(to right, #58c877 0%, #58c877 var(--ws-range-progress, 0%), #414248 var(--ws-range-progress, 0%), #414248 100%) center / 100% 4px no-repeat !important;
cursor: pointer;
}
[data-ws-part="voice.audio-settings"] .settings-range-row strong {
@@ -1653,3 +1726,11 @@
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > strong { font-size: 13px; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-panel { animation: none; }
[data-ws-plugin-part="kaak-workspace"] .dock-slider::-webkit-slider-thumb,
[data-ws-plugin-part="kaak-workspace"] .dock-slider::-moz-range-thumb,
[data-ws-part="voice.audio-settings"] .settings-range::-webkit-slider-thumb,
[data-ws-part="voice.audio-settings"] .settings-range::-moz-range-thumb { transition: none; }
}