wonder
a6bd46db34
feat: support private repo cloning with HTTP basic auth
...
Deploy PR-Helper / deploy (push) Successful in 30s
- Add SSH URL detection with friendly prompt to use HTTPS instead
- Add private repo toggle (default off) with username/password fields
- Persist auth_type and credential in repositories table
- Pass stored credentials to PullRepo for authenticated pulls
- Incremental migration adds auth_type and credential columns
2026-06-21 14:58:12 +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
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
37aa9c0a33
fix: 结构化渲染审查总结,替换原始JSON显示
...
- 后端发送结构化数据(score/overall/findings/recommendations)而非格式化文本
- 增加灵活JSON解析,兼容LLM返回recommendations为数组的情况
- 前端渲染带样式的审查总结:评分徽章(颜色分级)、分区展示
- 两个页面统一处理:repo页面的内联审查和review页面的完整审查
2026-06-20 22:15:00 +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
4eaf89219d
feat: 添加 Toast 通知系统,替换所有 alert() 调用
2026-06-20 00:05:56 +08:00
wonder
a66074e49c
feat: 并发文件审查,可配置并行度
2026-06-19 23:40:13 +08:00
wonder
e4df6487ea
feat: 共享 markdown 渲染器,完整语法支持
2026-06-19 23:29:05 +08:00
wonder
0528eee4de
feat: 持久化 AI 审查结果,文件级内联展示与页面集成
2026-06-19 23:24:06 +08:00
wonder
8f346999fb
fix: 从 graph API 响应对象中提取 commits 数组
2026-06-19 22:59:02 +08:00
wonder
bf8fb62b07
fix: 审查页面分支列表加载失败时显示错误提示
2026-06-19 22:40:50 +08:00
wonder
c4e0ef33ab
fix: 仓库页面 ref 选择器填充最近提交
2026-06-19 22:40:19 +08:00
wonder
ba46b1479b
fix: 修正 review API 的 JSON 字段名(base/head 而非 base_ref/head_ref)
2026-06-19 22:39:12 +08:00
wonder
d320c3a847
feat: 生成/审查页面的 ref 选择器添加标签和最近提交
2026-06-19 22:23:54 +08:00
wonder
aee8f90148
fix: 统一所有页面中 repoId 的字符串类型
2026-06-19 22:22:20 +08:00
wonder
6c7195fe66
feat: 生成页面根据 URL 查询参数预选 Base/Head
2026-06-19 22:21:51 +08:00
wonder
ddaf849c86
fix: 生成页面分支列表加载失败时显示错误提示
2026-06-19 22:21:27 +08:00
wonder
c503b94f32
feat: 导航到生成/审查页面时,将所选 Base/Head 作为 URL 参数传递
2026-06-19 22:20:51 +08:00
wonder
e9f1a66aeb
fix: 修正 generate API 的 JSON 字段名(base/head 而非 base_ref/head_ref)
2026-06-19 22:19:38 +08:00
wonder
b35d6f874b
feat: Phase 5 — 审查备注编辑器与 PDF 导出
2026-06-19 22:10:13 +08:00
wonder
1cfab2d2d1
fix: 改进 diff 查看器样式和 markdown 渲染
2026-06-19 21:41:47 +08:00
wonder
a12d266a30
perf: 增量 diff 渲染,消除主线程阻塞
2026-06-19 20:29:29 +08:00
wonder
7ac3a3726b
feat: Phase 3 — 前端交互功能完成
2026-06-18 23:37:19 +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