refactor(ui): simplifiy graph builders (WIP)

This commit is contained in:
psychedelicious
2025-07-07 16:17:03 +10:00
parent 067026a0d0
commit c143f63ef0
19 changed files with 445 additions and 352 deletions

View File

@@ -97,15 +97,15 @@ const enqueueCanvas = async (store: AppStore, canvasManager: CanvasManager, prep
return;
}
const { g, seedFieldIdentifier, positivePromptFieldIdentifier } = buildGraphResult.value;
const { g, seed, positivePrompt } = buildGraphResult.value;
const prepareBatchResult = withResult(() =>
prepareLinearUIBatch({
state,
g,
prepend,
seedFieldIdentifier,
positivePromptFieldIdentifier,
seedNode: seed,
positivePromptNode: positivePrompt,
origin: 'canvas',
destination,
})

View File

@@ -95,15 +95,15 @@ const enqueueGenerate = async (store: AppStore, prepend: boolean) => {
return;
}
const { g, seedFieldIdentifier, positivePromptFieldIdentifier } = buildGraphResult.value;
const { g, seed, positivePrompt } = buildGraphResult.value;
const prepareBatchResult = withResult(() =>
prepareLinearUIBatch({
state,
g,
prepend,
seedFieldIdentifier,
positivePromptFieldIdentifier,
seedNode: seed,
positivePromptNode: positivePrompt,
origin: 'canvas',
destination,
})