Commit Graph

144 Commits

Author SHA1 Message Date
灵应 dc2555bae4 feat(ui): 改造成片库页面
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 204h15m26s
CI/CD Pipeline / Frontend Lint (push) Failing after 204h17m17s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 204h17m26s
- 重写 ProductLibrary.tsx 为 V21 设计系统风格
- 卡片网格布局(4列响应式),支持视频缩略图展示
- 视频播放弹窗(mock),含播放/暂停、进度条、ESC关闭
- 批量操作:全选、批量发布/下载/删除
- 筛选:状态、时间、时长、搜索
- 已发布徽章(右上角绿色)、选中高亮
- 查重率显示(good/warn/bad 三色)
- 新建 products.css,完整 V21 样式 + 深色模式支持
- 使用 mock 数据,后端 API 对接暂不要求

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-07-01 00:36:59 +08:00
灵应 260911c1ad feat(ui): 改造标题库页面
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 204h29m30s
CI/CD Pipeline / Frontend Lint (push) Failing after 204h31m2s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 204h31m12s
2026-07-01 00:23:18 +08:00
灵应 202037f4e8 feat(ui): 改造配音库页面
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 205h11m33s
CI/CD Pipeline / Frontend Lint (push) Failing after 205h14m25s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 205h14m34s
- 两栏布局:左侧配音库分类列表(260px)+ 右侧配音卡片列表
- VoiceCard 组件:头像渐变、名称/类型/语言/时长信息、标签、波形可视化
- 播放控制:播放/暂停按钮 + 进度条(可点击跳转)+ 时间显示
- 音频互斥播放:同一时间只有一个配音在播放
- 筛选功能:按音色类型、语言筛选 + 名称/标签搜索
- 新建配音库弹窗 + AI 生成配音弹窗
- 删除配音库(Popconfirm 确认)
- 响应式适配:1200px/768px/480px 断点
- Mock 数据:4 个配音库 + 10 个配音项
- 全部使用 CSS 变量,支持深色/浅色主题
2026-06-30 23:39:21 +08:00
灵应 b6c6dedfec feat(ui): 改造素材库页面
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
- 两栏布局:左侧 260px 素材库列表 + 右侧素材网格
- AssetCard 组件:9:16 缩略图、渐变背景、播放按钮、StatusPill 状态标签
- 筛选功能:按类型(视频/配音/图片)、时间(今天/周/月)、名称搜索
- 批量操作:全选、取消选择、批量删除
- 拖拽上传区域,支持 2GB 限制校验
- 新建/删除素材库功能
- 响应式适配:1400px→3列, 1200px→单栏, 768px→2列, 480px→1列
- 使用 mock 数据,CSS 变量统一主题
2026-06-30 23:19:20 +08:00
灵应 ce9c4f041c fix(ui): 修正一键生成页面偏差,补充视频预览、时间线、克隆声音区域
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-30 22:53:01 +08:00
灵应 28cb8dd6ae fix(ui): 添加文档规范的 CSS 变量别名
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-30 22:43:13 +08:00
CI Bot 714c4b00de feat(ui): 改造一键生成页面
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
- 重写 GeneratePage 为单页表单式布局(左主内容 + 右侧结果面板)
- 新增 generate.css 完整 V21 样式(CSS 变量、响应式、深色主题)
- 6 大区块:基本信息、素材选择、配音选择、标题/文案、高级设置、生成结果
- 使用 Task 1.5 UI 组件(Button/Input/Card/Tag/Form)
- Mock 数据:6 个素材 + 4 个配音预设 + 4 种比例 + 6 种风格
- 支持键盘无障碍(role/tabIndex/onKeyDown)
- 响应式断点:1200px/768px/480px
- TypeScript 零错误

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-30 22:11:43 +08:00
CI Bot 8f446eef08 feat(ui): 封装基础 UI 组件库
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
封装 10 个 V21 设计系统基础组件,统一使用 CSS 变量:
- Button: 6 种变体 (primary/secondary/ghost/text/danger/link) + 3 种尺寸
- Input: 支持 error 状态,含 Search/TextArea/Password 子组件
- Select: V21 圆角下拉样式
- Modal: 含 confirm/info/success/error/warning 快捷方法
- Table: V21 表格样式
- Card: 支持悬浮动效变体
- Tag/Badge: 5 种语义变体 (primary/success/warning/error/info)
- Tooltip/Popover: V21 气泡样式
- Form: 支持 compact 紧凑模式
- Pagination: V21 分页样式

