feat(task-2.15): 素材选择器优化 — 批量选择+拖拽排序+预览缩略图+质量分筛选 #154

Merged
xiaoxia merged 3 commits from feature/task-2.15-asset-selector into develop 2026-07-01 19:19:30 +08:00

3 Commits

Author SHA1 Message Date
灵应 1a7f46805c fix(asset-selector): 修复导入路径 — 从 editingPlanner 改为 editPlans
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 186h13m37s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 186h13m40s
Deploy / Deploy Staging (push) Failing after 186h14m5s
CI/CD Pipeline / Frontend Lint (push) Failing after 186h14m26s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 186h14m30s
修复代码审计发现的 P1 问题:
- MediaAsset / MATERIAL_TYPE_LABELS / MATERIAL_TYPE_ICONS / QUALITY_OPTIONS
  实际定义在 @/api/editPlans.ts,而非 @/api/editingPlanner.ts
- 修正导入路径,消除 TS 编译错误
2026-07-01 18:40:04 +08:00
灵应 1fd93c95ba fix(asset-selector): 修复 PR #154 代码审查 4 项问题
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 187h18m49s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 187h18m52s
Deploy / Deploy Staging (push) Failing after 187h19m15s
CI/CD Pipeline / Frontend Lint (push) Failing after 187h19m37s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 187h19m42s
P1-1: 质量分筛选 — parseInt 返回 NaN,改用 QUALITY_OPTIONS min/max 区间匹配
P1-2: AssetSelector→TimelinePanel 拖拽链断裂 — 恢复 application/x-media-asset(s) MIME 数据
P2-1: handleBatchAddAssets 忽略 insertIdx — 接受可选 insertIdx 参数,使用 splice 插入
P2-2: 拖拽语义区分 — 内部排序(text/plain)与外部素材投放(MIME types)互不干扰

同时修复 handleDragStart 依赖数组缺少 selectedIds 的问题
2026-07-01 17:34:34 +08:00
灵应 7e954405f3 feat(task-2.15): 素材选择器优化 — 批量选择 + 拖拽排序 + 预览缩略图 + 质量分筛选
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 187h50m29s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 187h50m32s
Deploy / Deploy Staging (push) Failing after 188h16m12s
CI/CD Pipeline / Frontend Lint (push) Failing after 188h16m34s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 188h16m38s
- 新增 AssetSelector 可复用组件(批量选择/拖拽排序/悬浮预览/质量分筛选/视图切换)
- MediaPanel 集成 AssetSelector,素材 Tab 使用 useQuery 内部获取数据
- TimelinePanel 支持批量素材拖入(application/x-media-assets)
- EditingPlanner 新增 handleBatchAddAssets 批量添加逻辑
- editPlans.ts 扩展 MediaAsset 类型(quality_score/classification_status)
- V21 设计系统响应式样式(1200/900/768/480 断点)
2026-07-01 16:37:27 +08:00