741eaca358ee4e9bdbb55e540d90191cbcff1c6e
4 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
741eaca358 |
fix(ux): #1894 文案/标题数据源全面切到 /api/v1/scripts
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 / 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 / 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 / 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 / Frontend Lint (pull_request) Successful in 1m40s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 1m47s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 1m46s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m3s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 2m51s
CI/CD Pipeline / Build Production API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Security (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Style (pull_request) Has been cancelled
AI Code Review / AI Code Review (pull_request) Has been cancelled
PR Automation / Auto Merge on CI Green + Approved (pull_request) Has been cancelled
根因:
1. api/scripts 中 SCRIPTS_API_MOCK 被硬编码为 true,文案库/AI数字人/智能剪辑
都拿 mock 数据,用户在文案库新建的文案、AI数字人手动输入的文案在其他
页面选不到。
2. AI数字人页(PanelTitleConfig)、智能剪辑 step4(useStep4Title)仍在
调已废弃的 @/api/titles,标题下拉为空。
3. AI数字人页自维护一份 getScripts 本地实现,返回类型/字段与共享
@/api/scripts 不一致,且未共享 mock 开关。
修复:
- api/scripts/scripts.ts: SCRIPTS_API_MOCK 改为 env 开关(同 POINTS_API_MOCK
模式,默认 false 走真实 API)。
- 删除废弃 api/titles/ 整个目录 + 相关单测(test/api/titles.test.ts、
ai-avatar/components/TitleLibraryModal.tsx 孤儿组件)。
- ai-avatar/api/aiAvatar.ts: 文案库相关方法(getScripts/createScript/
getScript/deleteScript)统一 re-export from @/api/scripts,不再
本地重复实现。
- ai-avatar/types.ts: Script 类型改为 import("@/api/scripts").ScriptItem
别名,保证字段对齐。
- ai-avatar/AiAvatarPage.tsx 内 ScriptSelectModalLazy: getScripts 适配
{ items, total } 分页结构,传 page_size:200 一次拿全。
- ai-avatar/components/PanelScript.tsx: 手动输入 tab 下增加「💾 保存到文案库」
按钮,一键把当前口播文案以正文前20字为默认标题自动入库,解决主人反馈
「历史文案在新文案库找不到」的问题;保存成功 toast 1s 自动关闭。
- ai-avatar/components/PanelTitleConfig.tsx: 标题 AutoComplete 数据源改为
getScripts(),取 scripts[].title 去重作为候选,文案从「📚 标题库」
改为「📚 文案库标题」。
- generate/hooks/useStep4Title/index.ts: userTitles 数据源改为 getScripts(),
映射为 { content: s.title },复用下游消费逻辑(ut.content)。
- test/pages/GeneratePage.test.tsx: 把 @/api/titles mock 替换为
@/api/scripts mock。
待跟进:
- P2 抖音错误提示友好化(等后端 #1963 合入后联调)。
|
||
|
|
dc0a5834f1 |
feat(scripts): #1893 文案库对接三个AI能力(抖音提取/AI改写/AI生成标题) (#1935)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Check push changed paths (push) Successful in 15s
CI/CD Pipeline / Build Staging API Image (push) Successful in 2m25s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 2m45s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 4m42s
CI/CD Pipeline / Integration Tests (push) Successful in 5m10s
CI/CD Pipeline / Frontend Unit Tests (push) Failing after 5m33s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 5m43s
CI/CD Pipeline / Validate - Style (push) Successful in 5m50s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m19s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m35s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m5s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 3m9s
CI/CD Pipeline / Unit Tests (push) Successful in 11m39s
CI/CD Pipeline / Validate - Security (push) Successful in 14m30s
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / CI Gate (push) Failing after 22h20m4s
CI/CD Pipeline / Build Production API Image (push) Failing after 22h20m5s
CI/CD Pipeline / Frontend Lint (push) Failing after 22h34m32s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 22h28m58s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 22h28m59s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 22h28m59s
CI/CD Pipeline / PR Build Web Image (push) Failing after 22h33m51s
CI/CD Pipeline / PR Build API Image (push) Failing after 22h33m52s
CI/CD Pipeline / Deploy Production (push) Failing after 22h19m20s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 22h19m24s
CI/CD Pipeline / Build Production Web Image (push) Failing after 22h19m24s
CI/CD Pipeline / Canary Release to Production (push) Failing after 22h19m20s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 22h33m57s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 23h9m29s
feat(scripts): #1893 AI能力对接(抖音提取/AI改写/AI生成标题) |
||
|
|
493d175e87 |
feat(scripts): #1811 文案库独立管理页面 v2 (#1924)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 3s
CI/CD Pipeline / Check push changed paths (push) Successful in 30s
CI/CD Pipeline / Build Staging API Image (push) Successful in 48s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 47s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 2m36s
CI/CD Pipeline / Integration Tests (push) Successful in 3m38s
CI/CD Pipeline / Validate - Style (push) Successful in 4m29s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m23s
CI/CD Pipeline / Frontend Unit Tests (push) Failing after 5m24s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m59s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 6m51s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 2m30s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m35s
CI/CD Pipeline / Validate - Security (push) Successful in 10m3s
CI/CD Pipeline / Unit Tests (push) Successful in 12m44s
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / CI Gate (push) Failing after 28h16m55s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 28h26m37s
CI/CD Pipeline / PR Build Web Image (push) Failing after 28h29m47s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 28h29m9s
CI/CD Pipeline / PR Build API Image (push) Failing after 28h29m9s
CI/CD Pipeline / Deploy Production (push) Failing after 28h16m15s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 28h16m17s
CI/CD Pipeline / Build Production Web Image (push) Failing after 28h16m17s
CI/CD Pipeline / Build Production API Image (push) Failing after 28h16m17s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 28h25m59s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 28h25m59s
CI/CD Pipeline / Frontend Lint (push) Failing after 28h29m3s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 28h29m10s
CI/CD Pipeline / Canary Release to Production (push) Failing after 28h16m15s
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com> |
||
|
|
7209b7d481 |
feat: #1811 新增文案库独立页面 (#1812)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Check push changed paths (push) Successful in 4s
CI/CD Pipeline / Build Staging API Image (push) Successful in 31s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 36s
CI/CD Pipeline / Validate - Style (push) Successful in 1m21s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 1m46s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 1m48s
CI/CD Pipeline / Integration Tests (push) Successful in 3m15s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m29s
CI/CD Pipeline / Validate - Security (push) Successful in 4m30s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1m46s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 5m34s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 2m14s
CI/CD Pipeline / Unit Tests (push) Successful in 7m47s
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 22m59s
CI/CD Pipeline / Canary Release to Production (push) Failing after 173h57m47s
CI/CD Pipeline / Build Production API Image (push) Failing after 174h16m42s
CI/CD Pipeline / Deploy Production (push) Failing after 174h16m40s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 174h22m33s
CI/CD Pipeline / CI Gate (push) Failing after 174h16m41s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 174h22m35s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 174h16m41s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 174h24m31s
CI/CD Pipeline / PR Build API Image (push) Failing after 174h24m31s
CI/CD Pipeline / Frontend Lint (push) Failing after 174h24m32s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 174h24m35s
CI/CD Pipeline / Build Production Web Image (push) Failing after 174h51m27s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 174h57m19s
CI/CD Pipeline / PR Build Web Image (push) Failing after 174h59m17s
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com> |