refactor(editing-planner): Phase 2 - 重构 9 个面板组件(三阶段模式) #928

Closed
xiaoxia wants to merge 2 commits from refactor/editing-planner-round2 into develop

2 Commits

Author SHA1 Message Date
xiaoxia 9aea90342e refactor(editing-planner): replace 5 main panel files with refactored versions
AI Code Review / AI Code Review (pull_request) Failing after 0s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 21s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m46s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m46s
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 / PR Build Worker Image (pull_request) Successful in 18s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 2m31s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 48s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 2m42s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 2m23s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 42s
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 21s
CI/CD Pipeline / Unit Tests (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 / Validate - Code Quality (pull_request) Successful in 5m40s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 1m46s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (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 / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Has been skipped
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 21s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Failing after 22s
Replace original large panel files with their refactored versions that
delegate to extracted sub-components and hooks:

- WatermarkPanel: 391→122行 (-69%)
- TtsPanel: 332→174行 (-48%)
- IntroOutroPanel: 291→100行 (-66%)
- FilterPanel: 224→105行 (-53%)
- SubtitleStylePanel: 223→190行 (-15%)

All constants and sub-components were already created in previous commits.
2026-07-26 15:19:19 +08:00
xiaoxia f9d245bb5e refactor(editing-planner): Phase 2 - refactor 9 panel components with 3-phase pattern
AI Code Review / AI Code Review (pull_request) Failing after 0s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 18s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 22s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m15s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m17s
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 / PR Build Worker Image (pull_request) Successful in 32s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 1m6s
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m7s
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
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 58s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 2m17s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 54s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 4m21s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 3m46s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (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 / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
ClipPropertiesPanel: 634→174行 (-73%)
  - 抽 types/clipProperties, constants/clipProperties, utils/clipProperties
  - 抽 4 个 UI 子组件: SubtitleSettingsSection/BgmSettingsSection/ClipDetailSection/StatsSection
  - 抽 useVoicePreview Hook

PipConfigPanel: 547→91行 (-83%)
  - 抽 constants/pipConfig
  - 抽 2 个 UI 子组件: LayerList/LayerConfig
  - 抽 usePipLayers Hook

StickerPanel: 516→93行 (-82%)
  - 抽 constants/sticker
  - 抽 3 个 UI 子组件: StickerLibrary/StickerList/StickerPropsEditor
  - 抽 useStickerItems Hook

WatermarkPanel: 391→123行 (-69%)
  - 抽 constants/watermark
  - 抽 5 个 UI 子组件
  - 抽 useWatermarkConfig Hook

TtsPanel: 332→177行 (-47%)
  - 抽 constants/tts
  - 抽 2 个 UI 子组件: VoiceSelector/TtsSlider
  - 抽 useTtsPanel Hook

IntroOutroPanel: 291→94行 (-68%)
  - 抽 constants/introOutro
  - 抽 IntroOutroBlock 通用组件(片头片尾对称复用)

FilterPanel: 224→109行 (-51%)
  - 抽 constants/filter
  - 抽 2 个 UI 子组件: FilterPresetGrid/FilterManualAdjust

SubtitleStylePanel: 223→180行 (-19%)
  - 抽 constants/subtitleStyle
  - 抽 SubtitlePreview 组件

smoke.test.tsx: 新增所有子模块 import
2026-07-26 15:04:56 +08:00