diff --git a/docs/KAAK-CLONE-WORKLOG.zh-CN.md b/docs/KAAK-CLONE-WORKLOG.zh-CN.md index 65e6c1b..546b5f4 100644 --- a/docs/KAAK-CLONE-WORKLOG.zh-CN.md +++ b/docs/KAAK-CLONE-WORKLOG.zh-CN.md @@ -12,7 +12,7 @@ ## 当前检查点(2026-10-11) -- KAAK 当前版本已升至 3.1.48;成员说话状态颜色补齐后,保持已记录的音量反馈、性能卡片、设备下拉交互、字体层级和聊天/成员布局。远端 `dev` 以最后一次 GitHub 核对结果为准;由于本机连接重置,本地 `origin/dev` 指针落后且提交图不同,后续推送需优先走 GitHub API。 +- KAAK 当前版本已升至 3.1.49;性能卡片测量中加入刷新图标动效,并尊重减少动态效果偏好。远端 `dev` 以最后一次 GitHub 核对结果为准;由于本机连接重置,本地 `origin/dev` 指针落后且提交图不同,后续推送需优先走 GitHub API。 - 语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均已有对应实现;音频设置标签为 KOOK 已记录的 14px/400,表单卡与字段行按实测宽度/行高调整。 - 直接观察记录覆盖语音侧栏/频道树、成员卡与悬停姓名、当前语音频道聊天开合、语音坞、音频设置字体及设备列表尺寸和状态。付费屏幕分享与独立文字频道暂不复刻。 - 设备选择菜单已按皮肤实际高度限位;KAAK 3.1.41 的滑杆样式已更新,完整测试 661/661,服务端与前端构建通过。用户已明确 KOOK 音乐语音频道附带聊天默认收起、普通语音频道默认展开。TeamSpeak `ChannelInfo` 与皮肤上下文没有音乐类别字段,KAAK 当前无法自动按类别应用两种默认值;不按频道名猜测,后续需要通用的显式分类来源。 @@ -20,7 +20,7 @@ - KOOK 音频设置页可读到 732px 主内容区、660px 表单卡、72px 字段行及 268/320px 标签/控件列;当前设备名属于隐私数据,不记录。 - 本地 KAAK 3.1.48 音频/成员状态的目视验收仍待本次版本权限批准;没有沿用旧版授权,也未声称新版验收通过。 - KOOK 设置页还展示降噪开关与档位入口;KAAK 只使用 WebSpeak 已有的通用降噪开关,不复制专有算法或档位。 -- 前一轮复查代码与已有观察记录后,没有为音量、性能卡、字体或设备选择重复造功能;KOOK 标签列表可读,但两次页面无障碍树读取超时,未产生新的原页观察。下一节点继续核对成员/聊天动画,待原页可读取后按具体差异修改。 +- 成员和聊天动态状态已有初步实现;后续继续按现有原页观察逐项细化动画和布局,不将缺少原页证据的参数写成实测值。 ## 已完成的修改节点 @@ -325,3 +325,12 @@ - 验证:`npm run skin:kaak:build`、`npm run verify`(661 项通过、服务端 `tsc`、前端 `vue-tsc`/Vite 构建)和 `git diff --check` 通过。验证的是颜色令牌与分发包内容;没有据此声称完成 KOOK 说话态视觉验收。 - 影响文件:KAAK CSS、版本清单/目录、示例与内置分发包、包测试、说明及本工作记录。 - 当前状态与下一步:说话文字反馈已和同卡片的绿色情绪反馈统一;下一节点继续精确核对成员/聊天动画。KOOK 页面无障碍树当前无法读取,原页视觉核查待浏览器恢复后补做;屏幕分享仍按用户要求跳过。 + +## 本轮修改节点(2026-10-11,KAAK 3.1.49 性能卡刷新反馈) + +- 问题依据:KAAK 性能卡的“立即测量”按钮在采样期间会禁用,卡片底部也显示采样状态,但按钮图标没有动态变化;用户要求把交互反馈也纳入复刻。本节点补全 WebSpeak 诊断卡片自身的忙碌反馈,不声称这是 KOOK 的专有交互。 +- 修改内容与边界:仅当刷新按钮处于禁用采样状态时旋转刷新图标;尊重系统减少动态效果设置。未修改测量逻辑、采样频率、性能指标、音频/网络行为或其他皮肤。 +- 文档与分发包:KAAK 升至 3.1.49,更新包版本断言与说明,并重建示例和内置 `.wskin`。 +- 验证:`npm run skin:kaak:build` 与完整 `npm run verify` 通过;后者包含全部测试、服务端构建及前端类型检查/生产构建。`git diff --check` 通过(仅有仓库既有 LF/CRLF 转换提示);未进行新的 KOOK 页面读取或本地皮肤目视验收。 +- 影响文件:KAAK CSS、manifest/内置目录版本、包测试、示例说明、工作记录和两个分发包。 +- 当前状态与下一步:刷新测量状态增加明确的图标反馈;随后回到有直接 KOOK 观察依据的成员/聊天样式与交互节点,屏幕分享继续跳过。 diff --git a/docs/examples/KAAK-VOICE.md b/docs/examples/KAAK-VOICE.md index 885daeb..5b95e9b 100644 --- a/docs/examples/KAAK-VOICE.md +++ b/docs/examples/KAAK-VOICE.md @@ -4,6 +4,8 @@ The participant stage uses larger profile portraits (104px on desktop, reduced f The voice-channel sidebar follows KOOK's observed typography: 16px/700 server title, 12px/700 group title, 14px/700 channel title, and 12px/400 low-contrast member count. +While the WebSpeak performance card is sampling, its refresh icon spins to show the busy state; the animation is disabled when reduced motion is requested. + 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. Closing it hides the entire panel, expands the participant stage, and leaves a reopen button in the stage heading; this happens 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 fade upward into the lower-left label on hover; they remain visible while chat is collapsed. KAAK's CSS adds hover depth and a smoothly transitioning speaking ring 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. Audio input and output devices use a reusable keyboard-accessible picker with a scrollable option list, selected/highlighted states, and an animated chevron; KAAK styles the trigger and open list. The connection surface, voice workspace, and audio settings share KOOK's PingFang SC-first font stack; audio settings use 16px/600 section headings and observed 14px/400 field labels. Audio sliders use a 16px thumb with hover/focus feedback. The performance card opens with a short entrance motion and readable network/audio metrics. No real device, volume, or microphone state is changed during visual checks. 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 collapses and expands with a short two-way height and fade transition 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. diff --git a/docs/examples/kaak-voice.wskin b/docs/examples/kaak-voice.wskin index 9cc7103..f788fb4 100644 Binary files a/docs/examples/kaak-voice.wskin and b/docs/examples/kaak-voice.wskin differ diff --git a/docs/examples/kaak-voice/manifest.json b/docs/examples/kaak-voice/manifest.json index 8865c25..d77570b 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.48", + "version": "3.1.49", "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 6610367..da4035b 100644 --- a/docs/examples/kaak-voice/skin.css +++ b/docs/examples/kaak-voice/skin.css @@ -1557,6 +1557,14 @@ border-color: var(--skin-kaak-accent-hover); } +[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-refresh:disabled .ui-icon { + animation: kaak-performance-refresh-spin .72s linear infinite; +} + +@keyframes kaak-performance-refresh-spin { + to { transform: rotate(360deg); } +} + [data-ws-plugin-part="kaak-workspace"] .dock-hover-panel { color: #e9eaed; background: #202126; @@ -2075,6 +2083,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-refresh:disabled .ui-icon { animation: none; } [data-ws-plugin-part="kaak-workspace.performance-panel"] .voice-performance-panel-enter-active, [data-ws-plugin-part="kaak-workspace.performance-panel"] .voice-performance-panel-leave-active { transition-duration: .01ms; } [data-ws-part="voice.audio-settings"] .settings-select-chevron, diff --git a/web/public/skins/kaak-voice.wskin b/web/public/skins/kaak-voice.wskin index 9cc7103..f788fb4 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 c078d3b..0f53179 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.48", + version: "3.1.49", author: "WebSpeak Project", license: "AGPL-3.0-only", description: "A KOOK-inspired voice-room workspace with collapsible voice groups, current voice-channel chat, TeamSpeak profile cards, and accessible host-owned voice controls.", diff --git a/web/src/services/skin-pack.test.ts b/web/src/services/skin-pack.test.ts index aafd766..4c45300 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.48"); + assert.equal(skin.version, "3.1.49"); 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"); @@ -631,6 +631,8 @@ test("the distributable KAAK package provides full home and voice surfaces", asy assert.match(skin.css, /chat-send[\s\S]*?::after \{ content: "➤";/); assert.match(skin.css, /kaak-workspace\.member-cards[\s\S]*?\.voice-card[\s\S]*?aspect-ratio: 1\.82;/); assert.match(skin.css, /@keyframes ws-community-kaak-voice-kaak-member-speaking-wave/); + assert.ok(skin.css.includes("animation: ws-community-kaak-voice-kaak-performance-refresh-spin .72s linear infinite;")); + assert.ok(skin.css.includes("performance-refresh:disabled .ui-icon { animation: none; }")); assert.match(skin.css, /kaak-workspace\.identity-entry[\s\S]*?position: absolute;/); assert.ok(skin.css.includes("@media (max-width: 820px)")); });