fix: show direct upload in workflow style step
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-04-19 21:17:43 +08:00
parent 90b6cd442c
commit 7164304451

View File

@ -1660,6 +1660,8 @@ export function AgentGenerationWorkspaceDarkV2({
const [activeToolStep, setActiveToolStep] = useState<ToolStepKey>("preset");
const hasBrandModelStep = Boolean(brandModelPanel) && modelSlotEnabled;
const hasWorkflowStyleStep = Boolean(workflowStylePanel) || hasBrandModelStep;
const shouldShowDirectUploadInStyleStep =
isDirectReferenceUploadEnabled && hasWorkflowStyleStep;
const visibleWorkflowSectionKeys = useMemo(
() => [
...(isPresetStepEnabled ? ["mode"] : []),
@ -4589,6 +4591,7 @@ export function AgentGenerationWorkspaceDarkV2({
</div>
<div className="space-y-4">
{shouldShowDirectUploadInStyleStep ? attachmentSlotPanel : null}
{workflowStylePanel}
{hasBrandModelStep ? brandModelPanel : null}
</div>
@ -4647,7 +4650,7 @@ export function AgentGenerationWorkspaceDarkV2({
</div>
) : null}
{isDirectReferenceUploadEnabled ||
{(!shouldShowDirectUploadInStyleStep && isDirectReferenceUploadEnabled) ||
(hasAgentUploadSlots && isAttachmentSlotExpanded)
? attachmentSlotPanel
: null}