WIP:feat:增加消息reaction及用户反馈分析能力#558
Open
1s0chrys1s wants to merge 5 commits into
Open
Conversation
- 新增 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/ 目录
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.