所有组件使用 CSS 变量(无硬编码值),支持暗色/亮色主题切换,
响应式布局适配移动端。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-30 21:43:47 +08:00
CI Bot 8d185492d7 feat(ui): 实现页面头部组件 PageHead
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
- 新增 PageHead 组件:页面标题、面包屑导航、操作按钮区域
- 面包屑根据路由路径自动生成,支持手动覆盖
- 响应式适配:移动端隐藏面包屑,操作区换行
- 复用 global.css 中 .xx-page-head 基础样式
- 集成到所有页面:Dashboard、素材库、配音库、标题库、
  任务历史、成品库、模板库、一键生成、订阅页
2026-06-30 21:33:02 +08:00
CI Bot 381f38bd52 feat(ui): 实现侧边栏导航组件 Sidebar
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Failing after 207h40m49s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 207h40m59s
- 新增 Sidebar.tsx:分组导航菜单(创作工具/资源管理/系统)
- 每个菜单项包含图标 + 文字,基于路由自动高亮当前页
- 支持折叠态:通过 SidebarContext 读取 collapsed 状态,折叠时仅显示图标
- 新增 Sidebar.css:全部使用 CSS 变量,无硬编码样式
- 集成到 MainLayout:替换占位符为实际 Sidebar 组件
- 清理 MainLayout.css 中已废弃的占位符样式
- 响应式:移动端菜单项增大点击区域(44px min-height)
2026-06-30 21:13:31 +08:00
CI Bot 7ef81079d5 feat(ui): 创建主布局组件 AppLayout
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 207h46m15s
CI/CD Pipeline / Frontend Lint (push) Failing after 207h46m43s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 207h46m52s
- 新增 AppLayout.tsx:语义化布局壳(header + sidebar slot + main content)
- 重写 MainLayout.tsx:侧边栏 240px/64px 折叠,SidebarContext 共享状态
- 重写 MainLayout.css:完整响应式布局样式
  - 桌面端:侧边栏默认展开 240px
  - 平板端(769-1024px):侧边栏默认折叠 64px 图标栏
  - 移动端(≤768px):侧边栏隐藏,transform 滑入 + 遮罩层
- 所有尺寸/颜色使用 global.css 设计系统变量
- 语义化 HTML:header/aside/main/nav 标签
- 侧边栏/导航具体内容 deferred to Tasks 1.3, 1.4
2026-06-30 21:07:36 +08:00
CI Bot 6a1cf31aff feat(ui): 统一设计系统 CSS 变量
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 208h0m40s
CI/CD Pipeline / Frontend Lint (push) Failing after 208h1m7s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 208h1m16s
- 扩展 global.css 为完整 V21 设计系统变量集(14 大分类)
- 主色 Indigo / 辅色 Emerald / 强调色 Amber 完整色阶
- 状态色(success/warning/error/info)含 hover/soft/border
- 中性色灰阶 50-950
- 文字色层级(primary/secondary/tertiary/disabled/inverse/link)
- 背景色(primary/secondary/tertiary/elevated/overlay/glass)
- 间距系统 0-4xl
- 字体系统(family/size/weight/line-height/letter-spacing)
- 圆角 none-full(V21 大圆角风格)
- 阴影系统 xs-xl + card/hover/primary/glass
- 过渡动画(duration presets + composite + easing curves)
- 响应式断点记录
- z-index 层级规范
- 深色主题(.dark 类 + data-theme 属性 + prefers-color-scheme 媒体查询)
- 兼容别名映射旧变量名 → 标准名(--slate/--muted/--indigo 等)
- 所有现有组件样式完整保留

