Files
douyi_guaji_main/artifacts/webui_checks/20260601/issues.md
T

33 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# WebUI 用户视角问题清单(2026-06-01)
## 已修复(本轮)
1. `/api/config` 布尔值字符串会被错误写入
- 现象:`"false"` 可能被当成 `true`。
- 修复:后端 `routes.py` 新增 `_coerce_bool`,前端 `config_form.js` 同步字面量解析。
2. 设备动作在无设备时存在未捕获 Promise 报错噪音
- 现象:点击“返回键”后可能触发全局 `pageerror`(虽有提示但会污染错误面板)。
- 修复:`runtime_device_actions.js` 的 `sendBackKey()` 增加局部 `try/catch`。
3. 预约/高价值列表中少量字段未统一做安全处理
- 现象:个别字符串字段直接插入模板字符串。
- 修复:`runtime_actions.js` 对 `future_str` 等补 `escapeHtml`,数值字段统一显式数值化。
4. WiFi 自动重连与扫描参数错误码语义不清
- 修复:
- 无 adb:`/api/wifi/auto-reconnect` 返回 `422`。
- `ports` 非法:`/api/wifi/scan` 返回 `400 invalid ports`。
- `probe_timeout` 非法继续返回 `400`。
## 仍可优化(下一批)
1. 移动端首屏头部信息密度偏高
- 证据:`mobile_home.png` 中操作按钮区占比较大,设备/状态卡阅读层级偏挤。
- 建议:在 `< 420px` 下把二级按钮折叠进更多菜单,保留“开始/停止/截图”主操作。
2. Tab 横向切换在自动化点击中偶发不可见状态
- 证据:Playwright 偶发 `runLogs` tab 点击超时(人工可复现概率低)。
- 建议:为 tab click 增加 `scrollIntoView` + `requestAnimationFrame` 后触发,提升自动化与低端机稳定性。