Commit Graph

663 Commits

Author SHA1 Message Date
CI Bot 2b6ba6e074 fix: PR#284 P1 类型安全修复 — EditPlanConfig/AssetItem/GenerateFromTemplateRequest
CI/CD Pipeline / Frontend Lint (push) Failing after 1m56s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 1m33s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1534h53m52s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1534h53m53s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1534h53m55s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1534h53m57s
CI/CD Pipeline / Deploy Production (push) Failing after 1534h53m58s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1534h54m0s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1534h54m3s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1534h54m1s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1534h54m5s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1534h54m4s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1534h54m6s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1535h25m34s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
P1-1: EditPlanConfig 内部 7 个 config 字段从 Record<string,unknown> 改为具体类型
  - watermark_config → WatermarkConfig
  - intro_outro_config → IntroOutroConfig
  - pip_config → PipConfig
  - filter_config → FilterConfig
  - green_screen_config → ChromaKeyConfig
  - sticker_config → StickerConfig
  - cover_config → CoverConfig

P1-2: AssetItem.metadata 从 Record<string,unknown> 改为 AssetMetadata 接口
  - 新增 AssetMetadata 接口(duration/width/height/bitrate/codec/fps 等)

P1-3: GenerateFromTemplateRequest.config 从 Record<string,unknown> 改为 EditPlanConfig

P1-4: 去掉 EditPlanConfig 的 [key: string]: unknown 索引签名
  - GeneratePage.tsx 生成参数加 as EditPlanConfig 类型断言

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 16:31:59 +08:00
CI Bot 640672b798 fix: 消除 Record<string, unknown> 弱类型 — P1 审计修复
CI/CD Pipeline / Frontend Lint (push) Failing after 1m59s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 1m56s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1536h30m27s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1536h30m29s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1536h30m29s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1536h30m31s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1536h31m23s
CI/CD Pipeline / Deploy Production (push) Failing after 1536h31m25s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1536h31m27s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1536h31m29s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1536h31m33s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1536h31m35s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1537h2m6s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1537h2m8s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
- editingPlanner.ts: EditingTemplate/SaveTemplatePayload 7个config字段
  从 Record<string, unknown> 改为 types.ts 中具体类型
  (WatermarkConfig, IntroOutroConfig, PipConfig, FilterConfig,
   ChromaKeyConfig, StickerConfig, CoverConfig)
- templates.ts: TemplateItem 3个config字段
  从 Record<string, unknown> 改为 TitleConfig/SubtitleConfig/BgmConfig
- TemplateLibrary.tsx: formatConfig 参数类型从 Record<string, unknown> 改为 object
2026-07-14 14:56:35 +08:00
CI Bot 1feff1c6fb feat: 编辑器渲染结果联动 + 一键生成链路打通
CI/CD Pipeline / Frontend Lint (push) Failing after 2m19s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 2m19s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1537h37m28s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1537h37m28s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1537h37m28s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1537h37m29s
CI/CD Pipeline / Deploy Production (push) Failing after 1537h37m30s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1537h37m30s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1537h37m31s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1537h37m32s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1537h37m32s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1537h37m33s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1538h9m5s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1538h9m9s
- editPlans.ts: 新增 GeneratedVideo 类型 + getGenerationTaskResults 函数
- products.ts: 重写为基于 /generation/tasks 端点(后端无 /products 路由)
- GeneratePage.tsx: 生成完成后获取视频 URL + 预览/下载/分享/导航成片库
- EditingPlanner.tsx: 移除 GenerationProgressModal 死代码(genModalOpen 从未设为 true)

打通生成→预览→下载→分享→成片库完整链路,消除所有 404 API 调用
2026-07-14 13:50:24 +08:00
CI Bot f77f519582 fix: P1 类型安全修复 — EditPlanConfig/AssetItem/TitleSettings
CI/CD Pipeline / Frontend Lint (push) Failing after 2m10s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 1m58s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1538h14m17s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1538h14m19s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1538h14m19s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1538h14m21s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1538h15m11s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1538h15m15s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1538h15m17s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1538h15m21s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1538h45m56s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1538h45m58s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Failing after 1538h46m50s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1538h46m56s
P1-1: EditPlan.config 从 Record<string, unknown> 改为 EditPlanConfig 接口
  - 新增 TitleConfig/SubtitleConfig/BgmConfig/SegmentTtsConfig 等子类型
  - CreateEditPlanRequest/UpdateEditPlanRequest/AIRecommendResponse 同步更新
  - GenerateCoverResponse.cover 改为带 scheme/asset_id/frame_time 的类型

P1-2: AssetItem 补充 duration/classification_status 字段,消除 mapAssetToMediaAsset 全部 as 断言

P1-3: TitleSettings 提取到共享 types.ts,ClipPropertiesPanel/PreviewPlayer 去重导入
  - 对齐后端 title_config 字段,前端 camelCase → 后端 snake_case 映射
