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