命名规范:--{类别}-{语义}-{层级}
验收:type-check ✓ | build ✓
2026-06-30 20:53:12 +08:00
xiaoxia 8e924dc660 fix: correct _safe_parse_fps placement and format setup.ts (#133)
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 210h12m4s
CI/CD Pipeline / Frontend Lint (push) Failing after 210h14m3s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 210h14m7s
2026-06-30 18:40:02 +08:00
xiaoxia fff644deac fix: resolve bandit security issues and fix vitest configuration (#132)
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 210h18m25s
CI/CD Pipeline / Frontend Lint (push) Failing after 210h18m51s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 210h18m54s
2026-06-30 18:35:20 +08:00
xiaoxia 560856cf22 fix: resolve all flake8 errors and apply Prettier formatting (#131)
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 210h26m26s
CI/CD Pipeline / Frontend Lint (push) Failing after 210h27m0s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 210h27m7s
2026-06-30 18:26:53 +08:00
xiaoxia d1f3a82967 fix: resolve TypeScript type error in EditingPlanner (#130)
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Failing after 210h37m15s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 210h37m18s
2026-06-30 18:17:14 +08:00
xiaoxia 60c68ac586 fix: resolve all ESLint warnings for clean lint output (#128)
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 210h47m24s
CI/CD Pipeline / Frontend Lint (push) Failing after 210h47m48s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 210h47m52s
2026-06-30 18:06:41 +08:00
xiaoxia 1e6f78a346 fix: resolve ESLint errors to pass CI frontend-lint (#125)
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 211h32m2s
CI/CD Pipeline / Frontend Lint (push) Failing after 211h32m39s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 211h32m46s
2026-06-30 17:21:49 +08:00
Audit Bot 304354208a fix(assets): add project_id to OSS direct upload and align size limit to 2048MB
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
P1: prepareDirectUpload and completeDirectUpload now require project_id,
uploadAssetDirect calls getOrCreateDefaultProject() to obtain it automatically.
P2: MAX_FILE_SIZE changed from 2*1024^3 to 2048*1024*1024 to align with
backend OSS_DIRECT_UPLOAD_MAX_MB=2000.
2026-06-30 00:07:27 +08:00
Audit Bot b5e27a5e9e feat(assets): add 2GB file size validation and OSS direct upload for large files
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- Add MAX_FILE_SIZE (2GB) validation in handleUpload with friendly error message
- Route files >100MB through OSS presigned direct upload (uploadAssetDirect)
- Keep small file form upload (uploadAsset) for files <=100MB
- Update upload hint text to show '单文件不超过 2GB' limit
- Add directUploadMutation with proper loading state tracking

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-29 22:13:08 +08:00
Audit Bot 265e49587f fix: tasks.ts 类型定义对齐后端 schema(P2 修复)
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- CreateGenerationTaskResponse: task_id→id, message→error_message, 补全所有字段
- TaskItem: 补充 project_id, template_id 字段

对齐后端 GenerationTaskResponse 和 UserTaskResponse schema
2026-06-29 17:39:47 +08:00
Audit Bot c2a522babf fix: tasks.ts mock → 真实 API 迁移,对接后端方案 A(PR #109)
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- createGenerationTask: 关闭 mock,调用 POST /generation/tasks
- getUserTasks: 关闭 mock,调用 GET /tasks(用户级列表)
- retryTask: 关闭 mock,调用 POST /tasks/{task_id}/retry
- 删除所有 mock 数据和 USE_MOCK 开关
2026-06-29 17:29:56 +08:00
CI Test 8c678b9cd0 fix: TypeScript类型错误修复 - warning→warnings, seg.id非空断言
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-29 16:40:06 +08:00
xiaoxia 8c4c428cdc fix(api): editingPlanner 对接后端 /templates API,删除遗留 editPlans.ts (#108)
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
Squash merge PR#108
- editingPlanner.ts: mock → 真实 /templates API(7个函数)
- editPlans.ts: 已删除
- 代码审计通过
2026-06-29 16:33:23 +08:00
Audit Bot 067439a1dd fix: 修复 PR#106 代码审计问题
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
P0-1: TemplateMode 改为英文枚举值(pip/voice_over/one_take/voice_pip),显示层通过 MODE_LABELS 映射中文
P0-2: EditingPlanner 通过 useSearchParams 读取 ?template=xxx&generate=1,自动加载模板并打开发成弹窗
P1-3: 848行组件拆分为 5 个子组件(TemplatePanel/TimelinePanel/SettingsPanel/SaveModal/GenerateModal)
P1-4: GenerateFromTemplatePayload voiceover_id(string) → voiceover_duration(number)
P1-5: SaveModal 分类字段 Input → Select,关联后端 categories API
P1-6: SaveTemplatePayload 补充 estimated_duration 字段
P2: TimelinePanel Slider 约束 min≤max

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-29 15:18:33 +08:00
Audit Bot fff47a7a3d feat: 剪辑计划编辑器前端实现
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- 新增剪辑计划编辑器页面 (三栏布局)
  - 左侧:模板面板(搜索/筛选/加载模板)
  - 中间:预览区 + 时间线(片段拖拽排序)
  - 右侧:标题/字幕/BGM 设置面板
- 支持 4 种模式切换(画中画/人物口播/一镜到底/口播+混剪)
- 新增「我的模板」页面(卡片视图/编辑/复制/删除/生成)
- 新增 API 模块(mock 数据,后端就绪后替换)
- 更新路由和导航菜单

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-29 14:35:27 +08:00
Audit Bot 53910e5f20 fix: 前端交互全面审计 — 上传422修复 + 进度反馈 + 防重复提交
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
🔴 P0 Bug:
- AssetLibrary: handleUpload 补充 project_id,调用 getOrCreateDefaultProject() 解决 422

🟡 P0 交互:
- AssetLibrary: 上传时显示 Spin + 禁用 Dragger + 文案提示「正在上传」
- client.ts: 新增 413/415/503 状态码专属提示

🔵 全面交互排查:
- GeneratePage: 生成中禁用步骤导航按钮防误操作
- Billing: 自动续费 Switch 添加 loading 状态防连点
- TemplateLibrary: 收藏按钮 mutation 进行中 disabled 防重复
- TitleLibrary: 空状态增加「新建标题」和「批量导入」引导按钮
2026-06-29 10:48:39 +08:00
Audit Bot fb935981a5 fix: P1 防止全局拦截器与组件 onError 双重 toast
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- 所有 React Query onError 中的 message.error 添加 __msgShown 检查
- 所有 try/catch 中的 message.error 添加 __msgShown 检查
- 涉及 14 个页面文件:AssetLibrary, TitleLibrary, VoiceLibrary,
  DuplicationUpload, TaskHistory, GeneratePage, ProductLibrary,
  Billing, UpgradeSubscription, Login, Register, ForgotPassword,
  ResetPassword, TemplateLibrary
- 修复 TemplateLibrary 缺少 message import 的问题

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-29 09:42:37 +08:00
Audit Bot 4143018faa fix: 全面补充前端交互状态反馈
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- client.ts: 添加全局错误拦截器,自动提取后端 detail/message/msg 字段展示 toast
  - 处理网络异常、超时、5xx 等场景
  - 通过 __msgShown 标记避免与组件 onError 重复弹提示
- 6 个 delete mutation 补充 onError 回退提示(AssetLibrary、TitleLibrary、
  VoiceLibrary、ProductLibrary、DuplicationResults×2)
- GeneratePage: 5 个 query 增加 loading + error 状态展示
- TemplateLibrary: favMutation 增加收藏/取消收藏成功提示及失败回退
- Dashboard: 增加 isError 错误状态展示,避免静默显示全零数据
- DuplicationDetail: 增加 isError 状态,区分加载失败与记录不存在
2026-06-29 09:35:08 +08:00
Audit Bot 5eacac3abf fix: 修正 getProjects 响应解析 — 后端返回 {items:[...]} 而非裸数组
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- BackendProjectResponse 对齐后端 ProjectResponse(仅 id/name/description)
- getProjects 改为 response.data.items 解析
- 修复代码审计 PR#94 审查发现的 P0

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-29 07:25:41 +08:00
Audit Bot 841b501c30 fix: 素材库新建自动获取/创建默认项目以提供 project_id
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- 新增 api/projects.ts:项目 API 模块,含 getOrCreateDefaultProject
- 修改 createAssetLibrary:自动解析 project_id 再发送请求
- 后端 CreateAssetLibraryRequest 要求 project_id,前端之前未发送导致 422
- 修复 P0:新建素材库点击确定无响应

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-28 22:01:38 +08:00
Audit Bot 54cbfe2adf fix: 修复标题库新建/编辑功能 — 前后端字段名不匹配导致422
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
根因:前端发送 { content, category } 但后端 CreateTitleLibraryRequest
期望 { name (必填), text (必填), category }。字段名不匹配导致
Pydantic 校验失败返回 422,modal 不关闭,数据不保存。

修复:
- api/titles.ts: 请求时将 content 映射为 text + 自动截取 name
- api/titles.ts: 响应时将后端 text 字段映射回前端 content
- api/titles.ts: updateTitle 改用 PUT(后端实际方法)
- 页面代码无需改动,映射在 API 层透明处理

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-28 21:28:55 +08:00
CI Test a0d552c91a fix: remove unused formatAmount to fix web build error
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-28 21:10:43 +08:00
CI Test c7027c07d1 feat(subscription): 对接后端订阅API,移除mock数据
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
2026-06-28 20:15:36 +08:00
Audit Bot f8cb32db56 fix: 修复一键生成页面废弃 API 调用及导航问题
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
Bug A: GeneratePage 引用已删除的 editPlans API(/edit-plans/auto-generate 不存在)
- 新增 createGenerationTask 到 tasks.ts(USE_MOCK 模式,待后端适配扁平化架构后切换)
- GeneratePage 改用 createGenerationTask 替代 autoGenerateEditPlan
- 移除对 @/api/editPlans 的引用

附带修复: window.location.href → useNavigate('/history')
2026-06-28 17:45:05 +08:00
xiaoxia ba71fa9860 fix: remove unused Modal import from Billing.tsx
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-28 16:33:06 +08:00
Build Agent 927b302152 feat(subscription): 实现订阅管理前端页面
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- 新增 api/subscription.ts: 订阅 API 模块(mock数据+接口定义)
- 新增 UpgradeSubscription.tsx + .css: 升级/降级/续费页面
- 新增 Billing.tsx + .css: 账单管理页面
2026-06-28 16:19:02 +08:00
Audit Bot 49c8440fe1 fix(phase2): 修复 PR#75 代码审计 P1 问题
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
P1-1: DuplicationUpload 使用 navigate 替代 window.location.href,避免整页刷新
P1-2: DuplicationResults 批量删除使用 Promise.allSettled,部分失败时正确反馈结果

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-28 15:41:10 +08:00
Audit Bot 92bf5d6cfa feat(phase2): 查重功能前端页面
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- 新增查重 API 模块(mock 数据),含上传、记录列表、详情、删除、重试接口
- 新增上传查重页(DuplicationUpload):拖拽上传、格式校验、上传进度
- 新增查重结果列表页(DuplicationResults):表格展示、状态标签、查重率进度条、批量删除
- 新增重复视频对比详情页(DuplicationDetail):片段时间线可视化、相似度展示
- 路由新增 /duplication、/duplication/results、/duplication/:id
- Header 导航新增「查重」入口

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-28 15:20:37 +08:00
xiaoxia abcca337e7 feat: Phase 1 - 前端重构(新路由/新页面/手机端适配/清理旧页面) (#73)
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-28 14:50:17 +08:00
CI Test efc8d23b1d fix: resolve all TS6133 unused variable errors (Plans, ProjectGeneration, ProjectTasks)
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
2026-06-28 11:17:52 +08:00
CI Test 5c46fe648d fix(frontend): 深度健康检查 - 清理死代码和修复合并冲突
Tests / test (pull_request) Failing after 0s
Tests / lint (pull_request) Failing after 0s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- 删除未使用的API模块: projects.ts, generation.ts, subscription.ts, projectTitles.ts
- 删除未使用的业务组件: InviteMemberModal.tsx, MemberList.tsx, PermissionMatrix.tsx
- 删除未引用的布局组件: Sidebar.tsx
- 删除未引用的状态管理: uiStore.ts
- 修复 business.css 中残留的git合并冲突标记
- 移除 business.css 中重复的注释行

所有删除的文件均经过引用检查,确认无任何页面/组件/hook引用
2026-06-28 10:34:00 +08:00
CI Test ecfa0d33e4 fix(P1-2): generation.py _download_library_assets 改用 Worker SessionLocal 替代直接 create_engine
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-28 10:25:38 +08:00
Audit Bot fb996a0a65 fix: 清理前端 console.log/warn/error 调试日志
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- 移除 ProjectGeneration.tsx 中唯一的 console.error 调用
- 确保生产构建不包含调试日志
- 前端代码中已无任何 console.log/warn/error

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-27 22:17:42 +08:00
CI Test ef8c210c6e fix: 修复 WorkspaceDetail.tsx TS 编译错误(移除 workspace_id 参数)
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-27 20:19:05 +08:00
CI Test 7c8ae7f3cc fix: 添加 /projects 路由修复登录后页面空白
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-27 20:16:35 +08:00
Audit Bot bad52fd1d0 fix: 修复前端构建问题 - 恢复 develop 分支配置
- develop 分支已包含完整的 package.json、tsconfig.json、vite.config.ts
- develop 分支已包含完整的路由、useAuth、api/tasks 实现
- @/ 路径别名已在 tsconfig 和 vite 配置中正确设置

额外修复:
- 删除 Next.js 残留文件 (next.config.js, next-env.d.ts)
- 删除死代码:workspaceStore.ts(从未被引用)、QuotaDisplay.tsx(从未被使用)
- 删除 Vite 脚手架残留:App.tsx、App.css
- Header.tsx 添加 Header.css 导入,修复顶部导航无样式问题

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-27 18:16:43 +08:00
xiaoxia 15b49082d1 Merge pull request 'fix: 修复前端审计问题 (#26-28)' (#50) from fix/audit-frontend-p2 into develop 2026-06-27 17:19:51 +08:00
xiaoxia a6e85092ce fix: 统一 ENABLE_REDIS_SESSIONS 命名,修复登录因 AttributeError 导致 500 2026-06-27 17:05:48 +08:00
Audit Agent 91bdc57402 fix: remove duplicate route configuration
Issue #28: Clean up duplicate routes

- Removed duplicate 'profile/settings' route that pointed to same Settings component
- 'profile' route is now the single route for settings page
2026-06-27 17:01:31 +08:00