Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

chore: merge origin/main into feat/webv2-tweaks-batch

Josh Corbett966cc0c24326
diff --cc invokeai/frontend/webv2/src/workbench/shell/PresetSwitchKeepAlive.browser.test.tsx
index f49a207086,ea5718a40a..68387c9093
--- a/invokeai/frontend/webv2/src/workbench/shell/PresetSwitchKeepAlive.browser.test.tsx
+++ b/invokeai/frontend/webv2/src/workbench/shell/PresetSwitchKeepAlive.browser.test.tsx
@@@ -103,8 -118,36 +118,36 @@@ vi.mock('@features/models', () => ({ us
vi.mock('@features/queue/contracts', () => ({
getProjectQueueIndicatorState: () => ({ hasOpenQueueWork: false, progressState: null, runningQueueItemId: null }),
}));
- vi.mock('@features/queue/react', () => ({ useQueueItemProgress: () => null }));
+ vi.mock('@features/queue/react', async (importOriginal) => ({
+ ...(await importOriginal<Record<string, unknown>>()),
+ useQueueItemProgress: () => null,
+ }));
+ vi.mock('@features/workflow/react', async (importOriginal) => {
+ const original = await importOriginal<Record<string, unknown>>();
+ const callSavedWorkflowTemplate = {
+ category: 'workflow',
+ classification: 'stable',
+ description: '',
+ inputs: {},
+ nodePack: 'invokeai',
+ outputType: 'workflow_return_output',
+ outputs: {},
+ tags: [],
+ title: 'Call Saved Workflow',
+ type: 'call_saved_workflow',
+ useCache: true,
+ version: '1.0.0',
+ };
+ const templates = { call_saved_workflow: callSavedWorkflowTemplate };
+
+ return {
+ ...original,
+ ensureInvocationTemplatesLoaded: () => {},
+ useInvocationTemplatesSelector: (selector: (snapshot: unknown) => unknown) =>
+ selector({ status: 'loaded', templates }),
+ };
+ });
-vi.mock('@workbench/focusRegions', () => ({ useFocusRegionProps: () => ({}) }));
+vi.mock('@workbench/focusRegions', () => ({ useFocusRegionProps: () => ({}), useHighlightedRegion: () => null }));
vi.mock('@workbench/widgetRegionViewModel', () => ({
createWidgetRegionViewModelFromState: ({ regionState }: { regionState: { instanceIds: string[] } }) => ({
placedItems: regionState.instanceIds.map((instanceId) => {