chore: 删除前端冗余代码 (-1215行) #1831 #1836

Merged
auto-approve-bot merged 1 commits from cleanup/phase5-frontend-dead-code into develop 2026-09-10 12:47:29 +08:00
Owner

Issue #1831 - 前端冗余代码清理

删除 5 处死代码

目录 文件数 原因
editing-planner/components/sticker/ 5 已被 StickerPanel/ 替代
editing-planner/components/tts/ 2 已被 TtsPanel/ 替代
editing-planner/components/pip-config/ 6 已被 PipConfigPanel/ 替代
asset-operations/batch/ 5 batch-operations/ 的完全重复副本
batchOperations.ts 1 @deprecated 死代码

附带修复

  • test/pages/assets/smoke.test.tsx: batch/ → batch-operations/ import 路径
  • test/pages/editing-planner/smoke.test.tsx: 删除 9 条失效 import

验证

  • TypeScript tsc --noEmit 无新增错误
  • assets / editing-planner smoke test 全部通过
  • 全项目 grep 确认无残留引用

未动(确认仍在活跃使用)

  • api/tts — 10+ 处 import
  • packages/adapters/tts — Python 后端 worker 在用

净删除 1215 行,21 个文件变更

## Issue #1831 - 前端冗余代码清理 ### 删除 5 处死代码 | 目录 | 文件数 | 原因 | |------|--------|------| | `editing-planner/components/sticker/` | 5 | 已被 StickerPanel/ 替代 | | `editing-planner/components/tts/` | 2 | 已被 TtsPanel/ 替代 | | `editing-planner/components/pip-config/` | 6 | 已被 PipConfigPanel/ 替代 | | `asset-operations/batch/` | 5 | batch-operations/ 的完全重复副本 | | `batchOperations.ts` | 1 | @deprecated 死代码 | ### 附带修复 - `test/pages/assets/smoke.test.tsx`: batch/ → batch-operations/ import 路径 - `test/pages/editing-planner/smoke.test.tsx`: 删除 9 条失效 import ### 验证 - ✅ TypeScript tsc --noEmit 无新增错误 - ✅ assets / editing-planner smoke test 全部通过 - ✅ 全项目 grep 确认无残留引用 ### 未动(确认仍在活跃使用) - `api/tts` — 10+ 处 import - `packages/adapters/tts` — Python 后端 worker 在用 **净删除 1215 行,21 个文件变更**
xiaoxia added 1 commit 2026-09-10 12:41:57 +08:00
chore: 删除前端冗余代码 (-1215行)
CI/CD Pipeline / Check push changed paths (pull_request) Has been skipped
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 1s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 1s
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / PR Build API Image (pull_request) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Has been skipped
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 / Retag skipped Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (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 / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 1m5s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 1m34s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 1m37s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m13s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 2m14s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m23s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 2m20s
CI/CD Pipeline / Validate - Security (pull_request) Successful in 4m44s
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 / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Has been skipped
CI/CD Pipeline / CI Gate (pull_request) Successful in 1s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 3m5s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Successful in 5s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 23s
AI Code Review / AI Code Review (pull_request) Successful in 6m21s
1fe702c2f7
Issue #1831 - 前端冗余代码清理

删除 5 处死代码:
- editing-planner/components/sticker/ (5文件, 已被 StickerPanel 替代)
- editing-planner/components/tts/ (2文件, 已被 TtsPanel 替代)
- editing-planner/components/pip-config/ (6文件, 已被 PipConfigPanel 替代)
- asset-operations/batch/ (5文件, batch-operations 的完全重复副本)
- asset-operations/batchOperations.ts (@deprecated 死代码)

附带修复:
- test/pages/assets/smoke.test.tsx: batch/ → batch-operations/ import 路径
- test/pages/editing-planner/smoke.test.tsx: 删除 9 条失效 import

验证:
- TypeScript tsc --noEmit 无新增错误
- assets / editing-planner smoke test 全部通过
- 全项目 grep 确认无残留引用

🚀 预览环境已部署

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

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

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

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

🚀 **预览环境已部署** | 项目 | 详情 | |------|------| | PR号 | #1836 | | 预览链接 | [https://pr-1836.preview.xiaoxiajianji.com](https://pr-1836.preview.xiaoxiajianji.com) | | API环境 | staging | > 💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。 > > 🔄 每次提交新代码后预览环境会自动更新。 > > 🗑️ PR 关闭或合并后,预览环境会自动清理。
auto-approve-bot approved these changes 2026-09-10 12:44:21 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot approved these changes 2026-09-10 12:44:22 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot merged commit b5b324d94e into develop 2026-09-10 12:47:29 +08:00
auto-approve-bot deleted branch cleanup/phase5-frontend-dead-code 2026-09-10 12:47:29 +08:00

🗑️ 预览环境已清理

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

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

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