Commit f57741c
refactor: 重构项目绑定弹窗组件 (#157)
- 拆分 ForceProjectDialog 为多个子组件 (SessionInfo, CountdownTimer, ProjectSelector)
- 提取 useCountdown hook 用于倒计时逻辑
- 点击项目直接绑定,无需确认按钮
- 优化项目按钮样式,更加明显 (amber 边框和背景)
- 在请求列表中为等待绑定的请求显示 "等待绑定" 状态
- 在请求详情页添加项目绑定横幅,支持重新绑定
- 完善国际化支持
- 修复弹窗 z-index 问题,移至 SidebarProvider 外部
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 21898a9 commit f57741c
File tree
7 files changed
+435
-208
lines changed- web/src
- components
- layout
- hooks
- locales
- pages/requests
7 files changed
+435
-208
lines changed
0 commit comments