feat(P1): #557 剪辑编辑器改为纯模板编辑器 #607

Merged
auto-approve-bot merged 3 commits from feat/editor-template-only into develop 2026-07-19 19:34:07 +08:00
Owner

变更内容

范围: 剪辑编辑器改造为纯模板编辑器

主要改动

  1. 移除直接生成视频能力

    • 删除顶栏「生成视频」按钮
    • 删除生成进度弹窗
    • 删除生成历史弹窗和底栏入口
    • 删除相关函数:handleGoToGenerate / startPolling / handleCancelGeneration / handleViewGenHistory
    • 删除相关API调用:generateEditPlan / getGenerationStatus / getGenerationTaskResults / cancelGeneration / getEditPlanGenerations
  2. 入口文案调整

    • 编辑器内标题:小虾剪辑编排器 → 模板制作
    • 面包屑:剪辑规划 → 模板制作
  3. 跳转逻辑调整

    • 我的模板页「使用模板生成」按钮:改为跳转智能剪辑页面(统一出片入口)

保留功能

  • 模板制作:片段编辑、转场、速度、配音、字幕、BGM等
  • 保存模板:创建/更新模板到模板库
  • 预览模板:预览播放器正常工作
  • 标题/封面配置:只读保留,作为模板数据的一部分随模板保存

验收标准

  • 编辑器无法直接出片,只能保存/编辑模板
  • 所有出片必须从智能剪辑发起
  • 模板编辑和保存功能正常
  • 不影响智能剪辑流程
### 变更内容 **范围:** 剪辑编辑器改造为纯模板编辑器 ### 主要改动 1. **移除直接生成视频能力** - 删除顶栏「生成视频」按钮 - 删除生成进度弹窗 - 删除生成历史弹窗和底栏入口 - 删除相关函数:handleGoToGenerate / startPolling / handleCancelGeneration / handleViewGenHistory - 删除相关API调用:generateEditPlan / getGenerationStatus / getGenerationTaskResults / cancelGeneration / getEditPlanGenerations 2. **入口文案调整** - 编辑器内标题:小虾剪辑编排器 → 模板制作 - 面包屑:剪辑规划 → 模板制作 3. **跳转逻辑调整** - 我的模板页「使用模板生成」按钮:改为跳转智能剪辑页面(统一出片入口) ### 保留功能 - ✅ 模板制作:片段编辑、转场、速度、配音、字幕、BGM等 - ✅ 保存模板:创建/更新模板到模板库 - ✅ 预览模板:预览播放器正常工作 - ✅ 标题/封面配置:只读保留,作为模板数据的一部分随模板保存 ### 验收标准 - 编辑器无法直接出片,只能保存/编辑模板 - 所有出片必须从智能剪辑发起 - 模板编辑和保存功能正常 - 不影响智能剪辑流程
xiaoxia added 1 commit 2026-07-19 19:19:09 +08:00
feat(P1): #557 剪辑编辑器改为纯模板编辑器
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 16s
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
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 17s
AI Code Review / AI Code Review (pull_request) Failing after 31s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 1m21s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 1m26s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m27s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 2m28s
eee0eee359
- 移除编辑器内所有直接生成视频入口(生成按钮、生成进度、生成历史)
- 删除相关API调用:generateEditPlan/cancelGeneration/getGenerationStatus等
- 删除GenerationHistoryModal引用
- 编辑器标题改为「模板制作」,面包屑同步更新
- 我的模板页「使用模板生成」改为跳转智能剪辑页面
- 保留模板制作/保存/预览核心功能
- 保留标题/封面只读配置(模板数据的一部分,保存时一并存储)
xiaoxia added 1 commit 2026-07-19 19:25:15 +08:00
fix(lint): 删除未使用的import和state变量
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 16s
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 16s
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 / Frontend Lint (pull_request) Failing after 2m4s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m7s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 2m12s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 3m11s
AI Code Review / AI Code Review (pull_request) Has been cancelled
eba78978db
xiaoxia added 1 commit 2026-07-19 19:29:36 +08:00
style: prettier格式化
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 12s
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
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m3s
AI Code Review / AI Code Review (pull_request) Successful in 1m53s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 2m20s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 3m17s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m22s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 4m29s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 14s
f0c0ab6dfe

