feat(quick-start): 角色确认后给出建 3D 资产的进阶入口 - #773
Conversation
复用 workflow editor 那块面板,默认折叠。Quick Start 主线是一句话跑完, 建 3D 是按次计费、带人工确认闸、有名额上限的重动作,摊在主线上会被读成必经步骤。
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## feat/518-render3d-entry #773 +/- ##
===========================================================
+ Coverage 87.77% 91.97% +4.20%
===========================================================
Files 281 178 -103
Lines 20535 11295 -9240
Branches 3061 0 -3061
===========================================================
- Hits 18024 10389 -7635
+ Misses 1673 906 -767
+ Partials 838 0 -838
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
| render3d={render3DApis} | ||
| characterId={info.characterId} | ||
| outfitId={info.outfitId} | ||
| precheck={null} |
There was a problem hiding this comment.
[P2] Preserve the master precheck before enabling 3D builds
Render3DAssetPanel treats precheck={null} as no gate, so this Quick Start path never calls precheckMaster for the confirmed template and enables the paid build flow immediately. The backend still rejects an unacceptable master, but only after the user opens the confirmation flow and submits the paid action, which removes the existing #518 precheck/readout behavior and gives a worse, late error instead of explaining the unusable master before submission. Pass the selected template URL through a precheck hook/report (or otherwise preserve the panel's precheck contract) before allowing buildOutfitAsset.
Summary
Quick Start 里角色方案确认之后,给一个默认折叠的进阶入口,展开后复用 #518 的
Render3DAssetPanel。本 PR 基于 #771(
feat/518-render3d-entry),diff 只含 quick-start 这一处改动。 #771 合入后本 PR 的 base 会自动落到 main。为什么默认折叠
Quick Start 的主线是「一句话跑完」。建 3D 是按次计费(30 积分)、带人工确认闸、每账号还有名额上限的重动作——摊开在主线上会被读成必经的一步,而它是可选路线。
落法
组件抽成
quick-start/render3d-option.tsx,只依赖{ characterId, outfitId }两个 id,不依赖整个QuickStartSession。这样测试不必造一份完整会话,index.tsx(3895 行)也不再多一个组件。建 / 审 / 弃的行为与文案全部来自 #518 的面板,本 PR 一个字都没改。
不包含
model_3d_url决定。Test plan
format:check/lint/typecheck/test:coverage/build:1216 passed, 82 files命令都跑在最后一次编辑之后。
备注
这块最近改动很密(#763 等)。落地形态与视觉交给该模块的主要维护者按需调整,本 PR 只负责把入口接通。
Closes #772