Repository navigation
fix: keep recovery action clickable above away overlay | 修复AI托管遮罩下连接恢复按钮无法点击的问题 - #511
Open
RainoutOvO wants to merge 1 commit into
Open
RainoutOvO wants to merge 1 commit into
RainoutOvO wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
选择一种改动类型,并填写以下内容。没有相关内容填“无”,不适用填“不适用”。
改动类型
改动说明
Note
写清问题、原因和范围。
改动说明:
玩家处于“AI 托管中”时,如果同一身份在其他页面登录,会出现“该身份已在其他页面登录 / 在此页面继续”的连接恢复提示。当前
.awayov的层级高于.conn-banner,导致恢复按钮虽然可见,但点击会被 AI 托管遮罩截获。本次将连接提示层级从60调整为75,使其高于.awayov的70。期望效果:
AI 托管遮罩存在时,“在此页面继续”按钮仍可正常点击。
关联 Issue / PR:
无
依据与假设
Note
涉及规则时附官方数据字段、PRTS 或实测;未确认细节及处理方式写入 [ASSUMED],代码中同步标注。
来源依据:
不适用
[ASSUMED]:
不适用
验证结果
Note
运行相关测试、npm run ci 和 npm run golden,如实记录结果及未运行或跳过原因。Golden 变化说明场景及原因;重构不得改变结果,预期结果有意变化时运行 npm run golden:update 并同提交。界面改动附截图。
验证方法:
通过现有“暂离”流程进入 AI 托管状态,再模拟
closed + REPLACED。使用document.elementFromPoint()检查恢复按钮中心位置的实际命中元素,并执行鼠标点击确认恢复 action 被调用。相关测试:
session replacement: recovery action stays clickable above the AI away overlaynode --test test/ui/devices.test.js test/client-static.test.js:364/364 通过SP_E2E=1 node --test test/ui/mock.e2e.test.js:新增用例通过;相关 mock E2E 复跑通过git diff --check:通过npm run ci:
六步全部通过;5929 pass、0 fail、42 skip。
npm run golden:
287 个场景全部匹配。
Golden 变化:
无
截图/录屏:
Before:
After:
适用性说明
不适用项:
规则文档同步、干员 kit Fidelity checklist。
原因:
UI 层级修复。
检查清单
Important
最后一步:回顾回答,仅勾选已完成的项目。