2026-07-14 13:12:40 +08:00
CI Bot 82de158e35 feat: 时间轴轨道缩放 + 播放头控制
CI/CD Pipeline / Frontend Lint (push) Failing after 1m2s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 1m1s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1539h48m30s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1539h48m32s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1539h48m30s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1539h48m32s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1539h48m30s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1539h48m58s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1539h49m0s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1539h49m1s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1539h49m3s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1539h49m3s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1540h20m7s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Failing after 1540h20m37s
- EditingPlanner: 新增 currentTime/pixelsPerSecond 状态 + rAF 帧推进
- TimelinePanel: 缩放控件(−/滑块/+/标签)、播放头渲染/拖拽、标尺点击跳转
- TimelinePanel: clip 宽度按 duration*pps 动态计算,裁剪灵敏度同步缩放
- EditingPlanner.css: zoom 控件 + playhead 三角手柄 + clip min-width 适配
- 松耦合:PreviewPlayer 不修改,currentTime 仅驱动播放头位置

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 11:39:40 +08:00
CI Bot 6213569ec8 feat: 完成贴纸面板+封面选择器集成,含滤镜/绿幕/水印/片头片尾/画中画面板
CI/CD Pipeline / Frontend Lint (push) Failing after 1m22s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 5m41s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1541h10m45s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1541h10m47s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1541h10m47s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1541h10m49s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1541h15m43s
CI/CD Pipeline / Deploy Production (push) Failing after 1541h15m45s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1541h15m45s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1541h15m47s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1541h15m48s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1541h42m24s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1541h42m26s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1541h47m22s
- 新增 StickerPanel: emoji素材库(30个) + 图片URL + 文字花字(8种预设) + 属性编辑
- 新增 CoverSelector: 智能封面/抽帧选封面/上传封面 三种模式
- 集成到 EditingPlanner.tsx: state/handler/payload/drawer
- 集成到 ClipPropertiesPanel.tsx: props + 入口按钮
- 新增 EditingPlanner.css: sticker-* 和 cover-* 完整样式
- 同步提交: FilterPanel, GreenScreenPanel, WatermarkPanel, IntroOutroPanel, PipConfigPanel
- types.ts: StickerConfig, CoverConfig 类型定义
- editingPlanner.ts API: sticker_config, cover_config 字段
2026-07-14 10:12:29 +08:00
CI Bot d91a803719 feat: 剪辑时间轴裁剪增强 — 手柄拖拽/分割/恢复原始长度
CI/CD Pipeline / Frontend Lint (push) Failing after 1m6s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 1m21s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1541h42m47s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1541h42m49s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1541h42m49s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1541h42m51s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1541h43m34s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1541h43m38s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1541h43m38s
CI/CD Pipeline / Deploy Production (push) Failing after 1541h43m36s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1541h43m36s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1542h14m25s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1542h14m27s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1542h15m12s
- 新增 TrimConfig 类型(入点/出点/原始时长)
- TimelinePanel 添加左右裁剪手柄(hover显示),拖动调整入点/出点
- 拖动时实时显示裁剪预览 tooltip(入点/出点/时长)
- 右键片段弹出菜单:分割片段 / 恢复原始长度 / 删除
- 已裁剪片段显示视觉标记(左侧蓝色边框 + ✂ 图标)
- EditingPlanner 新增 handleClipTrim/handleClipSplit/handleClipResetTrim
- handleSave/handleGoToGenerate payload 序列化 trim_config
- 新增 CSS 样式:裁剪手柄、预览 tooltip、右键菜单
2026-07-14 09:42:09 +08:00
CI Bot b08598290b feat: TTS 配音面板 — 配音模式切换 + 音色选择 + 语速/语调/音量 + 试听 + 字幕联动
- tts.ts: 新增 TTSVoice 接口、getTtsVoices()、previewTts() API
- types.ts: 新增 TtsMode/TtsConfig/DEFAULT_TTS_CONFIG,ClipData 增加 tts_config 字段
- TtsPanel.tsx: Drawer 形式配音面板(模式切换/文本输入/音色卡片/滑块/试听/字幕联动)
- ClipPropertiesPanel.tsx: 新增 TTS 配音入口按钮
- EditingPlanner.tsx: TTS 状态管理 + Drawer 集成 + payload 序列化
- EditingPlanner.css: tts-* 前缀全套样式(V21 设计系统)
2026-07-14 09:42:09 +08:00
CI Bot 438de40998 feat: 转场特效选择器 + 片段调速面板
- 新增 TransitionSelector 组件:15种转场预设卡片网格 + 时长滑块(0.3s~2s)
- 新增 SpeedPanel 组件:速度滑块(0.25x~4x) + 预设按钮 + 音调修正开关
- 扩展 ClipData 类型:transition + speed 字段
- 扩展 TRANSITION_OPTIONS:14种转场 + cut + none,含图标
- TimelinePanel:转场指示器 + 速度徽章
- ClipPropertiesPanel:转场/调速入口按钮
- EditingPlanner:Drawer 集成 + handleSave/handleGoToGenerate payload
- CSS:转场选择器/调速面板/时间线指示器/入口按钮样式
2026-07-14 09:42:09 +08:00
CI Bot 0bb1406b75 feat(editing-planner): BGM 选择器 + 字幕样式配置面板
- 新增 BGM API 模块 (api/bgm.ts):BgmPreset、BgmMixConfig 类型,getBgmPresets 接口
- 新增 BgmSelector 组件:Drawer 形式,分类标签栏、搜索、试听、音量/淡入淡出/人声闪避配置
- 新增 SubtitleStylePanel 组件:Drawer 形式,字幕开关、手动/ASR 模式、字体大小/颜色/字体/位置/描边/阴影/动画配置、实时预览
- EditingPlanner 集成:状态管理、模板初始化映射、PreviewPlayer 适配、ClipPropertiesPanel 入口按钮
- ClipPropertiesPanel 更新:BGM 区域展示当前选中 BGM + 配置入口、字幕区域新增高级样式配置按钮
- EditingPlanner.css:BGM 选择器、字幕面板、ClipPropertiesPanel 新增样式(约 410 行)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 09:42:09 +08:00
CI Bot 72d77b2b9a feat(assets): 素材批量操作 UI 对接 — 批量删除/打标签/改分类/智能标记 + 结果 Drawer
- API 层新增 4 个批量操作函数(batchDeleteAssets/batchTagAssets/batchClassifyAssets/batchMarkAssets)
- 批量操作栏增加打标签、改分类、智能标记按钮
- 批量打标签弹窗支持 add/replace 模式切换 + 自定义标签输入
- 批量改分类弹窗支持分类下拉选择
- 批量智能标记弹窗支持推荐/慎用/高风险三选一
- 操作结果 Drawer 展示成功/失败明细
- 配套 CSS 样式(弹窗、Drawer、标签输入等)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 09:42:09 +08:00
CI Bot 445ba24ab5 feat: 模板库升级 + 剪辑计划管理页面
- 重写 TemplateLibrary:对接后端分页/筛选 API(category/keyword/duration_range),
  增强详情弹窗(segments 素材规则、subtitle/bgm/title config、aspect_ratio),
  新增复制模板和从模板生成功能
