fix(ux): #1894 删除标题库入口 + 文案名称改标题 + AI改写UX + 清理旧定价硬编码 #1965
Reference in New Issue
Block a user
Delete Branch "fix/1894-ux-cleanup"
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?
改动概览
P0
/app/titles路由、侧边栏「资源管理」下的标题库导航、顶部 PageHead 映射;删除pages/titles/整个目录(TitleLibrary.tsx + hooks + components + constants + types + utils + css)及相关单测P1
conic-gradient+ 旋转动画)+ shimmer 渐变文字「正在改写...」message.success({ content: "改写成功", duration: 1 })1 秒自动关闭pages/subscription/constants.ts:移除 PLANS_META 价格字段(priceYuan/yearlyPriceYuan)和 getPlanPrice 函数;仅保留 getPlanName 作为展示名兜底pages/subscription/UpgradeSubscription.tsx:改为通过GET /subscription/plans动态拉取价格,不再依赖硬编码;确认弹窗文案使用 API 返回的 name + price_cents 计算待后端字段/API 合入后跟进(本轮不改)
GET /api/titles改为GET /api/scripts(取 scripts[].title),涉及pages/ai-avatar/components/TitleLibraryModal.tsx+pages/generate/hooks/useStep4Title/+Step4TitleSettings.tsx;api/titles/ 目录本轮保留(仍被引用)备注
🚀 预览环境已部署
🗑️ 预览环境已清理
PR #1965 已关闭或合并,对应的预览环境已被清理。