Commit Graph

1628 Commits

Author SHA1 Message Date
Audit Bot 78524a04eb fix: 修复复审2个建议 (models注释 + N+1查询 + 事务边界)
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- models.py: 注释中旧模式名对齐 EditingMode 枚举
- list_by_user: 批量加载 segments 避免 N+1 查询
- create(): flush 替代 commit,create_segments 统一提交事务
2026-06-29 14:53:21 +08:00
Audit Bot 9b6a0b8b14 fix: 修复代码审计5个问题 (P0-1,P0-2,P1-3,P1-4,P1-5)
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
P0-1: 剪辑模式使用 EditingMode 枚举,移除硬编码字符串
  - voice_over_mix → voice_over, person_narration → voice_pip
  - use_cases.py 导入 EditingMode 枚举替代硬编码 VALID_MODES

P0-2: 补充 packages/application/template/__init__.py

P1-3: Use Cases 依赖 TemplateRepositoryPort 而非 SQLAlchemyTemplateRepository

P1-4: generate 端点重命名为 validate(只校验不生成)
  - GenerateFromTemplateUseCase → ValidateTemplateUseCase
  - POST /{id}/generate → POST /{id}/validate

P1-5: 软删除模板时级联清理关联 segments,避免孤儿数据

测试全部通过 (21/21)
2026-06-29 14:44:24 +08:00
Audit Bot fff47a7a3d feat: 剪辑计划编辑器前端实现
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- 新增剪辑计划编辑器页面 (三栏布局)
  - 左侧:模板面板(搜索/筛选/加载模板)
  - 中间:预览区 + 时间线(片段拖拽排序)
  - 右侧:标题/字幕/BGM 设置面板