- 新建 EditPlans 剪辑计划管理页面:Ant Design Table + Tabs 状态筛选、
  模板筛选下拉、分页、一键重新生成、自动轮询进行中的计划
- 修改 editPlans.ts getEditPlans 返回分页响应(items/total/page/page_size)
- 扩展 templates.ts API:copyTemplate、generateFromTemplate、toggleFavoriteTemplate
- 添加 /app/edit-plans 路由和导航配置

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 09:42:09 +08:00
CI Bot 83137d5c2e feat: 任务中心页面 — 列表/筛选/重试/错误详情/分页
- 扩展 tasks API 模块:分页查询(getTasks)、重试(retryTask)、错误详情类型
- 新建 TaskCenter 页面:Ant Design Table 展示任务列表
- 顶部 Tabs 状态筛选(全部/等待中/进行中/已完成/失败/已取消)
- 下拉类型筛选(全部/生成任务/素材导入)
- 失败任务行显示重试按钮(Popconfirm 确认)
- 可展开行显示错误详情(错误类型/信息/失败阶段/堆栈)
- 分页(showSizeChanger/showQuickJumper/showTotal)
- 自动轮询:有 running/waiting 任务时每5秒刷新
- 添加路由 /app/tasks 和导航配置
2026-07-14 09:42:09 +08:00
CI Bot 3ce6d47d46 feat(products): 成片中心 UI 4 大功能升级
1. 封面预览 — 卡片已支持 thumbnailUrl 展示
2. 复核状态标签 — 右上角显示待复核(灰)/已通过(绿)/需修改(红),点击循环切换
3. 批量操作 — 批量下载改用 batch-download API + job_id 轮询
4. 筛选栏 — 新增按项目、按复核状态筛选 Select