🚀 预览环境已部署

项目 详情
PR号 #607
预览链接 https://pr-607.preview.xiaoxiajianji.com
API环境 staging

💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。

🔄 每次提交新代码后预览环境会自动更新。

🗑️ PR 关闭或合并后,预览环境会自动清理。

🚀 **预览环境已部署** | 项目 | 详情 | |------|------| | PR号 | #607 | | 预览链接 | [https://pr-607.preview.xiaoxiajianji.com](https://pr-607.preview.xiaoxiajianji.com) | | API环境 | staging | > 💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。 > > 🔄 每次提交新代码后预览环境会自动更新。 > > 🗑️ PR 关闭或合并后,预览环境会自动清理。
Collaborator

代码审查结果 - PR #607

⚠️ 问题(0个需要修改)

💡 建议(2个可选)

  1. apps/web/src/pages/editing-planner/EditingPlanner.tsx 第209行loadedPlanId 状态变量被保留,但其 setLoadedPlanId 方法已被移除。请确认该变量是否仍在其他 useEffect 或逻辑中被使用(例如用于初始化加载计划数据)。如果该页面已完全转变为“模板编辑器”且不再依赖 planId 进行数据初始化,建议移除该变量以保持代码整洁。
  2. apps/web/src/pages/my-templates/MyTemplates.tsx 第114行:路由跳转从 /editing-planner 变更为 /generate,且参数从 template 变更为 templateId。请务必确认 /generate 路由对应的页面组件已正确实现并能处理 templateId 参数,避免上线后出现 404 或参数解析错误。

格式检查通过 | 逻辑审查需修改 | 建议关注性能


🤖 由 AI 代码审查机器人自动生成 | 2026-07-19 19:31:31 | 模型:

## 代码审查结果 - PR #607 ### ⚠️ 问题(0个需要修改) 无 ### 💡 建议(2个可选) 1. **apps/web/src/pages/editing-planner/EditingPlanner.tsx 第209行**:`loadedPlanId` 状态变量被保留,但其 `setLoadedPlanId` 方法已被移除。请确认该变量是否仍在其他 `useEffect` 或逻辑中被使用(例如用于初始化加载计划数据)。如果该页面已完全转变为“模板编辑器”且不再依赖 `planId` 进行数据初始化,建议移除该变量以保持代码整洁。 2. **apps/web/src/pages/my-templates/MyTemplates.tsx 第114行**:路由跳转从 `/editing-planner` 变更为 `/generate`,且参数从 `template` 变更为 `templateId`。请务必确认 `/generate` 路由对应的页面组件已正确实现并能处理 `templateId` 参数,避免上线后出现 404 或参数解析错误。 --- ✅ 格式检查通过 | ✅ 逻辑审查需修改 | ✅ 建议关注性能 --- <sub>🤖 由 AI 代码审查机器人自动生成 | 2026-07-19 19:31:31 | 模型: </sub> <!-- AI_CODE_REVIEW_AUTO_COMMENT -->
auto-approve-bot approved these changes 2026-07-19 19:32:59 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot approved these changes 2026-07-19 19:33:00 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot merged commit fb9f5cc1c3 into develop 2026-07-19 19:34:07 +08:00
auto-approve-bot deleted branch feat/editor-template-only 2026-07-19 19:34:07 +08:00

🗑️ 预览环境已清理

PR #607 已关闭或合并,对应的预览环境已被清理。

如有需要,可以重新打开 PR 来重新生成预览环境。

🗑️ **预览环境已清理** PR #607 已关闭或合并,对应的预览环境已被清理。 > 如有需要,可以重新打开 PR 来重新生成预览环境。
Sign in to join this conversation.