|
|
8c1cf54213
|
fix: resolve P0 stub/false-positive issues found in SENIOR_DEV_REVIEW audit
- Remove dead stub UploadAvatar in user_handler.go (real impl in avatar_handler.go)
- Fix GetAuthCapabilities to call service (was returning hardcoded static JSON, missing admin_bootstrap_required)
- Replace AdminRoleID=1 hardcoded constant with getAdminRoleID(ctx) dynamic lookup by code="admin"
- Fix double Argon2id hash computation in ChangePassword (hash once, reuse)
- Add PredefinedRoles seed to newIsolatedDB test infrastructure (fixes broken ADMIN_* tests)
|
2026-04-11 10:27:29 +08:00 |
|
|
|
713ca29419
|
docs: update 2026-04-10 completion review with new quality standards
Apply standards from QUALITY_STANDARD.md, PRODUCTION_CHECKLIST.md,
TECHNICAL_GUIDE.md, and PROJECT_EXPERIENCE_SUMMARY.md:
- Document TDD fixes completed (role/admin/avatar APIs, lint, SLA)
- Identify gaps per new standards (privilege failure tests, jsdom noise,
main entry not re-verified)
- Add "live不等于闭环" lessons learned
- Update honest assessment to reflect new quality bar
|
2026-04-10 09:34:51 +08:00 |
|
|
|
dbff591039
|
fix: update admin flows and review report
|
2026-04-10 08:09:48 +08:00 |
|
|
|
f1bbba48c3
|
docs: update status and completion review
|
2026-04-09 23:59:47 +08:00 |
|
|
|
a3e090e821
|
test: add service layer unit tests for webhook/metadata/error/config
- webhook_service_test.go: isPrivateIP, isSafeURL, computeHMAC
- request_metadata_test.go: context functions
- classified_error_test.go: error types
- config_defaults_test.go: password reset/SMS defaults
- email_config_test.go: email code defaults
- auth_runtime_test.go: isUserNotFoundError
Service coverage: 11.2% -> 14.7%
|
2026-04-09 15:30:26 +08:00 |
|
|
|
a85d822419
|
fix: 统一API响应格式并修复前端测试
- 所有Handler方法使用标准{code:0,message:"success",data:...}响应格式
- 修复Cursor分页响应包装(GetAllDevices,GetLoginLogs,ListUsers等)
- 修复AuthHandler和SMSHandler认证方法响应格式
- 修复operation_log.go admin用户operation_type前缀问题
- 修复DashboardPage嵌套stats结构
- 修复LoginLogsPage reset功能stale closure问题
- 修复UsersPage批量操作API调用
- 修复多个前端测试(mock格式、按钮选择、断言逻辑)
- 添加OAuth测试域名白名单
- 新增代码审查流程文档
|
2026-04-08 20:06:54 +08:00 |
|
|
|
5b6bd93179
|
refactor: 整理项目根目录结构
整理内容:
- 删除 60+ 临时测试输出文件 (*.txt)
- 移动二进制文件到 bin/ 目录
- 移动 Shell 脚本到 scripts/ 目录
- scripts/dev/: check_gitea.sh, check_sub2api.sh, run_tests.sh
- scripts/deploy/: deploy_*.sh, simple_deploy.sh
- scripts/ops/: fix_nginx.sh, fix_ssl.sh, install_docker.sh
- scripts/test/: test_*.sh, test_*.bat
- 移动批处理文件到 scripts/
- 移动 Python 脚本到 tools/
- 清理临时日志文件
保留根目录必要文件:
- go.mod, go.sum, go.work
- Makefile, docker-compose.yml
- .env.example, .gitignore
- README.md, AGENTS.md, DEPLOY_GUIDE.md
验证: go build ./... && go test ./... 通过
|
2026-04-07 18:10:36 +08:00 |
|
|
|
10d126ee12
|
docs: 添加系统性优化方案 (P1-P2)
|
2026-04-03 21:08:18 +08:00 |
|
|
|
44e60be918
|
docs: 添加项目全面审查报告(合并版)
|
2026-04-02 13:59:27 +08:00 |
|
|
|
bbeeb63dfa
|
docs: project docs, scripts, deployment configs, and evidence
|
2026-04-02 11:22:17 +08:00 |
|