diff --git a/docs/KAAK-CLONE-WORKLOG.zh-CN.md b/docs/KAAK-CLONE-WORKLOG.zh-CN.md index df91d94..779a641 100644 --- a/docs/KAAK-CLONE-WORKLOG.zh-CN.md +++ b/docs/KAAK-CLONE-WORKLOG.zh-CN.md @@ -12,9 +12,8 @@ ## 当前检查点(2026-10-11) -- 最新待提交节点将 KAAK 升至 3.1.28:音量滑杆增加随值变化的进度、键盘焦点和悬停反馈;性能卡片补充轻量进入动画及更清晰的字号/数字对齐;设备选择补充箭头、悬停、禁用和选中状态。KAAK 组件现在可声明不呈现屏幕分享,因此不再申请分享权限,也不向成员卡和性能面板传入分享数据。 -- 本轮基于 `dev` 的 `bdd0c34` 修改,已提交为 `83902e0` 并推送至 `origin/dev`。前端构建、后端构建及相关皮肤测试通过;完整 `npm test` 为 654/655,唯一失败仍是 `voice.member.mic-status` 布局钩子未注册测试。 -- 已完成的上一节点 `bdd0c34` 是 KAAK 3.1.27 的本地提交,推送状态以本轮确认结果为准;此记录不包含服务器地址、密码、密钥、房间名或成员信息。 +- 当前 `dev` 已包含 KAAK 3.1.28(`83902e0`)及其进度记录(`2b6903f`):音量滑杆增加动态进度与焦点/悬停反馈,性能卡片调整进入动画与字号,设备选择补充状态;KAAK 组件可关闭分享 UI 并省去对应权限。 +- 下一节点正把已记录的 KOOK 单击选中、提示再次点击、双击加入行为补齐为可见反馈。3.1.27 的 `bdd0c34` 在当前已推送历史中;工作记录不存服务器地址、密码、密钥、房间名或成员信息。 - 重新打开 KOOK 原始语音页并查看已授权的前两个语音频道。原页此前记录了“聊天展开时姓名标签仍可见”,但本轮首次进入后的截图修正了这一判断:静止时姓名隐藏,悬停成员卡后出现;聊天收起时姓名常显。首次进入已观察的两个授权语音频道时,右侧当前频道聊天均默认展开;不能据此推断音乐类频道默认状态。麦克风关闭、未发消息、未操作管理员功能;结束后关闭了临时 KOOK 标签。 - 本地 `3041` 一度继续提供旧 KAAK 包。重建皮肤包和前端后,服务返回的包哈希与生成包一致;更新皮肤版本后重新连接,浏览器加载了新版 KAAK。本轮重新连接后聊天展开用于与 KOOK 对照,麦克风关闭,没有发送消息。 - KAAK 3.1.22 曾让姓名在聊天展开和收起时都常显。新截图表明展开状态应改为静止隐藏、悬停显示;收起状态仍常显。本轮按这项直接证据修正并升版本。 @@ -57,9 +56,8 @@ ## 下一步 -1. 已完成性能卡片、音量滑杆和设备下拉框的皮肤验收;下一节点聚焦成员状态动画与音乐语音频道的初始聊天状态。 -2. 继续点对点核对成员加入/离开和说话状态动画;只根据原页可见的具体行为调整对应皮肤样式。 -3. 单独确认音乐类语音频道首次进入时的聊天展开状态;不要把普通语音频道的结果套用到音乐类频道。 +1. 成员进入/离开、说话状态和聊天栏宽度已有皮肤动画;继续与 KOOK 的具体动效逐项对照,避免只按组件类别推断相似。 +2. 单独确认音乐类语音频道首次进入时附带聊天的展开状态;不要把普通语音频道的观察结果套用到音乐频道。 ## 本轮修改节点(2026-10-11) @@ -89,4 +87,12 @@ - 验证结果:`npm run skin:kaak:build`、`npm run build`、`npm run web:build` 通过;相关皮肤和编辑器测试 54/54 通过。完整 `npm test` 为 654/655,唯一失败仍为 `src/shared/skin-layout.test.ts` 中 `voice.member.mic-status` 未注册断言,与本轮触及的文件和行为无关。`git diff --check` 通过。 - 验收边界:代码检查和前端构建验证了新交互样式可运行;此前侧栏浏览器已确认性能卡片可展开、设备选项和音量滑杆可见,但本轮没有逐项操作新加的悬停/键盘状态。没有实际切换输入/输出设备、拖动音量、启动麦克风测试或操作屏幕分享,因此不记录为真实音频设备行为验收通过。 - 影响文件/提交:KAAK 组件与样式、可信组件选项和权限校验、组件宿主类型、测试、皮肤说明及打包文件;提交 `83902e0` 已推送至 `dev`。 -- 当前状态与下一步:先提交并推送本节点,再继续成员状态动画及音乐语音频道初始聊天状态;点对点核对仍以 KOOK 原始页可见证据为准。 +- 当前状态与下一步:3.1.28 已提交并推送;下一步确认音乐类语音频道首次进入时附带聊天的默认状态,并按原页可见行为继续逐项打磨。 + +## 本轮修改节点(2026-10-11,KAAK 3.1.29) + +- 参考依据:已记录的 KOOK 原页行为是频道首击选中并提示再次点击,第二击才进入;当前 KAAK 只有选中边框和无障碍双击说明,缺少可见提示。本轮尝试重新读取侧栏 KOOK 页时,浏览器桥接在读取标签状态阶段超时,因此没有把旧观察写成新观察。 +- 修改内容与范围:在选中的非当前语音频道行显示“ 双击加入 ”提示,加入后隐藏;提示淡入轻移并尊重减少动态效果偏好。仅改 KAAK 声明式组件、皮肤样式与文档,没有改 TeamSpeak 连接/加入逻辑或通用宿主行为。 +- 文档和分发包:KAAK 版本升至 3.1.29,内置目录与分发包同步;包测试覆盖提示条件、文本和加入后隐藏样式。 +- 验证结果:待统一运行皮肤包构建、皮肤包/目录测试、后端构建及前端类型检查与生产构建。 +- 当前状态与下一步:补齐已观察交互的可见确认反馈;下一节点仍待核对音乐类语音频道首次进入时附带聊天的默认展开状态。 diff --git a/docs/examples/KAAK-VOICE.md b/docs/examples/KAAK-VOICE.md index 7bbdba0..3977bd8 100644 --- a/docs/examples/KAAK-VOICE.md +++ b/docs/examples/KAAK-VOICE.md @@ -2,7 +2,7 @@ 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. +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. A first click selects a channel and reveals a brief “双击加入” hint; the hint disappears on the active room. 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. 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. diff --git a/docs/examples/kaak-voice.wskin b/docs/examples/kaak-voice.wskin index 9e7210d..cb5db97 100644 Binary files a/docs/examples/kaak-voice.wskin and b/docs/examples/kaak-voice.wskin differ diff --git a/docs/examples/kaak-voice/components.json b/docs/examples/kaak-voice/components.json index b9f97b0..e9b340b 100644 --- a/docs/examples/kaak-voice/components.json +++ b/docs/examples/kaak-voice/components.json @@ -422,6 +422,19 @@ } ] }, + { + "tag": "small", + "part": "channel-join-hint", + "when": { + "path": "state.selectedchannel", + "equals": "{{channel.id}}" + }, + "children": [ + { + "text": "双击加入" + } + ] + }, { "tag": "small", "part": "channel-count", diff --git a/docs/examples/kaak-voice/manifest.json b/docs/examples/kaak-voice/manifest.json index fa230ce..6c43551 100644 --- a/docs/examples/kaak-voice/manifest.json +++ b/docs/examples/kaak-voice/manifest.json @@ -3,7 +3,7 @@ "packageType": "open-skin", "id": "community.kaak-voice", "name": "KAAK", - "version": "3.1.28", + "version": "3.1.29", "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.", diff --git a/docs/examples/kaak-voice/skin.css b/docs/examples/kaak-voice/skin.css index 1a43c68..cd2de84 100644 --- a/docs/examples/kaak-voice/skin.css +++ b/docs/examples/kaak-voice/skin.css @@ -504,6 +504,25 @@ white-space: nowrap; } +[data-ws-plugin-part="kaak-workspace.channel-join-hint"] { + flex: 0 0 auto; + padding: 3px 5px; + border-radius: 4px; + color: #8cdda0; + background: #58c87718; + font-size: 9px; + line-height: 1; + white-space: nowrap; + animation: kaak-channel-join-hint .14s ease both; +} + +[data-ws-plugin-part="kaak-workspace.channel-row"][aria-current="true"] [data-ws-plugin-part="kaak-workspace.channel-join-hint"] { display: none; } + +@keyframes kaak-channel-join-hint { + from { opacity: 0; transform: translateY(2px); } + to { opacity: 1; transform: translateY(0); } +} + [data-ws-plugin-part="kaak-workspace.channel-count"] { color: var(--skin-kaak-dim); font-size: 10px; @@ -1728,6 +1747,7 @@ } @media (prefers-reduced-motion: reduce) { + [data-ws-plugin-part="kaak-workspace.channel-join-hint"] { animation: none; } [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, diff --git a/web/public/skins/kaak-voice.wskin b/web/public/skins/kaak-voice.wskin index 9e7210d..cb5db97 100644 Binary files a/web/public/skins/kaak-voice.wskin and b/web/public/skins/kaak-voice.wskin differ diff --git a/web/src/services/skin-catalog.ts b/web/src/services/skin-catalog.ts index 5c355ac..b60499b 100644 --- a/web/src/services/skin-catalog.ts +++ b/web/src/services/skin-catalog.ts @@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [ { id: BUILTIN_KAAK_SKIN_ID, name: "KAAK", - version: "3.1.28", + version: "3.1.29", author: "WebSpeak Project", license: "AGPL-3.0-only", description: "A KOOK-inspired voice-room workspace with collapsible voice groups and current voice-channel chat, TeamSpeak profile cards, and host-owned voice controls.", diff --git a/web/src/services/skin-pack.test.ts b/web/src/services/skin-pack.test.ts index e2c963d..a097c1e 100644 --- a/web/src/services/skin-pack.test.ts +++ b/web/src/services/skin-pack.test.ts @@ -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.28"); + assert.equal(skin.version, "3.1.29"); 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"); @@ -497,6 +497,8 @@ test("the distributable KAAK package provides full home and voice surfaces", asy const channelRow = findPart(voice?.root, "channel-row"); assert.equal(channelRow?.events?.click, "select-channel"); assert.equal(channelRow?.events?.dblclick, "join-channel"); + assert.deepEqual(findPart(channelRow, "channel-join-hint")?.when, { path: "state.selectedchannel", equals: "{{channel.id}}" }); + assert.equal(findPart(channelRow, "channel-join-hint")?.children?.[0]?.text, "双击加入"); assert.equal(findPart(voice?.root, "text-channel-group-toggle"), undefined); assert.equal(findPart(voice?.root, "text-channel-list"), undefined); const voiceGroupToggle = findPart(voice?.root, "voice-channel-group-toggle"); @@ -542,6 +544,8 @@ test("the distributable KAAK package provides full home and voice surfaces", asy assert.equal(findPart(voice?.root, "screen-share-start"), undefined); 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, /channel-row"\]\[aria-current="true"\][\s\S]*?channel-join-hint[\s\S]*?display: none;/); + assert.match(skin.css, /@keyframes ws-community-kaak-voice-kaak-channel-join-hint/); assert.match(skin.css, /kaak-workspace\.voice-channel-group-toggle/); assert.match(skin.css, /kaak-workspace\.server-monogram"\]\[data-tone="0"\]/); assert.match(skin.css, /voice-stage-heading[\s\S]*?flex: 0 0 46px;/);