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.

perf(webv2): keep editor-only code off the launchpad

joshistoastda2013922c8a
diff --git a/invokeai/frontend/webv2/performance/architecture-baseline.json b/invokeai/frontend/webv2/performance/architecture-baseline.json
index 30ddb772bb..944d91b343 100644
--- a/invokeai/frontend/webv2/performance/architecture-baseline.json
+++ b/invokeai/frontend/webv2/performance/architecture-baseline.json
@@ -2,25 +2,20 @@
"build": {
"launchpad": {
"baseline": {
- "brotliBytes": 964523,
- "cssRawBytes": 17571,
+ "brotliBytes": 798058,
+ "cssRawBytes": 2159,
"fontRawBytes": 219480,
- "gzipBytes": 962177,
+ "gzipBytes": 798041,
"imageRawBytes": 156376,
- "initialRawBytes": 2356158,
- "largestAssetRawBytes": 772580,
+ "initialRawBytes": 1830253,
+ "largestAssetRawBytes": 737748,
"otherAssetRawBytes": 0,
- "ownedRawBytes": 33139,
- "requestCount": 51,
- "scriptRequestCount": 35,
+ "ownedRawBytes": 57578,
+ "requestCount": 31,
+ "scriptRequestCount": 15,
"sourceOwners": [
"package:@ark-ui/react",
"package:@chakra-ui/react",
- "package:@dnd-kit/accessibility",
- "package:@dnd-kit/core",
- "package:@dnd-kit/modifiers",
- "package:@dnd-kit/sortable",
- "package:@dnd-kit/utilities",
"package:@emotion/cache",
"package:@emotion/hash",
"package:@emotion/is-prop-valid",
@@ -47,8 +42,6 @@
"package:@tanstack/router-core",
"package:@tanstack/store",
"package:@tanstack/virtual-core",
- "package:@xyflow/react",
- "package:@xyflow/system",
"package:@zag-js/accordion",
"package:@zag-js/anatomy",
"package:@zag-js/aria-hidden",
@@ -104,15 +97,6 @@
"package:@zag-js/types",
"package:@zag-js/utils",
"package:classcat",
- "package:d3-color",
- "package:d3-dispatch",
- "package:d3-drag",
- "package:d3-ease",
- "package:d3-interpolate",
- "package:d3-selection",
- "package:d3-timer",
- "package:d3-transition",
- "package:d3-zoom",
"package:engine.io-client",
"package:engine.io-parser",
"package:fuzzysort",
@@ -120,7 +104,6 @@
"package:i18next",
"package:i18next-http-backend",
"package:lucide-react",
- "package:perfect-freehand",
"package:react",
"package:react-dom",
"package:react-hook-tanstack-virtual",
@@ -144,26 +127,6 @@
"source:src/app/main.tsx",
"source:src/app/router.tsx",
"source:src/assets/SplashImage.webp",
- "source:src/features/gallery/contracts.ts",
- "source:src/features/gallery/core/image.ts",
- "source:src/features/gallery/core/settings.ts",
- "source:src/features/gallery/ui/galleryStateView.ts",
- "source:src/features/generation/core/baseGenerationPolicies.ts",
- "source:src/features/generation/core/batch.ts",
- "source:src/features/generation/core/canvas/addControlLayers.ts",
- "source:src/features/generation/core/canvas/addRegionalGuidance.ts",
- "source:src/features/generation/core/canvas/compileCanvasGraph.ts",
- "source:src/features/generation/core/canvas/controlValidation.ts",
- "source:src/features/generation/core/canvas/types.ts",
- "source:src/features/generation/core/componentCompatibility.ts",
- "source:src/features/generation/core/graph.ts",
- "source:src/features/generation/core/graphBuilder.ts",
- "source:src/features/generation/core/projectPromptDraft.ts",
- "source:src/features/generation/core/promptHistory.ts",
- "source:src/features/generation/core/referenceImage.ts",
- "source:src/features/generation/core/settings.ts",
- "source:src/features/generation/graph.ts",
- "source:src/features/generation/settings.ts",
"source:src/features/identity/capabilities.ts",
"source:src/features/identity/core/schemas.ts",
"source:src/features/identity/core/sessionPolicy.ts",
@@ -198,28 +161,6 @@
"source:src/features/nodes/data/transport.ts",
"source:src/features/nodes/index.ts",
"source:src/features/nodes/ui/NodesPage.tsx",
- "source:src/features/queue/contracts.ts",
- "source:src/features/queue/core/historySnapshot.ts",
- "source:src/features/queue/core/submissionRules.ts",
- "source:src/features/upscale/core/graph.ts",
- "source:src/features/upscale/core/settings.ts",
- "source:src/features/upscale/index.ts",
- "source:src/features/upscale/ui/UpscaleUiContext.tsx",
- "source:src/features/workflow/core/buildGraph.ts",
- "source:src/features/workflow/core/connectors.ts",
- "source:src/features/workflow/core/document.ts",
- "source:src/features/workflow/core/fields.ts",
- "source:src/features/workflow/core/graphIndex.ts",
- "source:src/features/workflow/core/layerWorkflow.ts",
- "source:src/features/workflow/core/types.ts",
- "source:src/features/workflow/core/validation.ts",
- "source:src/features/workflow/core/workflowJson.ts",
- "source:src/features/workflow/data/templates.ts",
- "source:src/features/workflow/graph.ts",
- "source:src/features/workflow/react.ts",
- "source:src/features/workflow/ui/WorkflowUiContext.tsx",
- "source:src/features/workflow/ui/workflowUiStore.ts",
- "source:src/features/workflow/utility.ts",
"source:src/platform/browser/knownBrowserIssues.ts",
"source:src/platform/i18n/client.ts",
"source:src/platform/i18n/languages.ts",
@@ -267,38 +208,10 @@
"source:src/platform/ui/theme/system.ts",
"source:src/platform/ui/theme/themes.ts",
"source:src/platform/ui/toaster.tsx",
- "source:src/workbench/WorkbenchContext.tsx",
- "source:src/workbench/autoRoutePolicy.ts",
- "source:src/workbench/canvas-engine/api.ts",
- "source:src/workbench/canvas-engine/capabilities.ts",
- "source:src/workbench/canvas-engine/document/sources.ts",
- "source:src/workbench/canvas-engine/editing/controlPixelEdit.ts",
- "source:src/workbench/canvas-engine/engineStores.ts",
- "source:src/workbench/canvas-engine/math/mat2d.ts",
- "source:src/workbench/canvas-engine/math/rect.ts",
- "source:src/workbench/canvas-engine/math/snapping.ts",
- "source:src/workbench/canvas-engine/render/compositor.ts",
- "source:src/workbench/canvas-engine/render/controlTransparency.ts",
- "source:src/workbench/canvas-engine/render/maskFill.ts",
- "source:src/workbench/canvas-engine/render/rasterizers/textRasterizer.ts",
- "source:src/workbench/canvas-engine/transform/transformMath.ts",
- "source:src/workbench/canvasLayerContent.ts",
- "source:src/workbench/canvasMigration.ts",
- "source:src/workbench/canvasProjectMutations.ts",
- "source:src/workbench/canvasStagingView.ts",
"source:src/workbench/components/WorkbenchSplashScreen.tsx",
- "source:src/workbench/controlAdapters.ts",
- "source:src/workbench/controlLayerChecks.ts",
- "source:src/workbench/diagnostics/logger.ts",
- "source:src/workbench/extensions/contributionSource.ts",
- "source:src/workbench/extensions/extensionRegistry.ts",
"source:src/workbench/hotkeys/catalog.ts",
- "source:src/workbench/hotkeys/extensionHotkeys.ts",
- "source:src/workbench/hotkeys/index.ts",
"source:src/workbench/hotkeys/keys.ts",
- "source:src/workbench/hotkeys/modalLayer.ts",
"source:src/workbench/hotkeys/resolve.ts",
- "source:src/workbench/invocation.ts",
"source:src/workbench/launchpad/KnownBrowserIssuesAlert.tsx",
"source:src/workbench/launchpad/Launchpad.tsx",
"source:src/workbench/launchpad/LaunchpadNav.tsx",
@@ -309,44 +222,33 @@
"source:src/workbench/launchpad/ResourceLinks.tsx",
"source:src/workbench/launchpad/formatRelativeTime.ts",
"source:src/workbench/launchpad/pages/ProjectsPage.tsx",
- "source:src/workbench/layoutPresetSnapshots.ts",
- "source:src/workbench/layoutPresets.ts",
"source:src/workbench/palette/LaunchpadCommandPalette.tsx",
"source:src/workbench/palette/PaletteButton.tsx",
"source:src/workbench/palette/paletteStore.ts",
"source:src/workbench/palette/settingsEntryDeps.ts",
- "source:src/workbench/performanceMarks.ts",
- "source:src/workbench/persistence.ts",
- "source:src/workbench/persistenceRuntime.ts",
"source:src/workbench/projects/api.ts",
"source:src/workbench/projects/ids.ts",
"source:src/workbench/projects/library.ts",
+ "source:src/workbench/projects/projectDocument.ts",
"source:src/workbench/projects/projectFile.ts",
"source:src/workbench/projects/session.ts",
- "source:src/workbench/projects/syncStore.ts",
- "source:src/workbench/projects/syncedPersistence.ts",
- "source:src/workbench/queueHistoryNormalization.ts",
- "source:src/workbench/settings/HotkeysSettingsSection.tsx",
- "source:src/workbench/settings/SettingsDialog.tsx",
+ "source:src/workbench/settings/SettingsButton.tsx",
"source:src/workbench/settings/settingsDialogStore.ts",
- "source:src/workbench/settings/store.ts",
- "source:src/workbench/widgetState.ts",
- "source:src/workbench/workbenchState.ts",
- "source:src/workbench/workbenchStore.ts"
+ "source:src/workbench/settings/store.ts"
]
},
"limits": {
- "brotliBytes": 974169,
- "cssRawBytes": 17747,
+ "brotliBytes": 806039,
+ "cssRawBytes": 2181,
"fontRawBytes": 221675,
- "gzipBytes": 971799,
+ "gzipBytes": 806022,
"imageRawBytes": 157940,
- "initialRawBytes": 2379720,
- "largestAssetRawBytes": 780306,
+ "initialRawBytes": 1848556,
+ "largestAssetRawBytes": 745126,
"otherAssetRawBytes": 0,
- "ownedRawBytes": 33139,
- "requestCount": 51,
- "scriptRequestCount": 35
+ "ownedRawBytes": 57578,
+ "requestCount": 31,
+ "scriptRequestCount": 15
},
"owner": "app",
"remediationTicket": "set-performance-budgets",
@@ -354,17 +256,17 @@
},
"editor": {
"baseline": {
- "brotliBytes": 1024838,
- "cssRawBytes": 17571,
+ "brotliBytes": 965507,
+ "cssRawBytes": 2159,
"fontRawBytes": 219480,
- "gzipBytes": 1023617,
+ "gzipBytes": 964313,
"imageRawBytes": 156376,
- "initialRawBytes": 2533352,
- "largestAssetRawBytes": 772580,
+ "initialRawBytes": 2338864,
+ "largestAssetRawBytes": 737748,
"otherAssetRawBytes": 0,
- "ownedRawBytes": 105798,
- "requestCount": 73,
- "scriptRequestCount": 57,
+ "ownedRawBytes": 106091,
+ "requestCount": 72,
+ "scriptRequestCount": 56,
"sourceOwners": [
"package:@ark-ui/react",
"package:@chakra-ui/react",
@@ -399,8 +301,6 @@
"package:@tanstack/router-core",
"package:@tanstack/store",
"package:@tanstack/virtual-core",
- "package:@xyflow/react",
- "package:@xyflow/system",
"package:@zag-js/accordion",
"package:@zag-js/anatomy",
"package:@zag-js/aria-hidden",
@@ -456,15 +356,6 @@
"package:@zag-js/types",
"package:@zag-js/utils",
"package:classcat",
- "package:d3-color",
- "package:d3-dispatch",
- "package:d3-drag",
- "package:d3-ease",
- "package:d3-interpolate",
- "package:d3-selection",
- "package:d3-timer",
- "package:d3-transition",
- "package:d3-zoom",
"package:engine.io-client",
"package:engine.io-parser",
"package:fuzzysort",
@@ -486,14 +377,23 @@
"package:use-sync-external-store",
"package:zod",
"package:zustand",
+ "source:index.html",
+ "source:src/app/App.tsx",
+ "source:src/app/AppProviders.tsx",
"source:src/app/GalleryUiAdapter.tsx",
"source:src/app/GenerationUiAdapter.tsx",
+ "source:src/app/I18nController.tsx",
"source:src/app/ModelsUiAdapter.tsx",
"source:src/app/QueueRuntimeAdapter.tsx",
"source:src/app/QueueUiAdapter.tsx",
+ "source:src/app/SocketHubRuntime.tsx",
+ "source:src/app/ThemeController.tsx",
"source:src/app/UpscaleUiAdapter.tsx",
"source:src/app/WorkbenchApp.tsx",
"source:src/app/WorkflowUiAdapter.tsx",
+ "source:src/app/accountLifecycle.ts",
+ "source:src/app/main.tsx",
+ "source:src/app/router.tsx",
"source:src/app/workbenchPorts.tsx",
"source:src/assets/SplashImage.webp",
"source:src/features/gallery/contracts.ts",
@@ -618,6 +518,8 @@
"source:src/features/workflow/ui/workflowUiStore.ts",
"source:src/features/workflow/utility.ts",
"source:src/features/workflow/widget.ts",
+ "source:src/platform/browser/knownBrowserIssues.ts",
+ "source:src/platform/i18n/client.ts",
"source:src/platform/i18n/languages.ts",
"source:src/platform/performance/semanticReady.ts",
"source:src/platform/query/client.ts",
@@ -711,9 +613,19 @@
"source:src/workbench/iconResolver.tsx",
"source:src/workbench/invocation.ts",
"source:src/workbench/invocationSubmit.ts",
+ "source:src/workbench/launchpad/KnownBrowserIssuesAlert.tsx",
+ "source:src/workbench/launchpad/Launchpad.tsx",
+ "source:src/workbench/launchpad/LaunchpadNav.tsx",
+ "source:src/workbench/launchpad/LaunchpadTopBar.tsx",
+ "source:src/workbench/launchpad/NewProjectCard.tsx",
+ "source:src/workbench/launchpad/ProjectCard.tsx",
+ "source:src/workbench/launchpad/ProjectsGrid.tsx",
+ "source:src/workbench/launchpad/ResourceLinks.tsx",
"source:src/workbench/launchpad/formatRelativeTime.ts",
+ "source:src/workbench/launchpad/pages/ProjectsPage.tsx",
"source:src/workbench/layoutPresetSnapshots.ts",
"source:src/workbench/layoutPresets.ts",
+ "source:src/workbench/palette/LaunchpadCommandPalette.tsx",
"source:src/workbench/palette/PaletteButton.tsx",
"source:src/workbench/palette/WorkbenchCommandPalette.tsx",
"source:src/workbench/palette/paletteStore.ts",
@@ -727,6 +639,7 @@
"source:src/workbench/projects/components/index.ts",
"source:src/workbench/projects/ids.ts",
"source:src/workbench/projects/library.ts",
+ "source:src/workbench/projects/projectDocument.ts",
"source:src/workbench/projects/projectFile.ts",
"source:src/workbench/projects/projectTabsA11y.ts",
"source:src/workbench/projects/session.ts",
@@ -734,9 +647,7 @@
"source:src/workbench/projects/syncedPersistence.ts",
"source:src/workbench/projects/useProjectActions.ts",
"source:src/workbench/queueHistoryNormalization.ts",
- "source:src/workbench/settings/HotkeysSettingsSection.tsx",
- "source:src/workbench/settings/SettingsDialog.tsx",
- "source:src/workbench/settings/index.ts",
+ "source:src/workbench/settings/SettingsButton.tsx",
"source:src/workbench/settings/settingsDialogStore.ts",
"source:src/workbench/settings/store.ts",
"source:src/workbench/shell/BottomPanel.tsx",
@@ -805,17 +716,17 @@
]
},
"limits": {
- "brotliBytes": 1035087,
- "cssRawBytes": 17747,
+ "brotliBytes": 975163,
+ "cssRawBytes": 2181,
"fontRawBytes": 221675,
- "gzipBytes": 1033854,
+ "gzipBytes": 973957,
"imageRawBytes": 157940,
- "initialRawBytes": 2558686,
- "largestAssetRawBytes": 780306,
+ "initialRawBytes": 2362253,
+ "largestAssetRawBytes": 745126,
"otherAssetRawBytes": 0,
- "ownedRawBytes": 105798,
- "requestCount": 73,
- "scriptRequestCount": 57
+ "ownedRawBytes": 106091,
+ "requestCount": 72,
+ "scriptRequestCount": 56
},
"owner": "workbench",
"remediationTicket": "deepen-widget-registry-loading",
diff --git a/invokeai/frontend/webv2/performance/browser-baseline.json b/invokeai/frontend/webv2/performance/browser-baseline.json
index 67d8813273..6b697705a1 100644
--- a/invokeai/frontend/webv2/performance/browser-baseline.json
+++ b/invokeai/frontend/webv2/performance/browser-baseline.json
@@ -25,40 +25,40 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 160.10000000149012,
+ "domContentLoadedMedianMs": 140.39999999850988,
"id": "launchpad",
"layoutSwitchMedianMs": 0,
- "loadMedianMs": 160.10000000149012,
- "longestTaskMaxMs": 93,
+ "loadMedianMs": 140.5,
+ "longestTaskMaxMs": 100,
"owner": "app",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:launchpad",
"remediationTicket": "set-performance-budgets",
"resourceBaseline": {
- "cssRawBytes": 17571,
+ "cssRawBytes": 2159,
"fontRawBytes": 23664,
"imageRawBytes": 0,
- "largestAssetRawBytes": 772580,
- "otherRawBytes": 90842,
- "requestCount": 39,
- "scriptRawBytes": 1962731,
- "scriptRequestCount": 35,
- "totalRawBytes": 2094808
+ "largestAssetRawBytes": 737748,
+ "otherRawBytes": 89156,
+ "requestCount": 19,
+ "scriptRawBytes": 1452238,
+ "scriptRequestCount": 15,
+ "totalRawBytes": 1567217
},
"resourceLimits": {
- "cssRawBytes": 17747,
+ "cssRawBytes": 2181,
"fontRawBytes": 23901,
"imageRawBytes": 0,
- "largestAssetRawBytes": 780306,
- "otherRawBytes": 91751,
- "requestCount": 39,
- "scriptRawBytes": 1982359,
- "scriptRequestCount": 35,
- "totalRawBytes": 2115757
+ "largestAssetRawBytes": 745126,
+ "otherRawBytes": 90048,
+ "requestCount": 19,
+ "scriptRawBytes": 1466761,
+ "scriptRequestCount": 15,
+ "totalRawBytes": 1582890
},
- "routeReadyMedianMs": 332.6000000014901,
- "stateProfile": "empty",
- "scriptSourceOwnerSet": "launchpad-static"
+ "routeReadyMedianMs": 297.5,
+ "scriptSourceOwnerSet": "launchpad-static",
+ "stateProfile": "empty"
},
{
"activatedResourceBaseline": {
@@ -83,40 +83,40 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 160.70000000298023,
+ "domContentLoadedMedianMs": 128.20000000298023,
"id": "launchpad",
"layoutSwitchMedianMs": 0,
- "loadMedianMs": 160.70000000298023,
- "longestTaskMaxMs": 88,
+ "loadMedianMs": 128.30000000447035,
+ "longestTaskMaxMs": 83,
"owner": "app",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:launchpad",
"remediationTicket": "set-performance-budgets",
"resourceBaseline": {
- "cssRawBytes": 17571,
+ "cssRawBytes": 2159,
"fontRawBytes": 23664,
"imageRawBytes": 0,
- "largestAssetRawBytes": 772580,
- "otherRawBytes": 90842,
- "requestCount": 39,
- "scriptRawBytes": 1962731,
- "scriptRequestCount": 35,
- "totalRawBytes": 2094808
+ "largestAssetRawBytes": 737748,
+ "otherRawBytes": 89156,
+ "requestCount": 19,
+ "scriptRawBytes": 1452238,
+ "scriptRequestCount": 15,
+ "totalRawBytes": 1567217
},
"resourceLimits": {
- "cssRawBytes": 17747,
+ "cssRawBytes": 2181,
"fontRawBytes": 23901,
"imageRawBytes": 0,
- "largestAssetRawBytes": 780306,
- "otherRawBytes": 91751,
- "requestCount": 39,
- "scriptRawBytes": 1982359,
- "scriptRequestCount": 35,
- "totalRawBytes": 2115757
+ "largestAssetRawBytes": 745126,
+ "otherRawBytes": 90048,
+ "requestCount": 19,
+ "scriptRawBytes": 1466761,
+ "scriptRequestCount": 15,
+ "totalRawBytes": 1582890
},
- "routeReadyMedianMs": 385.70000000298023,
- "stateProfile": "representative",
- "scriptSourceOwnerSet": "launchpad-static"
+ "routeReadyMedianMs": 323.90000000596046,
+ "scriptSourceOwnerSet": "launchpad-static",
+ "stateProfile": "representative"
},
{
"activatedResourceBaseline": {
@@ -141,40 +141,40 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 164.39999999850988,
+ "domContentLoadedMedianMs": 142.60000000149012,
"id": "editor-minimal",
"layoutSwitchMedianMs": 0,
- "loadMedianMs": 164.39999999850988,
- "longestTaskMaxMs": 158,
+ "loadMedianMs": 142.70000000298023,
+ "longestTaskMaxMs": 141,
"owner": "workbench",
- "projectSwitchMedianMs": 68.63431200000014,
+ "projectSwitchMedianMs": 66.04346599999917,
"readyMark": "invokeai:ready:widget:center:preview",
"remediationTicket": "deepen-widget-registry-loading",
"resourceBaseline": {
- "cssRawBytes": 17571,
+ "cssRawBytes": 17572,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 772580,
- "otherRawBytes": 90842,
+ "largestAssetRawBytes": 737748,
+ "otherRawBytes": 89156,
"requestCount": 95,
- "scriptRawBytes": 2936802,
- "scriptRequestCount": 90,
- "totalRawBytes": 3225255
+ "scriptRawBytes": 2899045,
+ "scriptRequestCount": 89,
+ "totalRawBytes": 3185813
},
"resourceLimits": {
- "cssRawBytes": 17747,
+ "cssRawBytes": 17748,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 780306,
- "otherRawBytes": 91751,
+ "largestAssetRawBytes": 745126,
+ "otherRawBytes": 90048,
"requestCount": 95,
- "scriptRawBytes": 2966171,
- "scriptRequestCount": 90,
- "totalRawBytes": 3257508
+ "scriptRawBytes": 2928036,
+ "scriptRequestCount": 89,
+ "totalRawBytes": 3217672
},
- "routeReadyMedianMs": 695.1999999955297,
- "stateProfile": "empty",
- "scriptSourceOwnerSet": "editor-minimal-static"
+ "routeReadyMedianMs": 686,
+ "scriptSourceOwnerSet": "editor-minimal-static",
+ "stateProfile": "empty"
},
{
"activatedResourceBaseline": {
@@ -199,388 +199,388 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 161.39999999850988,
+ "domContentLoadedMedianMs": 135.89999999850988,
"id": "editor-minimal",
"layoutSwitchMedianMs": 0,
- "loadMedianMs": 161.39999999850988,
- "longestTaskMaxMs": 161,
+ "loadMedianMs": 135.89999999850988,
+ "longestTaskMaxMs": 152,
"owner": "workbench",
- "projectSwitchMedianMs": 104.04410999999891,
+ "projectSwitchMedianMs": 110.28066000000035,
"readyMark": "invokeai:ready:widget:center:preview",
"remediationTicket": "deepen-widget-registry-loading",
"resourceBaseline": {
- "cssRawBytes": 17571,
+ "cssRawBytes": 17572,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 772580,
- "otherRawBytes": 90842,
+ "largestAssetRawBytes": 737748,
+ "otherRawBytes": 89156,
"requestCount": 95,
- "scriptRawBytes": 2936802,
- "scriptRequestCount": 90,
- "totalRawBytes": 3225255
+ "scriptRawBytes": 2899045,
+ "scriptRequestCount": 89,
+ "totalRawBytes": 3185813
},
"resourceLimits": {
- "cssRawBytes": 17747,
+ "cssRawBytes": 17748,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 780306,
- "otherRawBytes": 91751,
+ "largestAssetRawBytes": 745126,
+ "otherRawBytes": 90048,
"requestCount": 95,
- "scriptRawBytes": 2966171,
- "scriptRequestCount": 90,
- "totalRawBytes": 3257508
+ "scriptRawBytes": 2928036,
+ "scriptRequestCount": 89,
+ "totalRawBytes": 3217672
},
- "routeReadyMedianMs": 722.1000000014901,
- "stateProfile": "representative",
- "scriptSourceOwnerSet": "editor-minimal-static"
+ "routeReadyMedianMs": 726.0999999940395,
+ "scriptSourceOwnerSet": "editor-minimal-static",
+ "stateProfile": "representative"
},
{
"activatedResourceBaseline": {
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 136308,
+ "largestAssetRawBytes": 136291,
"otherRawBytes": 0,
"requestCount": 7,
- "scriptRawBytes": 290017,
+ "scriptRawBytes": 290040,
"scriptRequestCount": 7,
- "totalRawBytes": 290017
+ "totalRawBytes": 290040
},
"activatedResourceLimits": {
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 137672,
+ "largestAssetRawBytes": 137654,
"otherRawBytes": 0,
"requestCount": 7,
- "scriptRawBytes": 292918,
+ "scriptRawBytes": 292941,
"scriptRequestCount": 7,
- "totalRawBytes": 292918
+ "totalRawBytes": 292941
},
- "domContentLoadedMedianMs": 172.40000000596046,
+ "domContentLoadedMedianMs": 140.5,
"id": "editor-canvas",
- "layoutSwitchMedianMs": 659.1999999955297,
- "loadMedianMs": 172.40000000596046,
- "longestTaskMaxMs": 150,
+ "layoutSwitchMedianMs": 628.8000000044703,
+ "loadMedianMs": 140.60000000149012,
+ "longestTaskMaxMs": 156,
"owner": "canvas",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:canvas",
"remediationTicket": "deepen-widget-registry-loading",
"resourceBaseline": {
- "cssRawBytes": 17571,
+ "cssRawBytes": 17572,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 772580,
- "otherRawBytes": 90842,
+ "largestAssetRawBytes": 737748,
+ "otherRawBytes": 89156,
"requestCount": 99,
- "scriptRawBytes": 3212520,
- "scriptRequestCount": 94,
- "totalRawBytes": 3500973
+ "scriptRawBytes": 3174797,
+ "scriptRequestCount": 93,
+ "totalRawBytes": 3461565
},
"resourceLimits": {
- "cssRawBytes": 17747,
+ "cssRawBytes": 17748,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 780306,
- "otherRawBytes": 91751,
+ "largestAssetRawBytes": 745126,
+ "otherRawBytes": 90048,
"requestCount": 99,
- "scriptRawBytes": 3244646,
- "scriptRequestCount": 94,
- "totalRawBytes": 3535983
+ "scriptRawBytes": 3206545,
+ "scriptRequestCount": 93,
+ "totalRawBytes": 3496181
},
- "routeReadyMedianMs": 1202.8999999985099,
- "stateProfile": "empty",
- "scriptSourceOwnerSet": "editor-canvas-static"
+ "routeReadyMedianMs": 1185.6999999955297,
+ "scriptSourceOwnerSet": "editor-canvas-static",
+ "stateProfile": "empty"
},
{
"activatedResourceBaseline": {
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 136308,
+ "largestAssetRawBytes": 136291,
"otherRawBytes": 0,
"requestCount": 7,
- "scriptRawBytes": 290017,
+ "scriptRawBytes": 290040,
"scriptRequestCount": 7,
- "totalRawBytes": 290017
+ "totalRawBytes": 290040
},
"activatedResourceLimits": {
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 137672,
+ "largestAssetRawBytes": 137654,
"otherRawBytes": 0,
"requestCount": 7,
- "scriptRawBytes": 292918,
+ "scriptRawBytes": 292941,
"scriptRequestCount": 7,
- "totalRawBytes": 292918
+ "totalRawBytes": 292941
},
- "domContentLoadedMedianMs": 169.29999999701977,
+ "domContentLoadedMedianMs": 135.5,
"id": "editor-canvas",
- "layoutSwitchMedianMs": 873.1000000014901,
- "loadMedianMs": 169.39999999850988,
- "longestTaskMaxMs": 2188,
+ "layoutSwitchMedianMs": 831,
+ "loadMedianMs": 135.5,
+ "longestTaskMaxMs": 249,
"owner": "canvas",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:canvas",
"remediationTicket": "deepen-widget-registry-loading",
"resourceBaseline": {
- "cssRawBytes": 17571,
+ "cssRawBytes": 17572,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 772580,
- "otherRawBytes": 90842,
+ "largestAssetRawBytes": 737748,
+ "otherRawBytes": 89156,
"requestCount": 99,
- "scriptRawBytes": 3212520,
- "scriptRequestCount": 94,
- "totalRawBytes": 3500973
+ "scriptRawBytes": 3174797,
+ "scriptRequestCount": 93,
+ "totalRawBytes": 3461565
},
"resourceLimits": {
- "cssRawBytes": 17747,
+ "cssRawBytes": 17748,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 780306,
- "otherRawBytes": 91751,
+ "largestAssetRawBytes": 745126,
+ "otherRawBytes": 90048,
"requestCount": 99,
- "scriptRawBytes": 3244646,
- "scriptRequestCount": 94,
- "totalRawBytes": 3535983
+ "scriptRawBytes": 3206545,
+ "scriptRequestCount": 93,
+ "totalRawBytes": 3496181
},
- "routeReadyMedianMs": 1472.8000000044703,
- "stateProfile": "representative",
- "scriptSourceOwnerSet": "editor-canvas-static"
+ "routeReadyMedianMs": 1400.7000000029802,
+ "scriptSourceOwnerSet": "editor-canvas-static",
+ "stateProfile": "representative"
},
{
"activatedResourceBaseline": {
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 13264,
+ "largestAssetRawBytes": 13253,
"otherRawBytes": 0,
"requestCount": 3,
- "scriptRawBytes": 14299,
+ "scriptRawBytes": 14288,
"scriptRequestCount": 3,
- "totalRawBytes": 14299
+ "totalRawBytes": 14288
},
"activatedResourceLimits": {
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 13397,
+ "largestAssetRawBytes": 13386,
"otherRawBytes": 0,
"requestCount": 3,
- "scriptRawBytes": 14442,
+ "scriptRawBytes": 14431,
"scriptRequestCount": 3,
- "totalRawBytes": 14442
+ "totalRawBytes": 14431
},
- "domContentLoadedMedianMs": 165.90000000596046,
+ "domContentLoadedMedianMs": 135.59999999403954,
"id": "editor-workflow",
- "layoutSwitchMedianMs": 408.1000000014901,
- "loadMedianMs": 165.90000000596046,
- "longestTaskMaxMs": 146,
+ "layoutSwitchMedianMs": 397.20000000298023,
+ "loadMedianMs": 135.59999999403954,
+ "longestTaskMaxMs": 140,
"owner": "workflow",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:workflow",
"remediationTicket": "deepen-widget-registry-loading",
"resourceBaseline": {
- "cssRawBytes": 17571,
+ "cssRawBytes": 17572,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 772580,
- "otherRawBytes": 90842,
+ "largestAssetRawBytes": 737748,
+ "otherRawBytes": 89156,
"requestCount": 95,
- "scriptRawBytes": 2936802,
- "scriptRequestCount": 90,
- "totalRawBytes": 3225255
+ "scriptRawBytes": 2899045,
+ "scriptRequestCount": 89,
+ "totalRawBytes": 3185813
},
"resourceLimits": {
- "cssRawBytes": 17747,
+ "cssRawBytes": 17748,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 780306,
- "otherRawBytes": 91751,
+ "largestAssetRawBytes": 745126,
+ "otherRawBytes": 90048,
"requestCount": 95,
- "scriptRawBytes": 2966171,
- "scriptRequestCount": 90,
- "totalRawBytes": 3257508
+ "scriptRawBytes": 2928036,
+ "scriptRequestCount": 89,
+ "totalRawBytes": 3217672
},
- "routeReadyMedianMs": 932.5,
- "stateProfile": "empty",
- "scriptSourceOwnerSet": "editor-minimal-static"
+ "routeReadyMedianMs": 913.8999999985099,
+ "scriptSourceOwnerSet": "editor-minimal-static",
+ "stateProfile": "empty"
},
{
"activatedResourceBaseline": {
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 13264,
+ "largestAssetRawBytes": 13253,
"otherRawBytes": 0,
"requestCount": 3,
- "scriptRawBytes": 14299,
+ "scriptRawBytes": 14288,
"scriptRequestCount": 3,
- "totalRawBytes": 14299
+ "totalRawBytes": 14288
},
"activatedResourceLimits": {
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 13397,
+ "largestAssetRawBytes": 13386,
"otherRawBytes": 0,
"requestCount": 3,
- "scriptRawBytes": 14442,
+ "scriptRawBytes": 14431,
"scriptRequestCount": 3,
- "totalRawBytes": 14442
+ "totalRawBytes": 14431
},
- "domContentLoadedMedianMs": 170.60000000149012,
+ "domContentLoadedMedianMs": 133.70000000298023,
"id": "editor-workflow",
- "layoutSwitchMedianMs": 639.7000000029802,
- "loadMedianMs": 170.60000000149012,
- "longestTaskMaxMs": 563,
+ "layoutSwitchMedianMs": 530.1999999955297,
+ "loadMedianMs": 133.80000000447035,
+ "longestTaskMaxMs": 586,
"owner": "workflow",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:workflow",
"remediationTicket": "deepen-widget-registry-loading",
"resourceBaseline": {
- "cssRawBytes": 17571,
+ "cssRawBytes": 17572,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 772580,
- "otherRawBytes": 90842,
+ "largestAssetRawBytes": 737748,
+ "otherRawBytes": 89156,
"requestCount": 95,
- "scriptRawBytes": 2936802,
- "scriptRequestCount": 90,
- "totalRawBytes": 3225255
+ "scriptRawBytes": 2899045,
+ "scriptRequestCount": 89,
+ "totalRawBytes": 3185813
},
"resourceLimits": {
- "cssRawBytes": 17747,
+ "cssRawBytes": 17748,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 780306,
- "otherRawBytes": 91751,
+ "largestAssetRawBytes": 745126,
+ "otherRawBytes": 90048,
"requestCount": 95,
- "scriptRawBytes": 2966171,
- "scriptRequestCount": 90,
- "totalRawBytes": 3257508
+ "scriptRawBytes": 2928036,
+ "scriptRequestCount": 89,
+ "totalRawBytes": 3217672
},
- "routeReadyMedianMs": 1239.2000000029802,
- "stateProfile": "representative",
- "scriptSourceOwnerSet": "editor-minimal-static"
+ "routeReadyMedianMs": 1156.1000000014901,
+ "scriptSourceOwnerSet": "editor-minimal-static",
+ "stateProfile": "representative"
},
{
"activatedResourceBaseline": {
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 13264,
+ "largestAssetRawBytes": 13253,
"otherRawBytes": 0,
"requestCount": 3,
- "scriptRawBytes": 14299,
+ "scriptRawBytes": 14288,
"scriptRequestCount": 3,
- "totalRawBytes": 14299
+ "totalRawBytes": 14288
},
"activatedResourceLimits": {
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 13397,
+ "largestAssetRawBytes": 13386,
"otherRawBytes": 0,
"requestCount": 3,
- "scriptRawBytes": 14442,
+ "scriptRawBytes": 14431,
"scriptRequestCount": 3,
- "totalRawBytes": 14442
+ "totalRawBytes": 14431
},
- "domContentLoadedMedianMs": 162.89999999850988,
+ "domContentLoadedMedianMs": 160.79999999701977,
"id": "editor-gallery",
- "layoutSwitchMedianMs": 331.29999999701977,
- "loadMedianMs": 163,
- "longestTaskMaxMs": 138,
+ "layoutSwitchMedianMs": 484.20000000298023,
+ "loadMedianMs": 160.79999999701977,
+ "longestTaskMaxMs": 299,
"owner": "gallery",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:gallery",
"remediationTicket": "deepen-widget-registry-loading",
"resourceBaseline": {
- "cssRawBytes": 17571,
+ "cssRawBytes": 17572,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 772580,
- "otherRawBytes": 90842,
+ "largestAssetRawBytes": 737748,
+ "otherRawBytes": 89156,
"requestCount": 95,
- "scriptRawBytes": 2936802,
- "scriptRequestCount": 90,
- "totalRawBytes": 3225255
+ "scriptRawBytes": 2899045,
+ "scriptRequestCount": 89,
+ "totalRawBytes": 3185813
},
"resourceLimits": {
- "cssRawBytes": 17747,
+ "cssRawBytes": 17748,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 780306,
- "otherRawBytes": 91751,
+ "largestAssetRawBytes": 745126,
+ "otherRawBytes": 90048,
"requestCount": 95,
- "scriptRawBytes": 2966171,
- "scriptRequestCount": 90,
- "totalRawBytes": 3257508
+ "scriptRawBytes": 2928036,
+ "scriptRequestCount": 89,
+ "totalRawBytes": 3217672
},
- "routeReadyMedianMs": 839.1999999955297,
- "stateProfile": "empty",
- "scriptSourceOwnerSet": "editor-minimal-static"
+ "routeReadyMedianMs": 1125.7000000029802,
+ "scriptSourceOwnerSet": "editor-minimal-static",
+ "stateProfile": "empty"
},
{
"activatedResourceBaseline": {
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 13264,
+ "largestAssetRawBytes": 13253,
"otherRawBytes": 0,
"requestCount": 3,
- "scriptRawBytes": 14299,
+ "scriptRawBytes": 14288,
"scriptRequestCount": 3,
- "totalRawBytes": 14299
+ "totalRawBytes": 14288
},
"activatedResourceLimits": {
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 13397,
+ "largestAssetRawBytes": 13386,
"otherRawBytes": 0,
"requestCount": 3,
- "scriptRawBytes": 14442,
+ "scriptRawBytes": 14431,
"scriptRequestCount": 3,
- "totalRawBytes": 14442
+ "totalRawBytes": 14431
},
- "domContentLoadedMedianMs": 187.5,
+ "domContentLoadedMedianMs": 133.20000000298023,
"id": "editor-gallery",
- "layoutSwitchMedianMs": 491.3999999985099,
- "loadMedianMs": 187.5,
- "longestTaskMaxMs": 325,
+ "layoutSwitchMedianMs": 496.5,
+ "loadMedianMs": 133.20000000298023,
+ "longestTaskMaxMs": 161,
"owner": "gallery",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:gallery",
"remediationTicket": "deepen-widget-registry-loading",
"resourceBaseline": {
- "cssRawBytes": 17571,
+ "cssRawBytes": 17572,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 772580,
- "otherRawBytes": 90842,
+ "largestAssetRawBytes": 737748,
+ "otherRawBytes": 89156,
"requestCount": 95,
- "scriptRawBytes": 2936802,
- "scriptRequestCount": 90,
- "totalRawBytes": 3225255
+ "scriptRawBytes": 2899045,
+ "scriptRequestCount": 89,
+ "totalRawBytes": 3185813
},
"resourceLimits": {
- "cssRawBytes": 17747,
+ "cssRawBytes": 17748,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 780306,
- "otherRawBytes": 91751,
+ "largestAssetRawBytes": 745126,
+ "otherRawBytes": 90048,
"requestCount": 95,
- "scriptRawBytes": 2966171,
- "scriptRequestCount": 90,
- "totalRawBytes": 3257508
+ "scriptRawBytes": 2928036,
+ "scriptRequestCount": 89,
+ "totalRawBytes": 3217672
},
- "routeReadyMedianMs": 1130.1999999955297,
- "stateProfile": "representative",
- "scriptSourceOwnerSet": "editor-minimal-static"
+ "routeReadyMedianMs": 1067.3999999985099,
+ "scriptSourceOwnerSet": "editor-minimal-static",
+ "stateProfile": "representative"
}
],
"sampling": {
@@ -589,26 +589,10 @@
"warmups": 1
},
"schemaVersion": 2,
- "timingPolicy": {
- "enforce": false,
- "longTaskTargetMs": 50,
- "runner": {
- "id": "unconfigured",
- "minimumStableRuns": 20,
- "observedStableRuns": 0,
- "stable": false
- },
- "tolerancePercent": 0.1
- },
"scriptSourceOwnerSets": {
"launchpad-static": [
"package:@ark-ui/react",
"package:@chakra-ui/react",
- "package:@dnd-kit/accessibility",
- "package:@dnd-kit/core",
- "package:@dnd-kit/modifiers",
- "package:@dnd-kit/sortable",
- "package:@dnd-kit/utilities",
"package:@emotion/cache",
"package:@emotion/hash",
"package:@emotion/is-prop-valid",
@@ -635,8 +619,6 @@
"package:@tanstack/router-core",
"package:@tanstack/store",
"package:@tanstack/virtual-core",
- "package:@xyflow/react",
- "package:@xyflow/system",
"package:@zag-js/accordion",
"package:@zag-js/anatomy",
"package:@zag-js/aria-hidden",
@@ -692,15 +674,6 @@
"package:@zag-js/types",
"package:@zag-js/utils",
"package:classcat",
- "package:d3-color",
- "package:d3-dispatch",
- "package:d3-drag",
- "package:d3-ease",
- "package:d3-interpolate",
- "package:d3-selection",
- "package:d3-timer",
- "package:d3-transition",
- "package:d3-zoom",
"package:engine.io-client",
"package:engine.io-parser",
"package:fuzzysort",
@@ -708,7 +681,6 @@
"package:i18next",
"package:i18next-http-backend",
"package:lucide-react",
- "package:perfect-freehand",
"package:react",
"package:react-dom",
"package:react-hook-tanstack-virtual",
@@ -732,26 +704,6 @@
"source:src/app/main.tsx",
"source:src/app/router.tsx",
"source:src/assets/SplashImage.webp",
- "source:src/features/gallery/contracts.ts",
- "source:src/features/gallery/core/image.ts",
- "source:src/features/gallery/core/settings.ts",
- "source:src/features/gallery/ui/galleryStateView.ts",
- "source:src/features/generation/core/baseGenerationPolicies.ts",
- "source:src/features/generation/core/batch.ts",
- "source:src/features/generation/core/canvas/addControlLayers.ts",
- "source:src/features/generation/core/canvas/addRegionalGuidance.ts",
- "source:src/features/generation/core/canvas/compileCanvasGraph.ts",
- "source:src/features/generation/core/canvas/controlValidation.ts",
- "source:src/features/generation/core/canvas/types.ts",
- "source:src/features/generation/core/componentCompatibility.ts",
- "source:src/features/generation/core/graph.ts",
- "source:src/features/generation/core/graphBuilder.ts",
- "source:src/features/generation/core/projectPromptDraft.ts",
- "source:src/features/generation/core/promptHistory.ts",
- "source:src/features/generation/core/referenceImage.ts",
- "source:src/features/generation/core/settings.ts",
- "source:src/features/generation/graph.ts",
- "source:src/features/generation/settings.ts",
"source:src/features/identity/capabilities.ts",
"source:src/features/identity/core/schemas.ts",
"source:src/features/identity/core/sessionPolicy.ts",
@@ -786,28 +738,6 @@
"source:src/features/nodes/data/transport.ts",
"source:src/features/nodes/index.ts",
"source:src/features/nodes/ui/NodesPage.tsx",
- "source:src/features/queue/contracts.ts",
- "source:src/features/queue/core/historySnapshot.ts",
- "source:src/features/queue/core/submissionRules.ts",
- "source:src/features/upscale/core/graph.ts",
- "source:src/features/upscale/core/settings.ts",
- "source:src/features/upscale/index.ts",
- "source:src/features/upscale/ui/UpscaleUiContext.tsx",
- "source:src/features/workflow/core/buildGraph.ts",
- "source:src/features/workflow/core/connectors.ts",
- "source:src/features/workflow/core/document.ts",
- "source:src/features/workflow/core/fields.ts",
- "source:src/features/workflow/core/graphIndex.ts",
- "source:src/features/workflow/core/layerWorkflow.ts",
- "source:src/features/workflow/core/types.ts",
- "source:src/features/workflow/core/validation.ts",
- "source:src/features/workflow/core/workflowJson.ts",
- "source:src/features/workflow/data/templates.ts",
- "source:src/features/workflow/graph.ts",
- "source:src/features/workflow/react.ts",
- "source:src/features/workflow/ui/WorkflowUiContext.tsx",
- "source:src/features/workflow/ui/workflowUiStore.ts",
- "source:src/features/workflow/utility.ts",
"source:src/platform/browser/knownBrowserIssues.ts",
"source:src/platform/i18n/client.ts",
"source:src/platform/i18n/languages.ts",
@@ -855,38 +785,10 @@
"source:src/platform/ui/theme/system.ts",
"source:src/platform/ui/theme/themes.ts",
"source:src/platform/ui/toaster.tsx",
- "source:src/workbench/WorkbenchContext.tsx",
- "source:src/workbench/autoRoutePolicy.ts",
- "source:src/workbench/canvas-engine/api.ts",
- "source:src/workbench/canvas-engine/capabilities.ts",
- "source:src/workbench/canvas-engine/document/sources.ts",
- "source:src/workbench/canvas-engine/editing/controlPixelEdit.ts",
- "source:src/workbench/canvas-engine/engineStores.ts",
- "source:src/workbench/canvas-engine/math/mat2d.ts",
- "source:src/workbench/canvas-engine/math/rect.ts",
- "source:src/workbench/canvas-engine/math/snapping.ts",
- "source:src/workbench/canvas-engine/render/compositor.ts",
- "source:src/workbench/canvas-engine/render/controlTransparency.ts",
- "source:src/workbench/canvas-engine/render/maskFill.ts",
- "source:src/workbench/canvas-engine/render/rasterizers/textRasterizer.ts",
- "source:src/workbench/canvas-engine/transform/transformMath.ts",
- "source:src/workbench/canvasLayerContent.ts",
- "source:src/workbench/canvasMigration.ts",
- "source:src/workbench/canvasProjectMutations.ts",
- "source:src/workbench/canvasStagingView.ts",
"source:src/workbench/components/WorkbenchSplashScreen.tsx",
- "source:src/workbench/controlAdapters.ts",
- "source:src/workbench/controlLayerChecks.ts",
- "source:src/workbench/diagnostics/logger.ts",
- "source:src/workbench/extensions/contributionSource.ts",
- "source:src/workbench/extensions/extensionRegistry.ts",
"source:src/workbench/hotkeys/catalog.ts",
- "source:src/workbench/hotkeys/extensionHotkeys.ts",
- "source:src/workbench/hotkeys/index.ts",
"source:src/workbench/hotkeys/keys.ts",
- "source:src/workbench/hotkeys/modalLayer.ts",
"source:src/workbench/hotkeys/resolve.ts",
- "source:src/workbench/invocation.ts",
"source:src/workbench/launchpad/KnownBrowserIssuesAlert.tsx",
"source:src/workbench/launchpad/Launchpad.tsx",
"source:src/workbench/launchpad/LaunchpadNav.tsx",
@@ -897,30 +799,19 @@
"source:src/workbench/launchpad/ResourceLinks.tsx",
"source:src/workbench/launchpad/formatRelativeTime.ts",
"source:src/workbench/launchpad/pages/ProjectsPage.tsx",
- "source:src/workbench/layoutPresetSnapshots.ts",
- "source:src/workbench/layoutPresets.ts",
"source:src/workbench/palette/LaunchpadCommandPalette.tsx",
"source:src/workbench/palette/PaletteButton.tsx",
"source:src/workbench/palette/paletteStore.ts",
"source:src/workbench/palette/settingsEntryDeps.ts",
- "source:src/workbench/performanceMarks.ts",
- "source:src/workbench/persistence.ts",
- "source:src/workbench/persistenceRuntime.ts",
"source:src/workbench/projects/api.ts",
"source:src/workbench/projects/ids.ts",
"source:src/workbench/projects/library.ts",
+ "source:src/workbench/projects/projectDocument.ts",
"source:src/workbench/projects/projectFile.ts",
"source:src/workbench/projects/session.ts",
- "source:src/workbench/projects/syncStore.ts",
- "source:src/workbench/projects/syncedPersistence.ts",
- "source:src/workbench/queueHistoryNormalization.ts",
- "source:src/workbench/settings/HotkeysSettingsSection.tsx",
- "source:src/workbench/settings/SettingsDialog.tsx",
+ "source:src/workbench/settings/SettingsButton.tsx",
"source:src/workbench/settings/settingsDialogStore.ts",
- "source:src/workbench/settings/store.ts",
- "source:src/workbench/widgetState.ts",
- "source:src/workbench/workbenchState.ts",
- "source:src/workbench/workbenchStore.ts"
+ "source:src/workbench/settings/store.ts"
],
"editor-minimal-static": [
"package:@ark-ui/react",
@@ -1580,6 +1471,7 @@
"source:src/workbench/projects/components/index.ts",
"source:src/workbench/projects/ids.ts",
"source:src/workbench/projects/library.ts",
+ "source:src/workbench/projects/projectDocument.ts",
"source:src/workbench/projects/projectFile.ts",
"source:src/workbench/projects/projectTabsA11y.ts",
"source:src/workbench/projects/session.ts",
@@ -1587,9 +1479,7 @@
"source:src/workbench/projects/syncedPersistence.ts",
"source:src/workbench/projects/useProjectActions.ts",
"source:src/workbench/queueHistoryNormalization.ts",
- "source:src/workbench/settings/HotkeysSettingsSection.tsx",
- "source:src/workbench/settings/SettingsDialog.tsx",
- "source:src/workbench/settings/index.ts",
+ "source:src/workbench/settings/SettingsButton.tsx",
"source:src/workbench/settings/settingsDialogStore.ts",
"source:src/workbench/settings/store.ts",
"source:src/workbench/shell/BottomPanel.tsx",
@@ -2355,6 +2245,7 @@
"source:src/workbench/projects/components/index.ts",
"source:src/workbench/projects/ids.ts",
"source:src/workbench/projects/library.ts",
+ "source:src/workbench/projects/projectDocument.ts",
"source:src/workbench/projects/projectFile.ts",
"source:src/workbench/projects/projectTabsA11y.ts",
"source:src/workbench/projects/session.ts",
@@ -2362,9 +2253,7 @@
"source:src/workbench/projects/syncedPersistence.ts",
"source:src/workbench/projects/useProjectActions.ts",
"source:src/workbench/queueHistoryNormalization.ts",
- "source:src/workbench/settings/HotkeysSettingsSection.tsx",
- "source:src/workbench/settings/SettingsDialog.tsx",
- "source:src/workbench/settings/index.ts",
+ "source:src/workbench/settings/SettingsButton.tsx",
"source:src/workbench/settings/settingsDialogStore.ts",
"source:src/workbench/settings/store.ts",
"source:src/workbench/shell/BottomPanel.tsx",
@@ -2557,5 +2446,16 @@
"source:src/workbench/workbenchState.ts",
"source:src/workbench/workbenchStore.ts"
]
+ },
+ "timingPolicy": {
+ "enforce": false,
+ "longTaskTargetMs": 50,
+ "runner": {
+ "id": "unconfigured",
+ "minimumStableRuns": 20,
+ "observedStableRuns": 0,
+ "stable": false
+ },
+ "tolerancePercent": 0.1
}
}
diff --git a/invokeai/frontend/webv2/src/workbench/launchpad/LaunchpadTopBar.tsx b/invokeai/frontend/webv2/src/workbench/launchpad/LaunchpadTopBar.tsx
index f1f8ed754b..4cca2daa3a 100644
--- a/invokeai/frontend/webv2/src/workbench/launchpad/LaunchpadTopBar.tsx
+++ b/invokeai/frontend/webv2/src/workbench/launchpad/LaunchpadTopBar.tsx
@@ -7,7 +7,7 @@ import { Button } from '@platform/ui';
import { InvokeMark } from '@platform/ui/InvokeMark';
import { Link, useSearch } from '@tanstack/react-router';
import { PaletteButton } from '@workbench/palette/PaletteButton';
-import { SettingsButton } from '@workbench/settings/SettingsDialog';
+import { SettingsButton } from '@workbench/settings/SettingsButton';
import { ArrowLeftIcon } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/invokeai/frontend/webv2/src/workbench/projects/projectDocument.ts b/invokeai/frontend/webv2/src/workbench/projects/projectDocument.ts
new file mode 100644
index 0000000000..1404481495
--- /dev/null
+++ b/invokeai/frontend/webv2/src/workbench/projects/projectDocument.ts
@@ -0,0 +1,86 @@
+import type { Project } from '@workbench/projectContracts';
+
+/**
+ * The project *document* codec: the wire and file shape of a project, and the
+ * migrations that heal older ones. It deliberately knows nothing about the
+ * Workbench reducer.
+ *
+ * Rehydrating a document into a live `Project` needs `normalizeWorkbenchProject`
+ * from the aggregate state module, which transitively owns generation graphs,
+ * widget state, and every policy the editor runs on. Keeping that step out of
+ * this module is what lets the Launchpad read, write, and shape-check project
+ * files without paying for the editor — see `deserializeProjectDocument` in
+ * `./syncedPersistence` for the rehydrating half.
+ */
+
+/**
+ * Undo/redo stacks are session-only (each entry is a full project snapshot,
+ * far too heavy to autosave); everything else in the project document is the
+ * project, verbatim.
+ */
+export const serializeProjectDocument = (project: Project): Record<string, unknown> => {
+ const { undoRedo: _undoRedo, ...document } = project;
+
+ return document;
+};
+
+const normalizeInvocationSourceId = (sourceId: unknown): unknown => {
+ if (sourceId === 'project-graph') {
+ return 'workflow';
+ }
+
+ if (sourceId === 'canvas-fill') {
+ return 'canvas';
+ }
+
+ return sourceId;
+};
+
+export const normalizeLegacyProjectDocument = (data: Record<string, unknown>): Record<string, unknown> => {
+ const invocation = data.invocation;
+ const queue = data.queue;
+
+ return {
+ ...data,
+ invocation:
+ invocation && typeof invocation === 'object'
+ ? { ...invocation, sourceId: normalizeInvocationSourceId((invocation as { sourceId?: unknown }).sourceId) }
+ : invocation,
+ queue:
+ queue && typeof queue === 'object' && Array.isArray((queue as { items?: unknown }).items)
+ ? {
+ ...queue,
+ items: (queue as { items: unknown[] }).items.map((item) => {
+ if (!item || typeof item !== 'object') {
+ return item;
+ }
+
+ const snapshot = (item as { snapshot?: unknown }).snapshot;
+
+ return {
+ ...item,
+ snapshot:
+ snapshot && typeof snapshot === 'object'
+ ? {
+ ...snapshot,
+ sourceId: normalizeInvocationSourceId((snapshot as { sourceId?: unknown }).sourceId),
+ }
+ : snapshot,
+ };
+ }),
+ }
+ : queue,
+ };
+};
+
+/**
+ * The minimum a document must carry to be a project at all. A document that
+ * fails this can never rehydrate, so callers that only need to reject junk
+ * (an import picker, a file preview) can stop here instead of loading the
+ * reducer to find out.
+ */
+export const isProjectDocumentShape = (data: Record<string, unknown>): boolean =>
+ typeof data.id === 'string' &&
+ typeof data.name === 'string' &&
+ typeof data.layout === 'object' &&
+ data.layout !== null;
diff --git a/invokeai/frontend/webv2/src/workbench/projects/projectFile.ts b/invokeai/frontend/webv2/src/workbench/projects/projectFile.ts
index 25b985cf13..066b9d8332 100644
--- a/invokeai/frontend/webv2/src/workbench/projects/projectFile.ts
+++ b/invokeai/frontend/webv2/src/workbench/projects/projectFile.ts
@@ -10,7 +10,7 @@ import {
import { createProject as apiCreateProject, getProject as apiGetProject, type ProjectRecordDTO } from './api';
import { createProjectId } from './ids';
import { upsertProjectSummary } from './library';
-import { deserializeProjectDocument, serializeProjectDocument } from './syncedPersistence';
+import { serializeProjectDocument } from './projectDocument';
/**
* The portable project file: a versioned envelope around the same document
@@ -111,6 +111,12 @@ export const importProjectFile = async (
? projectDocument.name.trim()
: 'Imported project';
const document = { ...projectDocument, id, name };
+ // Full validation rehydrates the document through the Workbench reducer, so
+ // it is loaded here rather than imported: the Launchpad should not carry the
+ // editor's aggregate state just to offer an Import button.
+ const { deserializeProjectDocument } = await import('./syncedPersistence');
+
+ assertAccountScopeCurrent(owner);
if (!deserializeProjectDocument(document)) {
throw new Error('The project file is damaged and cannot be opened.');
diff --git a/invokeai/frontend/webv2/src/workbench/projects/syncedPersistence.ts b/invokeai/frontend/webv2/src/workbench/projects/syncedPersistence.ts
index 82c4ba4eaa..dd674e5ede 100644
--- a/invokeai/frontend/webv2/src/workbench/projects/syncedPersistence.ts
+++ b/invokeai/frontend/webv2/src/workbench/projects/syncedPersistence.ts
@@ -23,9 +23,12 @@ import {
type ProjectRecordDTO,
} from './api';
import { seedProjectLibrary, upsertProjectSummary } from './library';
+import { isProjectDocumentShape, normalizeLegacyProjectDocument, serializeProjectDocument } from './projectDocument';
import { fetchSessionBlob, serializeSessionBlob, SESSION_STATE_KEY } from './session';
import { reportProjectSync, type ProjectSyncInfo } from './syncStore';
+export { serializeProjectDocument } from './projectDocument';
+
/**
* Backend-first workbench persistence (spec: Persistence Model).
*
@@ -105,17 +108,6 @@ const assertOwner = (syncState: SyncedPersistenceState): void => {
assertAccountScopeCurrent(syncState.owner);
};
-/**
- * Undo/redo stacks are session-only (each entry is a full project snapshot,
- * far too heavy to autosave); everything else in the project document is the
- * project, verbatim.
- */
-export const serializeProjectDocument = (project: Project): Record<string, unknown> => {
- const { undoRedo: _undoRedo, ...document } = project;
-
- return document;
-};
-
const getSerializedProjectDocument = (
syncState: SyncedPersistenceState,
project: Project
@@ -139,64 +131,15 @@ const getSerializedProjectDocument = (
return serialized;
};
-const normalizeInvocationSourceId = (sourceId: unknown): unknown => {
- if (sourceId === 'project-graph') {
- return 'workflow';
- }
-
- if (sourceId === 'canvas-fill') {
- return 'canvas';
- }
-
- return sourceId;
-};
-
-const normalizeLegacyProjectDocument = (data: Record<string, unknown>): Record<string, unknown> => {
- const invocation = data.invocation;
- const queue = data.queue;
-
- return {
- ...data,
- invocation:
- invocation && typeof invocation === 'object'
- ? { ...invocation, sourceId: normalizeInvocationSourceId((invocation as { sourceId?: unknown }).sourceId) }
- : invocation,
- queue:
- queue && typeof queue === 'object' && Array.isArray((queue as { items?: unknown }).items)
- ? {
- ...queue,
- items: (queue as { items: unknown[] }).items.map((item) => {
- if (!item || typeof item !== 'object') {
- return item;
- }
-
- const snapshot = (item as { snapshot?: unknown }).snapshot;
-
- return {
- ...item,
- snapshot:
- snapshot && typeof snapshot === 'object'
- ? {
- ...snapshot,
- sourceId: normalizeInvocationSourceId((snapshot as { sourceId?: unknown }).sourceId),
- }
- : snapshot,
- };
- }),
- }
- : queue,
- };
-};
-
+/**
+ * Rehydrate a document into a live project. This is the half of the codec that
+ * needs the aggregate reducer, so it stays here rather than in
+ * `./projectDocument`; Launchpad callers reach it through a dynamic import.
+ */
export const deserializeProjectDocument = (data: Record<string, unknown>): Project | null => {
const normalizedData = normalizeLegacyProjectDocument(data);
- if (
- typeof normalizedData.id !== 'string' ||
- typeof normalizedData.name !== 'string' ||
- typeof normalizedData.layout !== 'object' ||
- normalizedData.layout === null
- ) {
+ if (!isProjectDocumentShape(normalizedData)) {
return null;
}
diff --git a/invokeai/frontend/webv2/src/workbench/settings/SettingsButton.tsx b/invokeai/frontend/webv2/src/workbench/settings/SettingsButton.tsx
new file mode 100644
index 0000000000..fca351cca5
--- /dev/null
+++ b/invokeai/frontend/webv2/src/workbench/settings/SettingsButton.tsx
@@ -0,0 +1,37 @@
+import { IconButton } from '@platform/ui/Button';
+import { Tooltip } from '@platform/ui/Tooltip';
+import { SettingsIcon } from 'lucide-react';
+import { lazy, Suspense, useCallback } from 'react';
+
+import { closeWorkbenchSettings, openWorkbenchSettings, settingsDialogStore } from './settingsDialogStore';
+
+/**
+ * The top bar's settings entry point, kept deliberately thin.
+ *
+ * The dialog body reaches into workbench commands, the persistence service, and
+ * every settings section, so importing it eagerly made the Launchpad pay for
+ * the whole editor composition — aggregate project state included — before the
+ * user had opened a project. The trigger owns nothing but the store
+ * subscription; the body arrives on first open.
+ */
+const LazySettingsDialog = lazy(() => import('./SettingsDialog'));
+
+export const SettingsButton = () => {
+ const isOpen = settingsDialogStore.useSelector((snapshot) => snapshot.isOpen);
+ const handleOpen = useCallback(() => openWorkbenchSettings(), []);
+
+ return (
+ <>
+ <Tooltip content="Settings">
+ <IconButton aria-label="Settings" size="sm" variant="ghost" onClick={handleOpen}>
+ <SettingsIcon />
+ </IconButton>
+ </Tooltip>
+ {isOpen ? (
+ <Suspense fallback={null}>
+ <LazySettingsDialog isOpen onClose={closeWorkbenchSettings} />
+ </Suspense>
+ ) : null}
+ </>
+ );
+};
diff --git a/invokeai/frontend/webv2/src/workbench/settings/SettingsDialog.tsx b/invokeai/frontend/webv2/src/workbench/settings/SettingsDialog.tsx
index 9116aba124..6c843979d7 100644
--- a/invokeai/frontend/webv2/src/workbench/settings/SettingsDialog.tsx
+++ b/invokeai/frontend/webv2/src/workbench/settings/SettingsDialog.tsx
@@ -22,7 +22,7 @@ import {
useSlotRecipe,
} from '@chakra-ui/react';
import { WORKBENCH_LANGUAGE_OPTIONS } from '@platform/i18n/languages';
-import { Button, CloseButton, IconButton, ConfirmDialog, Select, Tabs, Tooltip } from '@platform/ui';
+import { Button, CloseButton, ConfirmDialog, Select, Tabs } from '@platform/ui';
import { themeCardRecipe } from '@theme/recipes';
import { previewSwatches, THEMES, type ThemeDefinition } from '@theme/system';
import { registerHotkeyModalLayer } from '@workbench/hotkeys';
@@ -53,12 +53,7 @@ import { useCallback, useEffect, useId, useMemo, useState, type ReactNode } from
import { useTranslation } from 'react-i18next';
import { HotkeysSettingsSection } from './HotkeysSettingsSection';
-import {
- closeWorkbenchSettings,
- openWorkbenchSettings,
- setWorkbenchSettingsSection,
- settingsDialogStore,
-} from './settingsDialogStore';
+import { setWorkbenchSettingsSection, settingsDialogStore } from './settingsDialogStore';
import {
clearWorkbenchSettings,
DEVELOPER_LOG_LEVELS,
@@ -90,27 +85,6 @@ const FIELD_ALIGN_ITEMS = { base: 'stretch', md: 'center' };
const FIELD_FLEX_DIRECTION = { base: 'column', md: 'row' };
const SELECT_MAX_WIDTH = { base: 'full', md: '56' };
-/**
- * The top bar's settings entry point. It also hosts the dialog itself, driven
- * by `settingsDialogStore` so any surface can deep-link into a section via
- * `openWorkbenchSettings('workflow')`.
- */
-export const SettingsButton = () => {
- const isOpen = settingsDialogStore.useSelector((snapshot) => snapshot.isOpen);
- const handleOpen = useCallback(() => openWorkbenchSettings(), []);
-
- return (
- <>
- <Tooltip content="Settings">
- <IconButton aria-label="Settings" size="sm" variant="ghost" onClick={handleOpen}>
- <SettingsIcon />
- </IconButton>
- </Tooltip>
- <SettingsDialog isOpen={isOpen} onClose={closeWorkbenchSettings} />
- </>
- );
-};
-
export const SettingsDialog = ({ isOpen, onClose }: { isOpen: boolean; onClose: () => void }) => {
useEffect(() => {
if (!isOpen) {
@@ -897,3 +871,6 @@ const DEVELOPER_LOG_LEVEL_OPTIONS = DEVELOPER_LOG_LEVELS.map((value) => ({
label: formatSettingLabel(value),
value,
}));
+
+/** Default export so the top bar can host this body behind `React.lazy`. */
+export default SettingsDialog;
diff --git a/invokeai/frontend/webv2/src/workbench/settings/index.ts b/invokeai/frontend/webv2/src/workbench/settings/index.ts
index b82f03b9d7..589612d6e7 100644
--- a/invokeai/frontend/webv2/src/workbench/settings/index.ts
+++ b/invokeai/frontend/webv2/src/workbench/settings/index.ts
@@ -1,3 +1,6 @@
-export * from './SettingsDialog';
+// The dialog body is deliberately absent: it is reached only through
+// `SettingsButton`'s lazy import, and re-exporting it here would make every
+// barrel consumer load it eagerly.
+export * from './SettingsButton';
export * from './settingsDialogStore';
export * from './store';
diff --git a/invokeai/frontend/webv2/src/workbench/shell/topbar/TopBar.tsx b/invokeai/frontend/webv2/src/workbench/shell/topbar/TopBar.tsx
index 7dafc02378..928a0154e5 100644
--- a/invokeai/frontend/webv2/src/workbench/shell/topbar/TopBar.tsx
+++ b/invokeai/frontend/webv2/src/workbench/shell/topbar/TopBar.tsx
@@ -4,10 +4,9 @@ import { InvokeMark } from '@platform/ui/InvokeMark';
import { Link } from '@tanstack/react-router';
import { PaletteButton } from '@workbench/palette/PaletteButton';
import { ProjectTabs } from '@workbench/projects/components';
+import { SettingsButton } from '@workbench/settings/SettingsButton';
import { useTranslation } from 'react-i18next';
-import { SettingsButton } from '@/workbench/settings';
-
import { BatchCountField } from './BatchCountField';
import { InvokeControl } from './InvokeControl';
import { LayoutPresetMenu } from './LayoutPresetMenu';
diff --git a/invokeai/frontend/webv2/vite.config.mts b/invokeai/frontend/webv2/vite.config.mts
index 77df093884..2123da0b61 100644
--- a/invokeai/frontend/webv2/vite.config.mts
+++ b/invokeai/frontend/webv2/vite.config.mts
@@ -50,6 +50,20 @@ export default defineConfig({
return 'react-icons';
}
+ // The Workflow editor's graph canvas. XYFlow and the d3 modules it
+ // pulls in are reachable only from the Workflow widget, which is
+ // lazy — but the `vendor` catch-all below made them launchpad-eager.
+ if (id.includes('/node_modules/@xyflow/') || /\/node_modules\/d3-[^/]+\//.test(id)) {
+ return 'workflow-vendor';
+ }
+
+ // Editor-only pointer and drag interaction libraries: perfect-freehand
+ // belongs to Canvas stroke geometry, dnd-kit to widget and tab
+ // reordering. Neither is reachable from the launchpad.
+ if (id.includes('/node_modules/perfect-freehand/') || id.includes('/node_modules/@dnd-kit/')) {
+ return 'editor-interactions';
+ }
+
if (id.includes('/node_modules/@chakra-ui/') || id.includes('/node_modules/@emotion/')) {
return 'chakra';
}