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.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
Merge remote-tracking branch 'v7/main' into fix/ui-fixes-compendium-01
joshistoast9f36bbc3919d
diff --cc invokeai/frontend/webv2/performance/architecture-baseline.jsonindex d948a861a2,381cedb0df..4bb36e9455--- a/invokeai/frontend/webv2/performance/architecture-baseline.json+++ b/invokeai/frontend/webv2/performance/architecture-baseline.json@@@ -2,15 -2,15 +2,15 @@@"build": {"launchpad": {"baseline": {- "brotliBytes": 831786,- "brotliBytes": 830656,++ "brotliBytes": 832319,"cssRawBytes": 2159,"fontRawBytes": 219480,- "gzipBytes": 831287,- "gzipBytes": 829163,++ "gzipBytes": 832068,"imageRawBytes": 156376,- "initialRawBytes": 1930860,- "initialRawBytes": 1928860,- "largestAssetRawBytes": 746314,++ "initialRawBytes": 1932743,+ "largestAssetRawBytes": 746305,"otherAssetRawBytes": 0,- "ownedRawBytes": 66719,- "ownedRawBytes": 66626,++ "ownedRawBytes": 66704,"requestCount": 41,"scriptRequestCount": 25,"sourceOwners": [@@@ -280,15 -279,15 +280,15 @@@]},"limits": {- "brotliBytes": 840104,- "brotliBytes": 838963,++ "brotliBytes": 840643,"cssRawBytes": 2181,"fontRawBytes": 221675,- "gzipBytes": 839600,- "gzipBytes": 837455,++ "gzipBytes": 840389,"imageRawBytes": 157940,- "initialRawBytes": 1950169,- "initialRawBytes": 1948149,- "largestAssetRawBytes": 753778,++ "initialRawBytes": 1952071,+ "largestAssetRawBytes": 753769,"otherAssetRawBytes": 0,- "ownedRawBytes": 66719,- "ownedRawBytes": 66626,++ "ownedRawBytes": 66704,"requestCount": 41,"scriptRequestCount": 25},@@@ -298,17 -297,17 +298,17 @@@},"editor": {"baseline": {- "brotliBytes": 1022654,- "brotliBytes": 1020191,++ "brotliBytes": 1025567,"cssRawBytes": 2159,"fontRawBytes": 219480,- "gzipBytes": 1019842,- "gzipBytes": 1015483,++ "gzipBytes": 1022773,"imageRawBytes": 156376,- "initialRawBytes": 2506464,- "initialRawBytes": 2500067,- "largestAssetRawBytes": 746314,++ "initialRawBytes": 2514981,+ "largestAssetRawBytes": 746305,"otherAssetRawBytes": 0,- "ownedRawBytes": 107972,- "ownedRawBytes": 106186,-- "requestCount": 85,-- "scriptRequestCount": 69,++ "ownedRawBytes": 109821,++ "requestCount": 86,++ "scriptRequestCount": 70,"sourceOwners": ["package:@ark-ui/react","package:@chakra-ui/react",@@@ -536,6 -536,6 +537,7 @@@"source:src/features/queue/core/historySnapshot.ts","source:src/features/queue/core/historySummary.ts","source:src/features/queue/core/progressImage.ts",++ "source:src/features/queue/core/progressRail.ts","source:src/features/queue/core/promptBatch.ts","source:src/features/queue/core/submissionRules.ts","source:src/features/queue/core/types.ts",@@@ -688,6 -687,6 +690,7 @@@"source:src/workbench/hotkeys/extensionHotkeys.ts","source:src/workbench/hotkeys/firstPartyCommands.ts","source:src/workbench/hotkeys/index.ts",++ "source:src/workbench/hotkeys/keyGlyphs.tsx","source:src/workbench/hotkeys/keys.ts","source:src/workbench/hotkeys/modalLayer.ts","source:src/workbench/hotkeys/resolve.ts",@@@ -735,9 -734,9 +738,11 @@@"source:src/workbench/settings/store.ts","source:src/workbench/shell/BottomPanel.tsx","source:src/workbench/shell/CenterArea.tsx",++ "source:src/workbench/shell/DocumentTitleProgress.tsx","source:src/workbench/shell/Panels.tsx","source:src/workbench/shell/StatusBar.tsx","source:src/workbench/shell/WorkbenchShell.tsx",++ "source:src/workbench/shell/documentTitle.ts","source:src/workbench/shell/index.ts","source:src/workbench/shell/notifications/WorkbenchNotificationToaster.tsx","source:src/workbench/shell/notifications/index.ts",@@@ -755,8 -753,7 +760,10 @@@"source:src/workbench/shell/topbar/RoutingControl.tsx","source:src/workbench/shell/topbar/RoutingDestinationSegments.tsx","source:src/workbench/shell/topbar/TopBar.tsx",++ "source:src/workbench/shell/topbar/TopbarProgressRail.tsx",++ "source:src/workbench/shell/topbar/TopbarShortcutKeys.tsx","source:src/workbench/shell/topbar/index.ts",+ "source:src/workbench/shell/topbar/invokeButtonModel.ts","source:src/workbench/shell/topbar/layoutPresetDialogModel.ts","source:src/workbench/shell/topbar/layoutPresetIcons.ts","source:src/workbench/shell/topbar/layoutPresetManagerStore.ts",@@@ -816,17 -813,17 +824,17 @@@]},"limits": {- "brotliBytes": 1032881,- "brotliBytes": 1030393,++ "brotliBytes": 1035823,"cssRawBytes": 2181,"fontRawBytes": 221675,- "gzipBytes": 1030041,- "gzipBytes": 1025638,++ "gzipBytes": 1033001,"imageRawBytes": 157940,- "initialRawBytes": 2531529,- "initialRawBytes": 2525068,- "largestAssetRawBytes": 753778,++ "initialRawBytes": 2540131,+ "largestAssetRawBytes": 753769,"otherAssetRawBytes": 0,- "ownedRawBytes": 107972,- "ownedRawBytes": 106186,-- "requestCount": 85,-- "scriptRequestCount": 69++ "ownedRawBytes": 109821,++ "requestCount": 86,++ "scriptRequestCount": 70},"owner": "workbench","remediationTicket": "deepen-widget-registry-loading",diff --cc invokeai/frontend/webv2/src/workbench/widgetRegistry.test.tsindex 043debc854,043debc854..d0d8f9ff16--- a/invokeai/frontend/webv2/src/workbench/widgetRegistry.test.ts+++ b/invokeai/frontend/webv2/src/workbench/widgetRegistry.test.ts@@@ -26,7 -26,7 +26,7 @@@ describe('widget registry', () =>it('registers first-party widget manifests without icon validation failures', () => {const widgets = registerFirstPartyWidgets();-- expect(widgets).toHaveLength(15);++ expect(widgets).toHaveLength(16);expect(widgets.flatMap((widget) => widget.failure ?? [])).toEqual([]);expect(widgets.every((widget) => widget.status === 'enabled')).toBe(true);});diff --cc invokeai/frontend/webv2/src/workbench/workbenchState.tsindex 0b6d24bbc1,ca6fd72507..993063099a--- a/invokeai/frontend/webv2/src/workbench/workbenchState.ts+++ b/invokeai/frontend/webv2/src/workbench/workbenchState.ts@@@ -1281,46 -1228,35 +1295,72 @@@ const ensureRightRegion = (rightRegionreturn { ...rightRegion, instanceIds: defaultRightRegion.instanceIds };}- return rightRegion;+ if (rightRegion.instanceIds.includes('image-map')) {+ return rightRegion;+ }++ const isPreImageMapDefault =+ rightRegion.instanceIds.length === PRE_IMAGE_MAP_DEFAULT_RIGHT_REGION_WIDGET_IDS.length &&+ rightRegion.instanceIds.every(+ (widgetId, index) => widgetId === PRE_IMAGE_MAP_DEFAULT_RIGHT_REGION_WIDGET_IDS[index]+ );++ if (!isPreImageMapDefault) {+ // A customized rail is left alone, matching how `upscale` was introduced.+ return rightRegion;+ }++ // Without this, adding the widget to the built-in presets makes every+ // existing project read as drifted from the preset it was loaded from — the+ // topbar shows an unsaved-changes dot, and offers to revert a layout the user+ // never edited. Migrating the persisted rail keeps the two in step, and is+ // also the only way the widget is discoverable without hunting through the+ // enable menu.+ const galleryIndex = rightRegion.instanceIds.indexOf('gallery');+ const instanceIds = [...rightRegion.instanceIds];++ instanceIds.splice(galleryIndex === -1 ? instanceIds.length : galleryIndex + 1, 0, 'image-map');++ return { ...rightRegion, instanceIds };};+// The shipped bottom-region default before 'queue-status' was added — a+// persisted project whose bottom rail matches this exactly is still running+// the pre-branch defaults, so it should pick up the new widget the same way+// a fresh project would.+const LEGACY_DEFAULT_BOTTOM_REGION_WIDGET_IDS: readonly WidgetInstanceId[] = [+ 'server-status',+ 'gallery:bottom',+ 'notifications',+ 'autosave-status',+];++const isLegacyDefaultBottomRegion = (region: WidgetRegionState): boolean =>+ region.instanceIds.length === LEGACY_DEFAULT_BOTTOM_REGION_WIDGET_IDS.length &&+ region.instanceIds.every((widgetId, index) => widgetId === LEGACY_DEFAULT_BOTTOM_REGION_WIDGET_IDS[index]);++const ensureBottomRegion = (bottomRegion: WidgetRegionState | undefined): WidgetRegionState => {+ const fallback = createWidgetRegions().bottom;++ if (!bottomRegion) {+ return fallback;+ }+ if (bottomRegion.instanceIds.includes('queue-status')) {+ return bottomRegion;+ }++ if (!isLegacyDefaultBottomRegion(bottomRegion)) {+ return bottomRegion;+ }++ const serverStatusIndex = bottomRegion.instanceIds.indexOf('server-status');+ const instanceIds = [...bottomRegion.instanceIds];++ instanceIds.splice(serverStatusIndex === -1 ? instanceIds.length : serverStatusIndex + 1, 0, 'queue-status');++ return { ...bottomRegion, instanceIds };+};+const getCenterWidgetIdFromViewId = (centerViewId: CenterViewId): WidgetInstanceId => {if (centerViewId === 'gallery') {return 'gallery:center';