refactor(editing-planner): Phase 1 - extract constants and selectors #900
Reference in New Issue
Block a user
Delete Branch "refactor/editing-planner-phase1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
EditingPlanner Phase 1 重构 — 抽离常量、工具函数和选择器
变更内容
constants.ts:抽取 MODE_LIST 和 FILTER_CATEGORIES 常量utils/selectors.ts:抽取 4 个纯函数选择器calculateTotalDuration(clips)— 计算总时长getCurrentTemplate(templates, loadedTemplateId)— 当前选中模板getFilteredTemplates(templates, currentMode, currentFilter, searchQuery)— 筛选后的模板列表getSelectedClip(clips, selectedClipId)— 当前选中的片段EditingPlanner.tsx:import 新模块,使用选择器函数替换内联计算约束遵守
统计
CI全绿,自动审批通过。
CI全绿,自动审批通过。
90bf34b482tod44af1f6caxiaoxia referenced this pull request2026-07-26 01:24:07 +08:00
d44af1f6catoe8f7788e56🗑️ 预览环境已清理
PR #900 已关闭或合并,对应的预览环境已被清理。