API 层新增:
- updateReviewStatus: PATCH /products/{id}/review
- batchDownload: POST /products/batch-download
- getBatchDownloadStatus: GET /products/batch-download/{jobId}

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 09:42:09 +08:00
xiaoxia 41e421b44b fix(e2e): Playwright chromium禁用GPU,修复无显示环境下浏览器不稳定问题 (#301)
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 3s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1542h40m39s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1542h40m42s
CI/CD Pipeline / Deploy Production (push) Failing after 1542h40m43s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1542h40m43s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1543h12m16s
fix(e2e): Playwright chromium禁用GPU,修复无显示环境下浏览器不稳定问题
2026-07-14 08:48:42 +08:00
xiaoxia 881eea9195 fix(api+ci): DELETE 204响应体全修复 + isort/black整理 + CI环境兼容 + 测试修复 (#286)
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 9s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1544h21m30s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1544h21m31s
CI/CD Pipeline / Deploy Production (push) Failing after 1544h21m40s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1544h21m40s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Failing after 1544h53m14s
CI/CD Pipeline / Frontend Lint (push) Has been skipped
fix(api+ci): DELETE 204响应体全修复 + isort/black整理 + CI环境兼容 + 测试修复
2026-07-14 07:07:51 +08:00
CI Test 4faceb8093 fix: DELETE 204路由改用response_model=None并移除return None,彻底解决FastAPI断言错误
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 15s
CI/CD Pipeline / Unit Tests (push) Failing after 11s
CI/CD Pipeline / Integration Tests (push) Failing after 5s
CI/CD Pipeline / Frontend Lint (push) Failing after 2m13s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1552h27m50s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1552h27m49s
CI/CD Pipeline / Deploy Production (push) Failing after 1552h59m23s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1552h27m47s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1552h27m48s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1552h27m48s
2026-07-13 22:52:53 +08:00
xiaoxia 37293a665d fix: DELETE 204 路由添加 response_class=Response 避免 FastAPI 断言错误
CI/CD Pipeline / Unit Tests (push) Failing after 8s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 15s
CI/CD Pipeline / Integration Tests (push) Failing after 16s
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (push) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (push) Has been cancelled
CI/CD Pipeline / Build Production Runtime Images (push) Has been cancelled
CI/CD Pipeline / Deploy Production (push) Has been cancelled
CI/CD Pipeline / Production Browser E2E (push) Has been cancelled
2026-07-13 22:42:08 +08:00
xiaoxia 006fd075d6 Merge pull request 'Phase 4 Backend P2 cleanup: 异常处理/类型注解/模块拆分/大函数拆分/配置项确认' (#279) from cleanup/phase4-backend-p0 into develop
CI/CD Pipeline / Unit Tests (push) Failing after 8s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 10s
CI/CD Pipeline / Integration Tests (push) Failing after 5s
CI/CD Pipeline / Frontend Lint (push) Failing after 3m5s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1553h16m11s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1553h16m12s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1553h16m12s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1553h16m13s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1553h16m13s
CI/CD Pipeline / Deploy Production (push) Failing after 1553h47m48s
2026-07-13 22:11:05 +08:00
CI Bot a695342b36 fix: edit_plans_timeline.py 清理未使用 import (datetime/EditPlanResponse/Optional)
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 15s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 17s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 49s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 2m24s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1553h32m42s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1553h32m44s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1553h32m45s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1553h32m43s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1553h32m46s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1554h4m19s
2026-07-13 21:55:08 +08:00
CI Bot 6f0a8253f6 fix(P1-1/P1-2): processor.py 补 logger 定义 + 测试文件导入路径同步到拆分后模块
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 6s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 8s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 19s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 1m41s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1554h22m7s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1554h22m9s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1554h22m8s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1554h22m10s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1554h22m8s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1554h53m44s
P1-1: processor.py 使用了 logger 但未定义,补 import logging + getLogger
P1-2: test_unified_render_service.py 导入路径同步:
  - 音频函数 (mix_audio/merge_audio_video/clip_has_audio/RenderContext) → render_audio
  - 字幕函数 (_hex_to_ass_color/_position_to_ass_alignment/generate_ass_subtitles) → render_subtitles
  - patch.object(svc, '_mix_audio') → patch('video_processing.unified_render_service.mix_audio')
  - patch.object(svc, '_merge_audio_video') → patch('video_processing.unified_render_service.merge_audio_video')
  - probe_has_audio/run_ffmpeg patch 路径对齐到 render_audio 模块

全部 84 个测试通过。
2026-07-13 21:06:26 +08:00
CI Bot 6fc1abf2f5 Phase 4 Backend P2 cleanup: 异常处理/类型注解/模块拆分/大函数拆分/配置项确认
CI/CD Pipeline / Unit Tests (pull_request) Failing after 7s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 12s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 1m44s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 2m36s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1555h16m6s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1555h16m8s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1555h16m8s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1555h16m8s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1555h47m43s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1555h47m44s
- P2-1: 10处 except 审查改进(细化异常类型、添加日志)
- P2-2: 22个路由函数类型注解补全
- P2-3: edit_plans.py 拆分为 4 个模块(CRUD/generation/ai/timeline)
- P2-4: generate_video + generate_plan 大函数拆分
- P2-5: unified_render_service.py 拆分(1517→984行)
  - render_audio.py: 音频混音模块(RenderContext + mix/merge 函数)
  - render_subtitles.py: ASS 字幕生成模块
- P2-6: 6个未使用配置项删除确认

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 20:00:54 +08:00
xiaoxia 20f6e64847 refactor(ui): 清理 Table/Form/Pagination 死代码(~95行)
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 11s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 11s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 4s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 1m38s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1556h8m6s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1556h8m8s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1556h8m8s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1556h8m7s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1556h8m7s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1556h39m43s
删除已移除组件的关联样式:
- .xx-table 全节(9个规则)
- .xx-form / .xx-form-compact 全节(4个规则)
- .xx-pagination 全节(8个规则)
- 响应式中 .xx-form 规则

全项目 grep 确认零引用后删除
2026-07-13 19:20:07 +08:00
Deploy Agent 6897a4be96 fix(frontend): 移除 Dashboard.tsx 未使用的 Tag import
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 9s
CI/CD Pipeline / Unit Tests (push) Failing after 7s
CI/CD Pipeline / Integration Tests (push) Failing after 5s
CI/CD Pipeline / Frontend Lint (push) Failing after 1m25s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1556h38m55s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1556h38m55s
CI/CD Pipeline / Deploy Production (push) Failing after 1557h10m30s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1556h38m53s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1556h38m54s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1556h38m54s
TS6133: 'Tag' is declared but its value is never read.
Phase 3 Mock 替换后遗留的未使用 import。
2026-07-13 18:25:29 +08:00
xiaoxia 6d2d5abff2 refactor(frontend): Phase 4 前端 P0+P1 清理
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 6s
CI/CD Pipeline / Unit Tests (push) Failing after 9s
CI/CD Pipeline / Integration Tests (push) Failing after 7s
CI/CD Pipeline / Frontend Lint (push) Failing after 1m7s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1557h7m57s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1557h8m1s
CI/CD Pipeline / Deploy Production (push) Failing after 1557h7m59s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1557h8m0s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1557h8m0s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1557h39m36s
Merge PR #275: refactor(frontend): Phase 4 前端 P0+P1 清理 — CSS 死代码 + 未使用组件删除 into develop
2026-07-13 18:21:14 +08:00
xiaoxia e3f5ab5611 fix(accounts): 加回误删的 acc-account-list + 清除响应式死代码
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 23s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 10s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 52s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 1m11s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1557h12m31s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1557h12m32s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1557h12m33s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1557h12m34s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1557h12m34s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1557h44m7s
- 加回 acc-account-list(Accounts.tsx 第89行引用)
- 清除 480px 响应式中残留的 acc-account-row / acc-account-avatar
2026-07-13 18:16:36 +08:00
CI Bot a3967c6829 Phase 4 Backend P0 cleanup
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 6s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 10s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 1m6s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 28m22s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1557h41m3s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1557h41m4s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1557h41m4s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1557h41m6s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1558h12m39s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1558h12m41s
1. Remove unused aiosmtplib dependency from requirements.txt
2. Remove 5 unused config items (API_PREFIX, REDIS_MAX_CONNECTION,
   JWT_SECRET_KEY_OLD, SECRET_ROTATION_DAYS, LOG_LEVEL) from config.py,
   .env.production.example, and init_production_env.sh.
   Kept ENABLE_REDIS_SESSIONS (actively used in dependencies.py).
3. Fix project permission check TODOs in test_error_scenarios.py —
   permissions are implemented, updated assertions to expect 403.
4. Merge two Storage implementations into shared package:
   - packages/shared/storage.py: merged API features (HTTPS endpoint
     fix, diagnose(), detailed logging) into SharedStorageService
   - apps/api/app/core/storage.py: thin re-export wrapper for
     backward compatibility
   - Updated test mocks to target packages.shared.storage
2026-07-13 17:45:37 +08:00
xiaoxia 97a81a39f3 refactor(ui): 删除未使用组件 Form.tsx(全项目无引用)
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 9s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 4s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 45s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 1m39s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1557h48m42s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1557h48m44s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1557h48m43s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1557h48m45s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1557h48m45s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1558h20m18s
2026-07-13 17:39:13 +08:00
xiaoxia eab471703e refactor(ui): 删除未使用组件 Pagination.tsx(全项目无引用) 2026-07-13 17:39:13 +08:00
xiaoxia 32a53ab9e6 refactor(ui): 删除未使用组件 Table.tsx(全项目无引用) 2026-07-13 17:39:12 +08:00
xiaoxia e50ba67c11 refactor(ui): 移除未使用组件导出(Table / Form / Pagination) 2026-07-13 17:39:12 +08:00
xiaoxia e8f9e2dabe refactor(accounts): 清理旧版列表视图样式(8个无引用类名,约64行)
移除:acc-account-list / acc-account-row / acc-account-avatar /
acc-account-info / acc-account-name / acc-status-pill /
acc-status--active / acc-status--expired / acc-status--limited
2026-07-13 17:39:12 +08:00
xiaoxia 3f773795ed refactor(dashboard): 清理 CSS 死代码(36个无引用类名→移除)+ 新增 xx-dashboard-empty 空状态样式
移除的未使用类名:
- xx-dashboard-welcome / xx-dashboard-main / xx-dashboard-left-col
- xx-kpi-card / xx-kpi-icon / xx-kpi-value / xx-kpi-label / xx-kpi-trend-*
- xx-task-item / xx-task-info / xx-task-status-* / xx-task-time / xx-task-action
- xx-chart-bar-wrapper / xx-chart-bar / xx-chart-bar-value / xx-chart-labels / xx-chart-label / xx-chart-total
- xx-quick-card / xx-quick-card-icon
- xx-storage-bar-* / xx-storage-section*
- xx-dashboard-section--start

新增:xx-dashboard-empty(P0 修复 — Dashboard 空状态裸奔)
2026-07-13 17:39:11 +08:00
xiaoxia 29ed5df884 feat(frontend): Phase 3 前端深度清理
CI/CD Pipeline / Frontend Lint (push) Failing after 2m1s
CI/CD Pipeline / Unit Tests (push) Failing after 26m42s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 26m54s
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Production Browser E2E (push) Failing after 1557h55m24s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1557h55m25s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1557h55m26s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1557h55m27s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1557h55m28s
CI/CD Pipeline / Deploy Production (push) Failing after 1558h27m0s
Merge PR #264: feat(frontend): Phase 3 前端深度清理 — Mock 数据真替换 + Admin.css 全清 into develop
2026-07-13 17:07:59 +08:00
xiaoxia 6227aa610c fix: Dashboard CSS 类名对齐已有样式 + 修复路由指向
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 9s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 11s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 5s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 1m2s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1558h32m50s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1558h32m52s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1558h32m53s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1558h32m52s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1558h32m53s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1559h4m27s
- 所有类名改回 dashboard.css 已有定义(xx-kpi-*/xx-task-*/xx-quick-*/xx-chart-*/xx-announcement-*)
- "查看全部"路由从 /asset-library 改为 /app/history
- vite build 验证通过
2026-07-13 16:57:21 +08:00
CI Test 3ebcc7e066 refactor: 补做 Phase 3 Mock 真替换 — accounts/Dashboard/GeneratePage
CI/CD Pipeline / Unit Tests (pull_request) Failing after 16s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 21s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 39s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 43s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1558h40m12s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1558h40m14s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1558h40m14s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1558h40m16s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1558h40m16s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1559h11m49s
- 删除 api/accounts.ts(163行全 mock),Accounts.tsx 改为占位状态
- Dashboard.tsx 移除硬编码 mock 数据(kpiData/quickEntries/recentTasks),改用空状态
- GeneratePage.tsx 移除 MOCK_TIMELINE 及 TimelineScene 接口,时间线预览改为占位提示
- 清理所有相关 TODO 注释和未使用的 import
- vite build 验证通过
2026-07-13 16:46:14 +08:00
CI Bot 1a57878f76 chore(backend): Phase 3 清理 — 未使用依赖删除 + pyflakes 警告清零 + 测试文件冗余清理
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 1m12s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 2m17s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 1m33s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1559h12m3s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1559h12m3s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1559h12m4s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1559h12m4s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1559h12m4s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1559h43m37s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
1. 未使用依赖清理:
   - 从 requirements-base.txt 移除 cryptography 和 pyOpenSSL

2. pyflakes 警告清零 (apps/ + packages/ + tests/):
   - 移除 17 处未使用的 import (F401)
   - 修复 26 处未使用的局部变量 (F841):
     * 有副作用的赋值转为裸调用
     * 无副作用的赋值直接删除
   - 修复 1 处未使用的异常变量 (F841)
   - 修复 1 处空 except 块

3. 测试文件冗余清理:
   - 删除 tests/integration/test_project_management.py (模块级 skip,测试不存在的模块)
   - 删除 tests/integration/fixtures/duplication_routes_fixed.py (未被引用)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 16:14:46 +08:00
CI Test 923c6bad1c feat(frontend): Phase 3 前端深度清理 — Mock 数据真替换 + Admin.css 全清
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 1m22s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 2m40s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 1m44s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 3m19s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1559h19m14s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1559h19m15s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1559h19m15s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1559h19m16s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1559h19m16s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1559h50m48s
1. TitleLibrary.tsx: 移除 MOCK_CATEGORIES,分类从真实 API 数据动态派生
   - 删除 CategoryItem 接口、MOCK_CATEGORIES 常量
   - 用 useMemo 从 apiTitles.category 字段聚合分类列表
   - 分类筛选改为直接匹配 category 字段(移除 catToIndustry 硬编码映射)
   - 移除无后端支持的新建/删除分类功能(保留 TODO 注释)
   - TitleData 新增 category 字段

2. accounts.ts: 全文件标记为 Mock,添加明确 TODO
   - 文件头注明后端无 accounts 路由,待后端就绪后替换
   - 各 section 注释标注 mock 性质

3. Admin.css: 477 行 → 27 行
   - 仅保留 AdminComingSoon.tsx 实际使用的 2 个 class
   - 其余样式已迁移至 global.css / ui.css

4. 未使用依赖: 已确认 package.json 全部 26 个依赖均在使用,无需清理
2026-07-13 16:07:26 +08:00
xiaoxia f0dee5bbd3 fix(backend): Phase 2 后端技术债务清理
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 15s
CI/CD Pipeline / Unit Tests (push) Failing after 45s
CI/CD Pipeline / Integration Tests (push) Failing after 2m2s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1559h31m46s
CI/CD Pipeline / Deploy Production (push) Failing after 1559h31m48s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1559h31m49s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1559h31m50s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1559h31m51s
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1560h3m23s
Merge PR #261: fix(backend): Phase 2 后端技术债务清理 — CI修复 + OSS拼写 + 废弃API删除 into develop
2026-07-13 15:54:13 +08:00
xiaoxia 50719db7c8 feat(frontend): Phase 2 前端技术债务清理
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 27s
CI/CD Pipeline / Unit Tests (push) Failing after 30s
CI/CD Pipeline / Integration Tests (push) Failing after 39s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1559h31m45s
CI/CD Pipeline / Deploy Production (push) Failing after 1559h31m46s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1559h31m47s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1559h31m47s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1559h31m48s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1559h31m48s
CI/CD Pipeline / Frontend Lint (push) Has been skipped
Merge PR #258: feat(frontend): Phase 2 前端技术债务清理(Mock 数据 + 样式迁移 + 组件合并) into develop
2026-07-13 15:53:58 +08:00
CI Test eb50442296 fix: 修复 PR #258 P1 CSS 变量问题
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 23s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 18s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 28s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1559h41m55s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1559h41m57s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1559h41m57s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1559h42m0s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1560h13m32s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1560h13m34s
- 删除 .xx-card:hover(global.css V21 设计系统已定义)
- var(--xx-border) → var(--border-color)(原变量未定义)
- var(--xx-text) → var(--text-primary)(原变量未定义)
- .ant-card-head padding 修正为 20px 24px(与原 Admin.css 一致)
- .ant-card-head-title color 对齐原 Admin.css 的 var(--slate) 语义
2026-07-13 15:35:10 +08:00
CI Bot 74a136e931 refactor: 删除 5 组废弃 API 路由及关联 schema
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 27s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 1m6s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 44s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1559h46m1s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1559h46m3s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1559h46m3s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1559h46m6s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1559h46m6s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1560h17m38s
删除的 API 路由(5 个文件):
- dashboard.py — 仪表盘概览(前端已改用 mock 数据)
- edit_templates.py — 模板 CRUD(无前端调用,领域层保留)
- generated_videos.py — 成片管理(已被 generation/tasks/{id}/results 替代)
- recipes.py — 配方 CRUD + use(无任何调用方)
- jobs.py — 通用异步任务管理(无调用方)

删除的 schema(3 个文件):
- schemas/dashboard.py — 仅 dashboard 路由使用
- schemas/recipe.py — 仅 recipes 路由使用
- schemas/job.py — 仅 jobs 路由使用
- schemas/generated_video.py 保留(generation_tasks.py 仍在使用)

清理 router.py 中对应的 5 组 import 和 include_router 注册。
同步清理 3 个已删路由的测试文件,移除 1 个测试类中的死引用。

路由总数:121 → 116(减少 5 组死接口)
2026-07-13 15:27:15 +08:00
xiaoxia 73375c6639 PR #252: redis_url配置修复
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 34s
CI/CD Pipeline / Unit Tests (push) Failing after 24s
CI/CD Pipeline / Integration Tests (push) Failing after 40s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1559h54m16s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1559h54m18s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1559h54m18s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1559h54m20s
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Failing after 1560h25m53s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1560h25m55s
fix: 修复worker配置中redis_url字段未正确映射REDIS_URL环境变量

Signed-off-by: CI Bot <bot@xiaoxiajianji.com>
2026-07-13 15:17:32 +08:00
CI Test 5bde975ea6 feat(frontend): Phase 2 前端技术债务清理
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 31s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 29s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 32s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1559h54m32s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1559h54m34s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1559h54m34s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1559h54m36s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1559h54m36s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1560h26m8s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
1. Mock 数据清理(4 项):
   - Dashboard.tsx: kpiData/quickEntries/recentTasks 标记 TODO
   - TitleLibrary.tsx: MOCK_CATEGORIES 精简为占位+TODO
   - Accounts.tsx: 移除 2 处误导性 mock 注释(实际已用真实 API)

2. Admin.css 样式迁移:
   - 4 条 .xx-card antd 覆盖样式迁移到 ui.css
   - AdminComingSoon 页面样式不受影响

3. CloneModal 组件合并:
   - VoiceClone.tsx 改用共享 CloneModal 组件
   - 删除重复的 CloneVoiceModal.tsx + clone-voice-modal.css
   - 清理空目录 components/modals/
2026-07-13 15:15:47 +08:00
CI Bot 0634fc4833 fix: 修复 OSS_ENDPOINT 拼写错误 aliiyuncs → aliyun
OSS_ENDPOINT 默认值中的域名拼写错误:
- 错误:oss-cn-hangzhou.aliiyuncs.com(多了一个 i)
- 正确:oss-cn-hangzhou.aliyuncs.com

同步修复:
- apps/api/app/config.py
- packages/shared/config.py
- tests/unit/test_config_oss.py
2026-07-13 15:10:43 +08:00
xiaoxia cc47c9f90f chore(frontend): Phase 1 技术债务清理
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 28s
CI/CD Pipeline / Unit Tests (push) Failing after 32s
CI/CD Pipeline / Integration Tests (push) Failing after 24s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1560h20m39s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1560h20m41s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1560h20m41s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1560h20m43s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1560h20m43s
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Failing after 1560h52m16s
Merge PR #251: chore(frontend): Phase 1 技术债务清理 - 删除死代码和重复样式 into develop
2026-07-13 15:06:45 +08:00
xiaoxia c1e466f9c1 fix(backend): Phase 1 后端代码清理与修复
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 25s
CI/CD Pipeline / Unit Tests (push) Failing after 26s
CI/CD Pipeline / Integration Tests (push) Failing after 25s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1560h24m57s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1560h24m59s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1560h24m59s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1560h25m1s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 1560h25m1s
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Failing after 1560h56m33s
Merge PR #249: fix(backend): Phase 1 后端代码清理与修复 into develop
2026-07-13 15:02:13 +08:00
xiaoxia c48ddeef7d fix: black/isort 格式化修复 - generation.py 和单测文件 (#250)
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 5s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1561h8m38s
CI/CD Pipeline / Deploy Production (push) Failing after 1561h8m42s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1561h8m38s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1561h8m44s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Failing after 1561h40m16s
2026-07-13 14:13:45 +08:00
CI Test b87d7b763e chore(frontend): Phase 1 技术债务清理 - 删除死代码和重复样式
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 58s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1561h11m54s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1561h11m55s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1561h11m56s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1561h11m58s
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1561h43m30s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1561h43m32s
- 删除 src/config/navigation.tsx(废弃文件,211行)
- 删除 src/components/business/business.css(死CSS,365行)
- 删除 src/api/dashboard.ts(废弃API模块,42行)
- 移除 router/index.tsx 重复 my-voices 路由(7行)
- 清理 generate.css 重复按钮样式(48行,改用 ui.css 统一样式)
- 清理 Admin.css 重复 .xx-card/.xx-select 定义(40行)

共减少约 713 行代码,vite build 验证通过
2026-07-13 14:12:00 +08:00
CI Bot 9c6c477f55 fix(backend): Phase 1 后端代码清理与修复
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 2m22s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 2m24s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 37s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 1561h35m7s
CI/CD Pipeline / Build Production Runtime Images (pull_request) Failing after 1561h35m8s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 1561h35m7s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Failing after 1561h35m9s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 1561h35m7s
CI/CD Pipeline / Frontend Lint (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 1562h6m43s
P0 关键修复:
- P0-1: 注册接口添加 RateLimitMiddleware 限流保护
- P0-3: /metrics 端点添加 JWT 认证(移除匿名访问)
- P0-4: 修复 Celery 任务名冲突(generation_task vs generate_video)
- P1-5: JWT logout token 黑名单机制

P1 修复:
- P1-1: forgot_password 硬编码 localhost → 使用 settings.APP_BASE_URL
- P1-2: generation.py 直接创建 DB 连接 → 使用依赖注入
- P1-6: Image.open() 未关闭 → 统一使用 with 语句
- P1-7: 订阅续费事务修复

P2 代码质量:
- P2-1: 修复 EditingMode 枚举重复定义 → 统一引用 shared 包
- P2-2: 修复 SMTP_FRON_NAME → SMTP_FROM_NAME 拼写
- P2-3: UserModel subscription_quota 类型统一为 float
- P2-4: .env.production DATABASE_MAX_OVERFLOW 30 → 10
- 清理 15 处 except:pass(保留 2 处有注释说明的)
- 禁用 SVG 上传(XSS 风险)
- 删除 decode_token_unsafe() 不安全函数
- 简化 /ready 端点
- 删除 8 处死代码、10 个空文件/模块
- 合并 3 对 100% 重复函数
- 对齐 6 个废弃环境变量

v2 修复(代码审查后):
- 修复密码重置路由路径: /password/forgot → /forgot-password,
  /password/reset → /reset-password(与前端 API 对齐)
- 合并 _check_project_access: asset_libraries.py 和 edit_plans.py
  中的重复函数统一到 _helpers.py(含空字符串守卫 + 中文错误信息)
- 顺手修复: HTTPException 统一从 fastapi 导入(替换 starlette 导入)
- OSS_ENDPOINT 拼写修复拆分为单独 PR,本 PR 不包含
2026-07-13 13:50:52 +08:00