Skip to content

WIP:feat:增加消息reaction及用户反馈分析能力#558

Open
1s0chrys1s wants to merge 5 commits into
riba2534:mainfrom
1s0chrys1s:fix_msg
Open

WIP:feat:增加消息reaction及用户反馈分析能力#558
1s0chrys1s wants to merge 5 commits into
riba2534:mainfrom
1s0chrys1s:fix_msg

Conversation

@1s0chrys1s
Copy link
Copy Markdown

No description provided.

1s0chrys1s and others added 5 commits June 2, 2026 01:50
- 新增 user_feedback 表存储用户反馈(赞/踩)
- 记录用户信息、上下文消息、AI 回复内容
- 从飞书事件中提取 chatJid 和用户信息
- 添加数据库辅助函数(getMessageById、getUserMessageBeforeMessage)
- 提供修复脚本和数据检查脚本
- Schema 版本升级到 v39

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- 新增反馈分析页面 (/feedback),包含统计概览、反馈列表、详情查看
- 新增反馈 API 路由: /api/feedback/stats, /api/feedback/list, /api/feedback/:id
- 在导航栏添加反馈入口
- 新增 feedback store 管理反馈数据状态
- 修复 API 错误信息显示问题 ([object Object] -> 实际错误消息)
- 完善 getLatestAiMessageInChat 等辅助函数
- 优化反馈存储逻辑的错误处理

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- 重构 feedback 路由使用共享数据库连接而非创建新连接
- 在 db.ts 中新增 getUserFeedbackStats/List/ById 函数
- 添加 view_audit_log 权限检查保护反馈数据
- 清理 feishu.ts 中的敏感日志输出(移除完整事件数据)
- 删除不相关的 TOPIC_REACTION 文档(未实现功能)
- 删除临时修复脚本 fix-user-feedback-table.js
- 移动 check-feedback.js 到 scripts/dev/ 目录
@1s0chrys1s 1s0chrys1s changed the title feat:增加消息reaction及用户反馈分析能力 WIP:feat:增加消息reaction及用户反馈分析能力 Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant