feat(v2): 创作空间完整流程 + PostgreSQL适配#81
Open
dav-niu474 wants to merge 9 commits into
Open
Conversation
added 6 commits
June 10, 2026 01:16
- Schema v2: 3 new models (Season, ArtStyle, Clue) + extend Drama/Episode/Character/Storyboard - Skill 体系迁移: 14 v2 Skills + art-styles + asset-spec + skill-loader + Skill API - 三模块导航: ModuleSidebar + AppModule + VIEW_MODULE_MAP + i18n nav namespace - Orchestrator: 8-phase state machine + API + PhaseTracker component - All new fields have defaults for backward compatibility - Next.js build passes
- Season CRUD API (2 routes, 5 methods) - Novel Analysis API (Skill 01, SSE streaming, hit element identification) - Show Plan API (Skill 02, 7 parameter validation + lock) - V2 Script Generation API (one-shot + SSE + paywall engineering) - V2 Asset Extraction API (one-shot + SSE + weight tiers + clues) - Clues API (cross-episode consistency tracking) - SeasonManager component (drag-reorder + inline editing) - ShowPlannerDialog (4-step wizard + auto-fill + lock flow) - PaywallConfig (episode map + hook markers + AI suggestions) - ScriptWorkbenchV2 (M1 gate + outline grid + episode detail) - AssetWorkbenchV2 (M2 gate + extraction results + style select) - API Client + Store + i18n updates (130+ new keys) - Next.js build passes
- Keyframe Service: 5 generation modes + auto-selection + aspect ratio mapping - Keyframe API: generate + status + candidate selection - Keyframe Planner: batch keyframe management dialog - Keyframe Editor: single-shot editing with candidate gallery - Dual-channel Generation Queue: image(3/20RPM) + video(1/5RPM) + lease + DLQ + SSE - Queue API: 4 routes (status/enqueue/task/DLQ/events) - Video Composer: FFmpeg composition (xfade + BGM + subtitles + watermark) - Jianying Export: draft ZIP + SRT/ASS/FCPXML export - Export API: 6 formats (mp4/jianying/srt/ass/fcpxml/images) - Queue Dashboard: real-time monitoring with SSE - Episode Workspace integration + Shot Frames Panel badges - i18n: keyframe(38) + queueDashboard + export namespaces - Next.js build passes
- Art Styles API (CRUD + filesystem sync + filter) - Enhanced Asset API (art style filter + batch + versions) - Art Style Selector (grid preview + confirm/clear) - Asset Detail Drawer (Sheet + spec fields + anchors + version timeline) - Art Style Management (full management page + sync + enable/disable) - Enhanced Asset Library (category+style+weight filters + batch ops + grid/list toggle) - Character Bible (6-layer anchors + visual gallery + consistency validation) - World Map (regions + locations + music style binding) - Version Management (auto-archive + rollback) - World Regions & Locations API (full CRUD) - API Client + Store types + i18n (5 new namespaces, 100+ keys) - Next.js build passes
- 重写 /api/migrate 路由,新增完整 DDL:
- 新增 CharacterAppearance、SceneImage、ImageGeneration、VideoGeneration 等
原先缺失的18个模型的 CREATE TABLE IF NOT EXISTS DDL
- 新增 Drama/Episode/Character/Scene/Storyboard/Prop/Asset 共38个
新列的 ALTER TABLE ADD COLUMN IF NOT EXISTS DDL
- 新增所有缺失的 FK 约束和索引
- 所有 DDL 均使用 IF NOT EXISTS,幂等安全,可重复运行
- GET 端点增加列级别检查,不再只检查表
- build.js 增加更清晰的 fallback 提示信息
- 所有变更均为纯增量操作,不删除/不改动原有数据库结构
… 全部新增列 - 重写 /api/migrate,完整覆盖 v2 schema 的 36 个模型 - 新增 v2 专属建表 DDL:Season(季管理)、ArtStyle(画风包)、Clue(一致性追踪) - 新增 Drama 12个v2列:coverage/episodeFormat/aspectRatio/genreTone/paywallConfig/targetPlatform/budgetConstraints/novelAnalysis/showPlanLocked/scriptGenerationStatus/assetExtractionStatus/currentPhase - 新增 Episode v2列:seasonId + FK → Season - 新增 Storyboard 7个v2列:generationMode/gridImageUrl/gridLayout/startFrameImageUrl/endFrameImageUrl/candidateUrls/selectedCandidateIndex - 新增 Character 5个v2列:identityAnchors/weightTier/generationOrder/threeViewsUrl/wardrobeUrls - 新增所有缺失的 FK 约束和索引 - 所有 DDL 幂等安全(IF NOT EXISTS),纯增量操作 - GET 端点增加列级别检查
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- 新增 CreativeWorkspace 主页面,包含 PhaseTracker 和工具快捷入口 - 新增 CharacterBibleView 包装组件,支持角色选择器 - 新增 WorldMapView 包装组件,读取 selectedDramaId - 新增 QueueDashboardView 包装组件 - 新增 ArtStyleView 包装组件 - 更新 store.ts:新增 7 个 AppView(creative-workspace/script-v2/asset-v2/character-bible/world-map/queue-dashboard/art-style)和对应导航方法 - 更新 module-sidebar.tsx:创作空间从占位符改为 7 个真实子视图 - 更新 page.tsx ViewRouter:渲染所有创作空间视图 - 更新 i18n:添加中英文导航标签 - 修复 asset-workbench-v2.tsx 中 Input 从 lucide-react 误导入问题 - 修复 queue-dashboard.tsx 中 react-i18next 不兼容问题
added 2 commits
June 10, 2026 08:26
修复内容: 1. CreativeWorkspace 添加内联项目选择器 — 不再是死胡同"请先选择项目" 2. 所有创作子视图的面包屑导航改为回到创作空间(而非项目管理) 3. navigateToCreativeWorkspace 支持 dramaId 参数保留项目上下文 4. navigateToQueueDashboard/ArtStyle 不再清除 selectedDramaId 5. 新增 navigateBackToCreative 导航方法 6. Character 类型补全 v2 字段: weightTier, identityAnchors, threeViewsUrl, wardrobeUrls 7. 创作工具卡片显示完成状态、前置条件禁用提示 8. 新项目引导提示:上传小说 → 剧本生成 → 资产提取
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更概要
本次 PR 整合了 V2 三模块架构(项目管理/资产管理/创作空间)与 PostgreSQL 数据库适配。
主要变更
V2 创作空间模块
PostgreSQL 适配
流程修复
测试环境
预览部署: https://huobao-drama-l5539efki-dav-niu474s-projects.vercel.app