- 支持 4 种模式切换(画中画/人物口播/一镜到底/口播+混剪)
- 新增「我的模板」页面(卡片视图/编辑/复制/删除/生成)
- 新增 API 模块(mock 数据,后端就绪后替换)
- 更新路由和导航菜单

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-29 14:35:27 +08:00
Audit Bot 62c8d1cdff feat: 剪辑计划编辑器后端 — 模板 CRUD + 分类 + 生成校验
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- domain: Template, TemplateSegment, TemplateCategory 实体
- ports: TemplateRepositoryPort Protocol
- adapters: SQLAlchemyTemplateRepository + 3 个 ORM Model
- application: CRUD use cases + GenerateFromTemplateUseCase
- 业务规则: one_take=1片段, voice_over_mix=每段需material_type, 配音±30%警告
- schemas: Pydantic request/response models
- routes: /api/v1/templates CRUD + /generate + /categories
- alembic: 014_add_template_tables (templates/template_segments/template_categories)
- tests: 21 个单元测试全部通过
2026-06-29 14:14:58 +08:00
xiaoxia 5937b957a3 Merge pull request 'fix: 删除 main 分支残留的 010_add_foreign_key_constraints.py(修复 Alembic 双头)' (#104) from fix/alembic-dual-head into main
Auto Merge PRs / auto-merge (push) Failing after 37s
2026-06-29 13:03:32 +08:00
Audit Bot ecba3d8528 fix: 删除 main 分支残留的 010_add_foreign_key_constraints.py
Tests / lint (pull_request) Failing after 239h54m18s
Tests / test (pull_request) Failing after 239h54m18s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 239h54m40s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 239h54m40s
该文件来自旧 PR#65,与 develop 分支的 010_phase0_extensibility.py
共用 revision '010' 且都指向 down_revision '009',导致 alembic 双头问题。

develop 分支从未包含此文件,删除后迁移链恢复为单链:
001 → 002 → ... → 009 → 010(phase0_extensibility) → 011 → 012 → 013

验证: alembic heads 显示唯一 head 013
2026-06-29 12:57:49 +08:00
xiaoxia 8de26af3a2 Merge pull request 'chore: sync develop → main (PR#99/100/102 合并)' (#103) from develop into main
Deploy / Deploy Staging (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Production (push) Failing after 239h54m18s
Deploy / Build Production Runtime Images (push) Failing after 240h11m38s
v0.1.89
2026-06-29 12:41:27 +08:00
xiaoxia 2849aef47e Merge pull request 'feat: 配方复用功能后端实现' (#102) from feat/recipe-reuse-backend into develop
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
Tests / lint (pull_request) Failing after 240h12m11s
Tests / test (pull_request) Failing after 240h13m13s
2026-06-29 12:32:50 +08:00
xiaoxia d5c502f3cc Merge pull request 'docs: API 参考文档 v0.1.88 + CHANGELOG v0.1.77-v0.1.88' (#100) from docs/api-v0.1.88-update into develop
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-29 12:32:45 +08:00
xiaoxia 47d77ea29c Merge pull request 'fix: 前端交互全面审计 — 上传422修复 + 进度反馈 + 防重复提交' (#99) from fix/frontend-interaction-audit into develop
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-29 12:32:27 +08:00
Audit Bot f2e123a017 feat: 配方复用功能后端实现
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- domain: Recipe/RecipeItem 实体
- ports: RecipeRepository Protocol
- adapters: SQLAlchemy RecipeRepository 实现 + ORM models
- application: 6个 UseCase (CRUD + Use) + Commands
- API: 6个端点 POST/GET/PATCH/DELETE /recipes + POST /recipes/{id}/use
- feature flag: recipe_reuse 仅 basic/premium 可用
- Alembic 迁移: recipes + recipe_items 表
- 单元测试: 覆盖所有 UseCase
2026-06-29 10:59:05 +08:00
API文档维护 5154395edb docs: API 参考文档 v0.1.88 + CHANGELOG 更新
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- 新增 API 参考文档(v0.1.88),覆盖 17 个模块、50+ 端点
- 更新 CHANGELOG,记录 v0.1.77 ~ v0.1.88 的全部变更
- 重点更新:查重 API、订阅 API、标题库 API、配音库 API

变更内容:
- 认证 API:7 个端点
- 项目 API:3 个端点
- 任务中心 API:2 个端点
- 素材诊断 API:1 个端点
- 素材库 API:2 个端点
- 素材 API:3 个端点
- 导入/分类任务 API:4 个端点
- 上传 API:3 个端点
- 分片上传 API:4 个端点
- 生成任务 API:3 个端点
- 成片 API:4 个端点
- 标题库 API:5 个端点
- 配音库 API:5 个端点
- 查重 API:5 个端点
- 订阅 API:5 个端点
2026-06-29 10:53:32 +08:00
Audit Bot 53910e5f20 fix: 前端交互全面审计 — 上传422修复 + 进度反馈 + 防重复提交
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
🔴 P0 Bug:
- AssetLibrary: handleUpload 补充 project_id,调用 getOrCreateDefaultProject() 解决 422

🟡 P0 交互:
- AssetLibrary: 上传时显示 Spin + 禁用 Dragger + 文案提示「正在上传」
- client.ts: 新增 413/415/503 状态码专属提示

🔵 全面交互排查:
- GeneratePage: 生成中禁用步骤导航按钮防误操作
- Billing: 自动续费 Switch 添加 loading 状态防连点
- TemplateLibrary: 收藏按钮 mutation 进行中 disabled 防重复
- TitleLibrary: 空状态增加「新建标题」和「批量导入」引导按钮
2026-06-29 10:48:39 +08:00
xiaoxia 028415ad2d Merge pull request 'chore: sync develop → main (PR#97 前端交互反馈优化)' (#98) from develop into main
Deploy / Deploy Staging (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Production (push) Failing after 242h7m7s
Deploy / Build Production Runtime Images (push) Failing after 242h27m17s
v0.1.88
2026-06-29 10:26:29 +08:00
xiaoxia f10a526497 Merge pull request 'fix: 全面补充前端交互状态反馈(P0 第一批)' (#97) from fix/frontend-feedback-improvement into develop
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
Tests / lint (pull_request) Failing after 242h28m20s
Tests / test (pull_request) Failing after 242h29m22s
2026-06-29 10:11:51 +08:00
Audit Bot fb935981a5 fix: P1 防止全局拦截器与组件 onError 双重 toast
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- 所有 React Query onError 中的 message.error 添加 __msgShown 检查
- 所有 try/catch 中的 message.error 添加 __msgShown 检查
- 涉及 14 个页面文件:AssetLibrary, TitleLibrary, VoiceLibrary,
  DuplicationUpload, TaskHistory, GeneratePage, ProductLibrary,
  Billing, UpgradeSubscription, Login, Register, ForgotPassword,
  ResetPassword, TemplateLibrary
- 修复 TemplateLibrary 缺少 message import 的问题

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-29 09:42:37 +08:00
Audit Bot 4143018faa fix: 全面补充前端交互状态反馈
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- client.ts: 添加全局错误拦截器,自动提取后端 detail/message/msg 字段展示 toast
  - 处理网络异常、超时、5xx 等场景
  - 通过 __msgShown 标记避免与组件 onError 重复弹提示
- 6 个 delete mutation 补充 onError 回退提示(AssetLibrary、TitleLibrary、
  VoiceLibrary、ProductLibrary、DuplicationResults×2)
- GeneratePage: 5 个 query 增加 loading + error 状态展示
- TemplateLibrary: favMutation 增加收藏/取消收藏成功提示及失败回退
- Dashboard: 增加 isError 错误状态展示,避免静默显示全零数据
- DuplicationDetail: 增加 isError 状态,区分加载失败与记录不存在
2026-06-29 09:35:08 +08:00
xiaoxia ae52a63131 Merge pull request 'chore: sync develop → main (PR#94 素材库修复 + 前端优化)' (#96) from develop into main 2026-06-29 09:32:55 +08:00
xiaoxia 5650950900 Merge pull request 'fix: API Dockerfile 添加 scripts/ 目录,修复 deploy-production 验证脚本缺失' (#95) from fix/deploy-production-scripts into main 2026-06-29 09:32:20 +08:00
API文档维护Agent 4f9feb8c5a fix: API Dockerfile 添加 scripts/ 目录拷贝
Tests / lint (pull_request) Failing after 243h40m17s
Tests / test (pull_request) Failing after 243h40m17s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 243h40m52s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 243h40m53s
deploy-production.sh 在 API 容器内执行
python /app/scripts/validate_release_env.py,
当前 Dockerfile 未 COPY scripts 目录导致文件不存在、Deploy 步骤失败。

添加 COPY scripts/ /app/scripts/ 使部署验证脚本可用。
2026-06-29 09:13:27 +08:00
xiaoxia 6190752bb3 Merge pull request 'fix: 素材库新建自动获取/创建默认项目以提供 project_id' (#94) from fix/asset-library-project-id into develop
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
Tests / lint (pull_request) Failing after 243h20m43s
Tests / test (pull_request) Failing after 243h21m45s
2026-06-29 09:11:06 +08:00
Audit Bot 5eacac3abf fix: 修正 getProjects 响应解析 — 后端返回 {items:[...]} 而非裸数组
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- BackendProjectResponse 对齐后端 ProjectResponse(仅 id/name/description)
- getProjects 改为 response.data.items 解析
- 修复代码审计 PR#94 审查发现的 P0

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-29 07:25:41 +08:00
xiaoxia 18873e9db9 fix: 修复 APP_VERSION 环境变量读取 - 从 env_file 中读取而非使用默认值
Auto Merge PRs / auto-merge (push) Failing after 35s
2026-06-29 07:22:26 +08:00
xiaoxia d3fce20921 fix(compose): remove conflicting mem_limit, consolidate to deploy.resources.limits
Deploy / Deploy Staging (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Production (push) Failing after 245h20m33s
Deploy / Build Production Runtime Images (push) Failing after 245h36m44s
v0.1.87
2026-06-29 04:18:41 +08:00
xiaoxia c47e4769ed ci: remove push trigger, keep PR trigger only
Deploy / Deploy Staging (push) Has been skipped
Deploy / Build Production Runtime Images (push) Failing after 248h57m10s
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
v0.1.86 v0.1.83 v0.1.84 v0.1.85
2026-06-29 03:52:11 +08:00
xiaoxia 772b6ba731 ci: remove push trigger, keep PR trigger only 2026-06-29 03:52:10 +08:00
xiaoxia 16465e9dce ci: restrict deploy to tag-only triggers 2026-06-29 03:52:09 +08:00
xiaoxia dd99702f99 fix(ci): remove SSH debug verbose, use simple test
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (push) Failing after 27s
Tests / test (push) Failing after 0s
Tests / lint (push) Failing after 0s
Deploy / Build Production Runtime Images (push) Waiting to run
Deploy / Deploy Staging (push) Has been skipped
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
v0.1.82
2026-06-29 03:42:13 +08:00
xiaoxia 749caafe37 debug: add SSH verbose output
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (push) Failing after 29s
Tests / test (push) Failing after 0s
Tests / lint (push) Failing after 0s
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Staging (push) Failing after 11m15s
2026-06-29 03:34:45 +08:00
xiaoxia 220485b6cb fix(ci): hardcode SSH key path - use local key directly
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (push) Failing after 29s
Tests / test (push) Failing after 0s
Tests / lint (push) Failing after 0s
Deploy / Build Production Runtime Images (push) Failing after 56s
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 14m20s
2026-06-29 03:31:30 +08:00
xiaoxia afe0a444fe fix(ci): hardcode SSH key path
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (push) Failing after 31s
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Tests / test (push) Has been cancelled
Tests / lint (push) Has been cancelled
2026-06-29 03:30:05 +08:00
xiaoxia 9a33c712a2 fix(ci): 修复SSH主机配置 - 添加空值回退逻辑
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (push) Failing after 1m42s
Tests / test (push) Failing after 0s
Tests / lint (push) Failing after 0s
Auto Merge PRs / auto-merge (push) Failing after 35s
Deploy / Build Production Runtime Images (push) Failing after 59s
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 2h23m41s
2026-06-29 01:11:06 +08:00
xiaoxia 2650d65b51 fix(ci): ci-cd.yml 使用 node:20 替代 daocloud 镜像前缀
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
Tests / test (push) Failing after 0s
Tests / lint (push) Failing after 0s
Deploy / Build Production Runtime Images (push) Failing after 1m56s
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 16m3s
CI/CD Pipeline / Frontend Lint (push) Failing after 17m8s
2026-06-29 01:04:23 +08:00
xiaoxia b51ef0321b fix(ci): deploy.yml 使用 node:20 替代 daocloud 镜像前缀
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled
2026-06-29 01:04:22 +08:00
xiaoxia 8995c6fab8 fix(ci): 移除 deploy-production 和 e2e 的 if 条件
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (push) Failing after 1s
Tests / test (push) Failing after 0s
Tests / lint (push) Failing after 0s
Deploy / Build Production Runtime Images (push) Failing after 8s
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 1h9m26s
act_runner v1.0.8 bug: github.ref/github.ref_type 在 needs 依赖的后续 job 中为空。
移除 if 条件后,deploy-production 通过 needs 依赖 build-production 自然控制执行流:
- tag push → build 运行 → deploy 运行
- branch push → build 跳过 → deploy 跳过
2026-06-29 00:12:01 +08:00
xiaoxia f4ef2b48a4 fix(ci): 修复 tests.yml - 移除不存在的 Docker 镜像,改用主机运行
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (push) Failing after 1s
Deploy / Deploy Staging (push) Failing after 0s
Deploy / Build Production Runtime Images (push) Has been skipped
Tests / test (push) Failing after 0s
Tests / lint (push) Failing after 0s
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
- runs-on 改为 runtime-builder(匹配 runner labels)
- 移除 container: xiaoxia-ci-python:3.12(镜像不存在)
- Python 依赖在步骤中直接安装
2026-06-29 00:10:37 +08:00
xiaoxia 4d616262ec fix(ci): 修复 deploy.yml 中 job 条件判断 - 使用 github.ref_type 替代 startsWith
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (push) Failing after 3s
Tests / test (push) Failing after 1m2s
Tests / lint (push) Failing after 26s
Deploy / Deploy Production (push) Has been skipped
Deploy / Build Production Runtime Images (push) Failing after 9s
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 1h12m8s
Gitea runner v1.0.8 在后续 job 中丢失 github.ref 上下文,导致 startsWith 评估为 false
2026-06-29 00:09:16 +08:00
xiaoxia 4a28c2f34a fix(ci): 修正 runner label 匹配 - runtime-builder:host -> runtime-builder
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 0s
CI/CD Pipeline / Frontend Lint (push) Failing after 3m37s
Tests / test (push) Failing after 1m2s
Tests / lint (push) Failing after 1m2s
Deploy / Deploy Production (push) Has been skipped
Deploy / Build Production Runtime Images (push) Failing after 8m21s
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 1h25m44s
v0.1.81
2026-06-28 23:50:51 +08:00
xiaoxia abc12370b8 fix(ci): 修正 runner label 匹配 - runtime-builder:host -> runtime-builder
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
Tests / test (push) Has been cancelled
Tests / lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
2026-06-28 23:49:20 +08:00
Audit Bot 841b501c30 fix: 素材库新建自动获取/创建默认项目以提供 project_id
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- 新增 api/projects.ts:项目 API 模块,含 getOrCreateDefaultProject
- 修改 createAssetLibrary:自动解析 project_id 再发送请求
- 后端 CreateAssetLibraryRequest 要求 project_id,前端之前未发送导致 422
- 修复 P0:新建素材库点击确定无响应

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-28 22:01:38 +08:00
Audit Bot f279b49a90 fix: 修复标题库新建/编辑功能 — 前后端字段名不匹配导致422
Tests / test (push) Failing after 1m3s
Tests / lint (push) Failing after 1m2s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
根因:前端发送 { content, category } 但后端 CreateTitleLibraryRequest
期望 { name (必填), text (必填), category }。字段名不匹配导致
Pydantic 校验失败返回 422,modal 不关闭,数据不保存。

修复:
- api/titles.ts: 请求时将 content 映射为 text + 自动截取 name
- api/titles.ts: 响应时将后端 text 字段映射回前端 content
- api/titles.ts: updateTitle 改用 PUT(后端实际方法)
- 页面代码无需改动,映射在 API 层透明处理

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
v0.1.80 v0.1.77 v0.1.78 v0.1.79
2026-06-28 22:00:36 +08:00
API文档维护Agent 97b436d016 fix: 禁用 redirect_slashes 修复 307 重定向导致前端新建失败
- FastAPI 初始化添加 redirect_slashes=False,避免反向代理后
  307 重定向 URL 丢失 HTTPS 协议
- 移除 titles.py/voices.py/generation_tasks.py 路由中的尾斜杠
  ('/' → '','/tasks/' → '/tasks','/tasks/{id}/results/' → '/tasks/{id}/results')

Fixes: 前端调用 POST /api/v1/titles 等接口时 307 重定向到 http:// 导致失败
2026-06-28 22:00:25 +08:00
API文档维护Agent 573e4485b7 fix: 同步改进CORS配置 - 始终包含生产域名
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
与main分支PR #93保持一致:无论CORS_ORIGINS_RAW环境变量是否设置,
都确保 https://saas.xiaoxiajianji.com 在allow_origins中。
2026-06-28 21:59:39 +08:00
xiaoxia 60afbf450d Merge pull request 'fix: [HOTFIX] 确保生产CORS始终包含saas.xiaoxiajianji.com' (#93) from fix/cors-production-domains into main
Tests / test (push) Failing after 1m3s
Tests / lint (push) Failing after 35s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
v0.1.76
2026-06-28 21:56:50 +08:00
API文档维护Agent 7545a5ccdc fix: 确保生产CORS始终包含saas.xiaoxiajianji.com
Tests / test (pull_request) Failing after 1m3s
Tests / lint (pull_request) Failing after 1m2s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
之前的修复只在CORS_ORIGINS为空时才添加默认域名,
但生产环境通过环境变量设置了CORS_ORIGINS_RAW,
导致saas子域仍然不在允许列表中。

现在无论CORS_ORIGINS_RAW如何配置,都会确保包含
xiaoxiajianji.com和saas.xiaoxiajianji.com。
2026-06-28 21:56:21 +08:00
xiaoxia e56678455d Merge pull request 'fix: [HOTFIX] 修复标题/配音创建500、素材库列表500、CORS配置' (#92) from fix/api-500-hotfix into main
Tests / test (push) Failing after 32s
Tests / lint (push) Failing after 34s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
v0.1.75
2026-06-28 21:40:09 +08:00
xiaoxia 2ee3992a94 Merge pull request 'fix: 修复标题库新建/编辑功能 — 前后端字段名不匹配导致422' (#90) from fix/p0-create-titles-assets into develop
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-28 21:39:32 +08:00
API文档维护Agent 6f00dce56e fix: 修复标题/配音创建500、素材库列表500、CORS缺失
Tests / test (pull_request) Failing after 33s
Tests / lint (pull_request) Failing after 1m8s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- titles.py/voices.py: get_by_id → find_by_id(方法名错误导致AttributeError)
- project_repository.py: cast shared_users to JSONB for @> operator(JSON列不支持@>)
- main.py: CORS allow_origins 添加 https://saas.xiaoxiajianji.com
2026-06-28 21:39:03 +08:00
xiaoxia bf44bd8d9a Merge pull request 'fix: 修复标题/配音创建500、素材库列表500、CORS配置' (#91) from fix/api-500-errors-cors into develop
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-28 21:33:31 +08:00
API文档维护Agent 47533e7037 fix: 修复标题/配音创建500、素材库列表500、CORS缺失
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- titles.py/voices.py: get_by_id → find_by_id(方法名错误导致AttributeError)
- project_repository.py: cast shared_users to JSONB for @> operator(JSON列不支持@>)
- main.py: CORS allow_origins 添加 https://saas.xiaoxiajianji.com
2026-06-28 21:33:07 +08:00