fix(kaak): match KOOK member name visibility

This commit is contained in:
illusia committed 2026-10-10 23:35:26 +08:00
1 parent 7ea19e14eb
commit 5d27b9e4a8
9 files changed
+23 -18

No files matched your search

+12 -12
View File
@@ -12,25 +12,25 @@
## 当前检查点(2026-10-10)
- 本轮从 `dev` 的 `42cf4fb` 开始,修改前工作区干净;该基线已包含之前推送的 KAAK 工作记录。
- 重新打开 KOOK 原始语音页并查看已授权的前两个语音频道。原页确认:中心成员卡片在聊天展开时仍有左下姓名标签;右侧面板是当前语音频道聊天。切换频道时面板标题随频道变化,且本次因原面板已展开,切换后仍保持展开。麦克风关闭、未发消息、未操作管理员功能;结束后关闭了临时 KOOK 标签。
- 本地 `3041` 一度继续提供旧 KAAK 包。重建皮肤包和前端后,服务返回的包哈希与生成包一致;更新皮肤版本后重新连接,浏览器加载了新版 KAAK。当前页面留在聊天展开状态,麦克风关闭,没有发送消息。
- 本轮修复后,姓名标签在聊天展开和收起两种状态都显示在成员卡左下角;收起时聊天变为窄栏,成员舞台扩宽,展开后恢复。
- 本轮承接 `dev` 的 `7ea19e1`,开始时工作区干净。
- 重新打开 KOOK 原始语音页并查看已授权的前两个语音频道。原页此前记录了“聊天展开时姓名标签仍可见”,但本轮首次进入后的截图修正了这一判断:静止时姓名隐藏,悬停成员卡后出现;聊天收起时姓名常显。首次进入已观察的两个授权语音频道时,右侧当前频道聊天均默认展开;不能据此推断音乐类频道默认状态。麦克风关闭、未发消息、未操作管理员功能;结束后关闭了临时 KOOK 标签。
- 本地 `3041` 一度继续提供旧 KAAK 包。重建皮肤包和前端后,服务返回的包哈希与生成包一致;更新皮肤版本后重新连接,浏览器加载了新版 KAAK。本轮重新连接时聊天展开并已验收姓名状态;目前聊天收起,麦克风关闭,没有发送消息。
- KAAK 3.1.22 曾让姓名在聊天展开和收起时都常显。新截图表明展开状态应改为静止隐藏、悬停显示;收起状态仍常显。本轮按这项直接证据修正并升版本。
## 已完成的修改节点
- 语音房间整体布局已按 KOOK 的语音客户端结构实现:左侧服务器栏与频道树、中心成员舞台、右侧当前语音频道聊天、左下语音控制坞。独立文字频道列表不在本轮范围。
- 频道树支持折叠语音分组;当前语音频道的文字聊天在房间内展开或收起,不需要离开语音房间。
- 中心成员呈现已从小头像列表调整为宽比例成员卡片,使用宿主可信成员卡展示可用头像,并对说话、静音和成员加入/离开提供状态样式与动画。
- KOOK 原页的成员姓名标签在聊天展开时仍可见。KAAK 原先只在聊天收起状态显示姓名;本轮调整 KAAK 样式,使姓名在两种状态下都显示为卡片左下角紧凑标签,状态副行仍隐藏。皮肤包版本升至 `3.1.22`,并同步内置皮肤目录版本,使客户端更新已安装包。
- 成员姓名标签遵循聊天面板状态:聊天展开时静止隐藏,悬停卡片时显示;聊天收起时固定显示在左下角。姓名以外的成员卡布局和状态副行保持当前设计。
- 语音坞继续复用 WebSpeak 宿主的音频、屏幕共享和断开控件;皮肤提供外观,不接管底层语音实现。
- 最近节点增加了通用频道占用数和容量数据投影,KAAK 在有限容量频道显示上限,在未限制容量时不显示上限。此数据能力位于共享 TeamSpeak 频道模型,不是 KAAK 专属引擎分支。
## 本次原页核对(2026-10-10,未完成)
## 本次原页核对(2026-10-10)
- KOOK 参考页的可访问性树和截图确认:当前语音频道行处于选中状态,中央显示成员卡片占位,语音控制区的麦克风为关闭;当时未显示右侧语音聊天面板。
- 随后尝试进入该已授权频道以观察首次进入状态。后续可访问性状态显示频道提示“再次点击进入”,证明当前只选中了频道、并未加入;没有获得加入后的界面,因此不能推断首次进入时聊天面板默认展开还是收起。麦克风仍为关闭。
- 当前卡点是参考页交互后的状态读取不稳定,不是实现代码问题。已关闭临时 KOOK 标签,账号不会继续留在语音频道。恢复核对时先重新读取当前页面;不要将“未显示面板”的未加入页面当成首次进入结果。
- 两个授权语音频道都在首次进入后显示右侧当前频道聊天面板,麦克风保持关闭。没有发送消息,也没有操作管理员功能。
- 展开聊天时成员卡在静止状态不显示姓名;悬停卡片后左下角出现姓名标签。收起聊天后标签保持显示,成员舞台随之扩宽。
- 原页末尾关闭临时 KOOK 标签;账号离开了语音频道。
## 最近一次代码验证
@@ -38,16 +38,16 @@
- `npm run skin:kaak:build`、`npm run web:build` 通过;web 构建包含 Vue 类型检查。
- `node --import tsx --test web/src/services/skin-pack.test.ts web/src/services/skin-catalog.test.ts`:23/23 通过。
- 本地浏览器确认姓名标签在聊天展开与收起状态都可见,收起和展开布局均正常;验收期间麦克风保持关闭且未发送消息。
- 本地浏览器确认:聊天展开时成员姓名默认隐藏,悬停后显示;聊天收起时两名成员的姓名均可见,且舞台扩宽。验收期间麦克风保持关闭,没有发消息。
- 上次全量 `npm test` 在基线 `620eb04` 为 653/654 通过,唯一失败是既有 `voice.member.mic-status` 布局钩子注册测试。此项与本轮样式节点无关,因此本轮没有重跑全量套件;后续累积相关改动后统一验证。
同时修正了 [KOOK 语音界面参考](./KOOK_VOICE_REFERENCE.zh-CN.md) 中把中心区和右侧区写反的旧描述,并保留“独立文字频道列表不在当前范围”的边界。
## 下一步
1. 若要实现“音乐语音频道的附属聊天默认收起”,先在 KOOK 的新进入状态核对该频道类型;本轮切换前面板已展开,不能据此判定默认值。
1. 单独定位并确认音乐类语音频道的首次进入默认状态;不要把本次两个普通语音频道默认展开的结果套用到音乐类频道。
2. 继续点对点核对成员加入/离开和说话状态动画;只根据原页可见的具体行为调整对应皮肤样式。
3. 累积几个相关节点后统一运行完整验证和浏览器验收,并把结果及新基线追加到本记录。
3. 后续单独核对音乐类语音频道默认状态及成员加入/说话动画;累积相关节点后统一验证并记录结果。
## 后续节点记录格式
+3 -1
View File
@@ -7,7 +7,7 @@
- 最左侧是纵向服务器栏;服务器内容区在其右侧,包含服务器信息和按组排列的频道。
- KOOK 有独立文字频道列表。它属于文字频道导航,不是语音频道附带的聊天;当前 WebSpeak 只复刻语音频道旁的聊天,不复刻这组独立文字频道。
- 语音分组行显示图标、频道名称及人数/上限。加入语音频道后,成员以缩进项目出现在频道行下方。
- 进入语音频道后,中央区域显示成员舞台。成员卡片为宽比例矩形,头像居中,姓名以紧凑标签放在卡片左下角,静音状态标记放在卡片右上角。参与者进入后会占据舞台卡片。
- 进入语音频道后,中央区域显示成员舞台。成员卡片为宽比例矩形,头像居中,静音状态标记放在卡片右上角。聊天展开时,姓名在静止状态下隐藏,悬停卡片后以紧凑标签显示在左下角;聊天收起时,姓名标签保持可见。
- 当前语音频道的文字聊天显示在右侧面板。面板标题对应当前语音频道,消息区占据主体,输入框固定在底部;右上角提供关闭/收起入口。
- 左下方语音控制坞显示当前连接状态、离开入口,以及屏幕分享等控件。外观参考不代表需要复制未获授权或未验证的功能。
- 顶部客户端下载提示、服务器广告、推广卡、发现与运营页面都不属于 WebSpeak 皮肤范围。
@@ -15,6 +15,8 @@
## 交互观察
- 语音频道第一次点击后会选中频道并提示再次点击;再次点击才进入。加入后成员出现在该频道下方,当前语音频道聊天和语音控制坞同时出现。
- 在本次首次进入的两个授权语音频道中,当前频道聊天默认展开。这个结果只证明已观察的频道;音乐类语音频道仍需单独确认。
- 聊天展开时,成员卡默认不显示姓名;鼠标移到卡片上后姓名标签出现。收起聊天后,成员卡姓名持续显示,即使鼠标停在聊天收起控件附近也没有隐藏。
- 从一个已加入频道切换到另一个授权频道时,成员归属和当前聊天标题随目标频道变化;本次切换前聊天面板已展开,所以切换后仍展开。这不能证明一个全新频道首次进入时聊天面板的默认折叠状态,尤其不能据此判定音乐语音频道的默认状态。
- 本次查看期间麦克风保持关闭,没有发送消息,也没有操作管理员功能。
- 当前页面呈现了中心成员舞台和右侧语音频道聊天;早期记录里“中心聊天、右侧成员列表”的描述与实际语音房间页面不符,已由本次原页观察更正。
+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 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 visible in a compact lower-left label while the voice chat is open or collapsed, matching KOOK's participant cards. 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. 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 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.
Binary file not shown.
+1 -1
View File
@@ -3,7 +3,7 @@
"packageType": "open-skin",
"id": "community.kaak-voice",
"name": "KAAK",
"version": "3.1.22",
"version": "3.1.23",
"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.",
+2
View File
@@ -943,6 +943,8 @@
}
[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 > span,
[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 { grid-column: 1; grid-row: 4; padding: 0 12px 12px; background: #17181bf5; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card[data-ws-self="true"] .screen-share-card-actions { display: none; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .screen-share-card-button { min-height: 36px; border-color: #ffffff1a; border-radius: 7px; color: var(--skin-kaak-text); background: #292a2f; }