wonder
1359c5c339
fix: use MySQL-compatible datetime format for cloned_at
...
Deploy PR-Helper / deploy (push) Successful in 22s
RFC3339 format (T separator, Z suffix) is rejected by MySQL DATETIME columns.
Use '2006-01-02 15:04:05' instead.
2026-06-21 14:39:36 +08:00
wonder
20be99b287
feat: add git pull to update cached repositories from remote
...
Deploy PR-Helper / deploy (push) Successful in 34s
- Replace dead FetchRemote with PullRepo (fetch + merge) in services/git.go
- Add POST /api/repos/:id/pull endpoint with DB size/last_used update
- Add '更新' button next to each cached repo in the index page
2026-06-21 14:31:33 +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
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
4f873cf2ce
fix: 改进 SSE 克隆处理,仓库页面添加调试信息
2026-06-18 23:04:58 +08:00
wonder
34ef868e10
feat: Phase 2 — Git 核心功能,go-git 克隆、SSE 进度、D3.js 图形、diff2html 查看器
2026-06-18 22:59:51 +08:00
wonder
1e9b1a2129
feat: Phase 1 — 项目骨架搭建,集成 Gin、SQLite 和设置页面
2026-06-18 22:48:16 +08:00