chore: sync develop → main (PR#97 前端交互反馈优化) #98

Merged
xiaoxia merged 3 commits from develop into main 2026-06-29 10:26:29 +08:00
Owner

同步 develop 到 main,包含:

  • PR#97: 前端交互状态反馈P0第一批(全局错误拦截器、14个页面onError、加载/错误状态、收藏反馈)
同步 develop 到 main,包含: - PR#97: 前端交互状态反馈P0第一批(全局错误拦截器、14个页面onError、加载/错误状态、收藏反馈)
xiaoxia added 3 commits 2026-06-29 10:25:14 +08:00
fix: 全面补充前端交互状态反馈
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
4143018faa
- client.ts: 添加全局错误拦截器,自动提取后端 detail/message/msg 字段展示 toast
  - 处理网络异常、超时、5xx 等场景
  - 通过 __msgShown 标记避免与组件 onError 重复弹提示
- 6 个 delete mutation 补充 onError 回退提示(AssetLibrary、TitleLibrary、
  VoiceLibrary、ProductLibrary、DuplicationResults×2)
- GeneratePage: 5 个 query 增加 loading + error 状态展示
- TemplateLibrary: favMutation 增加收藏/取消收藏成功提示及失败回退
- Dashboard: 增加 isError 错误状态展示,避免静默显示全零数据
- DuplicationDetail: 增加 isError 状态,区分加载失败与记录不存在
fix: P1 防止全局拦截器与组件 onError 双重 toast
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
fb935981a5
- 所有 React Query onError 中的 message.error 添加 __msgShown 检查
- 所有 try/catch 中的 message.error 添加 __msgShown 检查
- 涉及 14 个页面文件:AssetLibrary, TitleLibrary, VoiceLibrary,
  DuplicationUpload, TaskHistory, GeneratePage, ProductLibrary,
  Billing, UpgradeSubscription, Login, Register, ForgotPassword,
  ResetPassword, TemplateLibrary
- 修复 TemplateLibrary 缺少 message import 的问题

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Merge pull request 'fix: 全面补充前端交互状态反馈(P0 第一批)' (#97) from fix/frontend-feedback-improvement into develop
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
Tests / lint (pull_request) Failing after 242h28m20s
Tests / test (pull_request) Failing after 242h29m22s
f10a526497
xiaoxia merged commit 028415ad2d into main 2026-06-29 10:26:29 +08:00
Sign in to join this conversation.