wonder
55bfdf08ce
i18n: 中文化所有错误消息和用户交互文本
...
Deploy PR-Helper / deploy (push) Successful in 31s
- Go 后端 handler 错误消息统一中文化(middleware/repos/generate/review/settings)
- 前端 JS 加载和错误消息中文化(diff-viewer.js, graph.js)
- 模板页面错误 fallback 和静态文本中文化(index/generate/review/base)
- 消除中英文混杂,提升中文用户体验
2026-06-21 15:11:20 +08:00
wonder
735126ff56
fix: escape 'key' as reserved word in all MySQL queries with backticks
2026-06-20 23:21:24 +08:00
wonder
00c1839635
feat: migrate database from SQLite to MySQL with .env configuration
...
- Replace go-sqlite3 with go-sql-driver/mysql (pure Go, no CGO needed)
- Add joho/godotenv for .env file loading
- Rewrite database/db.go with MySQL-compatible DDL (BIGINT AUTO_INCREMENT, InnoDB, utf8mb4)
- Convert all SQLite-specific SQL: INSERT OR IGNORE → INSERT IGNORE,
INSERT OR REPLACE → INSERT ... ON DUPLICATE KEY UPDATE,
datetime('now') → NOW(), date arithmetic → DATE_SUB()
- Add MySQL config fields to config.go (host/port/user/password/database)
- Add .env.example with connection parameter template
- Update Dockerfile: remove CGO/gcc/musl dependency, smaller build
- Update docker-compose.yml: add MySQL service container with healthcheck
- Update CLAUDE.md documentation
2026-06-20 22:40:46 +08:00
wonder
6c60b767df
refactor: replace chromedp with browser native print for PDF export
...
Remove chromedp dependency, use window.print() instead. Docker image no longer needs Chromium (~200MB smaller).
- Delete services/pdf.go and templates/reports/review.html
- Remove PDF API route POST /api/repos/:id/review/pdf
- Add @media print CSS to review page
- Remove chromium from Dockerfile
2026-06-20 22:26:46 +08:00
wonder
9c843b79ba
feat: 添加用户注册登录功能,实现数据和配置的用户隔离
...
- 新增 users 和 user_settings 表,repositories/analyses/review_notes 添加 user_id 列
- 实现基于邮箱+密码的注册登录,密码使用 bcrypt 哈希
- 使用 gin-contrib/sessions cookie-based session 管理
- 所有仓库、分析记录、review notes 按用户隔离
- 用户设置(LLM 配置、review 参数、缓存配置)独立存储
- 新增登录/注册页面,导航栏显示用户邮箱和退出按钮
- 前端 fetch 请求统一添加 credentials: 'same-origin'
- 支持 SESSION_SECRET 环境变量配置会话密钥
2026-06-20 21:57:46 +08:00
wonder
72c7d8e7b3
fix: 在 handler 中检查错误,不再静默丢弃
2026-06-20 00:06:00 +08:00
wonder
a66074e49c
feat: 并发文件审查,可配置并行度
2026-06-19 23:40:13 +08:00
wonder
0528eee4de
feat: 持久化 AI 审查结果,文件级内联展示与页面集成
2026-06-19 23:24:06 +08:00
wonder
b35d6f874b
feat: Phase 5 — 审查备注编辑器与 PDF 导出
2026-06-19 22:10:13 +08:00
wonder
afb270721c
feat: Phase 4 — LLM 集成,PR 描述生成与 AI 代码审查
2026-06-19 19:43:18 +08:00
wonder
1e9b1a2129
feat: Phase 1 — 项目骨架搭建,集成 Gin、SQLite 和设置页面
2026-06-18 22:48:16 +08:00