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.

feat(canvas): slim the Layers panel and move denoising to Generate

Josh Corbett12062dbab5a0
diff --git a/invokeai/frontend/webv2/performance/architecture-baseline.json b/invokeai/frontend/webv2/performance/architecture-baseline.json
index 0db5f5e687..c44fae434d 100644
--- a/invokeai/frontend/webv2/performance/architecture-baseline.json
+++ b/invokeai/frontend/webv2/performance/architecture-baseline.json
@@ -2,13 +2,13 @@
"build": {
"launchpad": {
"baseline": {
- "brotliBytes": 839827,
+ "brotliBytes": 840429,
"cssRawBytes": 2159,
"fontRawBytes": 219480,
- "gzipBytes": 838510,
+ "gzipBytes": 839151,
"imageRawBytes": 156376,
- "initialRawBytes": 1954215,
- "largestAssetRawBytes": 746355,
+ "initialRawBytes": 1954944,
+ "largestAssetRawBytes": 746376,
"otherAssetRawBytes": 0,
"ownedRawBytes": 70889,
"requestCount": 42,
@@ -290,13 +290,13 @@
]
},
"limits": {
- "brotliBytes": 848226,
+ "brotliBytes": 848834,
"cssRawBytes": 2181,
"fontRawBytes": 221675,
- "gzipBytes": 846896,
+ "gzipBytes": 847543,
"imageRawBytes": 157940,
- "initialRawBytes": 1973758,
- "largestAssetRawBytes": 753819,
+ "initialRawBytes": 1974494,
+ "largestAssetRawBytes": 753840,
"otherAssetRawBytes": 0,
"ownedRawBytes": 70889,
"requestCount": 42,
@@ -308,15 +308,15 @@
},
"editor": {
"baseline": {
- "brotliBytes": 1098011,
+ "brotliBytes": 1099132,
"cssRawBytes": 2159,
"fontRawBytes": 219480,
- "gzipBytes": 1093193,
+ "gzipBytes": 1094397,
"imageRawBytes": 156376,
- "initialRawBytes": 2738573,
- "largestAssetRawBytes": 746355,
+ "initialRawBytes": 2740501,
+ "largestAssetRawBytes": 746376,
"otherAssetRawBytes": 0,
- "ownedRawBytes": 114600,
+ "ownedRawBytes": 114602,
"requestCount": 97,
"scriptRequestCount": 81,
"sourceOwners": [
@@ -931,15 +931,15 @@
]
},
"limits": {
- "brotliBytes": 1108992,
+ "brotliBytes": 1110124,
"cssRawBytes": 2181,
"fontRawBytes": 221675,
- "gzipBytes": 1104125,
+ "gzipBytes": 1105341,
"imageRawBytes": 157940,
- "initialRawBytes": 2765959,
- "largestAssetRawBytes": 753819,
+ "initialRawBytes": 2767907,
+ "largestAssetRawBytes": 753840,
"otherAssetRawBytes": 0,
- "ownedRawBytes": 114600,
+ "ownedRawBytes": 114602,
"requestCount": 97,
"scriptRequestCount": 81
},
@@ -948,7 +948,7 @@
"source": "src/app/WorkbenchApp.tsx"
}
},
- "capturedAt": "2026-08-31",
+ "capturedAt": "2026-09-01",
"developmentInvalidation": {
"platformUiBarrel": {
"specifier": "@platform/ui",
@@ -993,7 +993,9 @@
"src/features/queue/ui/launchpad/QueueStatusBand.tsx",
"src/workbench/launchpad/home/livePanels.ts"
],
- "editorForbiddenInitialChunkNames": ["ag-psd"],
+ "editorForbiddenInitialChunkNames": [
+ "ag-psd"
+ ],
"inactiveWidgetGateOwner": "deepen-widget-registry-loading"
}
}
diff --git a/invokeai/frontend/webv2/performance/browser-baseline.json b/invokeai/frontend/webv2/performance/browser-baseline.json
index 564dd447fd..389bd23b0d 100644
--- a/invokeai/frontend/webv2/performance/browser-baseline.json
+++ b/invokeai/frontend/webv2/performance/browser-baseline.json
@@ -1,6 +1,6 @@
{
"browserExecutable": "/home/toast/.cache/ms-playwright/chromium-1234/chrome-linux64/chrome",
- "capturedAt": "2026-08-25",
+ "capturedAt": "2026-09-01",
"routes": [
{
"activatedResourceBaseline": {
@@ -25,13 +25,13 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 127.10000000149012,
+ "domContentLoadedMedianMs": 111.79999999888241,
"id": "launchpad",
"layoutAckMedianMs": 0,
"layoutReturnSwitchMedianMs": 0,
"layoutSwitchMedianMs": 0,
- "loadMedianMs": 127.29999999701977,
- "longestTaskMaxMs": 77,
+ "loadMedianMs": 111.90000000037253,
+ "longestTaskMaxMs": 65,
"owner": "app",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:launchpad",
@@ -40,25 +40,25 @@
"cssRawBytes": 2159,
"fontRawBytes": 23664,
"imageRawBytes": 0,
- "largestAssetRawBytes": 746355,
- "otherRawBytes": 151419,
- "requestCount": 37,
- "scriptRawBytes": 1623492,
- "scriptRequestCount": 33,
- "totalRawBytes": 1800734
+ "largestAssetRawBytes": 746376,
+ "otherRawBytes": 158313,
+ "requestCount": 38,
+ "scriptRawBytes": 1630971,
+ "scriptRequestCount": 34,
+ "totalRawBytes": 1815107
},
"resourceLimits": {
"cssRawBytes": 2181,
"fontRawBytes": 23901,
"imageRawBytes": 0,
- "largestAssetRawBytes": 753819,
- "otherRawBytes": 152934,
- "requestCount": 37,
- "scriptRawBytes": 1639727,
- "scriptRequestCount": 33,
- "totalRawBytes": 1818742
+ "largestAssetRawBytes": 753840,
+ "otherRawBytes": 159897,
+ "requestCount": 38,
+ "scriptRawBytes": 1647281,
+ "scriptRequestCount": 34,
+ "totalRawBytes": 1833259
},
- "routeReadyMedianMs": 281.29999999701977,
+ "routeReadyMedianMs": 249.19999999925494,
"scriptSourceOwnerSet": "launchpad-static",
"stateProfile": "empty"
},
@@ -85,13 +85,13 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 125.09999999403954,
+ "domContentLoadedMedianMs": 112.19999999925494,
"id": "launchpad",
"layoutAckMedianMs": 0,
"layoutReturnSwitchMedianMs": 0,
"layoutSwitchMedianMs": 0,
- "loadMedianMs": 125.19999999552965,
- "longestTaskMaxMs": 74,
+ "loadMedianMs": 112.29999999888241,
+ "longestTaskMaxMs": 69,
"owner": "app",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:launchpad",
@@ -100,25 +100,25 @@
"cssRawBytes": 2159,
"fontRawBytes": 23664,
"imageRawBytes": 0,
- "largestAssetRawBytes": 746355,
- "otherRawBytes": 151419,
- "requestCount": 37,
- "scriptRawBytes": 1623492,
- "scriptRequestCount": 33,
- "totalRawBytes": 1800734
+ "largestAssetRawBytes": 746376,
+ "otherRawBytes": 158313,
+ "requestCount": 38,
+ "scriptRawBytes": 1630971,
+ "scriptRequestCount": 34,
+ "totalRawBytes": 1815107
},
"resourceLimits": {
"cssRawBytes": 2181,
"fontRawBytes": 23901,
"imageRawBytes": 0,
- "largestAssetRawBytes": 753819,
- "otherRawBytes": 152934,
- "requestCount": 37,
- "scriptRawBytes": 1639727,
- "scriptRequestCount": 33,
- "totalRawBytes": 1818742
+ "largestAssetRawBytes": 753840,
+ "otherRawBytes": 159897,
+ "requestCount": 38,
+ "scriptRawBytes": 1647281,
+ "scriptRequestCount": 34,
+ "totalRawBytes": 1833259
},
- "routeReadyMedianMs": 295.8999999985099,
+ "routeReadyMedianMs": 264.19999999925494,
"scriptSourceOwnerSet": "launchpad-static",
"stateProfile": "representative"
},
@@ -145,40 +145,40 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 125.5,
+ "domContentLoadedMedianMs": 109.70000000111759,
"id": "editor-minimal",
"layoutAckMedianMs": 0,
"layoutReturnSwitchMedianMs": 0,
"layoutSwitchMedianMs": 0,
- "loadMedianMs": 125.70000000298023,
- "longestTaskMaxMs": 109,
+ "loadMedianMs": 109.90000000037253,
+ "longestTaskMaxMs": 95,
"owner": "workbench",
- "projectSwitchMedianMs": 38,
+ "projectSwitchMedianMs": 35.59999999962747,
"readyMark": "invokeai:ready:widget:center:preview",
"remediationTicket": "deepen-widget-registry-loading",
"resourceBaseline": {
"cssRawBytes": 2159,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 746355,
- "otherRawBytes": 151419,
- "requestCount": 114,
- "scriptRawBytes": 3175424,
- "scriptRequestCount": 109,
- "totalRawBytes": 3509042
+ "largestAssetRawBytes": 746376,
+ "otherRawBytes": 158313,
+ "requestCount": 115,
+ "scriptRawBytes": 3262164,
+ "scriptRequestCount": 110,
+ "totalRawBytes": 3602676
},
"resourceLimits": {
"cssRawBytes": 2181,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 753819,
- "otherRawBytes": 152934,
- "requestCount": 114,
- "scriptRawBytes": 3207179,
- "scriptRequestCount": 109,
- "totalRawBytes": 3544133
+ "largestAssetRawBytes": 753840,
+ "otherRawBytes": 159897,
+ "requestCount": 115,
+ "scriptRawBytes": 3294786,
+ "scriptRequestCount": 110,
+ "totalRawBytes": 3638703
},
- "routeReadyMedianMs": 708.1000000014901,
+ "routeReadyMedianMs": 647.2999999988824,
"scriptSourceOwnerSet": "editor-minimal-static",
"stateProfile": "empty"
},
@@ -205,40 +205,40 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 137,
+ "domContentLoadedMedianMs": 112.09999999962747,
"id": "editor-minimal",
"layoutAckMedianMs": 0,
"layoutReturnSwitchMedianMs": 0,
"layoutSwitchMedianMs": 0,
- "loadMedianMs": 137.10000000149012,
- "longestTaskMaxMs": 211,
+ "loadMedianMs": 112.19999999925494,
+ "longestTaskMaxMs": 168,
"owner": "workbench",
- "projectSwitchMedianMs": 66.80000000447035,
+ "projectSwitchMedianMs": 67,
"readyMark": "invokeai:ready:widget:center:preview",
"remediationTicket": "deepen-widget-registry-loading",
"resourceBaseline": {
"cssRawBytes": 2159,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 746355,
- "otherRawBytes": 151419,
- "requestCount": 114,
- "scriptRawBytes": 3175424,
- "scriptRequestCount": 109,
- "totalRawBytes": 3509042
+ "largestAssetRawBytes": 746376,
+ "otherRawBytes": 158313,
+ "requestCount": 115,
+ "scriptRawBytes": 3262164,
+ "scriptRequestCount": 110,
+ "totalRawBytes": 3602676
},
"resourceLimits": {
"cssRawBytes": 2181,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 753819,
- "otherRawBytes": 152934,
- "requestCount": 114,
- "scriptRawBytes": 3207179,
- "scriptRequestCount": 109,
- "totalRawBytes": 3544133
+ "largestAssetRawBytes": 753840,
+ "otherRawBytes": 159897,
+ "requestCount": 115,
+ "scriptRawBytes": 3294786,
+ "scriptRequestCount": 110,
+ "totalRawBytes": 3638703
},
- "routeReadyMedianMs": 514.1000000014901,
+ "routeReadyMedianMs": 419.5,
"scriptSourceOwnerSet": "editor-minimal-static",
"stateProfile": "representative"
},
@@ -247,31 +247,31 @@
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 137470,
+ "largestAssetRawBytes": 254285,
"otherRawBytes": 0,
"requestCount": 7,
- "scriptRawBytes": 318553,
+ "scriptRawBytes": 407075,
"scriptRequestCount": 7,
- "totalRawBytes": 318553
+ "totalRawBytes": 407075
},
"activatedResourceLimits": {
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 138845,
+ "largestAssetRawBytes": 256828,
"otherRawBytes": 0,
"requestCount": 7,
- "scriptRawBytes": 321739,
+ "scriptRawBytes": 411146,
"scriptRequestCount": 7,
- "totalRawBytes": 321739
+ "totalRawBytes": 411146
},
- "domContentLoadedMedianMs": 124.89999999850988,
+ "domContentLoadedMedianMs": 112.59999999962747,
"id": "editor-canvas",
- "layoutAckMedianMs": 3.399999998509884,
- "layoutReturnSwitchMedianMs": 42.100000001490116,
- "layoutSwitchMedianMs": 88.60000000149012,
- "loadMedianMs": 125.09999999403954,
- "longestTaskMaxMs": 124,
+ "layoutAckMedianMs": 2.299999998882413,
+ "layoutReturnSwitchMedianMs": 52.100000001490116,
+ "layoutSwitchMedianMs": 77.59999999962747,
+ "loadMedianMs": 112.59999999962747,
+ "longestTaskMaxMs": 125,
"owner": "canvas",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:canvas",
@@ -280,25 +280,25 @@
"cssRawBytes": 2159,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 746355,
- "otherRawBytes": 151419,
- "requestCount": 121,
- "scriptRawBytes": 3493977,
- "scriptRequestCount": 116,
- "totalRawBytes": 3827595
+ "largestAssetRawBytes": 746376,
+ "otherRawBytes": 158313,
+ "requestCount": 122,
+ "scriptRawBytes": 3669239,
+ "scriptRequestCount": 117,
+ "totalRawBytes": 4009751
},
"resourceLimits": {
"cssRawBytes": 2181,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 753819,
- "otherRawBytes": 152934,
- "requestCount": 121,
- "scriptRawBytes": 3528917,
- "scriptRequestCount": 116,
- "totalRawBytes": 3865871
+ "largestAssetRawBytes": 753840,
+ "otherRawBytes": 159897,
+ "requestCount": 122,
+ "scriptRawBytes": 3705932,
+ "scriptRequestCount": 117,
+ "totalRawBytes": 4049849
},
- "routeReadyMedianMs": 1086,
+ "routeReadyMedianMs": 1019,
"scriptSourceOwnerSet": "editor-canvas-static",
"stateProfile": "empty"
},
@@ -307,31 +307,31 @@
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 137470,
+ "largestAssetRawBytes": 254285,
"otherRawBytes": 0,
"requestCount": 7,
- "scriptRawBytes": 318553,
+ "scriptRawBytes": 407075,
"scriptRequestCount": 7,
- "totalRawBytes": 318553
+ "totalRawBytes": 407075
},
"activatedResourceLimits": {
"cssRawBytes": 0,
"fontRawBytes": 0,
"imageRawBytes": 0,
- "largestAssetRawBytes": 138845,
+ "largestAssetRawBytes": 256828,
"otherRawBytes": 0,
"requestCount": 7,
- "scriptRawBytes": 321739,
+ "scriptRawBytes": 411146,
"scriptRequestCount": 7,
- "totalRawBytes": 321739
+ "totalRawBytes": 411146
},
- "domContentLoadedMedianMs": 132.70000000298023,
+ "domContentLoadedMedianMs": 112.29999999888241,
"id": "editor-canvas",
- "layoutAckMedianMs": 2.7000000029802322,
- "layoutReturnSwitchMedianMs": 41.79999999701977,
- "layoutSwitchMedianMs": 209.10000000149012,
- "loadMedianMs": 132.89999999850988,
- "longestTaskMaxMs": 465,
+ "layoutAckMedianMs": 2.300000000745058,
+ "layoutReturnSwitchMedianMs": 44.59999999962747,
+ "layoutSwitchMedianMs": 80.70000000111759,
+ "loadMedianMs": 112.40000000037253,
+ "longestTaskMaxMs": 183,
"owner": "canvas",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:canvas",
@@ -340,25 +340,25 @@
"cssRawBytes": 2159,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 746355,
- "otherRawBytes": 151419,
- "requestCount": 121,
- "scriptRawBytes": 3493977,
- "scriptRequestCount": 116,
- "totalRawBytes": 3827595
+ "largestAssetRawBytes": 746376,
+ "otherRawBytes": 158313,
+ "requestCount": 122,
+ "scriptRawBytes": 3669239,
+ "scriptRequestCount": 117,
+ "totalRawBytes": 4009751
},
"resourceLimits": {
"cssRawBytes": 2181,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 753819,
- "otherRawBytes": 152934,
- "requestCount": 121,
- "scriptRawBytes": 3528917,
- "scriptRequestCount": 116,
- "totalRawBytes": 3865871
+ "largestAssetRawBytes": 753840,
+ "otherRawBytes": 159897,
+ "requestCount": 122,
+ "scriptRawBytes": 3705932,
+ "scriptRequestCount": 117,
+ "totalRawBytes": 4049849
},
- "routeReadyMedianMs": 1385.2999999970198,
+ "routeReadyMedianMs": 1108.9000000003725,
"scriptSourceOwnerSet": "editor-canvas-static",
"stateProfile": "representative"
},
@@ -370,9 +370,9 @@
"largestAssetRawBytes": 173980,
"otherRawBytes": 0,
"requestCount": 7,
- "scriptRawBytes": 364191,
+ "scriptRawBytes": 364247,
"scriptRequestCount": 6,
- "totalRawBytes": 379604
+ "totalRawBytes": 379660
},
"activatedResourceLimits": {
"cssRawBytes": 15568,
@@ -381,17 +381,17 @@
"largestAssetRawBytes": 175720,
"otherRawBytes": 0,
"requestCount": 7,
- "scriptRawBytes": 367833,
+ "scriptRawBytes": 367890,
"scriptRequestCount": 6,
- "totalRawBytes": 383401
+ "totalRawBytes": 383457
},
- "domContentLoadedMedianMs": 132.79999999701977,
+ "domContentLoadedMedianMs": 114.19999999925494,
"id": "editor-workflow",
- "layoutAckMedianMs": 3.399999998509884,
- "layoutReturnSwitchMedianMs": 36.600000001490116,
- "layoutSwitchMedianMs": 100.29999999701977,
- "loadMedianMs": 132.89999999850988,
- "longestTaskMaxMs": 114,
+ "layoutAckMedianMs": 2.199999999254942,
+ "layoutReturnSwitchMedianMs": 31.800000000745058,
+ "layoutSwitchMedianMs": 88.09999999962747,
+ "loadMedianMs": 114.40000000037253,
+ "longestTaskMaxMs": 96,
"owner": "workflow",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:workflow",
@@ -400,25 +400,25 @@
"cssRawBytes": 17572,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 746355,
- "otherRawBytes": 151419,
- "requestCount": 121,
- "scriptRawBytes": 3539615,
- "scriptRequestCount": 115,
- "totalRawBytes": 3888646
+ "largestAssetRawBytes": 746376,
+ "otherRawBytes": 158313,
+ "requestCount": 122,
+ "scriptRawBytes": 3626411,
+ "scriptRequestCount": 116,
+ "totalRawBytes": 3982336
},
"resourceLimits": {
"cssRawBytes": 17748,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 753819,
- "otherRawBytes": 152934,
- "requestCount": 121,
- "scriptRawBytes": 3575012,
- "scriptRequestCount": 115,
- "totalRawBytes": 3927533
+ "largestAssetRawBytes": 753840,
+ "otherRawBytes": 159897,
+ "requestCount": 122,
+ "scriptRawBytes": 3662676,
+ "scriptRequestCount": 116,
+ "totalRawBytes": 4022160
},
- "routeReadyMedianMs": 1115.3000000044703,
+ "routeReadyMedianMs": 1042.8999999985099,
"scriptSourceOwnerSet": "editor-workflow-static",
"stateProfile": "empty"
},
@@ -430,9 +430,9 @@
"largestAssetRawBytes": 173980,
"otherRawBytes": 0,
"requestCount": 7,
- "scriptRawBytes": 364191,
+ "scriptRawBytes": 364247,
"scriptRequestCount": 6,
- "totalRawBytes": 379604
+ "totalRawBytes": 379660
},
"activatedResourceLimits": {
"cssRawBytes": 15568,
@@ -441,17 +441,17 @@
"largestAssetRawBytes": 175720,
"otherRawBytes": 0,
"requestCount": 7,
- "scriptRawBytes": 367833,
+ "scriptRawBytes": 367890,
"scriptRequestCount": 6,
- "totalRawBytes": 383401
+ "totalRawBytes": 383457
},
- "domContentLoadedMedianMs": 138.29999999701977,
+ "domContentLoadedMedianMs": 115.90000000037253,
"id": "editor-workflow",
- "layoutAckMedianMs": 3.5,
- "layoutReturnSwitchMedianMs": 46.70000000298023,
- "layoutSwitchMedianMs": 163.5,
- "loadMedianMs": 138.39999999850988,
- "longestTaskMaxMs": 440,
+ "layoutAckMedianMs": 2.400000000372529,
+ "layoutReturnSwitchMedianMs": 38.90000000037253,
+ "layoutSwitchMedianMs": 124.29999999888241,
+ "loadMedianMs": 116.09999999962747,
+ "longestTaskMaxMs": 327,
"owner": "workflow",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:workflow",
@@ -460,25 +460,25 @@
"cssRawBytes": 17572,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 746355,
- "otherRawBytes": 151419,
- "requestCount": 121,
- "scriptRawBytes": 3539615,
- "scriptRequestCount": 115,
- "totalRawBytes": 3888646
+ "largestAssetRawBytes": 746376,
+ "otherRawBytes": 158313,
+ "requestCount": 122,
+ "scriptRawBytes": 3626411,
+ "scriptRequestCount": 116,
+ "totalRawBytes": 3982336
},
"resourceLimits": {
"cssRawBytes": 17748,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 753819,
- "otherRawBytes": 152934,
- "requestCount": 121,
- "scriptRawBytes": 3575012,
- "scriptRequestCount": 115,
- "totalRawBytes": 3927533
+ "largestAssetRawBytes": 753840,
+ "otherRawBytes": 159897,
+ "requestCount": 122,
+ "scriptRawBytes": 3662676,
+ "scriptRequestCount": 116,
+ "totalRawBytes": 4022160
},
- "routeReadyMedianMs": 1423.7000000029802,
+ "routeReadyMedianMs": 1156.199999999255,
"scriptSourceOwnerSet": "editor-workflow-static",
"stateProfile": "representative"
},
@@ -505,13 +505,13 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 134.70000000298023,
+ "domContentLoadedMedianMs": 109.59999999962747,
"id": "editor-gallery",
"layoutAckMedianMs": 0,
"layoutReturnSwitchMedianMs": 0,
- "layoutSwitchMedianMs": 33.600000001490116,
- "loadMedianMs": 135,
- "longestTaskMaxMs": 117,
+ "layoutSwitchMedianMs": 26,
+ "loadMedianMs": 109.79999999888241,
+ "longestTaskMaxMs": 94,
"owner": "gallery",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:gallery",
@@ -520,25 +520,25 @@
"cssRawBytes": 2159,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 746355,
- "otherRawBytes": 151419,
- "requestCount": 114,
- "scriptRawBytes": 3175424,
- "scriptRequestCount": 109,
- "totalRawBytes": 3509042
+ "largestAssetRawBytes": 746376,
+ "otherRawBytes": 158313,
+ "requestCount": 115,
+ "scriptRawBytes": 3262164,
+ "scriptRequestCount": 110,
+ "totalRawBytes": 3602676
},
"resourceLimits": {
"cssRawBytes": 2181,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 753819,
- "otherRawBytes": 152934,
- "requestCount": 114,
- "scriptRawBytes": 3207179,
- "scriptRequestCount": 109,
- "totalRawBytes": 3544133
+ "largestAssetRawBytes": 753840,
+ "otherRawBytes": 159897,
+ "requestCount": 115,
+ "scriptRawBytes": 3294786,
+ "scriptRequestCount": 110,
+ "totalRawBytes": 3638703
},
- "routeReadyMedianMs": 1346.7999999970198,
+ "routeReadyMedianMs": 1217.5999999996275,
"scriptSourceOwnerSet": "editor-minimal-static",
"stateProfile": "empty"
},
@@ -565,13 +565,13 @@
"scriptRequestCount": 0,
"totalRawBytes": 0
},
- "domContentLoadedMedianMs": 145.30000000447035,
+ "domContentLoadedMedianMs": 113.10000000149012,
"id": "editor-gallery",
"layoutAckMedianMs": 0,
"layoutReturnSwitchMedianMs": 0,
- "layoutSwitchMedianMs": 110.5,
- "loadMedianMs": 145.5,
- "longestTaskMaxMs": 252,
+ "layoutSwitchMedianMs": 80.20000000111759,
+ "loadMedianMs": 113.20000000111759,
+ "longestTaskMaxMs": 170,
"owner": "gallery",
"projectSwitchMedianMs": 0,
"readyMark": "invokeai:ready:widget:center:gallery",
@@ -580,25 +580,25 @@
"cssRawBytes": 2159,
"fontRawBytes": 23664,
"imageRawBytes": 156376,
- "largestAssetRawBytes": 746355,
- "otherRawBytes": 151419,
- "requestCount": 114,
- "scriptRawBytes": 3175424,
- "scriptRequestCount": 109,
- "totalRawBytes": 3509042
+ "largestAssetRawBytes": 746376,
+ "otherRawBytes": 158313,
+ "requestCount": 115,
+ "scriptRawBytes": 3262164,
+ "scriptRequestCount": 110,
+ "totalRawBytes": 3602676
},
"resourceLimits": {
"cssRawBytes": 2181,
"fontRawBytes": 23901,
"imageRawBytes": 157940,
- "largestAssetRawBytes": 753819,
- "otherRawBytes": 152934,
- "requestCount": 114,
- "scriptRawBytes": 3207179,
- "scriptRequestCount": 109,
- "totalRawBytes": 3544133
+ "largestAssetRawBytes": 753840,
+ "otherRawBytes": 159897,
+ "requestCount": 115,
+ "scriptRawBytes": 3294786,
+ "scriptRequestCount": 110,
+ "totalRawBytes": 3638703
},
- "routeReadyMedianMs": 1722.6999999955297,
+ "routeReadyMedianMs": 1402,
"scriptSourceOwnerSet": "editor-minimal-static",
"stateProfile": "representative"
}
@@ -863,6 +863,7 @@
"source:src/platform/ui/theme/system.ts",
"source:src/platform/ui/theme/themes.ts",
"source:src/platform/ui/toaster.tsx",
+ "source:src/workbench/canvasSchemaVersion.ts",
"source:src/workbench/components/WorkbenchSplashScreen.tsx",
"source:src/workbench/hotkeys/catalog.ts",
"source:src/workbench/hotkeys/keys.ts",
@@ -885,6 +886,7 @@
"source:src/workbench/launchpad/projects/NewProjectButton.tsx",
"source:src/workbench/launchpad/projects/ProjectActionsMenu.tsx",
"source:src/workbench/launchpad/projects/ProjectCard.tsx",
+ "source:src/workbench/launchpad/projects/ProjectCompatibilityBadge.tsx",
"source:src/workbench/launchpad/projects/ProjectCover.tsx",
"source:src/workbench/launchpad/projects/ProjectRow.tsx",
"source:src/workbench/launchpad/projects/ProjectsBrowser.tsx",
@@ -911,6 +913,7 @@
"source:src/workbench/projects/session.ts",
"source:src/workbench/projects/syncStore.ts",
"source:src/workbench/projects/useProjectFileActions.ts",
+ "source:src/workbench/refusedProjectStorage.ts",
"source:src/workbench/settings/SettingsButton.tsx",
"source:src/workbench/settings/SettingsDialogHost.tsx",
"source:src/workbench/settings/settingsDialogStore.ts",
@@ -1153,7 +1156,7 @@
"source:src/features/generation/runtime.ts",
"source:src/features/generation/settings.ts",
"source:src/features/generation/ui/GenerateAdvancedFields.tsx",
- "source:src/features/generation/ui/GenerateCanvasCompositingSection.tsx",
+ "source:src/features/generation/ui/GenerateCanvasSections.tsx",
"source:src/features/generation/ui/GenerateComponentsSection.tsx",
"source:src/features/generation/ui/GenerateConceptsSection.tsx",
"source:src/features/generation/ui/GenerateConditioningRebalanceField.tsx",
@@ -1454,6 +1457,7 @@
"source:src/workbench/canvas-engine/api.ts",
"source:src/workbench/canvas-engine/capabilities.ts",
"source:src/workbench/canvas-engine/color.ts",
+ "source:src/workbench/canvas-engine/contracts.ts",
"source:src/workbench/canvas-engine/controllers/booleanMergeController.ts",
"source:src/workbench/canvas-engine/controllers/controlPixelController.ts",
"source:src/workbench/canvas-engine/controllers/copyLayerController.ts",
@@ -1488,12 +1492,23 @@
"source:src/workbench/canvas-engine/controllers/thumbnailController.ts",
"source:src/workbench/canvas-engine/controllers/transformEditingController.ts",
"source:src/workbench/canvas-engine/diagnostics.ts",
+ "source:src/workbench/canvas-engine/document-model/documentModel.ts",
+ "source:src/workbench/canvas-engine/document-model/postconditions.ts",
+ "source:src/workbench/canvas-engine/document-model/screenComposition.ts",
+ "source:src/workbench/canvas-engine/document-model/semanticLeaf.ts",
+ "source:src/workbench/canvas-engine/document-model/semanticNode.ts",
"source:src/workbench/canvas-engine/document/bitmapStore.ts",
+ "source:src/workbench/canvas-engine/document/documentIndex.ts",
"source:src/workbench/canvas-engine/document/documentMirror.ts",
+ "source:src/workbench/canvas-engine/document/documentTree.ts",
+ "source:src/workbench/canvas-engine/document/insertionAnchors.ts",
"source:src/workbench/canvas-engine/document/layerChangeDecision.ts",
+ "source:src/workbench/canvas-engine/document/layerEligibility.ts",
"source:src/workbench/canvas-engine/document/layerFactories.ts",
+ "source:src/workbench/canvas-engine/document/layerStacks.ts",
"source:src/workbench/canvas-engine/document/mergeDown.ts",
"source:src/workbench/canvas-engine/document/mergeVisible.ts",
+ "source:src/workbench/canvas-engine/document/selectionRepair.ts",
"source:src/workbench/canvas-engine/document/sources.ts",
"source:src/workbench/canvas-engine/editGate.ts",
"source:src/workbench/canvas-engine/editing/controlPixelEdit.ts",
@@ -1514,6 +1529,7 @@
"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/mutationContracts.ts",
"source:src/workbench/canvas-engine/pressureBands.ts",
"source:src/workbench/canvas-engine/previewPublisher.ts",
"source:src/workbench/canvas-engine/rasterSnapshotCapture.ts",
@@ -1609,6 +1625,7 @@
"source:src/workbench/canvasLayerContent.ts",
"source:src/workbench/canvasMigration.ts",
"source:src/workbench/canvasProjectMutations.ts",
+ "source:src/workbench/canvasSchemaVersion.ts",
"source:src/workbench/canvasStagingView.ts",
"source:src/workbench/components/QueueProgressIndicator.tsx",
"source:src/workbench/components/WorkbenchSplashScreen.tsx",
@@ -1669,6 +1686,7 @@
"source:src/workbench/launchpad/projects/NewProjectButton.tsx",
"source:src/workbench/launchpad/projects/ProjectActionsMenu.tsx",
"source:src/workbench/launchpad/projects/ProjectCard.tsx",
+ "source:src/workbench/launchpad/projects/ProjectCompatibilityBadge.tsx",
"source:src/workbench/launchpad/projects/ProjectCover.tsx",
"source:src/workbench/launchpad/projects/ProjectRow.tsx",
"source:src/workbench/launchpad/projects/ProjectsBrowser.tsx",
@@ -1677,6 +1695,8 @@
"source:src/workbench/launchpad/projects/projectPins.ts",
"source:src/workbench/launchpad/projects/projectsMetrics.ts",
"source:src/workbench/launchpad/projects/useProjectCardActions.ts",
+ "source:src/workbench/layerPanelState.ts",
+ "source:src/workbench/layoutContracts.ts",
"source:src/workbench/layoutPresetActivation.ts",
"source:src/workbench/layoutPresetCollection.ts",
"source:src/workbench/layoutPresetRouting.ts",
@@ -1692,6 +1712,7 @@
"source:src/workbench/performanceMarks.ts",
"source:src/workbench/persistence.ts",
"source:src/workbench/persistenceRuntime.ts",
+ "source:src/workbench/projectCanvasGate.ts",
"source:src/workbench/projects/api.ts",
"source:src/workbench/projects/components/OpenProjectDialog.tsx",
"source:src/workbench/projects/components/index.ts",
@@ -1707,6 +1728,7 @@
"source:src/workbench/projects/projectFileErrors.ts",
"source:src/workbench/projects/projectFileToasts.ts",
"source:src/workbench/projects/projectFlush.ts",
+ "source:src/workbench/projects/projectLoadRefusal.ts",
"source:src/workbench/projects/projectTabsA11y.ts",
"source:src/workbench/projects/session.ts",
"source:src/workbench/projects/syncStore.ts",
@@ -1715,6 +1737,7 @@
"source:src/workbench/projects/useProjectFileActions.ts",
"source:src/workbench/queue-integration/useActiveQueueProgress.ts",
"source:src/workbench/queueHistoryNormalization.ts",
+ "source:src/workbench/refusedProjectStorage.ts",
"source:src/workbench/settings/SettingsButton.tsx",
"source:src/workbench/settings/SettingsDialogHost.tsx",
"source:src/workbench/settings/settingsDialogStore.ts",
@@ -1800,6 +1823,7 @@
"source:src/workbench/widgets/layers/controlModelOptions.ts",
"source:src/workbench/widgets/layers/layerOps.ts",
"source:src/workbench/widgets/layers/manifest.ts",
+ "source:src/workbench/widgets/layers/panes/editorPaneLayout.ts",
"source:src/workbench/widgets/layers/selectedModel.ts",
"source:src/workbench/widgets/notifications/NotificationsHeaderActions.tsx",
"source:src/workbench/widgets/notifications/NotificationsWidgetView.tsx",
@@ -2084,7 +2108,7 @@
"source:src/features/generation/runtime.ts",
"source:src/features/generation/settings.ts",
"source:src/features/generation/ui/GenerateAdvancedFields.tsx",
- "source:src/features/generation/ui/GenerateCanvasCompositingSection.tsx",
+ "source:src/features/generation/ui/GenerateCanvasSections.tsx",
"source:src/features/generation/ui/GenerateComponentsSection.tsx",
"source:src/features/generation/ui/GenerateConceptsSection.tsx",
"source:src/features/generation/ui/GenerateConditioningRebalanceField.tsx",
@@ -2341,6 +2365,8 @@
"source:src/platform/ui/EmptyState.tsx",
"source:src/platform/ui/Field.tsx",
"source:src/platform/ui/Group.tsx",
+ "source:src/platform/ui/HsvBoxPicker.tsx",
+ "source:src/platform/ui/HsvWheelPicker.tsx",
"source:src/platform/ui/InvokeMark.tsx",
"source:src/platform/ui/JsonPreview.tsx",
"source:src/platform/ui/Menu.tsx",
@@ -2368,6 +2394,7 @@
"source:src/platform/ui/hints/hintRegistry.ts",
"source:src/platform/ui/hints/hintsContext.tsx",
"source:src/platform/ui/hints/index.ts",
+ "source:src/platform/ui/hsv.ts",
"source:src/platform/ui/index.ts",
"source:src/platform/ui/streaming-image/StreamingImageFrame.tsx",
"source:src/platform/ui/streaming-image/streamingImageSource.ts",
@@ -2387,6 +2414,7 @@
"source:src/workbench/canvas-engine/api.ts",
"source:src/workbench/canvas-engine/capabilities.ts",
"source:src/workbench/canvas-engine/color.ts",
+ "source:src/workbench/canvas-engine/contracts.ts",
"source:src/workbench/canvas-engine/controllers/booleanMergeController.ts",
"source:src/workbench/canvas-engine/controllers/controlPixelController.ts",
"source:src/workbench/canvas-engine/controllers/copyLayerController.ts",
@@ -2421,12 +2449,23 @@
"source:src/workbench/canvas-engine/controllers/thumbnailController.ts",
"source:src/workbench/canvas-engine/controllers/transformEditingController.ts",
"source:src/workbench/canvas-engine/diagnostics.ts",
+ "source:src/workbench/canvas-engine/document-model/documentModel.ts",
+ "source:src/workbench/canvas-engine/document-model/postconditions.ts",
+ "source:src/workbench/canvas-engine/document-model/screenComposition.ts",
+ "source:src/workbench/canvas-engine/document-model/semanticLeaf.ts",
+ "source:src/workbench/canvas-engine/document-model/semanticNode.ts",
"source:src/workbench/canvas-engine/document/bitmapStore.ts",
+ "source:src/workbench/canvas-engine/document/documentIndex.ts",
"source:src/workbench/canvas-engine/document/documentMirror.ts",
+ "source:src/workbench/canvas-engine/document/documentTree.ts",
+ "source:src/workbench/canvas-engine/document/insertionAnchors.ts",
"source:src/workbench/canvas-engine/document/layerChangeDecision.ts",
+ "source:src/workbench/canvas-engine/document/layerEligibility.ts",
"source:src/workbench/canvas-engine/document/layerFactories.ts",
+ "source:src/workbench/canvas-engine/document/layerStacks.ts",
"source:src/workbench/canvas-engine/document/mergeDown.ts",
"source:src/workbench/canvas-engine/document/mergeVisible.ts",
+ "source:src/workbench/canvas-engine/document/selectionRepair.ts",
"source:src/workbench/canvas-engine/document/sources.ts",
"source:src/workbench/canvas-engine/editGate.ts",
"source:src/workbench/canvas-engine/editing/controlPixelEdit.ts",
@@ -2447,6 +2486,7 @@
"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/mutationContracts.ts",
"source:src/workbench/canvas-engine/pressureBands.ts",
"source:src/workbench/canvas-engine/previewPublisher.ts",
"source:src/workbench/canvas-engine/rasterSnapshotCapture.ts",
@@ -2543,10 +2583,10 @@
"source:src/workbench/canvasDimsSync.ts",
"source:src/workbench/canvasInvocationPreparation.ts",
"source:src/workbench/canvasLayerContent.ts",
- "source:src/workbench/canvasLayerOps.ts",
"source:src/workbench/canvasMigration.ts",
"source:src/workbench/canvasProjectMutationPort.ts",
"source:src/workbench/canvasProjectMutations.ts",
+ "source:src/workbench/canvasSchemaVersion.ts",
"source:src/workbench/canvasStagingView.ts",
"source:src/workbench/components/QueueProgressIndicator.tsx",
"source:src/workbench/components/WorkbenchSplashScreen.tsx",
@@ -2607,6 +2647,7 @@
"source:src/workbench/launchpad/projects/NewProjectButton.tsx",
"source:src/workbench/launchpad/projects/ProjectActionsMenu.tsx",
"source:src/workbench/launchpad/projects/ProjectCard.tsx",
+ "source:src/workbench/launchpad/projects/ProjectCompatibilityBadge.tsx",
"source:src/workbench/launchpad/projects/ProjectCover.tsx",
"source:src/workbench/launchpad/projects/ProjectRow.tsx",
"source:src/workbench/launchpad/projects/ProjectsBrowser.tsx",
@@ -2615,6 +2656,8 @@
"source:src/workbench/launchpad/projects/projectPins.ts",
"source:src/workbench/launchpad/projects/projectsMetrics.ts",
"source:src/workbench/launchpad/projects/useProjectCardActions.ts",
+ "source:src/workbench/layerPanelState.ts",
+ "source:src/workbench/layoutContracts.ts",
"source:src/workbench/layoutPresetActivation.ts",
"source:src/workbench/layoutPresetCollection.ts",
"source:src/workbench/layoutPresetRouting.ts",
@@ -2630,6 +2673,7 @@
"source:src/workbench/performanceMarks.ts",
"source:src/workbench/persistence.ts",
"source:src/workbench/persistenceRuntime.ts",
+ "source:src/workbench/projectCanvasGate.ts",
"source:src/workbench/projects/api.ts",
"source:src/workbench/projects/components/OpenProjectDialog.tsx",
"source:src/workbench/projects/components/index.ts",
@@ -2645,6 +2689,7 @@
"source:src/workbench/projects/projectFileErrors.ts",
"source:src/workbench/projects/projectFileToasts.ts",
"source:src/workbench/projects/projectFlush.ts",
+ "source:src/workbench/projects/projectLoadRefusal.ts",
"source:src/workbench/projects/projectTabsA11y.ts",
"source:src/workbench/projects/session.ts",
"source:src/workbench/projects/syncStore.ts",
@@ -2653,6 +2698,7 @@
"source:src/workbench/projects/useProjectFileActions.ts",
"source:src/workbench/queue-integration/useActiveQueueProgress.ts",
"source:src/workbench/queueHistoryNormalization.ts",
+ "source:src/workbench/refusedProjectStorage.ts",
"source:src/workbench/settings/SettingsButton.tsx",
"source:src/workbench/settings/SettingsDialogHost.tsx",
"source:src/workbench/settings/settingsDialogStore.ts",
@@ -2727,8 +2773,6 @@
"source:src/workbench/widgets/autosave-status/AutosaveStatusWidgetView.tsx",
"source:src/workbench/widgets/autosave-status/implementation.ts",
"source:src/workbench/widgets/autosave-status/manifest.ts",
- "source:src/workbench/widgets/canvas/BboxDetailsBar.tsx",
- "source:src/workbench/widgets/canvas/CanvasBottomControls.tsx",
"source:src/workbench/widgets/canvas/CanvasBottomOverlay.tsx",
"source:src/workbench/widgets/canvas/CanvasCreateFromBboxSubmenu.tsx",
"source:src/workbench/widgets/canvas/CanvasFloatingBar.tsx",
@@ -2740,7 +2784,10 @@
"source:src/workbench/widgets/canvas/CanvasSurface.tsx",
"source:src/workbench/widgets/canvas/CanvasSurfaceContextLayout.tsx",
"source:src/workbench/widgets/canvas/CanvasWidgetView.tsx",
+ "source:src/workbench/widgets/canvas/DenoisingStrengthWave.tsx",
"source:src/workbench/widgets/canvas/GenerateCanvasCompositingSection.tsx",
+ "source:src/workbench/widgets/canvas/GenerateCanvasSections.tsx",
+ "source:src/workbench/widgets/canvas/GenerateDenoisingStrength.tsx",
"source:src/workbench/widgets/canvas/StagingBar.tsx",
"source:src/workbench/widgets/canvas/TextEditPortal.tsx",
"source:src/workbench/widgets/canvas/ToolStrip.tsx",
@@ -2754,6 +2801,9 @@
"source:src/workbench/widgets/canvas/canvasInteractionLock.ts",
"source:src/workbench/widgets/canvas/canvasSettings.ts",
"source:src/workbench/widgets/canvas/checkerColors.ts",
+ "source:src/workbench/widgets/canvas/color-system/CanvasColorFeed.tsx",
+ "source:src/workbench/widgets/canvas/color-system/colorPair.ts",
+ "source:src/workbench/widgets/canvas/color-system/useActiveColors.ts",
"source:src/workbench/widgets/canvas/engineStoreHooks.ts",
"source:src/workbench/widgets/canvas/executeCanvasImageDropImport.ts",
"source:src/workbench/widgets/canvas/fitBbox.ts",
@@ -2766,7 +2816,6 @@
"source:src/workbench/widgets/canvas/surfaceFocus.ts",
"source:src/workbench/widgets/canvas/tool-options/BboxOptions.tsx",
"source:src/workbench/widgets/canvas/tool-options/BrushOptions.tsx",
- "source:src/workbench/widgets/canvas/tool-options/CanvasOperationBar.tsx",
"source:src/workbench/widgets/canvas/tool-options/CanvasOptionsBar.tsx",
"source:src/workbench/widgets/canvas/tool-options/EraserOptions.tsx",
"source:src/workbench/widgets/canvas/tool-options/FilterOptions.tsx",
@@ -2779,13 +2828,15 @@
"source:src/workbench/widgets/canvas/tool-options/SelectionOptionsRow.tsx",
"source:src/workbench/widgets/canvas/tool-options/ShapeOptions.tsx",
"source:src/workbench/widgets/canvas/tool-options/TextOptions.tsx",
- "source:src/workbench/widgets/canvas/tool-options/ToolOptionsBar.tsx",
"source:src/workbench/widgets/canvas/tool-options/TransformOptions.tsx",
"source:src/workbench/widgets/canvas/tool-options/useBboxEditor.ts",
+ "source:src/workbench/widgets/canvas/tool-presentation/ToolbarPrimitives.tsx",
+ "source:src/workbench/widgets/canvas/tool-presentation/toolAdapters.ts",
"source:src/workbench/widgets/canvas/useCanvasEngine.ts",
"source:src/workbench/widgets/canvas/useCanvasGallerySave.ts",
"source:src/workbench/widgets/canvas/useColorSampler.ts",
"source:src/workbench/widgets/canvas/useCreateFromBbox.ts",
+ "source:src/workbench/widgets/canvas/useStructuralCommit.ts",
"source:src/workbench/widgets/canvas/zoomOptions.ts",
"source:src/workbench/widgets/diagnostics/manifest.ts",
"source:src/workbench/widgets/gallery/manifest.ts",
@@ -2795,18 +2846,20 @@
"source:src/workbench/widgets/layers/AdjustmentsPopover.tsx",
"source:src/workbench/widgets/layers/ControlLayerSettings.tsx",
"source:src/workbench/widgets/layers/ControlLayerWarningIcon.tsx",
- "source:src/workbench/widgets/layers/DenoisingStrengthWave.tsx",
"source:src/workbench/widgets/layers/InpaintMaskSettings.tsx",
"source:src/workbench/widgets/layers/LayerContextMenu.tsx",
"source:src/workbench/widgets/layers/LayerFilterControls.tsx",
"source:src/workbench/widgets/layers/LayerFilterOperationButton.tsx",
- "source:src/workbench/widgets/layers/LayerGroupSection.tsx",
- "source:src/workbench/widgets/layers/LayerListItem.tsx",
+ "source:src/workbench/widgets/layers/LayerGroupContextMenu.tsx",
"source:src/workbench/widgets/layers/LayerMultiSelectionActions.tsx",
- "source:src/workbench/widgets/layers/LayerPropertiesPopover.tsx",
+ "source:src/workbench/widgets/layers/LayerRow.tsx",
+ "source:src/workbench/widgets/layers/LayerStackHeader.tsx",
+ "source:src/workbench/widgets/layers/LayerStackMenu.tsx",
+ "source:src/workbench/widgets/layers/LayerSurfaceHost.tsx",
"source:src/workbench/widgets/layers/LayerThumbnail.tsx",
"source:src/workbench/widgets/layers/LayersHeaderActions.tsx",
- "source:src/workbench/widgets/layers/LayersPanelHeader.tsx",
+ "source:src/workbench/widgets/layers/LayersPanelFooter.tsx",
+ "source:src/workbench/widgets/layers/LayersTree.tsx",
"source:src/workbench/widgets/layers/LayersWidgetView.tsx",
"source:src/workbench/widgets/layers/RasterLayerFilterSection.tsx",
"source:src/workbench/widgets/layers/RegionalGuidanceSettings.tsx",
@@ -2818,21 +2871,37 @@
"source:src/workbench/widgets/layers/layerActionSession.ts",
"source:src/workbench/widgets/layers/layerContextActions.ts",
"source:src/workbench/widgets/layers/layerContextMenuLayout.ts",
- "source:src/workbench/widgets/layers/layerDndConfig.ts",
"source:src/workbench/widgets/layers/layerExportActions.ts",
- "source:src/workbench/widgets/layers/layerGroupActions.ts",
- "source:src/workbench/widgets/layers/layerGroups.ts",
+ "source:src/workbench/widgets/layers/layerGroupCommands.ts",
"source:src/workbench/widgets/layers/layerMenuState.ts",
- "source:src/workbench/widgets/layers/layerMultiSelectionModel.ts",
"source:src/workbench/widgets/layers/layerOps.ts",
+ "source:src/workbench/widgets/layers/layerPanelDiagnostics.ts",
+ "source:src/workbench/widgets/layers/layerPanelRows.ts",
"source:src/workbench/widgets/layers/layerPropertiesOperation.ts",
"source:src/workbench/widgets/layers/layerPropertiesRequestStore.ts",
- "source:src/workbench/widgets/layers/layersDnd.ts",
+ "source:src/workbench/widgets/layers/layerRowCommands.ts",
+ "source:src/workbench/widgets/layers/layerRowSummary.ts",
+ "source:src/workbench/widgets/layers/layerStackActions.ts",
+ "source:src/workbench/widgets/layers/layerTreeAutoScroll.ts",
+ "source:src/workbench/widgets/layers/layerTreeDrop.ts",
+ "source:src/workbench/widgets/layers/layerTreeRows.ts",
"source:src/workbench/widgets/layers/manifest.ts",
+ "source:src/workbench/widgets/layers/panes/ColorPane.tsx",
+ "source:src/workbench/widgets/layers/panes/GroupSelectedNotice.tsx",
+ "source:src/workbench/widgets/layers/panes/HistoryPane.tsx",
+ "source:src/workbench/widgets/layers/panes/LayerEditorPanes.tsx",
+ "source:src/workbench/widgets/layers/panes/LayerSection.tsx",
+ "source:src/workbench/widgets/layers/panes/OverviewPane.tsx",
+ "source:src/workbench/widgets/layers/panes/PropertiesPane.tsx",
+ "source:src/workbench/widgets/layers/panes/PropertiesSection.tsx",
+ "source:src/workbench/widgets/layers/panes/SwatchesPane.tsx",
+ "source:src/workbench/widgets/layers/panes/TransformPane.tsx",
+ "source:src/workbench/widgets/layers/panes/editorPaneLayout.ts",
"source:src/workbench/widgets/layers/psdExportNotice.ts",
"source:src/workbench/widgets/layers/runLayerWorkflow.ts",
"source:src/workbench/widgets/layers/selectedModel.ts",
"source:src/workbench/widgets/layers/useAddLayer.ts",
+ "source:src/workbench/widgets/layers/useLayerStackActions.ts",
"source:src/workbench/widgets/layers/useSelectedMainModel.ts",
"source:src/workbench/widgets/layers/useSelectedModelBase.ts",
"source:src/workbench/widgets/notifications/NotificationsHeaderActions.tsx",
@@ -3125,7 +3194,7 @@
"source:src/features/generation/runtime.ts",
"source:src/features/generation/settings.ts",
"source:src/features/generation/ui/GenerateAdvancedFields.tsx",
- "source:src/features/generation/ui/GenerateCanvasCompositingSection.tsx",
+ "source:src/features/generation/ui/GenerateCanvasSections.tsx",
"source:src/features/generation/ui/GenerateComponentsSection.tsx",
"source:src/features/generation/ui/GenerateConceptsSection.tsx",
"source:src/features/generation/ui/GenerateConditioningRebalanceField.tsx",
@@ -3490,6 +3559,7 @@
"source:src/workbench/canvas-engine/api.ts",
"source:src/workbench/canvas-engine/capabilities.ts",
"source:src/workbench/canvas-engine/color.ts",
+ "source:src/workbench/canvas-engine/contracts.ts",
"source:src/workbench/canvas-engine/controllers/booleanMergeController.ts",
"source:src/workbench/canvas-engine/controllers/controlPixelController.ts",
"source:src/workbench/canvas-engine/controllers/copyLayerController.ts",
@@ -3524,12 +3594,23 @@
"source:src/workbench/canvas-engine/controllers/thumbnailController.ts",
"source:src/workbench/canvas-engine/controllers/transformEditingController.ts",
"source:src/workbench/canvas-engine/diagnostics.ts",
+ "source:src/workbench/canvas-engine/document-model/documentModel.ts",
+ "source:src/workbench/canvas-engine/document-model/postconditions.ts",
+ "source:src/workbench/canvas-engine/document-model/screenComposition.ts",
+ "source:src/workbench/canvas-engine/document-model/semanticLeaf.ts",
+ "source:src/workbench/canvas-engine/document-model/semanticNode.ts",
"source:src/workbench/canvas-engine/document/bitmapStore.ts",
+ "source:src/workbench/canvas-engine/document/documentIndex.ts",
"source:src/workbench/canvas-engine/document/documentMirror.ts",
+ "source:src/workbench/canvas-engine/document/documentTree.ts",
+ "source:src/workbench/canvas-engine/document/insertionAnchors.ts",
"source:src/workbench/canvas-engine/document/layerChangeDecision.ts",
+ "source:src/workbench/canvas-engine/document/layerEligibility.ts",
"source:src/workbench/canvas-engine/document/layerFactories.ts",
+ "source:src/workbench/canvas-engine/document/layerStacks.ts",
"source:src/workbench/canvas-engine/document/mergeDown.ts",
"source:src/workbench/canvas-engine/document/mergeVisible.ts",
+ "source:src/workbench/canvas-engine/document/selectionRepair.ts",
"source:src/workbench/canvas-engine/document/sources.ts",
"source:src/workbench/canvas-engine/editGate.ts",
"source:src/workbench/canvas-engine/editing/controlPixelEdit.ts",
@@ -3550,6 +3631,7 @@
"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/mutationContracts.ts",
"source:src/workbench/canvas-engine/pressureBands.ts",
"source:src/workbench/canvas-engine/previewPublisher.ts",
"source:src/workbench/canvas-engine/rasterSnapshotCapture.ts",
@@ -3645,6 +3727,7 @@
"source:src/workbench/canvasLayerContent.ts",
"source:src/workbench/canvasMigration.ts",
"source:src/workbench/canvasProjectMutations.ts",
+ "source:src/workbench/canvasSchemaVersion.ts",
"source:src/workbench/canvasStagingView.ts",
"source:src/workbench/components/QueueProgressIndicator.tsx",
"source:src/workbench/components/WorkbenchSplashScreen.tsx",
@@ -3705,6 +3788,7 @@
"source:src/workbench/launchpad/projects/NewProjectButton.tsx",
"source:src/workbench/launchpad/projects/ProjectActionsMenu.tsx",
"source:src/workbench/launchpad/projects/ProjectCard.tsx",
+ "source:src/workbench/launchpad/projects/ProjectCompatibilityBadge.tsx",
"source:src/workbench/launchpad/projects/ProjectCover.tsx",
"source:src/workbench/launchpad/projects/ProjectRow.tsx",
"source:src/workbench/launchpad/projects/ProjectsBrowser.tsx",
@@ -3713,6 +3797,8 @@
"source:src/workbench/launchpad/projects/projectPins.ts",
"source:src/workbench/launchpad/projects/projectsMetrics.ts",
"source:src/workbench/launchpad/projects/useProjectCardActions.ts",
+ "source:src/workbench/layerPanelState.ts",
+ "source:src/workbench/layoutContracts.ts",
"source:src/workbench/layoutPresetActivation.ts",
"source:src/workbench/layoutPresetCollection.ts",
"source:src/workbench/layoutPresetRouting.ts",
@@ -3728,6 +3814,7 @@
"source:src/workbench/performanceMarks.ts",
"source:src/workbench/persistence.ts",
"source:src/workbench/persistenceRuntime.ts",
+ "source:src/workbench/projectCanvasGate.ts",
"source:src/workbench/projects/api.ts",
"source:src/workbench/projects/components/OpenProjectDialog.tsx",
"source:src/workbench/projects/components/index.ts",
@@ -3743,6 +3830,7 @@
"source:src/workbench/projects/projectFileErrors.ts",
"source:src/workbench/projects/projectFileToasts.ts",
"source:src/workbench/projects/projectFlush.ts",
+ "source:src/workbench/projects/projectLoadRefusal.ts",
"source:src/workbench/projects/projectTabsA11y.ts",
"source:src/workbench/projects/session.ts",
"source:src/workbench/projects/syncStore.ts",
@@ -3751,6 +3839,7 @@
"source:src/workbench/projects/useProjectFileActions.ts",
"source:src/workbench/queue-integration/useActiveQueueProgress.ts",
"source:src/workbench/queueHistoryNormalization.ts",
+ "source:src/workbench/refusedProjectStorage.ts",
"source:src/workbench/settings/SettingsButton.tsx",
"source:src/workbench/settings/SettingsDialogHost.tsx",
"source:src/workbench/settings/settingsDialogStore.ts",
@@ -3836,6 +3925,7 @@
"source:src/workbench/widgets/layers/controlModelOptions.ts",
"source:src/workbench/widgets/layers/layerOps.ts",
"source:src/workbench/widgets/layers/manifest.ts",
+ "source:src/workbench/widgets/layers/panes/editorPaneLayout.ts",
"source:src/workbench/widgets/layers/selectedModel.ts",
"source:src/workbench/widgets/notifications/NotificationsHeaderActions.tsx",
"source:src/workbench/widgets/notifications/NotificationsWidgetView.tsx",
diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.json
index 3a64a60a9d..f7d3939cb7 100644
--- a/invokeai/frontend/webv2/public/locales/en.json
+++ b/invokeai/frontend/webv2/public/locales/en.json
@@ -1506,7 +1506,6 @@
"sections": {
"operation": "Operation",
"tool": "Tool",
- "generation": "Generation",
"layer": "Layer"
}
},
@@ -1596,7 +1595,6 @@
"deletePresetNamed": "Delete preset {{name}}",
"deletePromptHistoryItem": "Delete prompt history item",
"denoisingStrength": "Denoising strength",
- "denoisingStrengthHelp": "How much the generation reworks the existing canvas content. Only applies to image-to-image (when content fills the generation frame).",
"disableConcept": "Disable {{name}}",
"disableReferenceImage": "Disable reference image",
"dropImageToPrompt": "Describe this image",
@@ -2862,8 +2860,6 @@
"screen": "Screen",
"soft-light": "Soft light"
},
- "denoisingStrength": "Denoising strength",
- "denoisingStrengthHelp": "How much the canvas image is changed. Lower keeps more of the original; higher allows bigger changes.",
"empty": "No layers yet. Add a layer or paint on the canvas to get started.",
"groupActions": {
"collapse": "Collapse group",
@@ -2979,13 +2975,7 @@
"groups_other": "{{count}} groups",
"selected_one": "{{count}} selected",
"selected_other": "{{count}} selected",
- "degraded": "Large document: thumbnails and drag reordering are off.",
- "density": {
- "label": "Row density",
- "compact": "Compact",
- "comfortable": "Comfortable",
- "large": "Large"
- }
+ "degraded": "Large document: thumbnails and drag reordering are off."
},
"dropRefused": "Can't drop here: {{reason}}",
"panes": {
diff --git a/invokeai/frontend/webv2/src/app/GenerationUiAdapter.tsx b/invokeai/frontend/webv2/src/app/GenerationUiAdapter.tsx
index c2958275e6..71d28af075 100644
--- a/invokeai/frontend/webv2/src/app/GenerationUiAdapter.tsx
+++ b/invokeai/frontend/webv2/src/app/GenerationUiAdapter.tsx
@@ -30,9 +30,9 @@ import { lazy, useMemo } from 'react';
export const getGenerationSelectedGalleryImage = getSelectedGalleryImageFromValues;
const ModelSelect = lazy(() => import('@features/models/react').then((module) => ({ default: module.ModelSelect })));
-const GenerateCanvasCompositingSection = lazy(() =>
- import('@workbench/widgets/canvas/GenerateCanvasCompositingSection').then((module) => ({
- default: module.GenerateCanvasCompositingSection,
+const GenerateCanvasSections = lazy(() =>
+ import('@workbench/widgets/canvas/GenerateCanvasSections').then((module) => ({
+ default: module.GenerateCanvasSections,
}))
);
@@ -111,7 +111,7 @@ const useGenerationQueueInsights = (projectId: string): GenerationUiAdapter['que
export const GenerationUiAdapterProvider = ({ children }: { children: ReactNode }) => {
// The generate widget needs its model picker as soon as it renders. Left to
// Suspense, `ModelSelect` was fetched in a second wave after the boot
- // widget wave had already finished. `GenerateCanvasCompositingSection` is
+ // widget wave had already finished. `GenerateCanvasSections` is
// canvas-only and stays lazy — warming it would add bytes to every boot.
useMountEffect(() => {
void import('@features/models/react');
@@ -274,7 +274,7 @@ export const GenerationUiAdapterProvider = ({ children }: { children: ReactNode
const adapter = useMemo<GenerationUiAdapter>(
() => ({
- CanvasCompositingSection: GenerateCanvasCompositingSection,
+ CanvasGenerationSections: GenerateCanvasSections,
account: accountGroup,
capabilities: capabilitiesGroup,
gallery: galleryGroup,
diff --git a/invokeai/frontend/webv2/src/features/generation/ui/GenerateCanvasCompositingSection.tsx b/invokeai/frontend/webv2/src/features/generation/ui/GenerateCanvasCompositingSection.tsx
deleted file mode 100644
index 6c3e6c281f..0000000000
--- a/invokeai/frontend/webv2/src/features/generation/ui/GenerateCanvasCompositingSection.tsx
+++ /dev/null
@@ -1,6 +0,0 @@
-import { useGenerationUi } from './GenerationUiContext';
-
-export const GenerateCanvasCompositingSection = () => {
- const { CanvasCompositingSection, project } = useGenerationUi();
- return project.invocationSourceId === 'canvas' ? <CanvasCompositingSection /> : null;
-};
diff --git a/invokeai/frontend/webv2/src/features/generation/ui/GenerateCanvasSections.tsx b/invokeai/frontend/webv2/src/features/generation/ui/GenerateCanvasSections.tsx
new file mode 100644
index 0000000000..ad08564314
--- /dev/null
+++ b/invokeai/frontend/webv2/src/features/generation/ui/GenerateCanvasSections.tsx
@@ -0,0 +1,6 @@
+import { useGenerationUi } from './GenerationUiContext';
+
+export const GenerateCanvasSections = () => {
+ const { CanvasGenerationSections, project } = useGenerationUi();
+ return project.invocationSourceId === 'canvas' ? <CanvasGenerationSections /> : null;
+};
diff --git a/invokeai/frontend/webv2/src/features/generation/ui/GenerateSettingsForm.tsx b/invokeai/frontend/webv2/src/features/generation/ui/GenerateSettingsForm.tsx
index 1e6e5a6cf9..0a764b9b32 100644
--- a/invokeai/frontend/webv2/src/features/generation/ui/GenerateSettingsForm.tsx
+++ b/invokeai/frontend/webv2/src/features/generation/ui/GenerateSettingsForm.tsx
@@ -6,7 +6,7 @@ import { Stack } from '@chakra-ui/react';
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
import { GenerateAdvancedFields } from './GenerateAdvancedFields';
-import { GenerateCanvasCompositingSection } from './GenerateCanvasCompositingSection';
+import { GenerateCanvasSections } from './GenerateCanvasSections';
import { GenerateComponentsSection } from './GenerateComponentsSection';
import {
applyGenerateSettingsPatch,
@@ -281,7 +281,7 @@ export const GenerateSettingsForm = ({
onCommitImmediate={commitPatchImmediately}
/>
- <GenerateCanvasCompositingSection />
+ <GenerateCanvasSections />
</Stack>
);
};
diff --git a/invokeai/frontend/webv2/src/features/generation/ui/GenerationUiContext.tsx b/invokeai/frontend/webv2/src/features/generation/ui/GenerationUiContext.tsx
index c2018da701..1658e01932 100644
--- a/invokeai/frontend/webv2/src/features/generation/ui/GenerationUiContext.tsx
+++ b/invokeai/frontend/webv2/src/features/generation/ui/GenerationUiContext.tsx
@@ -46,7 +46,7 @@ export interface GeneratePresetRecord {
* test seam; no second adapter is expected.
*/
export interface GenerationUiAdapter {
- CanvasCompositingSection: ComponentType;
+ CanvasGenerationSections: ComponentType;
account: {
currentUserId: string | null;
multiuserEnabled: boolean;
diff --git a/invokeai/frontend/webv2/src/workbench/layerPanelState.test.ts b/invokeai/frontend/webv2/src/workbench/layerPanelState.test.ts
index 6dedf03896..af38d39e4c 100644
--- a/invokeai/frontend/webv2/src/workbench/layerPanelState.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/layerPanelState.test.ts
@@ -17,7 +17,6 @@ import {
isSameLayerPanelState,
reconcileLayerPanelStates,
selectLayerInPanel,
- setLayerPanelDensity,
setLayerPanelFilter,
setLayerPanelFocus,
toggleLayerStackCollapsed,
@@ -231,7 +230,7 @@ describe('revealing an external primary', () => {
});
});
-describe('focus, density and filter', () => {
+describe('focus and filter', () => {
beforeEach(() => clearLayerPanelStates());
it('keeps a roving focus that follows the primary until a row is focused explicitly', () => {
@@ -250,13 +249,11 @@ describe('focus, density and filter', () => {
expect(reconcileLayerPanelState(readLayerPanelState('p1', 'a'), 'p1', index, 'a').focusId).toBe('b');
});
- it('carries density and filter across primary changes and clears them on a project switch', () => {
- setLayerPanelDensity('p1', 'a', 'compact');
+ it('carries the filter across primary changes and clears it on a project switch', () => {
setLayerPanelFilter('p1', 'a', 'sky');
- expect(readLayerPanelState('p1', 'b')).toMatchObject({ density: 'compact', filter: 'sky', primaryId: 'b' });
+ expect(readLayerPanelState('p1', 'b')).toMatchObject({ filter: 'sky', primaryId: 'b' });
const index = indexStacks(stacksFrom([layerContract('x')]));
expect(reconcileLayerPanelState(readLayerPanelState('p1', 'b'), 'p2', index, 'x')).toMatchObject({
- density: 'comfortable',
filter: '',
});
});
diff --git a/invokeai/frontend/webv2/src/workbench/layerPanelState.ts b/invokeai/frontend/webv2/src/workbench/layerPanelState.ts
index 53ad9cbfc6..99317b6e74 100644
--- a/invokeai/frontend/webv2/src/workbench/layerPanelState.ts
+++ b/invokeai/frontend/webv2/src/workbench/layerPanelState.ts
@@ -9,7 +9,6 @@ import { getDocumentIndex } from '@workbench/canvas-engine/api';
* history. The primary selection stays `document.selectedLayerId`; `primaryId` mirrors the value
* this state was built against so an external primary change collapses stale secondaries.
*/
-export type LayerPanelDensity = 'compact' | 'comfortable' | 'large';
export interface LayerPanelState {
readonly projectId: string;
@@ -21,17 +20,15 @@ export interface LayerPanelState {
readonly expandedGroupIds: readonly string[];
/** The row that holds keyboard focus (roving tabindex); falls back to the primary. */
readonly focusId: string | null;
- readonly density: LayerPanelDensity;
/** A name filter; empty shows everything. */
readonly filter: string;
}
/** Panel preferences that survive a primary change and a project switch. */
-type LayerPanelCarry = Pick<LayerPanelState, 'collapsedStacks' | 'expandedGroupIds' | 'density' | 'filter'>;
+type LayerPanelCarry = Pick<LayerPanelState, 'collapsedStacks' | 'expandedGroupIds' | 'filter'>;
const DEFAULT_CARRY: LayerPanelCarry = {
collapsedStacks: [],
- density: 'comfortable',
expandedGroupIds: [],
filter: '',
};
@@ -70,7 +67,6 @@ export const createLayerPanelState = (
const carryOf = (state: LayerPanelState): LayerPanelCarry => ({
collapsedStacks: state.collapsedStacks,
- density: state.density,
expandedGroupIds: state.expandedGroupIds,
filter: state.filter,
});
@@ -83,7 +79,6 @@ export const isSameLayerPanelState = (left: LayerPanelState, right: LayerPanelSt
left.primaryId === right.primaryId &&
left.anchorId === right.anchorId &&
left.focusId === right.focusId &&
- left.density === right.density &&
left.filter === right.filter &&
sameIds(left.selectedIds, right.selectedIds) &&
sameIds(left.collapsedStacks, right.collapsedStacks) &&
@@ -159,13 +154,6 @@ export const setLayerPanelFocus = (projectId: string, primaryId: string | null,
}
};
-export const setLayerPanelDensity = (projectId: string, primaryId: string | null, density: LayerPanelDensity): void => {
- const current = readLayerPanelState(projectId, primaryId);
- if (current.density !== density) {
- write({ ...current, density });
- }
-};
-
export const setLayerPanelFilter = (projectId: string, primaryId: string | null, filter: string): void => {
const current = readLayerPanelState(projectId, primaryId);
if (current.filter !== filter) {
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/DenoisingStrengthWave.test.ts b/invokeai/frontend/webv2/src/workbench/widgets/canvas/DenoisingStrengthWave.test.ts
similarity index 100%
rename from invokeai/frontend/webv2/src/workbench/widgets/layers/DenoisingStrengthWave.test.ts
rename to invokeai/frontend/webv2/src/workbench/widgets/canvas/DenoisingStrengthWave.test.ts
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/DenoisingStrengthWave.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/DenoisingStrengthWave.tsx
similarity index 100%
rename from invokeai/frontend/webv2/src/workbench/widgets/layers/DenoisingStrengthWave.tsx
rename to invokeai/frontend/webv2/src/workbench/widgets/canvas/DenoisingStrengthWave.tsx
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/GenerateCanvasCompositingSection.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/GenerateCanvasCompositingSection.tsx
index 19b7cee346..08c237a085 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/GenerateCanvasCompositingSection.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/GenerateCanvasCompositingSection.tsx
@@ -1,9 +1,9 @@
/**
* Canvas compositing settings for the generate widget.
*
- * Denoising strength USED to live here; it moved to the Properties pane's
- * Generation section (`widgets/layers/panes/LayerSection.tsx`). This section
- * holds the rest of the legacy canvas compositing controls — infill method,
+ * One of the Generate form's canvas-only sections (`GenerateCanvasSections`),
+ * alongside the denoising strength. This section
+ * holds the legacy canvas compositing controls — infill method,
* coherence pass mode / edge size / min denoise, and mask blur — persisted
* per-project in the canvas widget's own `state.values` (same store as
* `denoisingStrength`), read back by `prepareCanvasInvocation` and threaded into
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/GenerateCanvasSections.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/GenerateCanvasSections.tsx
new file mode 100644
index 0000000000..e10e69aca1
--- /dev/null
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/GenerateCanvasSections.tsx
@@ -0,0 +1,10 @@
+import { GenerateCanvasCompositingSection } from './GenerateCanvasCompositingSection';
+import { GenerateDenoisingStrength } from './GenerateDenoisingStrength';
+
+/** The Generate form's canvas-only sections: denoising strength, then compositing. */
+export const GenerateCanvasSections = () => (
+ <>
+ <GenerateDenoisingStrength />
+ <GenerateCanvasCompositingSection />
+ </>
+);
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/GenerateDenoisingStrength.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/GenerateDenoisingStrength.tsx
new file mode 100644
index 0000000000..83bc11f3a0
--- /dev/null
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/GenerateDenoisingStrength.tsx
@@ -0,0 +1,128 @@
+import type { NumberInput as ChakraNumberInput, SliderValueChangeDetails } from '@chakra-ui/react';
+
+import { Badge, Flex, NumberInput } from '@chakra-ui/react';
+import { GenerationSettingsSection } from '@features/generation/components';
+import { useDebouncedDraftValue, useRegisterGenerateDraftFlusher } from '@features/generation/react';
+import { Slider } from '@platform/ui';
+import {
+ CANVAS_DENOISING_STRENGTH_KEY,
+ clampCanvasDenoisingStrength,
+ MAX_CANVAS_DENOISING_STRENGTH,
+ MIN_CANVAS_DENOISING_STRENGTH,
+ readCanvasDenoisingStrength,
+} from '@workbench/widgets/canvas/invoke/canvasStrength';
+import { getProjectWidgetValues } from '@workbench/widgetState';
+import { useActiveProjectSelector, useWorkbenchCommands } from '@workbench/WorkbenchContext';
+import { useCallback, useMemo } from 'react';
+import { useTranslation } from 'react-i18next';
+
+import { DenoisingStrengthWave } from './DenoisingStrengthWave';
+
+const STRENGTH_DEBOUNCE_MS = 250;
+
+const formatStrengthPercent = (value: number): string => `${Math.round(value * 100)}%`;
+
+const selectCanvasStrength = (project: Parameters<typeof getProjectWidgetValues>[0]): number =>
+ readCanvasDenoisingStrength(getProjectWidgetValues(project, 'canvas'));
+
+/**
+ * The canvas denoising strength as its own Generate-form section: the one
+ * img2img knob, persisted in the canvas widget's values and flushed with the
+ * form's other drafts before an invocation.
+ */
+export const GenerateDenoisingStrength = () => {
+ const { t } = useTranslation();
+ const { widgets } = useWorkbenchCommands();
+ const projectId = useActiveProjectSelector((project) => project.id);
+ const strength = useActiveProjectSelector(selectCanvasStrength);
+
+ const commitStrength = useCallback(
+ (value: number) => {
+ widgets.patchValues('canvas', { [CANVAS_DENOISING_STRENGTH_KEY]: clampCanvasDenoisingStrength(value) });
+ },
+ [widgets]
+ );
+
+ const {
+ draftValue: draftStrength,
+ flushDraftValue,
+ setDraftValue: setStrength,
+ } = useDebouncedDraftValue({
+ delayMs: STRENGTH_DEBOUNCE_MS,
+ onCommit: commitStrength,
+ resetKey: projectId,
+ value: strength,
+ });
+
+ useRegisterGenerateDraftFlusher(flushDraftValue);
+
+ const strengthAriaLabel = useMemo(() => [t('widgets.generate.denoisingStrength')], [t]);
+ const strengthSliderValue = useMemo(() => [draftStrength], [draftStrength]);
+ const strengthNumberValue = useMemo(() => draftStrength.toFixed(2), [draftStrength]);
+ const badges = useMemo(
+ () => (
+ <>
+ <Badge size="xs">{formatStrengthPercent(draftStrength)}</Badge>
+ <DenoisingStrengthWave value={draftStrength} />
+ </>
+ ),
+ [draftStrength]
+ );
+
+ const onSliderChange = useCallback(
+ ({ value }: SliderValueChangeDetails) => {
+ const next = value[0];
+ if (next !== undefined && Number.isFinite(next)) {
+ setStrength(next);
+ }
+ },
+ [setStrength]
+ );
+
+ const onNumberChange = useCallback(
+ ({ valueAsNumber }: ChakraNumberInput.ValueChangeDetails) => {
+ if (Number.isFinite(valueAsNumber)) {
+ setStrength(valueAsNumber);
+ }
+ },
+ [setStrength]
+ );
+
+ return (
+ <GenerationSettingsSection
+ badges={badges}
+ defaultOpen
+ label={t('widgets.generate.denoisingStrength')}
+ sectionId="canvas-denoising"
+ >
+ <Flex align="center" direction="row" gap="2" p="2">
+ <Slider
+ aria-label={strengthAriaLabel}
+ flex="1"
+ formatValue={formatStrengthPercent}
+ max={MAX_CANVAS_DENOISING_STRENGTH}
+ min={MIN_CANVAS_DENOISING_STRENGTH}
+ minW="0"
+ ms="2"
+ size="sm"
+ step={0.01}
+ value={strengthSliderValue}
+ withThumbTooltip
+ onValueChange={onSliderChange}
+ />
+ <NumberInput.Root
+ max={MAX_CANVAS_DENOISING_STRENGTH}
+ min={MIN_CANVAS_DENOISING_STRENGTH}
+ size="xs"
+ step={0.05}
+ value={strengthNumberValue}
+ w="20"
+ onValueChange={onNumberChange}
+ >
+ <NumberInput.Control />
+ <NumberInput.Input aria-label={t('widgets.generate.denoisingStrength')} />
+ </NumberInput.Root>
+ </Flex>
+ </GenerationSettingsSection>
+ );
+};
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerRow.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerRow.tsx
index 7ecf642f03..ff1ba68ed1 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerRow.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerRow.tsx
@@ -1,5 +1,4 @@
import type { CanvasLayerContract, SemanticNode } from '@workbench/canvas-engine/api';
-import type { LayerPanelDensity } from '@workbench/layerPanelState';
import type { FocusEvent, KeyboardEvent, MouseEvent } from 'react';
import { Badge, Box, HStack, Icon, Input, Stack, Text } from '@chakra-ui/react';
@@ -52,15 +51,13 @@ const VISIBILITY_DOT_UNCHECKED = { ...VISIBILITY_DOT_BASE, bg: 'transparent', bo
const VISIBILITY_DOT_CHECKED_HOVER = { _before: { bg: 'accent.emphasized', borderColor: 'accent.emphasized' } };
const VISIBILITY_DOT_UNCHECKED_HOVER = { _before: { borderColor: 'fg.muted' } };
-const THUMBNAIL_SIZE: Record<LayerPanelDensity, string> = { comfortable: '8', compact: '5', large: '11' };
-const NAME_SIZE: Record<LayerPanelDensity, string> = { comfortable: '2xs', compact: '2xs', large: 'xs' };
+const THUMBNAIL_SIZE = '8';
/** How a row takes part in the current drag. */
export type LayerRowDragState = 'source' | 'travelling' | null;
interface LayerRowProps {
commands: LayerRowCommands;
- density: LayerPanelDensity;
drag: LayerRowDragState;
/** Drag reordering is off: the editing lock or degraded mode. */
dragDisabled: boolean;
@@ -84,7 +81,6 @@ const stopPropagation = (event: { stopPropagation: () => void }): void => event.
*/
const LayerRowComponent = ({
commands,
- density,
drag,
dragDisabled,
editingLocked,
@@ -343,7 +339,7 @@ const LayerRowComponent = ({
bg="bg.muted"
borderColor="border.subtle"
borderWidth="1px"
- boxSize={THUMBNAIL_SIZE[density]}
+ boxSize={THUMBNAIL_SIZE}
color="fg.muted"
display="flex"
flexShrink={0}
@@ -353,7 +349,7 @@ const LayerRowComponent = ({
<Icon as={group ? (row.expanded ? FolderOpenIcon : FolderIcon) : ImageIcon} boxSize="4" />
</Box>
) : (
- <Box boxSize={THUMBNAIL_SIZE[density]} flexShrink={0}>
+ <Box boxSize={THUMBNAIL_SIZE} flexShrink={0}>
<LayerThumbnail engine={engine} layer={layer!} />
</Box>
)}
@@ -372,29 +368,27 @@ const LayerRowComponent = ({
) : (
<MiddleTruncate
color={vm.contributionEnabled ? undefined : 'fg.muted'}
- fontSize={NAME_SIZE[density]}
+ fontSize="2xs"
fontWeight="700"
text={node.name}
/>
)}
- {density !== 'compact' ? (
- <HStack gap="1" minW="0">
- {group ? (
- <Text color="fg.muted" fontSize="2xs">
- {vm.leafCount === 0
- ? t('widgets.layers.groupEmpty')
- : t('widgets.layers.groupSummary', { count: vm.leafCount })}
+ <HStack gap="1" minW="0">
+ {group ? (
+ <Text color="fg.muted" fontSize="2xs">
+ {vm.leafCount === 0
+ ? t('widgets.layers.groupEmpty')
+ : t('widgets.layers.groupSummary', { count: vm.leafCount })}
+ </Text>
+ ) : (
+ <>
+ <Text color="fg.muted" fontSize="2xs" minW="0" truncate>
+ {layerRowSummary(layer!, t)}
</Text>
- ) : (
- <>
- <Text color="fg.muted" fontSize="2xs" minW="0" truncate>
- {layerRowSummary(layer!, t)}
- </Text>
- <ControlLayerWarningIcon contributing={vm.contributionEnabled} layer={layer!} />
- </>
- )}
- </HStack>
- ) : null}
+ <ControlLayerWarningIcon contributing={vm.contributionEnabled} layer={layer!} />
+ </>
+ )}
+ </HStack>
</Stack>
{/* One control cluster on the same rhythm as the stack header; slots a row cannot use are held open. */}
<HStack flexShrink="0" gap="0.5" onClick={stopPropagation} onMouseDown={keepRowFocus}>
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersHeaderActions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersHeaderActions.tsx
index f0241394f3..b480781a5c 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersHeaderActions.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersHeaderActions.tsx
@@ -1,4 +1,5 @@
import type { LucideIcon } from 'lucide-react';
+import type { ComponentProps } from 'react';
import { HStack, Icon, Menu, Portal, Text } from '@chakra-ui/react';
import { IconButton, MenuContent } from '@platform/ui';
@@ -11,15 +12,18 @@ import {
SlidersHorizontalIcon,
SquareDashedBottomIcon,
} from 'lucide-react';
-import { Fragment, useCallback } from 'react';
+import { Fragment, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import type { AddLayerItemId } from './addLayerMenu';
+import type { LayerSurfaceAnchor } from './layerRowCommands';
import { ADD_LAYER_MENU, isAddLayerItemAvailable } from './addLayerMenu';
import { useAddLayer } from './useAddLayer';
import { useSelectedModelBase } from './useSelectedModelBase';
+type MenuPositioning = ComponentProps<typeof Menu.Root>['positioning'];
+
const MENU_POSITIONING = { placement: 'bottom-end' } as const;
/** Icon per add-layer item (kept in the view; the menu structure itself is pure data). */
@@ -33,18 +37,54 @@ const ADD_LAYER_ICONS: Record<AddLayerItemId, LucideIcon> = {
};
/**
- * Layers-panel header: the add-layer menu, split into legacy's two labelled groups
- * — "Regional" (inpaint mask / regional guidance / regional guidance + reference
- * image) and "Layers" (control / raster). The per-item creation is delegated to the
- * shared `useAddLayer` hook so this menu and each group header's "New" button agree.
+ * The add-layer menu's content: legacy's two labelled groups — "Regional"
+ * (inpaint mask / regional guidance / regional guidance + reference image) and
+ * "Layers" (control / raster). Shared by the strip's "+" trigger and the empty
+ * area's context menu; the per-item creation is delegated to `useAddLayer` so
+ * every entry point agrees.
*/
-export const LayersHeaderActions = () => {
+const AddLayerMenuItems = () => {
const { t } = useTranslation();
const addLayer = useAddLayer();
const base = useSelectedModelBase();
const handleSelect = useCallback((id: AddLayerItemId) => () => addLayer(id), [addLayer]);
+ return (
+ <MenuContent minW="12rem">
+ {ADD_LAYER_MENU.map((group, groupIndex) => (
+ <Fragment key={group.titleKey}>
+ {groupIndex > 0 ? <Menu.Separator borderColor="border.subtle" /> : null}
+ <Menu.ItemGroup>
+ <Menu.ItemGroupLabel color="fg.subtle" fontSize="2xs" textTransform="uppercase">
+ {t(group.titleKey)}
+ </Menu.ItemGroupLabel>
+ {group.items
+ .filter((item) => isAddLayerItemAvailable(item.id, base))
+ .map((item) => {
+ const ItemIcon = ADD_LAYER_ICONS[item.id];
+ return (
+ <Menu.Item key={item.id} value={item.id} onSelect={handleSelect(item.id)}>
+ <HStack gap="2" minW="0" w="full">
+ <Icon as={ItemIcon} boxSize="3.5" color="fg.subtle" flexShrink={0} />
+ <Text flex="1" fontSize="xs">
+ {t(item.labelKey)}
+ </Text>
+ </HStack>
+ </Menu.Item>
+ );
+ })}
+ </Menu.ItemGroup>
+ </Fragment>
+ ))}
+ </MenuContent>
+ );
+};
+
+/** The tree strip's "+": the add-layer menu behind a trigger button. */
+export const LayersHeaderActions = () => {
+ const { t } = useTranslation();
+
return (
<Menu.Root positioning={MENU_POSITIONING}>
<Menu.Trigger asChild>
@@ -54,33 +94,33 @@ export const LayersHeaderActions = () => {
</Menu.Trigger>
<Portal>
<Menu.Positioner>
- <MenuContent minW="12rem">
- {ADD_LAYER_MENU.map((group, groupIndex) => (
- <Fragment key={group.titleKey}>
- {groupIndex > 0 ? <Menu.Separator borderColor="border.subtle" /> : null}
- <Menu.ItemGroup>
- <Menu.ItemGroupLabel color="fg.subtle" fontSize="2xs" textTransform="uppercase">
- {t(group.titleKey)}
- </Menu.ItemGroupLabel>
- {group.items
- .filter((item) => isAddLayerItemAvailable(item.id, base))
- .map((item) => {
- const ItemIcon = ADD_LAYER_ICONS[item.id];
- return (
- <Menu.Item key={item.id} value={item.id} onSelect={handleSelect(item.id)}>
- <HStack gap="2" minW="0" w="full">
- <Icon as={ItemIcon} boxSize="3.5" color="fg.subtle" flexShrink={0} />
- <Text flex="1" fontSize="xs">
- {t(item.labelKey)}
- </Text>
- </HStack>
- </Menu.Item>
- );
- })}
- </Menu.ItemGroup>
- </Fragment>
- ))}
- </MenuContent>
+ <AddLayerMenuItems />
+ </Menu.Positioner>
+ </Portal>
+ </Menu.Root>
+ );
+};
+
+/** The same add-layer menu opened at a right-click in the tree's empty space. */
+export const AddLayerContextMenu = ({ anchor, onClose }: { anchor: LayerSurfaceAnchor; onClose: () => void }) => {
+ const positioning = useMemo<MenuPositioning>(
+ () => ({ getAnchorRect: () => anchor, placement: 'bottom-start' }),
+ [anchor]
+ );
+ const handleOpenChange = useCallback(
+ (details: { open: boolean }) => {
+ if (!details.open) {
+ onClose();
+ }
+ },
+ [onClose]
+ );
+
+ return (
+ <Menu.Root lazyMount open positioning={positioning} unmountOnExit onOpenChange={handleOpenChange}>
+ <Portal>
+ <Menu.Positioner>
+ <AddLayerMenuItems />
</Menu.Positioner>
</Portal>
</Menu.Root>
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersPanelFooter.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersPanelFooter.tsx
index f449ddcb27..b97a936094 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersPanelFooter.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersPanelFooter.tsx
@@ -1,42 +1,26 @@
-import type { LayerPanelDensity } from '@workbench/layerPanelState';
-
-import { HStack, Input, SegmentGroup, Text } from '@chakra-ui/react';
+import { HStack, Input, Text } from '@chakra-ui/react';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
-const DENSITIES: readonly LayerPanelDensity[] = ['compact', 'comfortable', 'large'];
-
interface LayersPanelFooterProps {
degraded: boolean;
- density: LayerPanelDensity;
filter: string;
groupCount: number;
leafCount: number;
selectedCount: number;
- onDensityChange: (density: LayerPanelDensity) => void;
onFilterChange: (filter: string) => void;
}
-/** The stable footer: document summary, name filter, and density; nothing here appears or disappears. */
+/** The stable footer: document summary and name filter; nothing here appears or disappears. */
const LayersPanelFooterComponent = ({
degraded,
- density,
filter,
groupCount,
leafCount,
selectedCount,
- onDensityChange,
onFilterChange,
}: LayersPanelFooterProps) => {
const { t } = useTranslation();
- const handleDensity = useCallback(
- (details: { value: string | null }) => {
- if (details.value && (DENSITIES as readonly string[]).includes(details.value)) {
- onDensityChange(details.value as LayerPanelDensity);
- }
- },
- [onDensityChange]
- );
const handleFilter = useCallback(
(event: { target: { value: string } }) => onFilterChange(event.target.value),
[onFilterChange]
@@ -57,20 +41,6 @@ const LayersPanelFooterComponent = ({
? t('widgets.layers.footer.degraded')
: `${t('widgets.layers.footer.layers', { count: leafCount })} · ${t('widgets.layers.footer.groups', { count: groupCount })} · ${t('widgets.layers.footer.selected', { count: selectedCount })}`}
</Text>
- <SegmentGroup.Root
- aria-label={t('widgets.layers.footer.density.label')}
- size="xs"
- value={density}
- onValueChange={handleDensity}
- >
- <SegmentGroup.Indicator />
- {DENSITIES.map((value) => (
- <SegmentGroup.Item key={value} value={value}>
- <SegmentGroup.ItemText fontSize="2xs">{t(`widgets.layers.footer.density.${value}`)}</SegmentGroup.ItemText>
- <SegmentGroup.ItemHiddenInput />
- </SegmentGroup.Item>
- ))}
- </SegmentGroup.Root>
</HStack>
);
};
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersTree.browser.test.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersTree.browser.test.tsx
index 70e0ca9918..c2465375a6 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersTree.browser.test.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersTree.browser.test.tsx
@@ -268,14 +268,14 @@ afterEach(async () => {
describe('LayersTree virtualization', () => {
it('mounts only the rows near the viewport of a 2,000-layer document and keeps the tree height exact', async () => {
await renderTree(manyLayers(2000));
- const visible = Math.ceil(320 / LAYER_ROW_HEIGHT_PX.comfortable);
+ const visible = Math.ceil(320 / LAYER_ROW_HEIGHT_PX);
expect(treeitems().length).toBeLessThanOrEqual(visible + 12 + 2);
expect(treeitems().length).toBeGreaterThanOrEqual(visible);
// Thumbnails are asked for once per mounted leaf and never again for the rest of the list.
expect(thumbnailRequests.mock.calls.length).toBeLessThanOrEqual(treeitems().length);
const tree = host!.querySelector<HTMLElement>('[role="tree"]')!;
expect(tree.getAttribute('aria-multiselectable')).toBe('true');
- expect(getComputedStyle(tree).height).toBe(`${2000 * LAYER_ROW_HEIGHT_PX.comfortable + 28}px`);
+ expect(getComputedStyle(tree).height).toBe(`${2000 * LAYER_ROW_HEIGHT_PX + 28}px`);
});
it('commits only the rows a selection change touches, and nothing on scroll', async () => {
@@ -448,7 +448,7 @@ describe('LayersTree selection, surfaces and structure', () => {
expect(scroller.scrollTop).toBe(0);
await act(() => dispatchExternal({ id: 'l1500', type: 'setCanvasSelectedLayer' }));
await settle();
- expect(scroller.scrollTop).toBeGreaterThan(1000 * LAYER_ROW_HEIGHT_PX.comfortable);
+ expect(scroller.scrollTop).toBeGreaterThan(1000 * LAYER_ROW_HEIGHT_PX);
expect(treeitem('Layer 1500')).not.toBeNull();
// Later list changes leave the scroll position alone.
@@ -459,7 +459,7 @@ describe('LayersTree selection, surfaces and structure', () => {
expect(scroller.scrollTop).toBe(0);
// A panel selection reveals nothing, but a later external change back to it does.
- scroller.scrollTop = 1500 * LAYER_ROW_HEIGHT_PX.comfortable;
+ scroller.scrollTop = 1500 * LAYER_ROW_HEIGHT_PX;
await settle();
await act(() => userEvent.click(treeitem('Layer 1501')));
const outside = document.createElement('input');
@@ -471,7 +471,7 @@ describe('LayersTree selection, surfaces and structure', () => {
scroller.scrollTop = 0;
await act(() => dispatchExternal({ id: 'l1501', type: 'setCanvasSelectedLayer' }));
await settle();
- expect(scroller.scrollTop).toBeGreaterThan(1000 * LAYER_ROW_HEIGHT_PX.comfortable);
+ expect(scroller.scrollTop).toBeGreaterThan(1000 * LAYER_ROW_HEIGHT_PX);
outside.remove();
// A primary inside a collapsed stack opens the stack and lands in view.
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersTree.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersTree.tsx
index 2f0411d86a..4241cf57b2 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersTree.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersTree.tsx
@@ -105,7 +105,7 @@ const VirtualSlot = ({ children, size, start }: { children: ReactNode; size: num
/**
* The virtualized, keyboard-first layer tree: one scroll container, one drag context, one menu
- * host, fixed row heights per density, and a single roving tab stop over stack headers and rows.
+ * host, fixed row heights, and a single roving tab stop over stack headers and rows.
* Rows receive a view model and a command handle; every subscription and commit lives here.
*/
export const LayersTree = ({
@@ -142,7 +142,7 @@ export const LayersTree = ({
// The primary the panel itself selected last; any other primary change came from outside and is revealed.
const panelSelectedPrimary = useRef<string | null>(null);
const revealedPrimary = useRef<string | null>(null);
- const { density, selectedIds, primaryId } = panel;
+ const { selectedIds, primaryId } = panel;
const requestedId = propertiesRequest?.layerId ?? null;
const requestedStack = useMemo(
@@ -159,10 +159,10 @@ export const LayersTree = ({
const offsets = useMemo(() => {
const starts = new Float64Array(panelRows.length + 1);
panelRows.forEach((row, index) => {
- starts[index + 1] = starts[index]! + panelRowHeight(row, density);
+ starts[index + 1] = starts[index]! + panelRowHeight(row);
});
return starts;
- }, [density, panelRows]);
+ }, [panelRows]);
const headerIndexes = useMemo(
() => panelRows.flatMap((row, index) => (row.kind === 'header' ? [index] : [])),
[panelRows]
@@ -196,7 +196,7 @@ export const LayersTree = ({
const getScrollElement = useCallback(() => scrollRef.current, []);
// Created once the scroll element exists; handlers reach it through the ref.
const autoScroller = useRef<LayerTreeAutoScroller | null>(null);
- const estimateSize = useCallback((index: number) => panelRowHeight(panelRows[index]!, density), [density, panelRows]);
+ const estimateSize = useCallback((index: number) => panelRowHeight(panelRows[index]!), [panelRows]);
const getItemKey = useCallback((index: number) => panelRows[index]?.key ?? index, [panelRows]);
const virtualizer = useVirtualizer({
count: panelRows.length,
@@ -209,13 +209,13 @@ export const LayersTree = ({
scrollPaddingStart: LAYER_HEADER_HEIGHT_PX,
});
const virtualItems = virtualizer.virtualItems;
- // Fixed sizes change only with the row list or the density; re-measure then, never per snapshot.
+ // Fixed sizes change only with the row list; re-measure then, never per snapshot.
const measureVirtualizer = useEffectEvent(() => {
virtualizer.measure();
});
useLayoutEffect(() => {
measureVirtualizer();
- }, [density, panelRows]);
+ }, [panelRows]);
const virtualizerRef = useRef(virtualizer);
useLayoutEffect(() => {
virtualizerRef.current = virtualizer;
@@ -806,7 +806,6 @@ export const LayersTree = ({
{panelRow.kind === 'node' ? (
<LayerRow
commands={commands}
- density={density}
drag={dragStateOf(panelRow.row.id)}
dragDisabled={dragDisabled}
editingLocked={editingLocked}
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersWidgetView.tsx
index 2249157764..585c81d39f 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersWidgetView.tsx
@@ -1,23 +1,24 @@
-import type { LayerPanelDensity } from '@workbench/layerPanelState';
import type { WidgetViewProps } from '@workbench/widgetContracts';
import { Flex, Icon, Stack, Text } from '@chakra-ui/react';
import { getDocumentIndex } from '@workbench/canvas-engine/api';
-import { setLayerPanelDensity, setLayerPanelFilter, useLayerPanelState } from '@workbench/layerPanelState';
+import { setLayerPanelFilter, useLayerPanelState } from '@workbench/layerPanelState';
import { useCanvasProjectMutationDispatch } from '@workbench/useCanvasProjectMutationDispatch';
import { useCanvasDocumentEditingLocked } from '@workbench/widgets/canvas/engineStoreHooks';
import { useCanvasEngine } from '@workbench/widgets/canvas/useCanvasEngine';
import { useActiveProjectId, useActiveProjectSelector } from '@workbench/WorkbenchContext';
import { LayersIcon } from 'lucide-react';
-import { useCallback, useEffect, useMemo } from 'react';
+import { useCallback, useEffect, useMemo, useState, type MouseEvent } from 'react';
import { useTranslation } from 'react-i18next';
+import type { LayerSurfaceAnchor } from './layerRowCommands';
import type { LayerColorPaneLayout, LayerEditorPaneLayout, LayerTreeTabId } from './panes/editorPaneLayout';
import { LayerMultiSelectionActions } from './LayerMultiSelectionActions';
import { LAYER_PANEL_DEGRADE_THRESHOLD } from './layerPanelRows';
import { useCurrentLayerPropertiesRequest } from './layerPropertiesRequestStore';
-import { LayersHeaderActions } from './LayersHeaderActions';
+import { anchorFromPoint } from './layerRowCommands';
+import { AddLayerContextMenu, LayersHeaderActions } from './LayersHeaderActions';
import { LayersPanelFooter } from './LayersPanelFooter';
import { LayersTree } from './LayersTree';
import { buildLayerStackRows } from './layerTreeRows';
@@ -65,10 +66,6 @@ export const LayersWidgetView = ({ runtime }: WidgetViewProps) => {
[stacks]
);
- const handleDensity = useCallback(
- (density: LayerPanelDensity) => setLayerPanelDensity(projectId, selectedLayerId, density),
- [projectId, selectedLayerId]
- );
const handleFilter = useCallback(
(filter: string) => setLayerPanelFilter(projectId, selectedLayerId, filter),
[projectId, selectedLayerId]
@@ -108,6 +105,17 @@ export const LayersWidgetView = ({ runtime }: WidgetViewProps) => {
},
[dispatch, paneLayout, runtime.state]
);
+ // Right-click on empty tree space offers the add-layer menu; rows and stack
+ // headers preventDefault their own menus first, so they always win.
+ const [addMenuAnchor, setAddMenuAnchor] = useState<LayerSurfaceAnchor | null>(null);
+ const handleEmptyAreaContextMenu = useCallback((event: MouseEvent<HTMLElement>) => {
+ if (event.defaultPrevented || (event.target as HTMLElement).closest('[role="treeitem"]')) {
+ return;
+ }
+ event.preventDefault();
+ setAddMenuAnchor(anchorFromPoint(event.clientX, event.clientY));
+ }, []);
+ const closeAddMenu = useCallback(() => setAddMenuAnchor(null), []);
return (
<Stack gap="1" h="full" minH="0">
@@ -152,6 +160,7 @@ export const LayersWidgetView = ({ runtime }: WidgetViewProps) => {
mx="2"
p="4"
rounded="md"
+ onContextMenu={handleEmptyAreaContextMenu}
>
<Icon as={LayersIcon} boxSize="6" />
<Text fontSize="2xs" textAlign="center">
@@ -159,7 +168,7 @@ export const LayersWidgetView = ({ runtime }: WidgetViewProps) => {
</Text>
</Flex>
) : (
- <Flex direction="column" flex="1" minH="8rem">
+ <Flex direction="column" flex="1" minH="8rem" onContextMenu={handleEmptyAreaContextMenu}>
<LayersTree
degraded={degraded}
dispatch={dispatch}
@@ -175,14 +184,13 @@ export const LayersWidgetView = ({ runtime }: WidgetViewProps) => {
)}
<LayersPanelFooter
degraded={degraded}
- density={panel.density}
filter={panel.filter}
groupCount={counts.groups}
leafCount={counts.leaves}
selectedCount={panel.selectedIds.length}
- onDensityChange={handleDensity}
onFilterChange={handleFilter}
/>
+ {addMenuAnchor ? <AddLayerContextMenu anchor={addMenuAnchor} onClose={closeAddMenu} /> : null}
</>
)}
</Flex>
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/layerPanelRows.ts b/invokeai/frontend/webv2/src/workbench/widgets/layers/layerPanelRows.ts
index ff7190640b..849cf5a2ee 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/layerPanelRows.ts
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/layerPanelRows.ts
@@ -1,12 +1,11 @@
import type { LayerStackKind } from '@workbench/canvas-engine/api';
-import type { LayerPanelDensity } from '@workbench/layerPanelState';
import { LAYER_STACKS_TOP_FIRST } from '@workbench/canvas-engine/api';
import type { LayerStackRows, LayerStackRowsByKind, LayerTreeRow } from './layerTreeRows';
-/** Fixed row heights per density: the virtualizer never measures. */
-export const LAYER_ROW_HEIGHT_PX: Record<LayerPanelDensity, number> = { comfortable: 40, compact: 28, large: 56 };
+/** Fixed row height: the virtualizer never measures. */
+export const LAYER_ROW_HEIGHT_PX = 40;
export const LAYER_HEADER_HEIGHT_PX = 28;
/** Horizontal offset per nesting level, in CSS pixels; the drag projection uses the same step. */
export const LAYER_TREE_INDENT_PX = 16;
@@ -63,8 +62,8 @@ export const flattenPanelRows = (
return rows;
};
-export const panelRowHeight = (row: PanelRow, density: LayerPanelDensity): number =>
- row.kind === 'header' ? LAYER_HEADER_HEIGHT_PX : LAYER_ROW_HEIGHT_PX[density];
+export const panelRowHeight = (row: PanelRow): number =>
+ row.kind === 'header' ? LAYER_HEADER_HEIGHT_PX : LAYER_ROW_HEIGHT_PX;
export type TreeNavigationKey = 'ArrowDown' | 'ArrowUp' | 'Home' | 'End' | 'ArrowLeft' | 'ArrowRight';
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/manifest.ts b/invokeai/frontend/webv2/src/workbench/widgets/layers/manifest.ts
index 307e8673a1..e7f58d7967 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/manifest.ts
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/manifest.ts
@@ -7,6 +7,8 @@ import { COLOR_PANE_DEFAULTS, LAYER_EDITOR_PANE_DEFAULTS } from './panes/editorP
export const layersWidgetManifest: WidgetManifest = {
allowMultiple: false,
allowedRegions: ['right'],
+ // The rail context menu still offers close/move; the panel body is the chrome.
+ chrome: { header: 'hidden' },
failurePolicy: { isolateRenderFailure: true, onRegistrationFailure: 'disable' },
icon: LayersIcon,
id: 'layers',
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/panes/LayerSection.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/panes/LayerSection.tsx
index 193c662471..0b76247c8b 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/panes/LayerSection.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/panes/LayerSection.tsx
@@ -1,8 +1,4 @@
-import type {
- NumberInput as ChakraNumberInput,
- SelectValueChangeDetails,
- SliderValueChangeDetails,
-} from '@chakra-ui/react';
+import type { NumberInput as ChakraNumberInput, SelectValueChangeDetails } from '@chakra-ui/react';
import type {
CanvasBlendMode,
CanvasDocumentContractV3,
@@ -12,28 +8,18 @@ import type {
import type { CanvasEngineHandle } from '@workbench/widgets/canvas/useCanvasEngine';
import { Box, createListCollection, Flex, HStack, NumberInput, Stack, Switch, Text } from '@chakra-ui/react';
-import { useDebouncedDraftValue, useRegisterGenerateDraftFlusher } from '@features/generation/react';
-import { ColorPicker, Field, Select, Slider } from '@platform/ui';
+import { ColorPicker, Field, Select } from '@platform/ui';
import { getDocumentLayer } from '@workbench/canvas-engine/api';
import { useCanvasDocumentEditingLocked } from '@workbench/widgets/canvas/engineStoreHooks';
-import {
- CANVAS_DENOISING_STRENGTH_KEY,
- clampCanvasDenoisingStrength,
- MAX_CANVAS_DENOISING_STRENGTH,
- MIN_CANVAS_DENOISING_STRENGTH,
- readCanvasDenoisingStrength,
-} from '@workbench/widgets/canvas/invoke/canvasStrength';
import { useCanvasEngine } from '@workbench/widgets/canvas/useCanvasEngine';
import { usePreparedCommit } from '@workbench/widgets/canvas/useStructuralCommit';
import { AdjustmentsPopover } from '@workbench/widgets/layers/AdjustmentsPopover';
import { ControlLayerSettings } from '@workbench/widgets/layers/ControlLayerSettings';
-import { DenoisingStrengthWave } from '@workbench/widgets/layers/DenoisingStrengthWave';
import { InpaintMaskSettings } from '@workbench/widgets/layers/InpaintMaskSettings';
import { applyStructuralPreview, CANVAS_BLEND_MODES } from '@workbench/widgets/layers/layerOps';
import { RasterLayerFilterSection } from '@workbench/widgets/layers/RasterLayerFilterSection';
import { RegionalGuidanceSettings } from '@workbench/widgets/layers/RegionalGuidanceSettings';
-import { getProjectWidgetValues } from '@workbench/widgetState';
-import { useActiveProjectSelector, useWorkbenchCommands } from '@workbench/WorkbenchContext';
+import { useActiveProjectSelector } from '@workbench/WorkbenchContext';
import { useCallback, useMemo, useRef } from 'react';
import { useTranslation } from 'react-i18next';
@@ -42,10 +28,8 @@ import { PropertiesSection } from './PropertiesSection';
type LayerSectionEngine = Pick<CanvasEngineHandle, 'document' | 'exports' | 'interaction' | 'layers' | 'projectId'>;
-const STRENGTH_DEBOUNCE_MS = 250;
const SELECT_POSITIONING = { placement: 'bottom-start', sameWidth: true } as const;
-const formatStrengthPercent = (value: number): string => `${Math.round(value * 100)}%`;
const clamp01 = (value: number): number => Math.min(1, Math.max(0, value));
/** A mask layer whose fill colour the header swatch edits (inpaint mask / region). */
@@ -65,11 +49,10 @@ export const isLayerEditingDisabled = (layer: CanvasLayerContract | null, editin
!layer || editingLocked;
/**
- * The Layer and Generation sections of the Properties pane: the selected
- * layer's blend mode, opacity, mask fill and type-specific settings (moved out
- * of the Layers header and its per-row popover), plus the document-wide
- * denoising strength. Every editor commits through the same document seams it
- * always did — this is the one implementation, reparented.
+ * The Layer section of the Properties pane: the selected layer's blend mode,
+ * opacity, mask fill and type-specific settings (moved out of the Layers
+ * header and its per-row popover). Every editor commits through the same
+ * document seams it always did — this is the one implementation, reparented.
*/
export const LayerSection = ({ disabled }: { disabled: boolean }) => {
const { t } = useTranslation();
@@ -79,28 +62,23 @@ export const LayerSection = ({ disabled }: { disabled: boolean }) => {
const editingLocked = useCanvasDocumentEditingLocked(engine);
return (
- <>
- <PropertiesSection
- disabled={disabled}
- subtitle={layer?.name ?? t('widgets.transform.noSelection')}
- title={t('widgets.properties.sections.layer')}
- >
- {layer ? (
- <Stack gap="2">
- <Flex align="center" gap="2">
- <BlendModeControl editingLocked={editingLocked} engine={engine} layer={layer} />
- <OpacityRow editingLocked={editingLocked} engine={engine} layer={layer} />
- </Flex>
- <LayerTypeSettings documentRevision={documentRevision} engine={engine} layer={layer} />
- </Stack>
- ) : (
- <GroupSelectedNotice />
- )}
- </PropertiesSection>
- <PropertiesSection disabled={disabled} title={t('widgets.properties.sections.generation')}>
- <DenoisingStrengthControl />
- </PropertiesSection>
- </>
+ <PropertiesSection
+ disabled={disabled}
+ subtitle={layer?.name ?? t('widgets.transform.noSelection')}
+ title={t('widgets.properties.sections.layer')}
+ >
+ {layer ? (
+ <Stack gap="2">
+ <Flex align="center" gap="2">
+ <BlendModeControl editingLocked={editingLocked} engine={engine} layer={layer} />
+ <OpacityRow editingLocked={editingLocked} engine={engine} layer={layer} />
+ </Flex>
+ <LayerTypeSettings documentRevision={documentRevision} engine={engine} layer={layer} />
+ </Stack>
+ ) : (
+ <GroupSelectedNotice />
+ )}
+ </PropertiesSection>
);
};
@@ -426,90 +404,3 @@ const MaskFillSwatch = ({
</Box>
);
};
-
-const selectCanvasStrength = (project: Parameters<typeof getProjectWidgetValues>[0]): number =>
- readCanvasDenoisingStrength(getProjectWidgetValues(project, 'canvas'));
-
-const DenoisingStrengthControl = () => {
- const { t } = useTranslation();
- const { widgets } = useWorkbenchCommands();
- const projectId = useActiveProjectSelector((project) => project.id);
- const strength = useActiveProjectSelector(selectCanvasStrength);
-
- const commitStrength = useCallback(
- (value: number) => {
- widgets.patchValues('canvas', { [CANVAS_DENOISING_STRENGTH_KEY]: clampCanvasDenoisingStrength(value) });
- },
- [widgets]
- );
-
- const {
- draftValue: draftStrength,
- flushDraftValue,
- setDraftValue: setStrength,
- } = useDebouncedDraftValue({
- delayMs: STRENGTH_DEBOUNCE_MS,
- onCommit: commitStrength,
- resetKey: projectId,
- value: strength,
- });
-
- useRegisterGenerateDraftFlusher(flushDraftValue);
-
- const strengthAriaLabel = useMemo(() => [t('widgets.layers.denoisingStrength')], [t]);
- const strengthSliderValue = useMemo(() => [draftStrength], [draftStrength]);
- const strengthNumberValue = useMemo(() => draftStrength.toFixed(2), [draftStrength]);
- const strengthWave = useMemo(() => <DenoisingStrengthWave value={draftStrength} />, [draftStrength]);
-
- const onSliderChange = useCallback(
- ({ value }: SliderValueChangeDetails) => {
- const next = value[0];
- if (next !== undefined && Number.isFinite(next)) {
- setStrength(next);
- }
- },
- [setStrength]
- );
-
- const onNumberChange = useCallback(
- ({ valueAsNumber }: ChakraNumberInput.ValueChangeDetails) => {
- if (Number.isFinite(valueAsNumber)) {
- setStrength(valueAsNumber);
- }
- },
- [setStrength]
- );
-
- return (
- <Field label={t('widgets.layers.denoisingStrength')} labelEnd={strengthWave} orientation="horizontal">
- <Flex direction="row" gap="2" align="center">
- <Slider
- aria-label={strengthAriaLabel}
- flex="1"
- formatValue={formatStrengthPercent}
- max={MAX_CANVAS_DENOISING_STRENGTH}
- min={MIN_CANVAS_DENOISING_STRENGTH}
- minW="0"
- size="sm"
- step={0.01}
- value={strengthSliderValue}
- withThumbTooltip
- onValueChange={onSliderChange}
- ms="2"
- />
- <NumberInput.Root
- max={MAX_CANVAS_DENOISING_STRENGTH}
- min={MIN_CANVAS_DENOISING_STRENGTH}
- size="xs"
- step={0.05}
- value={strengthNumberValue}
- w="20"
- onValueChange={onNumberChange}
- >
- <NumberInput.Control />
- <NumberInput.Input aria-label={t('widgets.layers.denoisingStrength')} />
- </NumberInput.Root>
- </Flex>
- </Field>
- );
-};