Commit Graph

1195 Commits

Author SHA1 Message Date
xiaoxia 6ce9a0e67e Merge pull request 'fix: Redis session env fix + JWT import path fix (登录失败根因修复)' (#52) from hotfix/redis-session-env-fix into develop 2026-06-27 17:18:11 +08:00
xiaoxia a5c5da50c6 fix: 修复 jwt_service.py 错误的 settings 导入路径导致登录 401
- packages.config.settings 模块不存在,改为 from app.config import settings
- 此 bug 导致 JWT token 生成时 ModuleNotFoundError,被 except 捕获后返回通用 401
2026-06-27 17:17:38 +08:00
xiaoxia a6e85092ce fix: 统一 ENABLE_REDIS_SESSIONS 命名,修复登录因 AttributeError 导致 500 2026-06-27 17:05:48 +08:00
Audit Agent 91bdc57402 fix: remove duplicate route configuration
Issue #28: Clean up duplicate routes

- Removed duplicate 'profile/settings' route that pointed to same Settings component
- 'profile' route is now the single route for settings page
2026-06-27 17:01:31 +08:00
Audit Agent 80544af807 fix: remove console.log statements from frontend code
Issue #26: Clean up console.log debug statements in production code

- Removed debug console.log from Plans.tsx (subscription page)
- Removed debug console.log from ProjectGeneration.tsx (workspace page)
- Kept console.error for error logging
2026-06-27 16:59:43 +08:00
xiaoxia 9bb40d9c30 Merge pull request 'fix: correct ENABLE_REDIS_SESSIONS typo to ENABLE_REDIS_SESSION' (#46) from fix/enable-redis-session-typo into develop
Merge pull request #46: fix ENABLE_REDIS_SESSIONS typo
2026-06-27 14:46:20 +08:00
xiaoxia 388aafbab0 fix: correct ENABLE_REDIS_SESSIONS typo to ENABLE_REDIS_SESSION 2026-06-27 14:45:50 +08:00
xiaoxia eb10c1638f Merge pull request 'fix: 修复部署v0.1.64 - SmartEditPlanGenerator迁移 + 移除workspaces死路由' (#45) from fix/deployment-v0.1.64-hotfix into develop 2026-06-27 12:44:38 +08:00
CI Bot 36e12f77a9 fix: move SmartEditPlanGenerator to domain layer, remove dead workspaces route 2026-06-27 12:44:04 +08:00
CI Bot 44ca36e1a5 fix: remove Workspace from domain __init__ (class removed but import remained) 2026-06-27 12:09:16 +08:00
xiaoxia 52362ce498 Merge pull request 'fix: 消除 API↔Worker 跨端依赖(架构解耦)' (#44) from fix/architecture-decouple into develop 2026-06-27 11:16:03 +08:00
xiaoxia 1404731eb2 Merge pull request 'fix: 修复数据库迁移版本冲突 (007→008→009)' (#43) from fix/migration-repair into develop 2026-06-27 11:15:53 +08:00
xiaoxia 42a3d12d87 Merge pull request 'fix: resolve all workspace removal breakage - stub permissions, quota, ports, adapters' (#42) from fix/workspace-removal-compat into develop 2026-06-27 11:15:40 +08:00
CI Bot c98ab4c1ef feat: decouple API and Worker cross-service dependencies 2026-06-27 10:22:25 +08:00
CI Bot 705e2445e9 fix: resolve alembic migration version conflict (007)
Problem:
- Two migrations had revision ID 007 causing conflict:
  - 007_add_editing_mode.py
  - 007_add_video_dedup_fields.py
- 007_remove_workspace_concept had incorrect down_revision

Solution:
- Keep 007_add_editing_mode.py as revision=007 (first created)
- Rename 007_add_video_dedup_fields.py -> 008_add_video_dedup_fields.py
  with revision=008, down_revision=006
- Rename 007_remove_workspace_concept.py -> 009_remove_workspace_concept.py
  with revision=007_remove_workspace_concept, down_revision=008

Migration chain: 006 -> 007 -> 008 -> 009_remove_workspace_concept
2026-06-27 10:21:12 +08:00
CI Bot de4db98982 fix: add lazy jwt_service singleton proxy 2026-06-27 09:54:28 +08:00
CI Bot f62a050cb0 fix: add missing project_title_repository port 2026-06-27 09:51:37 +08:00
CI Bot 596ea163d7 fix: remove WorkspaceMember entity import from stub 2026-06-27 09:48:56 +08:00
CI Bot 034b147f92 fix: replace workspace_member_repository with stub (no model dependency) 2026-06-27 09:46:42 +08:00
CI Bot 4a8cbd5021 fix: correct dataclass field ordering and create() param order in generated_video and generation_task
- Move workspace_id after required fields in both dataclass and create()
- Fix indentation in create() method body
- Add missing timezone import in generation_task.py
2026-06-27 09:44:24 +08:00
CI Bot 11494918eb fix: resolve all workspace removal breakage - stub permissions, quota, ports, adapters
- Remove Workspace from domain/__init__.py exports
- Stub domain/permissions.py (all checks pass)
- Stub domain/quota.py (all checks pass)
- Create missing port stubs: workspace_member_repository, workspace_repository, workspace_invitation_repository
- Create missing adapter stubs: workspace_repository, workspace_invitation_repository
- Create routes/permissions.py stub (require_workspace_member no-op)
- Fix .env Redis URL encoding on production server
2026-06-27 09:16:53 +08:00
CI Bot 38c66a9c68 fix: add workspace_id compatibility for removed workspace concept 2026-06-27 08:43:02 +08:00
xiaoxia 2d6682a3de Merge pull request 'refactor(web): remove workspace-related frontend code' (#41) from refactor/remove-workspace-code into develop
Merge PR #41: remove workspace frontend code into develop
2026-06-27 07:35:56 +08:00
CI Bot c70add5d8d refactor(web): remove workspace-related frontend code after backend removal 2026-06-27 07:34:29 +08:00
xiaoxia 6279012158 Merge pull request 'refactor: sync workspace removal to main' (#40) from develop into main
Auto Merge PRs / auto-merge (push) Failing after 0s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
2026-06-27 00:51:51 +08:00
xiaoxia 0518c1ca2a Merge pull request 'docs: add release process and update git workflow' (#39) from chore/unify-ci-runners into develop 2026-06-27 00:51:02 +08:00
CI Bot 9f6ed89c09 fix: update default APP_VERSION to 0.1.61 2026-06-27 00:42:24 +08:00
CI Bot 89bada5608 feat: add auto-merge scripts and CI failure notification
- Auto merge script for PRs targeting develop/main
- CI failure check script
- Gitea Actions workflow for scheduled auto-merge
- Cron jobs for periodic execution
2026-06-27 00:42:05 +08:00
CI Bot 2a6b5045aa chore: unify CI/CD runner labels to runtime-builder:host 2026-06-27 00:41:39 +08:00
CI Bot 60adbf95ce chore: remove redundant .github/workflows (using Gitea Actions) 2026-06-27 00:41:09 +08:00
xiaoxia f729544e7c Merge pull request 'Merge develop to main - Release PR' (#37) from develop into main 2026-06-27 00:24:48 +08:00
CI Bot 0c97f40825 Merge branch 'pr-35' into develop 2026-06-27 00:23:55 +08:00
Deploy Agent 78e1af1054 feat: 标准化部署流程和文档化
- 添加 docs/deployment.md 完整部署文档,包含:
  - 环境要求
  - 首次部署流程
  - 版本更新流程
  - 回滚流程
  - 常见问题排查
  - 环境变量说明

- 添加标准化部署脚本:
  - scripts/deploy_production.sh: 生产环境部署脚本
  - scripts/deploy_staging.sh: 预发布环境部署脚本
  - scripts/rollback.sh: 回滚脚本(支持交互式和命令行模式)

- 完善 infra/docker/compose.yml:
  - 添加详细注释说明
  - 添加资源限制建议(注释)
  - 记录 web volume 挂载的注意事项(避免 403 问题)

- 添加 .github/workflows/release.yml:
  - 完整的发布流程
  - 构建所有三个镜像(api、worker、web)
  - 自动部署到生产环境
  - E2E 测试和 GitHub Release 创建
2026-06-27 00:09:46 +08:00
xiaoxia e915c0d6df fix: 创建 API 和 Worker Dockerfiles
- 创建 infra/docker/api.Dockerfile 用于 FastAPI 应用
- 创建 infra/docker/worker.Dockerfile 用于 Celery Worker
- 使用 python:3.12-slim-bookworm 作为基础镜像
- Worker 包含 ffmpeg 和 opencv 依赖(用于视频处理)
- API 包含 PostgreSQL 开发库(用于 psycopg2 编译)
- 分离镜像减少不必要的依赖
2026-06-27 00:04:15 +08:00
xiaoxia 0fb4d95bd0 fix: Web Dockerfile API URL 改为通用默认值
- 将硬编码的 VITE_API_URL=http://47.98.113.167:8000 改为 https://saas-api.xiaoxiajianji.com
- 支持通过 --build-arg VITE_API_URL=xxx 在构建时覆盖默认值
2026-06-27 00:02:34 +08:00
xiaoxia 0e1f411356 fix: 修复 DATABASE_POOL_RECYLE 拼写错误 -> DATABASE_POOL_RECYCLE
- 将配置变量名从 DATABASE_POOL_RECYLE 更改为 DATABASE_POOL_RECYCLE
- 修正了拼写错误,使配置与标准 SQLAlchemy 命名一致
2026-06-27 00:01:44 +08:00
xiaoxia e6b0a2d6d4 Merge pull request 'fix: 统一编辑模式枚举名并删除重复workflow' (#32) from develop into main 2026-06-26 23:12:45 +08:00
CI Bot db8c6d55ce fix: 统一编辑模式枚举名并删除重复workflow
1. 修复 edit_plan_generator.py 中的枚举名与 editing_modes.py 保持一致:
   - ONE_TAKE: one-take -> one_take
   - VOICEOVER -> VOICE_OVER: voiceover -> voice_over

2. 更新相关文档字符串和注释

3. 删除重复的 .gitea/workflows/tests.yml (ci-cd.yml 已包含完整测试)
2026-06-26 23:12:06 +08:00
xiaoxia f140a5c87d Merge pull request 'fix(web): disable noUnusedLocals/noUnusedParameters' (#7) from develop into main 2026-06-26 23:04:31 +08:00
CI Bot e795426302 add-opencv-dep 2026-06-26 23:00:29 +08:00
CI Bot 7c44da9379 chore: update requirements.txt 2026-06-26 22:46:59 +08:00
CI Bot a97e3e72e9 fix: 修复 dedup.py 语法错误和 pHash DCT 实现,修复 chunked_upload.py 缩进错误 2026-06-26 22:46:21 +08:00
CI Bot 597ddd4318 fix: escape quotes in JSX description prop 2026-06-26 22:19:43 +08:00
CI Bot 8c88fed8db feat: V21 Admin 页面样式对齐 (#31) 2026-06-26 22:15:42 +08:00
CI Bot d8afc46d29 feat: V21 Workspace+组件样式对齐 (#30)
Resolved merge conflict in business.css by keeping both sides
2026-06-26 22:15:36 +08:00
CI Bot c6d53060fa feat: V21 Auth 页面样式对齐 (#29) 2026-06-26 22:14:39 +08:00
xiaoxia 416d7646f4 feat: V21 订阅+设置页面样式对齐 (#28)
对齐 Subscription、UpgradeSubscription、Profile、Settings 页面到 V21 设计系统
2026-06-26 22:13:56 +08:00
CI Bot a980691a10 fix: 修复剩余两个 TS 编译错误
1. ProjectAssets.tsx: 处理 file_size 可能为 undefined 的情况
2. ProjectGeneration.tsx: 替换不存在的 AutoGenerateOutlined 为 ThunderboltOutlined
2026-06-26 22:09:02 +08:00
CI Bot 5e50e9ae07 fix: 修复两个 TypeScript 编译错误
1. ProjectAssets.tsx: 将 asset.size 改为 asset.file_size(与 AssetItem 接口一致)
2. ProjectGeneration.tsx: 将 ant-design/icons 改为 @ant-design/icons(正确的包名)

Fixes CI build errors
2026-06-26 22:06:34 +08:00
CI Bot 60c00c668c ci: trigger rebuild after fixing runner label matching 2026-06-26 22:02:04 +08:00