docs: 更新 BUGFIX.md 标记 Low 优先级 #27-#31 为已完成,BUGFIX.md 全部清零

This commit is contained in:
2026-02-26 20:26:13 +08:00
parent deba7ab2bb
commit 838f98b48b
+10 -18
View File
@@ -109,25 +109,17 @@
## Low — 可以改进 ## Low — 可以改进
- [ ] **#27 icon-only 按钮缺少 aria-label** - [x] **#27 icon-only 按钮缺少 aria-label**
- 文件:`panic/page.tsx``blindbox/[code]/page.tsx``ShareCardModal.tsx` 等多处 - panic/blindbox/ShareCardModal/AuthModal 中所有 icon-only 按钮补 aria-label
- 屏幕阅读器只报 "按钮" 无描述
- [ ] **#28 AudioContext 每次 playChime() 新建** - [x] **#28 AudioContext 每次 playChime() 新建**
- 文件:`src/lib/celebrate.ts` - 缓存复用单个 AudioContextstate === "closed" 时才重建
- 浏览器限制并发 AudioContext 数量 (~6),快速重复触发可能静默失败
- 修复:缓存复用单个 AudioContext
- [ ] **#29 ApiError.name 是 "Error" 而非 "ApiError"** - [x] **#29 ApiError.name 是 "Error" 而非 "ApiError"**
- 文件:`src/lib/api.ts` - 已在 High 批次修复
- 堆栈和日志中显示 `Error:` 而非 `ApiError:`,调试不便
- 修复:构造函数加 `this.name = "ApiError"`
- [ ] **#30 blindbox lobby 加载房间失败静默无提示** - [x] **#30 blindbox lobby 加载房间失败静默无提示**
- 文件:`src/app/blindbox/page.tsx` - 新增 loadError state,失败时显示"加载失败 / 点击重试"
- catch 空处理,用户看到空列表以为没房间
- [ ] **#31 theme localStorage 读取不校验合法值** - [x] **#31 theme localStorage 读取不校验合法值**
- 文件:`src/lib/theme.ts` - 已在 Critical 批次修复(VALID_THEMES 白名单校验)
- 任意字符串被当作 Theme 使用
- 修复:对比 `["light", "dark", "system"]` 白名单