Commit Graph

4 Commits

Author SHA1 Message Date
ZL-Q 1fe17b03df feat(web): 重写自动起卦页面并修复数据解析
主要更改:
- 重写 AutoDivinationPage 与 ManualDivinationPage 设计一致
  - 每爻单独摇卦(3秒/爻)
  - 完整教程系统(首次进入自动触发)
  - 确认弹窗显示积分信息
  - 统一时间选择组件样式
  - 移除返回按钮

- ManualDivinationPage 添加确认弹窗
  - 点击开始解卦显示积分确认
  - 添加中英文翻译

- 修复干支信息和空亡信息解析
  - 完善 HistoryAgentOutput 类型定义
  - 重写 historyMessageToResultData 正确解析嵌套 ganzhi 对象
  - 修复 DivinationProcessingOverlay SSE 数据解析

- 统一历史列表图标
  - 添加 hexagram 图标(六爻卦象抽象)
  - Dashboard 和 HistoryListPage 使用相同图标

- 修复 DivinationResultPage 追问导航 threadId
2026-05-10 14:53:43 +08:00
ZL-Q efe48f2068 feat(web): 历史解卦列表、结果页与追问功能
- 合并 DivinationResultPage 和 HistoryResultPage 为统一结果页
- 重写 HistoryFollowUpPage:API 加载历史消息、SSE 流式追问、配额管理
- 追问免费且限一次,输入框 UI 对齐设计稿(圆角容器+配额徽章+圆形发送按钮)
- 结果页追问状态根据线程消息数动态判断
- 历史列表筛选改为 9 类独立类型
- 提取 historyMessageToResultData 为共享函数,新增 enqueueFollowUpRun API
- 新增 auto_awesome/search/arrow_upward 图标
- 新增三语言 [id].astro、[id]/followup.astro、divination/result.astro 页面
2026-05-10 13:59:04 +08:00
zl-q 1fbb07f692 feat(web): add settings sub-pages and connect to backend APIs
- Add GeneralSettingsPage for language, privacy, and notification settings
- Add FeedbackPage for user feedback submission with image upload
- Connect settings to backend PATCH /users/me/settings API
- Implement language preference sync between frontend and backend
- Update login flow to pass language preference and redirect based on user settings
- Add Astro entry pages for /settings/general and /settings/feedback routes
- Update sidebar navigation: language button links to general settings
- Fix account data card to link to profile page
- Remove "deletion" text from account data description
2026-05-09 18:23:21 +08:00
zl-q 5aa46d3311 feat(web): add authenticated app shell 2026-05-09 16:00:29 +08:00