Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
feat(properties): filter operation form with categories, memory, and a pinned footer (U3)
Josh Corbettdbe8329b70f8
diff --git a/invokeai/frontend/webv2/performance/browser-baseline.json b/invokeai/frontend/webv2/performance/browser-baseline.jsonindex 738c92612a..978db999a8 100644--- a/invokeai/frontend/webv2/performance/browser-baseline.json+++ b/invokeai/frontend/webv2/performance/browser-baseline.json@@ -25,13 +25,13 @@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 117.59999999403954,+ "domContentLoadedMedianMs": 118.29999999701977,"id": "launchpad","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,"layoutSwitchMedianMs": 0,- "loadMedianMs": 117.69999998807907,- "longestTaskMaxMs": 72,+ "loadMedianMs": 118.5,+ "longestTaskMaxMs": 70,"owner": "app","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:launchpad",@@ -40,25 +40,25 @@"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 0,- "largestAssetRawBytes": 746376,- "otherRawBytes": 161666,+ "largestAssetRawBytes": 746400,+ "otherRawBytes": 161908,"requestCount": 38,- "scriptRawBytes": 1636198,+ "scriptRawBytes": 1636642,"scriptRequestCount": 34,- "totalRawBytes": 1823687+ "totalRawBytes": 1824373},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 0,- "largestAssetRawBytes": 753840,- "otherRawBytes": 163283,+ "largestAssetRawBytes": 753864,+ "otherRawBytes": 163528,"requestCount": 38,- "scriptRawBytes": 1652560,+ "scriptRawBytes": 1653009,"scriptRequestCount": 34,- "totalRawBytes": 1841924+ "totalRawBytes": 1842617},- "routeReadyMedianMs": 260.8999999910593,+ "routeReadyMedianMs": 262.6000000089407,"scriptSourceOwnerSet": "launchpad-static","stateProfile": "empty"},@@ -85,13 +85,13 @@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 112.5,+ "domContentLoadedMedianMs": 115.19999998807907,"id": "launchpad","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,"layoutSwitchMedianMs": 0,- "loadMedianMs": 112.6000000089407,- "longestTaskMaxMs": 68,+ "loadMedianMs": 115.29999999701977,+ "longestTaskMaxMs": 70,"owner": "app","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:launchpad",@@ -100,25 +100,25 @@"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 0,- "largestAssetRawBytes": 746376,- "otherRawBytes": 161666,+ "largestAssetRawBytes": 746400,+ "otherRawBytes": 161908,"requestCount": 38,- "scriptRawBytes": 1636198,+ "scriptRawBytes": 1636642,"scriptRequestCount": 34,- "totalRawBytes": 1823687+ "totalRawBytes": 1824373},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 0,- "largestAssetRawBytes": 753840,- "otherRawBytes": 163283,+ "largestAssetRawBytes": 753864,+ "otherRawBytes": 163528,"requestCount": 38,- "scriptRawBytes": 1652560,+ "scriptRawBytes": 1653009,"scriptRequestCount": 34,- "totalRawBytes": 1841924+ "totalRawBytes": 1842617},- "routeReadyMedianMs": 269,+ "routeReadyMedianMs": 278.69999998807907,"scriptSourceOwnerSet": "launchpad-static","stateProfile": "representative"},@@ -145,40 +145,40 @@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 114.90000000596046,+ "domContentLoadedMedianMs": 115,"id": "editor-minimal","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,"layoutSwitchMedianMs": 0,- "loadMedianMs": 114.90000000596046,- "longestTaskMaxMs": 93,+ "loadMedianMs": 115.09999999403954,+ "longestTaskMaxMs": 96,"owner": "workbench",- "projectSwitchMedianMs": 35.70000000298023,+ "projectSwitchMedianMs": 35.599999994039536,"readyMark": "invokeai:ready:widget:center:preview","remediationTicket": "deepen-widget-registry-loading","resourceBaseline": {"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 746376,- "otherRawBytes": 161666,+ "largestAssetRawBytes": 746400,+ "otherRawBytes": 161908,"requestCount": 115,- "scriptRawBytes": 3286480,+ "scriptRawBytes": 3287526,"scriptRequestCount": 110,- "totalRawBytes": 3630345+ "totalRawBytes": 3631633},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 157940,- "largestAssetRawBytes": 753840,- "otherRawBytes": 163283,+ "largestAssetRawBytes": 753864,+ "otherRawBytes": 163528,"requestCount": 115,- "scriptRawBytes": 3319345,+ "scriptRawBytes": 3320402,"scriptRequestCount": 110,- "totalRawBytes": 3666649+ "totalRawBytes": 3667950},- "routeReadyMedianMs": 659.9000000059605,+ "routeReadyMedianMs": 657.7999999970198,"scriptSourceOwnerSet": "editor-minimal-static","stateProfile": "empty"},@@ -205,40 +205,40 @@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 115.09999999403954,+ "domContentLoadedMedianMs": 113.79999999701977,"id": "editor-minimal","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,"layoutSwitchMedianMs": 0,- "loadMedianMs": 115.20000000298023,- "longestTaskMaxMs": 179,+ "loadMedianMs": 113.90000000596046,+ "longestTaskMaxMs": 172,"owner": "workbench",- "projectSwitchMedianMs": 67.79999999701977,+ "projectSwitchMedianMs": 70.59999999403954,"readyMark": "invokeai:ready:widget:center:preview","remediationTicket": "deepen-widget-registry-loading","resourceBaseline": {"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 746376,- "otherRawBytes": 161666,+ "largestAssetRawBytes": 746400,+ "otherRawBytes": 161908,"requestCount": 115,- "scriptRawBytes": 3286480,+ "scriptRawBytes": 3287526,"scriptRequestCount": 110,- "totalRawBytes": 3630345+ "totalRawBytes": 3631633},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 157940,- "largestAssetRawBytes": 753840,- "otherRawBytes": 163283,+ "largestAssetRawBytes": 753864,+ "otherRawBytes": 163528,"requestCount": 115,- "scriptRawBytes": 3319345,+ "scriptRawBytes": 3320402,"scriptRequestCount": 110,- "totalRawBytes": 3666649+ "totalRawBytes": 3667950},- "routeReadyMedianMs": 428.79999999701977,+ "routeReadyMedianMs": 437.19999998807907,"scriptSourceOwnerSet": "editor-minimal-static","stateProfile": "representative"},@@ -247,31 +247,31 @@"cssRawBytes": 0,"fontRawBytes": 0,"imageRawBytes": 0,- "largestAssetRawBytes": 311835,+ "largestAssetRawBytes": 312386,"otherRawBytes": 0,"requestCount": 7,- "scriptRawBytes": 471460,+ "scriptRawBytes": 472020,"scriptRequestCount": 7,- "totalRawBytes": 471460+ "totalRawBytes": 472020},"activatedResourceLimits": {"cssRawBytes": 0,"fontRawBytes": 0,"imageRawBytes": 0,- "largestAssetRawBytes": 314954,+ "largestAssetRawBytes": 315510,"otherRawBytes": 0,"requestCount": 7,- "scriptRawBytes": 476175,+ "scriptRawBytes": 476741,"scriptRequestCount": 7,- "totalRawBytes": 476175+ "totalRawBytes": 476741},- "domContentLoadedMedianMs": 113.20000000298023,+ "domContentLoadedMedianMs": 117.29999999701977,"id": "editor-canvas",- "layoutAckMedianMs": 2.1000000089406967,- "layoutReturnSwitchMedianMs": 52.6000000089407,- "layoutSwitchMedianMs": 82,- "loadMedianMs": 113.30000001192093,- "longestTaskMaxMs": 122,+ "layoutAckMedianMs": 2.2999999970197678,+ "layoutReturnSwitchMedianMs": 54.79999999701977,+ "layoutSwitchMedianMs": 93.5,+ "loadMedianMs": 117.3999999910593,+ "longestTaskMaxMs": 124,"owner": "canvas","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:canvas",@@ -280,25 +280,25 @@"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 746376,- "otherRawBytes": 161666,+ "largestAssetRawBytes": 746400,+ "otherRawBytes": 161908,"requestCount": 122,- "scriptRawBytes": 3757940,+ "scriptRawBytes": 3759546,"scriptRequestCount": 117,- "totalRawBytes": 4101805+ "totalRawBytes": 4103653},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 157940,- "largestAssetRawBytes": 753840,- "otherRawBytes": 163283,+ "largestAssetRawBytes": 753864,+ "otherRawBytes": 163528,"requestCount": 122,- "scriptRawBytes": 3795520,+ "scriptRawBytes": 3797142,"scriptRequestCount": 117,- "totalRawBytes": 4142824+ "totalRawBytes": 4144690},- "routeReadyMedianMs": 1037.4000000059605,+ "routeReadyMedianMs": 1060.2000000029802,"scriptSourceOwnerSet": "editor-canvas-static","stateProfile": "empty"},@@ -307,31 +307,31 @@"cssRawBytes": 0,"fontRawBytes": 0,"imageRawBytes": 0,- "largestAssetRawBytes": 311835,+ "largestAssetRawBytes": 312386,"otherRawBytes": 0,"requestCount": 7,- "scriptRawBytes": 471460,+ "scriptRawBytes": 472020,"scriptRequestCount": 7,- "totalRawBytes": 471460+ "totalRawBytes": 472020},"activatedResourceLimits": {"cssRawBytes": 0,"fontRawBytes": 0,"imageRawBytes": 0,- "largestAssetRawBytes": 314954,+ "largestAssetRawBytes": 315510,"otherRawBytes": 0,"requestCount": 7,- "scriptRawBytes": 476175,+ "scriptRawBytes": 476741,"scriptRequestCount": 7,- "totalRawBytes": 476175+ "totalRawBytes": 476741},- "domContentLoadedMedianMs": 111.6000000089407,+ "domContentLoadedMedianMs": 116.3999999910593,"id": "editor-canvas",- "layoutAckMedianMs": 2.7000000029802322,- "layoutReturnSwitchMedianMs": 43.79999999701977,- "layoutSwitchMedianMs": 92.20000000298023,- "loadMedianMs": 111.70000000298023,- "longestTaskMaxMs": 179,+ "layoutAckMedianMs": 2.5,+ "layoutReturnSwitchMedianMs": 44.599999994039536,+ "layoutSwitchMedianMs": 90.8999999910593,+ "loadMedianMs": 116.5,+ "longestTaskMaxMs": 184,"owner": "canvas","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:canvas",@@ -340,25 +340,25 @@"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 746376,- "otherRawBytes": 161666,+ "largestAssetRawBytes": 746400,+ "otherRawBytes": 161908,"requestCount": 122,- "scriptRawBytes": 3757940,+ "scriptRawBytes": 3759546,"scriptRequestCount": 117,- "totalRawBytes": 4101805+ "totalRawBytes": 4103653},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 157940,- "largestAssetRawBytes": 753840,- "otherRawBytes": 163283,+ "largestAssetRawBytes": 753864,+ "otherRawBytes": 163528,"requestCount": 122,- "scriptRawBytes": 3795520,+ "scriptRawBytes": 3797142,"scriptRequestCount": 117,- "totalRawBytes": 4142824+ "totalRawBytes": 4144690},- "routeReadyMedianMs": 1120.5,+ "routeReadyMedianMs": 1159.5,"scriptSourceOwnerSet": "editor-canvas-static","stateProfile": "representative"},@@ -370,9 +370,9 @@"largestAssetRawBytes": 173980,"otherRawBytes": 0,"requestCount": 7,- "scriptRawBytes": 364237,+ "scriptRawBytes": 364221,"scriptRequestCount": 6,- "totalRawBytes": 379650+ "totalRawBytes": 379634},"activatedResourceLimits": {"cssRawBytes": 15568,@@ -381,16 +381,16 @@"largestAssetRawBytes": 175720,"otherRawBytes": 0,"requestCount": 7,- "scriptRawBytes": 367880,+ "scriptRawBytes": 367864,"scriptRequestCount": 6,- "totalRawBytes": 383447+ "totalRawBytes": 383431},- "domContentLoadedMedianMs": 112.19999998807907,+ "domContentLoadedMedianMs": 115.59999999403954,"id": "editor-workflow",- "layoutAckMedianMs": 2.3999999910593033,- "layoutReturnSwitchMedianMs": 32.5,- "layoutSwitchMedianMs": 90.6000000089407,- "loadMedianMs": 112.3999999910593,+ "layoutAckMedianMs": 2.300000011920929,+ "layoutReturnSwitchMedianMs": 33.19999998807907,+ "layoutSwitchMedianMs": 93.59999999403954,+ "loadMedianMs": 115.79999999701977,"longestTaskMaxMs": 98,"owner": "workflow","projectSwitchMedianMs": 0,@@ -400,25 +400,25 @@"cssRawBytes": 17572,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 746376,- "otherRawBytes": 161666,+ "largestAssetRawBytes": 746400,+ "otherRawBytes": 161908,"requestCount": 122,- "scriptRawBytes": 3650717,+ "scriptRawBytes": 3651747,"scriptRequestCount": 116,- "totalRawBytes": 4009995+ "totalRawBytes": 4011267},"resourceLimits": {"cssRawBytes": 17748,"fontRawBytes": 23901,"imageRawBytes": 157940,- "largestAssetRawBytes": 753840,- "otherRawBytes": 163283,+ "largestAssetRawBytes": 753864,+ "otherRawBytes": 163528,"requestCount": 122,- "scriptRawBytes": 3687225,+ "scriptRawBytes": 3688265,"scriptRequestCount": 116,- "totalRawBytes": 4050095+ "totalRawBytes": 4051380},- "routeReadyMedianMs": 1049.699999988079,+ "routeReadyMedianMs": 1057.7999999970198,"scriptSourceOwnerSet": "editor-workflow-static","stateProfile": "empty"},@@ -430,9 +430,9 @@"largestAssetRawBytes": 173980,"otherRawBytes": 0,"requestCount": 7,- "scriptRawBytes": 364237,+ "scriptRawBytes": 364221,"scriptRequestCount": 6,- "totalRawBytes": 379650+ "totalRawBytes": 379634},"activatedResourceLimits": {"cssRawBytes": 15568,@@ -441,17 +441,17 @@"largestAssetRawBytes": 175720,"otherRawBytes": 0,"requestCount": 7,- "scriptRawBytes": 367880,+ "scriptRawBytes": 367864,"scriptRequestCount": 6,- "totalRawBytes": 383447+ "totalRawBytes": 383431},- "domContentLoadedMedianMs": 114,+ "domContentLoadedMedianMs": 116.90000000596046,"id": "editor-workflow",- "layoutAckMedianMs": 2.300000011920929,- "layoutReturnSwitchMedianMs": 39.6000000089407,- "layoutSwitchMedianMs": 123.59999999403954,- "loadMedianMs": 114.1000000089407,- "longestTaskMaxMs": 333,+ "layoutAckMedianMs": 2.4000000059604645,+ "layoutReturnSwitchMedianMs": 40.900000005960464,+ "layoutSwitchMedianMs": 125.30000001192093,+ "loadMedianMs": 117,+ "longestTaskMaxMs": 352,"owner": "workflow","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:workflow",@@ -460,25 +460,25 @@"cssRawBytes": 17572,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 746376,- "otherRawBytes": 161666,+ "largestAssetRawBytes": 746400,+ "otherRawBytes": 161908,"requestCount": 122,- "scriptRawBytes": 3650717,+ "scriptRawBytes": 3651747,"scriptRequestCount": 116,- "totalRawBytes": 4009995+ "totalRawBytes": 4011267},"resourceLimits": {"cssRawBytes": 17748,"fontRawBytes": 23901,"imageRawBytes": 157940,- "largestAssetRawBytes": 753840,- "otherRawBytes": 163283,+ "largestAssetRawBytes": 753864,+ "otherRawBytes": 163528,"requestCount": 122,- "scriptRawBytes": 3687225,+ "scriptRawBytes": 3688265,"scriptRequestCount": 116,- "totalRawBytes": 4050095+ "totalRawBytes": 4051380},- "routeReadyMedianMs": 1172.699999988079,+ "routeReadyMedianMs": 1177.7000000029802,"scriptSourceOwnerSet": "editor-workflow-static","stateProfile": "representative"},@@ -505,13 +505,13 @@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 115.90000000596046,+ "domContentLoadedMedianMs": 117.09999999403954,"id": "editor-gallery","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,- "layoutSwitchMedianMs": 25.299999997019768,- "loadMedianMs": 116,- "longestTaskMaxMs": 96,+ "layoutSwitchMedianMs": 26,+ "loadMedianMs": 117.29999999701977,+ "longestTaskMaxMs": 101,"owner": "gallery","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:gallery",@@ -520,25 +520,25 @@"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 746376,- "otherRawBytes": 161666,+ "largestAssetRawBytes": 746400,+ "otherRawBytes": 161908,"requestCount": 115,- "scriptRawBytes": 3286480,+ "scriptRawBytes": 3287526,"scriptRequestCount": 110,- "totalRawBytes": 3630345+ "totalRawBytes": 3631633},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 157940,- "largestAssetRawBytes": 753840,- "otherRawBytes": 163283,+ "largestAssetRawBytes": 753864,+ "otherRawBytes": 163528,"requestCount": 115,- "scriptRawBytes": 3319345,+ "scriptRawBytes": 3320402,"scriptRequestCount": 110,- "totalRawBytes": 3666649+ "totalRawBytes": 3667950},- "routeReadyMedianMs": 1259.2999999970198,+ "routeReadyMedianMs": 1259,"scriptSourceOwnerSet": "editor-minimal-static","stateProfile": "empty"},@@ -565,13 +565,13 @@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 113.79999999701977,+ "domContentLoadedMedianMs": 119.5,"id": "editor-gallery","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,- "layoutSwitchMedianMs": 84,- "loadMedianMs": 113.79999999701977,- "longestTaskMaxMs": 175,+ "layoutSwitchMedianMs": 89.90000000596046,+ "loadMedianMs": 119.59999999403954,+ "longestTaskMaxMs": 180,"owner": "gallery","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:gallery",@@ -580,25 +580,25 @@"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 746376,- "otherRawBytes": 161666,+ "largestAssetRawBytes": 746400,+ "otherRawBytes": 161908,"requestCount": 115,- "scriptRawBytes": 3286480,+ "scriptRawBytes": 3287526,"scriptRequestCount": 110,- "totalRawBytes": 3630345+ "totalRawBytes": 3631633},"resourceLimits": {"cssRawBytes": 2181,"fontRawBytes": 23901,"imageRawBytes": 157940,- "largestAssetRawBytes": 753840,- "otherRawBytes": 163283,+ "largestAssetRawBytes": 753864,+ "otherRawBytes": 163528,"requestCount": 115,- "scriptRawBytes": 3319345,+ "scriptRawBytes": 3320402,"scriptRequestCount": 110,- "totalRawBytes": 3666649+ "totalRawBytes": 3667950},- "routeReadyMedianMs": 1426.5,+ "routeReadyMedianMs": 1456.5,"scriptSourceOwnerSet": "editor-minimal-static","stateProfile": "representative"}@@ -1613,6 +1613,7 @@"source:src/workbench/canvas-operations/exportCanvasComposite.ts","source:src/workbench/canvas-operations/filterGraphs.ts","source:src/workbench/canvas-operations/filterOperationSession.ts",+ "source:src/workbench/canvas-operations/filterPreferences.ts","source:src/workbench/canvas-operations/generationComposite.ts","source:src/workbench/canvas-operations/generationCompositePlan.ts","source:src/workbench/canvas-operations/importGalleryImages.ts",@@ -2574,6 +2575,7 @@"source:src/workbench/canvas-operations/exportCanvasComposite.ts","source:src/workbench/canvas-operations/filterGraphs.ts","source:src/workbench/canvas-operations/filterOperationSession.ts",+ "source:src/workbench/canvas-operations/filterPreferences.ts","source:src/workbench/canvas-operations/generationComposite.ts","source:src/workbench/canvas-operations/generationCompositePlan.ts","source:src/workbench/canvas-operations/importGalleryImages.ts",@@ -3736,6 +3738,7 @@"source:src/workbench/canvas-operations/exportCanvasComposite.ts","source:src/workbench/canvas-operations/filterGraphs.ts","source:src/workbench/canvas-operations/filterOperationSession.ts",+ "source:src/workbench/canvas-operations/filterPreferences.ts","source:src/workbench/canvas-operations/generationComposite.ts","source:src/workbench/canvas-operations/generationCompositePlan.ts","source:src/workbench/canvas-operations/importGalleryImages.ts",diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.jsonindex 327f002518..61bc9f417b 100644--- a/invokeai/frontend/webv2/public/locales/en.json+++ b/invokeai/frontend/webv2/public/locales/en.json@@ -1525,6 +1525,7 @@"properties": {"noCanvas": "Open a canvas to edit its properties.","groups": {+ "settings": "Settings","stroke": "Stroke","dynamics": "Dynamics","shape": "Shape",@@ -2780,8 +2781,16 @@"weight": "Weight"},"rasterFilter": {- "autoProcess": "Auto",- "autoProcessDescription": "Process automatically when settings change",+ "applyAs": "Apply as",+ "autoProcess": "Process automatically",+ "categories": {+ "edge": "Edge detection",+ "depth": "Depth & normal",+ "pose": "Pose & face",+ "color": "Color & tone",+ "noise": "Blur & noise",+ "upscale": "Upscale"+ },"busy": "Finish the current canvas interaction, then try again.","cancel": "Cancel","commitFailure": "The filtered pixels could not be committed: {{message}}",diff --git a/invokeai/frontend/webv2/src/platform/ui/Select.tsx b/invokeai/frontend/webv2/src/platform/ui/Select.tsxindex d24c0fffea..b0d51e8078 100644--- a/invokeai/frontend/webv2/src/platform/ui/Select.tsx+++ b/invokeai/frontend/webv2/src/platform/ui/Select.tsx@@ -26,6 +26,24 @@ const renderDefaultItem = <T extends CollectionItem>(item: T): ReactNode => {return labelledItem.label ?? labelledItem.value;};+/** Consecutive same-group runs, keeping the collection's flat order and indices. */+const partitionByGroup = <T,>(+ items: readonly T[],+ groupBy: (item: T) => string+): { group: string; items: T[]; startIndex: number }[] => {+ const runs: { group: string; items: T[]; startIndex: number }[] = [];+ items.forEach((item, index) => {+ const group = groupBy(item);+ const last = runs[runs.length - 1];+ if (last && last.group === group) {+ last.items.push(item);+ } else {+ runs.push({ group, items: [item], startIndex: index });+ }+ });+ return runs;+};+export interface SelectProps<T extends CollectionItem> extends Omit<SelectRootProps<T>, 'children'> {contentProps?: SelectContentProps;/**@@ -35,6 +53,13 @@ export interface SelectProps<T extends CollectionItem> extends Omit<SelectRootPr* highlight, typeahead, and the open-reveal keep working.*/itemsMaxH?: string;+ /**+ * Renders labelled item groups: consecutive items with the same group key+ * share one header. Items must already be ordered by group.+ */+ groupBy?: (item: T) => string;+ /** The visible header for a group key; defaults to the key itself. */+ renderGroupLabel?: (group: string) => ReactNode;getItemKey?: (item: T, index: number) => Key;indicatorGroupProps?: SelectIndicatorGroupProps;itemIndicator?: boolean;@@ -52,11 +77,13 @@ export const Select = <T extends CollectionItem>({collection,contentProps,getItemKey = getDefaultItemKey,+ groupBy,indicatorGroupProps,itemsMaxH,itemIndicator = true,portalled = true,positionerProps,+ renderGroupLabel,renderItem = renderDefaultItem,triggerProps,valueText,@@ -91,12 +118,26 @@ export const Select = <T extends CollectionItem>({<ChakraSelect.Positioner {...positionerProps}><ChakraSelect.Content {...contentProps}><SelectItems ref={itemsRef} maxH={itemsMaxH}>- {collection.items.map((item, index) => (- <ChakraSelect.Item key={getItemKey(item, index)} item={item}>- <ChakraSelect.ItemText>{renderItem(item)}</ChakraSelect.ItemText>- {itemIndicator ? <ChakraSelect.ItemIndicator /> : null}- </ChakraSelect.Item>- ))}+ {groupBy+ ? partitionByGroup(collection.items, groupBy).map(({ group, items, startIndex }) => (+ <ChakraSelect.ItemGroup key={group}>+ <ChakraSelect.ItemGroupLabel>+ {renderGroupLabel ? renderGroupLabel(group) : group}+ </ChakraSelect.ItemGroupLabel>+ {items.map((item, offset) => (+ <ChakraSelect.Item key={getItemKey(item, startIndex + offset)} item={item}>+ <ChakraSelect.ItemText>{renderItem(item)}</ChakraSelect.ItemText>+ {itemIndicator ? <ChakraSelect.ItemIndicator /> : null}+ </ChakraSelect.Item>+ ))}+ </ChakraSelect.ItemGroup>+ ))+ : collection.items.map((item, index) => (+ <ChakraSelect.Item key={getItemKey(item, index)} item={item}>+ <ChakraSelect.ItemText>{renderItem(item)}</ChakraSelect.ItemText>+ {itemIndicator ? <ChakraSelect.ItemIndicator /> : null}+ </ChakraSelect.Item>+ ))}</SelectItems></ChakraSelect.Content></ChakraSelect.Positioner>diff --git a/invokeai/frontend/webv2/src/workbench/canvas-operations/FilterOperationCoordinator.ts b/invokeai/frontend/webv2/src/workbench/canvas-operations/FilterOperationCoordinator.tsindex 4186c4ebef..11fb66a43e 100644--- a/invokeai/frontend/webv2/src/workbench/canvas-operations/FilterOperationCoordinator.ts+++ b/invokeai/frontend/webv2/src/workbench/canvas-operations/FilterOperationCoordinator.ts@@ -24,6 +24,7 @@ import {getFilterDefinition,isFilterConfigValid,} from '@workbench/canvas-operations/filterGraphs';+import { readLastUsedFilterType } from '@workbench/canvas-operations/filterPreferences';import { createFilterOperationSession } from './filterOperationSession';import { runLayerFilter } from './layerFilterRunner';@@ -118,7 +119,8 @@ export const createFilterOperationCoordinator = (deps: FilterOperationCoordinatoif (!guard) {return 'not-ready';}- const initialType = layer.filter?.type ?? recommendedFilterType ?? DEFAULT_CONTROL_FILTER_TYPE;+ const initialType =+ layer.filter?.type ?? recommendedFilterType ?? readLastUsedFilterType() ?? DEFAULT_CONTROL_FILTER_TYPE;const initialFilter = layer.filter ? structuredClone(layer.filter) : null;const definition = getFilterDefinition(initialType);const draft = initialFilter ?? {diff --git a/invokeai/frontend/webv2/src/workbench/canvas-operations/api.ts b/invokeai/frontend/webv2/src/workbench/canvas-operations/api.tsindex 42f32d44c7..42154e23ea 100644--- a/invokeai/frontend/webv2/src/workbench/canvas-operations/api.ts+++ b/invokeai/frontend/webv2/src/workbench/canvas-operations/api.ts@@ -48,13 +48,16 @@ export {export { createCompositeDedupeCache, type CompositeDedupeCache } from './compositeForGeneration';export {CONTROL_FILTERS,+ FILTER_CATEGORY_ORDER,buildFilterGraph,buildFilterDefaults,getFilterDefinition,getFilterNumberBounds,isFilterConfigValid,isSpandrelModelIdentifier,+ type FilterCategory,type FilterParamSpec,} from './filterGraphs';+export { readLastUsedFilterType, recordLastUsedFilterType } from './filterPreferences';export { resolveDefaultFilterForModel } from './controlRecommendations';export { buildSamGraph, documentToExportLocalSamInput, isSamDocumentInputValid, isSamInputValid } from './samGraph';diff --git a/invokeai/frontend/webv2/src/workbench/canvas-operations/filterGraphs.ts b/invokeai/frontend/webv2/src/workbench/canvas-operations/filterGraphs.tsindex 2c4b138a67..b9f35e96a4 100644--- a/invokeai/frontend/webv2/src/workbench/canvas-operations/filterGraphs.ts+++ b/invokeai/frontend/webv2/src/workbench/canvas-operations/filterGraphs.ts@@ -27,10 +27,17 @@ export type FilterParamSpec =| { kind: 'string'; key: string; default: string }| { kind: 'model'; key: string; default: null; modelType: 'spandrel_image_to_image' };+export type FilterCategory = 'edge' | 'depth' | 'pose' | 'color' | 'noise' | 'upscale';++/** Display order of the filter-picker groups. */+export const FILTER_CATEGORY_ORDER: readonly FilterCategory[] = ['edge', 'depth', 'pose', 'color', 'noise', 'upscale'];+/** One filter's identity, defaults, and node-arg projection. */export interface FilterDefinition {/** The persisted/UI filter id. */type: string;+ /** The picker group the filter belongs to. */+ category: FilterCategory;/** Backend node type when this definition is a named preset. */nodeType?: string;/** Ordered parameter specs (also the default-settings source). */@@ -58,6 +65,7 @@ export const CONTROL_FILTERS: readonly FilterDefinition[] = [{ default: 100, integer: true, key: 'low_threshold', kind: 'number', max: 255, min: 0, step: 1 },{ default: 200, integer: true, key: 'high_threshold', kind: 'number', max: 255, min: 0, step: 1 },],+ category: 'edge',type: 'canny_edge_detection',},{@@ -74,6 +82,7 @@ export const CONTROL_FILTERS: readonly FilterDefinition[] = [],},],+ category: 'depth',type: 'depth_anything_depth_estimation',},{@@ -82,14 +91,17 @@ export const CONTROL_FILTERS: readonly FilterDefinition[] = [{ default: true, key: 'draw_face', kind: 'boolean' },{ default: true, key: 'draw_hands', kind: 'boolean' },],+ category: 'pose',type: 'dw_openpose_detection',},{params: [{ default: false, key: 'coarse', kind: 'boolean' }],+ category: 'edge',type: 'lineart_edge_detection',},{params: [{ default: false, key: 'scribble', kind: 'boolean' }],+ category: 'edge',type: 'hed_edge_detection',},{@@ -97,6 +109,7 @@ export const CONTROL_FILTERS: readonly FilterDefinition[] = [{ default: 0.1, key: 'score_threshold', kind: 'number', max: 1, min: 0, step: 0.01 },{ default: 20, key: 'distance_threshold', kind: 'number', max: 1000, min: 0, sliderMax: 100, step: 1 },],+ category: 'edge',type: 'mlsd_detection',},{@@ -104,15 +117,18 @@ export const CONTROL_FILTERS: readonly FilterDefinition[] = [{ default: false, key: 'quantize_edges', kind: 'boolean' },{ default: false, key: 'scribble', kind: 'boolean' },],+ category: 'edge',type: 'pidi_edge_detection',},{nodeType: 'hed_edge_detection',params: [],+ category: 'edge',type: 'scribble_edge_detection',},{params: [{ default: 256, integer: true, key: 'scale_factor', kind: 'number', max: 4096, min: 0, step: 1 }],+ category: 'noise',type: 'content_shuffle',},{@@ -120,12 +136,14 @@ export const CONTROL_FILTERS: readonly FilterDefinition[] = [{ default: 1, integer: true, key: 'max_faces', kind: 'number', max: 20, min: 1, step: 1 },{ default: 0.5, key: 'min_confidence', kind: 'number', max: 1, min: 0, step: 0.01 },],+ category: 'pose',type: 'mediapipe_face_detection',},{params: [{ default: 64, integer: true, key: 'tile_size', kind: 'number', max: 4096, min: 1, sliderMax: 256, step: 1 },],+ category: 'color',type: 'color_map',},{@@ -157,16 +175,18 @@ export const CONTROL_FILTERS: readonly FilterDefinition[] = [{ default: 1, key: 'value', kind: 'number', max: 255, min: 0, sliderMax: 2, step: 0.0025 },{ default: false, key: 'scale_values', kind: 'boolean' },],+ category: 'color',type: 'adjust_image',},- { params: [], type: 'lineart_anime_edge_detection' },- { params: [], type: 'normal_map' },+ { category: 'edge', params: [], type: 'lineart_anime_edge_detection' },+ { category: 'depth', params: [], type: 'normal_map' },{params: [{ default: null, key: 'model', kind: 'model', modelType: 'spandrel_image_to_image' },{ default: true, key: 'autoScale', kind: 'boolean' },{ default: 1, key: 'scale', kind: 'number', max: 16, min: 1, step: 1 },],+ category: 'upscale',type: 'spandrel_filter',},{@@ -182,6 +202,7 @@ export const CONTROL_FILTERS: readonly FilterDefinition[] = [},{ coerceMin: 0, default: 8, key: 'radius', kind: 'number', max: 4096, min: 1, sliderMax: 64, step: 0.1 },],+ category: 'noise',type: 'img_blur',},{@@ -202,6 +223,7 @@ export const CONTROL_FILTERS: readonly FilterDefinition[] = [{ default: true, key: 'noise_color', kind: 'boolean' },{ default: 1, integer: true, key: 'size', kind: 'number', max: 256, min: 1, sliderMax: 16, step: 1 },],+ category: 'noise',type: 'img_noise',},];diff --git a/invokeai/frontend/webv2/src/workbench/canvas-operations/filterPreferences.ts b/invokeai/frontend/webv2/src/workbench/canvas-operations/filterPreferences.tsnew file mode 100644index 0000000000..d93ec3a2b8--- /dev/null+++ b/invokeai/frontend/webv2/src/workbench/canvas-operations/filterPreferences.ts@@ -0,0 +1,31 @@+import { isSupportedFilterType } from './filterGraphs';++const STORAGE_KEY = 'invokeai:v7:webv2:last-filter-type';++/**+ * The user's last-chosen filter type, remembered per user. A fresh filter+ * operation on a layer without its own filter starts here instead of the+ * hard-coded default; unknown or unreadable values fall back silently.+ */+export const readLastUsedFilterType = (): string | null => {+ if (typeof window === 'undefined') {+ return null;+ }+ try {+ const stored = window.localStorage.getItem(STORAGE_KEY);+ return stored !== null && isSupportedFilterType(stored) ? stored : null;+ } catch {+ return null;+ }+};++export const recordLastUsedFilterType = (type: string): void => {+ if (typeof window === 'undefined' || !isSupportedFilterType(type)) {+ return;+ }+ try {+ window.localStorage.setItem(STORAGE_KEY, type);+ } catch {+ // Storage failures are non-fatal; this is a convenience.+ }+};diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/FilterOptions.test.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/FilterOptions.test.tsxindex d4a1891405..e4d192ac72 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/FilterOptions.test.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/FilterOptions.test.tsx@@ -4,6 +4,7 @@ import type { ComponentProps } from 'react';import { ChakraProvider } from '@chakra-ui/react';import { system } from '@theme/system';+import { CONTROL_FILTERS, FILTER_CATEGORY_ORDER } from '@workbench/canvas-operations/api';import { attachCanvasOperations } from '@workbench/canvas-operations/operationAccess';import { createInstance } from 'i18next';import { createElement } from 'react';@@ -12,9 +13,7 @@ import { I18nextProvider } from 'react-i18next';import { describe, expect, it, vi } from 'vitest';import {- FilterModes,- FilterMore,- FilterStatus,+ filterOperationForm,getFilterActionEligibility,getFilterSaveTargetEligibility,getFilterStatusTranslationKey,@@ -165,53 +164,64 @@ const renderRegions = (session: FilterOperationSessionState) => {createElement(I18nextProvider, { i18n: testI18n }, element)));+ const [choose, params] = filterOperationForm.groups;return {- modes: render(createElement(FilterModes, { engine: engine as never, isSurfaceInteractionLocked: false })),- more: render(createElement(FilterMore, { engine: engine as never, isSurfaceInteractionLocked: false })),+ choose: render(createElement(choose!.body, { engine: engine as never, isSurfaceInteractionLocked: false })),+ footer: render(+ createElement(filterOperationForm.footer, { engine: engine as never, isExternalInteractionLocked: false })+ ),operations,- status: render(createElement(FilterStatus, { engine: engine as never, isExternalInteractionLocked: false })),+ params: render(createElement(params!.body, { engine: engine as never, isSurfaceInteractionLocked: false })),};};-describe('filter operation regions', () => {- it('splits type and auto-process into the bar, parameters and secondary commands into More, and keeps Apply / Cancel in status', () => {- const { modes, more, status } = renderRegions(+describe('filter operation form', () => {+ it('puts the choice and auto switch in one group, parameters in the next, and every verb in the footer', () => {+ const { choose, footer, params } = renderRegions(state({ draft: { settings: { high_threshold: 200, low_threshold: 100 }, type: 'canny_edge_detection' } }));// The select names itself through a real (visually hidden) label part.- expect(modes).toContain('>Filter</label>');- expect(modes).toContain('>Auto<');- expect(modes).not.toContain('>Process<');-- expect(more).not.toContain('>Filter</label>');- expect(more.indexOf('>Process<')).toBeLessThan(more.indexOf('>Reset<'));- expect(more.indexOf('>Reset<')).toBeLessThan(more.indexOf('>Raster layer<'));- expect(more.indexOf('>Raster layer<')).toBeLessThan(more.indexOf('>Control layer<'));-- expect(status).toContain('Portrait · Raster layer');- expect(status).toContain('role="status"');- expect(status.indexOf('>Filter<')).toBeLessThan(status.indexOf('>Apply<'));- expect(status.indexOf('>Apply<')).toBeLessThan(status.indexOf('>Cancel<'));+ expect(choose).toContain('>Filter</label>');+ expect(choose).toContain('>Process automatically<');+ expect(choose).not.toContain('>Process<');++ expect(params).not.toContain('>Filter</label>');+ expect(params).toContain('Low threshold');++ expect(footer).toContain('Portrait · Raster layer');+ expect(footer).toContain('role="status"');+ // Auto-process on: no Process verb; Reset then Apply then Cancel.+ expect(footer).not.toContain('>Process<');+ expect(footer.indexOf('>Reset<')).toBeLessThan(footer.indexOf('>Apply<'));+ expect(footer.indexOf('>Apply<')).toBeLessThan(footer.indexOf('>Cancel<'));});- it('disables Process and Auto while processing and keeps Cancel live', () => {- const { modes, more, status } = renderRegions(state({ status: 'processing' }));+ it('shows Process only with auto-process off, disabled while processing, and keeps Cancel live', () => {+ const manual = renderRegions(state({ autoProcess: false })).footer;+ expect(manual).toContain('>Process<');- const processIdx = more.indexOf('>Process<');- const processButtonTag = more.slice(more.lastIndexOf('<button', processIdx), processIdx);+ const busy = renderRegions(state({ autoProcess: false, status: 'processing' })).footer;+ const processIdx = busy.indexOf('>Process<');+ const processButtonTag = busy.slice(busy.lastIndexOf('<button', processIdx), processIdx);expect(processButtonTag).toContain('disabled=""');expect(processButtonTag).toContain('data-loading=""');+ const cancelIdx = busy.indexOf('>Cancel<');+ expect(busy.slice(busy.lastIndexOf('<button', cancelIdx), cancelIdx)).not.toContain('disabled=""');+ });- const autoIdx = modes.indexOf('>Auto<');- expect(modes.slice(modes.lastIndexOf('<button', autoIdx), autoIdx)).toContain('disabled=""');-- const cancelIdx = status.indexOf('>Cancel<');- expect(status.slice(status.lastIndexOf('<button', cancelIdx), cancelIdx)).not.toContain('disabled=""');+ it('reflects the auto-process switch state from the session', () => {+ const switchState = (markup: string): string | null =>+ /data-scope="switch"[^>]*data-part="root"[^>]*data-state="([a-z]+)"/.exec(markup)?.[1] ?? null;+ expect(switchState(renderRegions(state({ autoProcess: true })).choose)).toBe('checked');+ expect(switchState(renderRegions(state({ autoProcess: false })).choose)).toBe('unchecked');});- it('marks the Auto chip pressed state from the session', () => {- expect(renderRegions(state({ autoProcess: true })).modes).toContain('aria-pressed="true"');- expect(renderRegions(state({ autoProcess: false })).modes).toContain('aria-pressed="false"');+ it('assigns every filter a picker category covered by the display order', () => {+ // The grouped select renders in a portal, so the taxonomy is asserted here.+ for (const filter of CONTROL_FILTERS) {+ expect(FILTER_CATEGORY_ORDER, filter.type).toContain(filter.category);+ }+ expect(new Set(CONTROL_FILTERS.map((filter) => filter.category)).size).toBe(FILTER_CATEGORY_ORDER.length);});});diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/FilterOptions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/FilterOptions.tsxindex 3059c7f70c..b478e037b5 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/FilterOptions.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/FilterOptions.tsx@@ -1,25 +1,30 @@import type {- OperationPresentationAdapter,+ OperationPropertyForm,ToolbarRegionProps,ToolbarStatusProps,} from '@workbench/widgets/canvas/tool-presentation/toolbarContracts';/* oxlint-disable react-perf/jsx-no-new-function-as-prop */-import { HStack, Stack } from '@chakra-ui/react';+import { Box, createListCollection, Flex, Icon, Menu, Portal } from '@chakra-ui/react';import { galleryDurability } from '@features/gallery';import { Button } from '@platform/ui/Button';-import { Tooltip } from '@platform/ui/Tooltip';+import { MenuActionItem, MenuContent } from '@platform/ui/Menu';+import { Select } from '@platform/ui/Select';import {buildFilterDefaults,+ CONTROL_FILTERS,+ FILTER_CATEGORY_ORDER,getCanvasOperations,getFilterDefinition,isFilterConfigValid,+ recordLastUsedFilterType,type FilterOperationSessionState,} from '@workbench/canvas-operations/api';import { useFilterSession } from '@workbench/widgets/canvas/engineStoreHooks';-import { ToolbarStatus } from '@workbench/widgets/canvas/tool-presentation/ToolbarPrimitives';+import { PropertySwitchRow } from '@workbench/widgets/canvas/tool-presentation/PropertyPrimitives';import { LayerFilterControls } from '@workbench/widgets/layers/LayerFilterControls';-import { useCallback } from 'react';+import { ChevronDownIcon } from 'lucide-react';+import { useCallback, useMemo } from 'react';import { useTranslation } from 'react-i18next';import { OperationStatusChip } from './OperationStatusSlot';@@ -72,6 +77,7 @@ const useFilterDraft = (engine: ToolbarRegionProps['engine']) => {const setType = useCallback((type: string) => {const definition = getFilterDefinition(type);+ recordLastUsedFilterType(type);operations.updateFilterOperation({ settings: definition ? buildFilterDefaults(definition) : {}, type });},[operations]@@ -95,136 +101,205 @@ const useFilterDraft = (engine: ToolbarRegionProps['engine']) => {return { operations, reset, setSettings, setType };};-/** Filter type and auto-process: the choices made while iterating on a preview. */-export const FilterModes = ({ engine, isSurfaceInteractionLocked }: ToolbarRegionProps) => {+/** Filter choice (grouped by category) and auto-process: the iteration dials. */+const FilterChooseSettings = ({ engine, isSurfaceInteractionLocked }: ToolbarRegionProps) => {const { t } = useTranslation();const session = useFilterSession(engine);- const { operations, setSettings, setType } = useFilterDraft(engine);+ const { operations, setType } = useFilterDraft(engine);+ const filterCollection = useMemo(() => {+ const order = new Map<string, number>(FILTER_CATEGORY_ORDER.map((category, index) => [category, index]));+ const items = [...CONTROL_FILTERS]+ .sort(+ (a, b) =>+ (order.get(a.category) ?? 0) - (order.get(b.category) ?? 0) ||+ t(`widgets.layers.control.filters.${a.type}`, a.type).localeCompare(+ t(`widgets.layers.control.filters.${b.type}`, b.type)+ )+ )+ .map((filter) => ({+ category: filter.category,+ label: t(`widgets.layers.control.filters.${filter.type}`, filter.type),+ value: filter.type,+ }));+ return createListCollection({ items });+ }, [t]);+ const filterValue = useMemo(() => [session?.draft.type ?? ''], [session?.draft.type]);+ const groupBy = useCallback((item: { category: string }) => item.category, []);+ const renderGroupLabel = useCallback(+ (category: string) => t(`widgets.layers.rasterFilter.categories.${category}`, category),+ [t]+ );+ const onTypeChange = useCallback(+ ({ value }: { value: string[] }) => {+ if (value[0]) {+ setType(value[0]);+ }+ },+ [setType]+ );if (!session) {return null;}const eligibility = getFilterActionEligibility(session, isSurfaceInteractionLocked);return (<>- <LayerFilterControls+ <Select+ aria-label={t('widgets.layers.control.filter')}+ collection={filterCollection}disabled={!eligibility.canEdit}- filterType={session.draft.type}- focusFilter={false}- parts="type"- settings={session.draft.settings}- variant="operation"- onFilterTypeChange={setType}- onSettingsChange={setSettings}+ groupBy={groupBy}+ itemsMaxH="18rem"+ renderGroupLabel={renderGroupLabel}+ size="xs"+ value={filterValue}+ valueText={t(`widgets.layers.control.filters.${session.draft.type}`, session.draft.type)}+ w="full"+ onValueChange={onTypeChange}+ />+ <PropertySwitchRow+ checked={session.autoProcess}+ disabled={!eligibility.canEdit}+ label={t('widgets.layers.rasterFilter.autoProcess')}+ onCheckedChange={(checked) => operations.setFilterOperationAutoProcess(checked)}/>- <Tooltip content={t('widgets.layers.rasterFilter.autoProcessDescription')}>- <Button- aria-pressed={session.autoProcess}- disabled={!eligibility.canEdit}- flexShrink={0}- size="xs"- variant={session.autoProcess ? 'solid' : 'ghost'}- onClick={() => operations.setFilterOperationAutoProcess(!session.autoProcess)}- >- {t('widgets.layers.rasterFilter.autoProcess')}- </Button>- </Tooltip></>);};-/** The filter's parameters and its secondary commands; C2 moves these into Properties → Operation. */-export const FilterMore = ({ engine, isSurfaceInteractionLocked }: ToolbarRegionProps) => {- const { t } = useTranslation();+/** The chosen filter's parameters. */+const FilterParamsSettings = ({ engine, isSurfaceInteractionLocked }: ToolbarRegionProps) => {const session = useFilterSession(engine);- const { operations, reset, setSettings, setType } = useFilterDraft(engine);+ const { setSettings, setType } = useFilterDraft(engine);if (!session) {return null;}const eligibility = getFilterActionEligibility(session, isSurfaceInteractionLocked);- const saveTargets = getFilterSaveTargetEligibility(eligibility);return (- <Stack gap="2" w="full">- <LayerFilterControls- disabled={!eligibility.canEdit}- filterType={session.draft.type}- focusFilter={false}- parts="params"- settings={session.draft.settings}- onFilterTypeChange={setType}- onSettingsChange={setSettings}- />- <HStack flexWrap="wrap" gap="1">- <Button- disabled={!eligibility.canProcess}- loading={session.status === 'processing'}- size="xs"- onClick={() => void operations.processFilterOperation()}- >- {t('widgets.layers.selectObject.process')}- </Button>- <Button disabled={!eligibility.canReset} size="xs" variant="ghost" onClick={reset}>- {t('widgets.layers.selectObject.reset')}- </Button>- <Button- disabled={!saveTargets.raster}- size="xs"- variant="ghost"- onClick={() => void operations.commitFilterOperation('raster', galleryDurability.makeCanvasAsset)}- >- {t('widgets.layers.selectObject.saveAs_raster')}- </Button>- <Button- disabled={!saveTargets.control}- size="xs"- variant="ghost"- onClick={() => void operations.commitFilterOperation('control', galleryDurability.makeCanvasAsset)}- >- {t('widgets.layers.selectObject.saveAs_control')}- </Button>- </HStack>- </Stack>+ <LayerFilterControls+ disabled={!eligibility.canEdit}+ filterType={session.draft.type}+ focusFilter={false}+ parts="params"+ settings={session.draft.settings}+ onFilterTypeChange={setType}+ onSettingsChange={setSettings}+ />);};-export const FilterStatus = ({ engine, isExternalInteractionLocked }: ToolbarStatusProps) => {+/**+ * The operation's sticky footer: the status chip, Reset, Process (hidden while+ * auto-process owns it), Apply with its save-as menu, and Cancel.+ */+const FilterFooter = ({ engine, isExternalInteractionLocked }: ToolbarStatusProps) => {const { t } = useTranslation();const session = useFilterSession(engine);- const operations = getCanvasOperations(engine);+ const { operations, reset } = useFilterDraft(engine);const onApply = useCallback(() => void operations.commitFilterOperation('apply', galleryDurability.makeCanvasAsset),[operations]);const onCancel = useCallback(() => operations.cancelFilterOperation(), [operations]);if (!session) {- return <ToolbarStatus />;+ return null;}const eligibility = getFilterActionEligibility(session, isExternalInteractionLocked);+ const saveTargets = getFilterSaveTargetEligibility(eligibility);const sourceLabel = `${session.layerName} · ${t(`widgets.layers.selectObject.saveAs_${session.layerType}`)}`;const isBusy = !session.error && (session.status === 'processing' || session.status === 'committing');return (- <ToolbarStatus- applyDisabled={!eligibility.canApply}- applyLoading={session.status === 'committing'}- cancelDisabled={!eligibility.canCancel}- onApply={onApply}- onCancel={onCancel}- >- <OperationStatusChip- errorDetail={null}- errorText={session.error}- isBusy={isBusy}- sourceLabel={sourceLabel}- statusText={t(getFilterStatusTranslationKey(session.status))}- technicalDetailsLabel={t('widgets.layers.selectObject.technicalDetails')}- title={t('widgets.layers.rasterFilter.title')}- />- </ToolbarStatus>+ <Flex align="center" gap="1" minW="0" w="full">+ <Box flex="1" minW="0" overflow="hidden" whiteSpace="nowrap">+ <OperationStatusChip+ errorDetail={null}+ errorText={session.error}+ isBusy={isBusy}+ sourceLabel={sourceLabel}+ statusText={t(getFilterStatusTranslationKey(session.status))}+ technicalDetailsLabel={t('widgets.layers.selectObject.technicalDetails')}+ title={t('widgets.layers.rasterFilter.title')}+ />+ </Box>+ <Button disabled={!eligibility.canReset} flexShrink={0} size="xs" variant="ghost" onClick={reset}>+ {t('widgets.layers.selectObject.reset')}+ </Button>+ {session.autoProcess ? null : (+ <Button+ disabled={!eligibility.canProcess}+ flexShrink={0}+ loading={session.status === 'processing'}+ size="xs"+ onClick={() => void operations.processFilterOperation()}+ >+ {t('widgets.layers.selectObject.process')}+ </Button>+ )}+ <Flex flexShrink={0}>+ <Button+ data-toolbar-action="apply"+ disabled={!eligibility.canApply}+ loading={session.status === 'committing'}+ roundedRight="none"+ size="xs"+ variant="solid"+ onClick={onApply}+ >+ {t('common.apply')}+ </Button>+ <Menu.Root positioning={APPLY_MENU_POSITIONING}>+ <Menu.Trigger asChild>+ <Button+ aria-label={t('widgets.layers.rasterFilter.applyAs')}+ disabled={!eligibility.canSave}+ px="1"+ roundedLeft="none"+ size="xs"+ variant="solid"+ >+ <Icon as={ChevronDownIcon} boxSize="3.5" />+ </Button>+ </Menu.Trigger>+ <Portal>+ <Menu.Positioner>+ <MenuContent minW="12rem" py="1">+ <MenuActionItem+ disabled={!saveTargets.raster}+ label={t('widgets.layers.selectObject.saveAs_raster')}+ value="save-raster"+ onSelect={() => void operations.commitFilterOperation('raster', galleryDurability.makeCanvasAsset)}+ />+ <MenuActionItem+ disabled={!saveTargets.control}+ label={t('widgets.layers.selectObject.saveAs_control')}+ value="save-control"+ onSelect={() => void operations.commitFilterOperation('control', galleryDurability.makeCanvasAsset)}+ />+ </MenuContent>+ </Menu.Positioner>+ </Portal>+ </Menu.Root>+ </Flex>+ <Button+ data-toolbar-action="cancel"+ disabled={!eligibility.canCancel}+ flexShrink={0}+ size="xs"+ variant="ghost"+ onClick={onCancel}+ >+ {t('common.cancel')}+ </Button>+ </Flex>);};-export const filterOperationAdapter: OperationPresentationAdapter = {+const APPLY_MENU_POSITIONING = { placement: 'top-end' } as const;++export const filterOperationForm: OperationPropertyForm = {+ footer: FilterFooter,+ groups: [+ { body: FilterChooseSettings, id: 'filter-choose', labelKey: 'widgets.layers.control.filter' },+ { body: FilterParamsSettings, id: 'filter-params', labelKey: 'widgets.properties.groups.settings' },+ ],kind: 'filter',- modes: FilterModes,- more: FilterMore,- status: FilterStatus,};diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/geometryForm.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/geometryForm.tsxindex 4c4442ece5..39576b2117 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/geometryForm.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/geometryForm.tsx@@ -261,10 +261,12 @@ const FrameSizeSettings = ({ engine }: ToolbarRegionProps) => {* pixels instead of opening a layer session; the numerics meanwhile edit the* settled selected layer, matching the Transform pane.*/-const TransformFooter = ({ engine }: ToolbarStatusProps) => {+const TransformFooter = ({ engine, isExternalInteractionLocked }: ToolbarStatusProps) => {const session = useTransformSession(engine);const hasFloat = useCanvasHasFloatingSelection(engine);- const disabled = !session && !hasFloat;+ // The root sticky footer sits OUTSIDE the inert tool section, so the+ // surface lock must be honored here, not inherited.+ const disabled = isExternalInteractionLocked || (!session && !hasFloat);const onApply = useCallback(() => engine.layers.applyTransform(), [engine]);const onCancel = useCallback(() => engine.layers.cancelTransform(), [engine]);return <ToolbarStatus applyDisabled={disabled} cancelDisabled={disabled} onApply={onApply} onCancel={onCancel} />;diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/toolAdapters.test.ts b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/toolAdapters.test.tsindex 85cc84b2cb..4c2d9c5817 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/toolAdapters.test.ts+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/toolAdapters.test.ts@@ -4,6 +4,7 @@ import { describe, expect, it } from 'vitest';import {hasToolControls,+ isOperationPropertyForm,isToolPropertyForm,OPERATION_PRESENTATION_ADAPTERS,TOOL_PRESENTATION_ADAPTERS,@@ -83,11 +84,16 @@ describe('tool presentation adapters', () => {expect(en.widgets.properties.sections.operation).toEqual(expect.any(String));});- it('gives both guarded operations a status region so Apply and Cancel stay in place', () => {+ it('gives every guarded operation a verbs slot so Apply and Cancel stay in place', () => {expect(Object.keys(OPERATION_PRESENTATION_ADAPTERS).sort()).toEqual(['filter', 'select-object']);for (const adapter of Object.values(OPERATION_PRESENTATION_ADAPTERS)) {- expect(adapter.status).toBeDefined();- expect(adapter.modes).toBeDefined();+ if (isOperationPropertyForm(adapter)) {+ expect(adapter.footer).toBeDefined();+ expect(adapter.groups.length).toBeGreaterThan(0);+ } else {+ expect(adapter.status).toBeDefined();+ expect(adapter.modes).toBeDefined();+ }}});});diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/toolAdapters.ts b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/toolAdapters.tsindex 63d91243cf..1c8f33c5c6 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/toolAdapters.ts+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/toolAdapters.ts@@ -1,6 +1,6 @@import type { ToolId } from '@workbench/canvas-engine/api';-import { filterOperationAdapter } from '@workbench/widgets/canvas/tool-options/FilterOptions';+import { filterOperationForm } from '@workbench/widgets/canvas/tool-options/FilterOptions';import { bboxForm, moveForm, transformForm } from '@workbench/widgets/canvas/tool-options/geometryForm';import { gradientForm } from '@workbench/widgets/canvas/tool-options/GradientOptions';import { brushForm, eraserForm } from '@workbench/widgets/canvas/tool-options/paintForm';@@ -11,12 +11,12 @@ import { textForm } from '@workbench/widgets/canvas/tool-options/TextOptions';import type {CanvasOperationKind,- OperationPresentationAdapter,+ OperationPanePresentation,ToolPanePresentation,ToolPresentationAdapter,} from './toolbarContracts';-import { isToolPropertyForm } from './toolbarContracts';+import { isOperationPropertyForm, isToolPropertyForm } from './toolbarContracts';/** Tools with no primary settings show their name and hint; the shell never unmounts for them. */const hintOnly = (id: ToolId): ToolPresentationAdapter => ({ id });@@ -37,8 +37,8 @@ export const TOOL_PRESENTATION_ADAPTERS: Readonly<Record<ToolId, ToolPanePresentview: hintOnly('view'),};-export const OPERATION_PRESENTATION_ADAPTERS: Readonly<Record<CanvasOperationKind, OperationPresentationAdapter>> = {- filter: filterOperationAdapter,+export const OPERATION_PRESENTATION_ADAPTERS: Readonly<Record<CanvasOperationKind, OperationPanePresentation>> = {+ filter: filterOperationForm,'select-object': selectObjectOperationAdapter,};@@ -49,4 +49,4 @@ export const hasToolRegions = (adapter: ToolPresentationAdapter): boolean =>export const hasToolControls = (adapter: ToolPanePresentation): boolean =>isToolPropertyForm(adapter) ? adapter.groups.length > 0 : hasToolRegions(adapter);-export { isToolPropertyForm };+export { isOperationPropertyForm, isToolPropertyForm };diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/toolbarContracts.ts b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/toolbarContracts.tsindex cc8725d96d..d077e4162e 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/toolbarContracts.ts+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-presentation/toolbarContracts.ts@@ -85,3 +85,16 @@ export interface ToolPropertyForm {export type ToolPanePresentation = ToolPresentationAdapter | ToolPropertyForm;export const isToolPropertyForm = (adapter: ToolPanePresentation): adapter is ToolPropertyForm => 'groups' in adapter;++/** A guarded operation's pane form: named groups plus the sticky footer that owns its verbs. */+export interface OperationPropertyForm {+ kind: CanvasOperationKind;+ groups: readonly ToolPropertyGroup[];+ /** Status chip, Process/Reset, Apply and Cancel; pinned to the pane's bottom edge. */+ footer: ComponentType<ToolbarStatusProps>;+}++export type OperationPanePresentation = OperationPresentationAdapter | OperationPropertyForm;++export const isOperationPropertyForm = (adapter: OperationPanePresentation): adapter is OperationPropertyForm =>+ 'groups' in adapter;diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerFilterControls.test.ts b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerFilterControls.test.tsindex 56c40122bf..c7db7104a8 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerFilterControls.test.ts+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerFilterControls.test.ts@@ -3,26 +3,15 @@ import { describe, expect, it } from 'vitest';import { getLayerFilterControlPolicy } from './LayerFilterControls';describe('getLayerFilterControlPolicy', () => {- it('keeps layer properties compact and gives the context toolbar fixed-width downward-opening fields', () => {- expect(getLayerFilterControlPolicy('property')).toEqual({+ it('renders compact vertical fields with steppers and downward-opening selects', () => {+ expect(getLayerFilterControlPolicy()).toEqual({controlMinH: undefined,controlSize: 'xs',fieldOrientation: 'vertical',- fieldW: undefined,modelSize: 'xs',positioning: { placement: 'bottom-end', sameWidth: false },showFilterLabel: true,showNumberStepper: true,});- expect(getLayerFilterControlPolicy('operation')).toEqual({- controlMinH: undefined,- controlSize: 'xs',- fieldOrientation: 'horizontal',- fieldW: { enum: '13rem', filter: '11rem', model: '16rem', number: '17rem', string: '13rem' },- modelSize: 'xs',- positioning: { placement: 'bottom-end', sameWidth: false },- showFilterLabel: false,- showNumberStepper: false,- });});});diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerFilterControls.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerFilterControls.tsxindex 76809f6dfc..e5b3c4137a 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerFilterControls.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerFilterControls.tsx@@ -29,35 +29,21 @@ interface LayerFilterControlsProps {focusFilter: boolean;/** Which controls to render; the context toolbar shows the type in its bar and the parameters in its More menu. */parts?: 'all' | 'params' | 'type';- variant?: LayerFilterControlsVariant;onFilterTypeChange(value: string): void;onSettingsChange(value: Record<string, unknown>): void;}-type LayerFilterControlsVariant = 'operation' | 'property';--export const getLayerFilterControlPolicy = (variant: LayerFilterControlsVariant) =>- variant === 'operation'- ? ({- controlMinH: undefined,- controlSize: 'xs',- fieldOrientation: 'horizontal',- fieldW: { enum: '13rem', filter: '11rem', model: '16rem', number: '17rem', string: '13rem' },- modelSize: 'xs',- positioning: SELECT_POSITIONING_DOWN,- showFilterLabel: false,- showNumberStepper: false,- } as const)- : ({- controlMinH: undefined,- controlSize: 'xs',- fieldOrientation: 'vertical',- fieldW: undefined,- modelSize: 'xs',- positioning: SELECT_POSITIONING_DOWN,- showFilterLabel: true,- showNumberStepper: true,- } as const);+/** The pane form is the one consumer left; the toolbar's horizontal variant died with it. */+export const getLayerFilterControlPolicy = () =>+ ({+ controlMinH: undefined,+ controlSize: 'xs',+ fieldOrientation: 'vertical',+ modelSize: 'xs',+ positioning: SELECT_POSITIONING_DOWN,+ showFilterLabel: true,+ showNumberStepper: true,+ }) as const;export const LayerFilterControls = ({disabled,@@ -67,7 +53,6 @@ export const LayerFilterControls = ({onSettingsChange,parts = 'all',settings,- variant = 'property',}: LayerFilterControlsProps) => {const { t } = useTranslation();const definition = getFilterDefinition(filterType);@@ -82,8 +67,7 @@ export const LayerFilterControls = ({[t]);const filterValue = useMemo(() => [filterType], [filterType]);- const policy = getLayerFilterControlPolicy(variant);- const filterFieldW = policy.fieldW?.filter;+ const policy = getLayerFilterControlPolicy();const filterTriggerProps = useMemo(() => ({ autoFocus: focusFilter, minH: policy.controlMinH }),[focusFilter, policy.controlMinH]@@ -120,13 +104,9 @@ export const LayerFilterControls = ({return (<>{parts === 'params' ? null : policy.showFilterLabel ? (- <Field label={t('widgets.layers.control.filter')} w={filterFieldW}>- {filterSelect}- </Field>+ <Field label={t('widgets.layers.control.filter')}>{filterSelect}</Field>) : (- <Box flexShrink="0" w={filterFieldW}>- {filterSelect}- </Box>+ <Box flexShrink="0">{filterSelect}</Box>)}{parts === 'type'? null@@ -251,7 +231,7 @@ const FilterParamField = ({ disabled, param, policy, settings, value, onChange }if (param.kind === 'enum' && enumCollection) {return (- <Field label={label} orientation={policy.fieldOrientation} w={policy.fieldW?.enum}>+ <Field label={label} orientation={policy.fieldOrientation}><Selectaria-label={label}collection={enumCollection}@@ -270,7 +250,7 @@ const FilterParamField = ({ disabled, param, policy, settings, value, onChange }if (param.kind === 'model') {const model = isSpandrelModelIdentifier(value) ? (value as { key: string }) : null;return (- <Field label={label} orientation={policy.fieldOrientation} required w={policy.fieldW?.model}>+ <Field label={label} orientation={policy.fieldOrientation} required><ModelSelectdisabled={disabled}invalid={!model}@@ -286,7 +266,7 @@ const FilterParamField = ({ disabled, param, policy, settings, value, onChange }if (param.kind === 'string') {return (- <Field label={label} orientation={policy.fieldOrientation} w={policy.fieldW?.string}>+ <Field label={label} orientation={policy.fieldOrientation}><Inputdisabled={disabled}minH={policy.controlMinH}@@ -303,7 +283,7 @@ const FilterParamField = ({ disabled, param, policy, settings, value, onChange }}return (- <Field label={label} orientation={policy.fieldOrientation} w={policy.fieldW?.number}>+ <Field label={label} orientation={policy.fieldOrientation}><HStack gap="2"><Slideraria-label={labelAria}diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/panes/PropertiesPane.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/panes/PropertiesPane.tsxindex 319b488e93..e81e8e7567 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/panes/PropertiesPane.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/panes/PropertiesPane.tsx@@ -5,6 +5,7 @@ import { useCanvasActiveTool, useCanvasOperation } from '@workbench/widgets/canvimport { PropertyGroup } from '@workbench/widgets/canvas/tool-presentation/PropertyPrimitives';import {hasToolRegions,+ isOperationPropertyForm,isToolPropertyForm,OPERATION_PRESENTATION_ADAPTERS,TOOL_PRESENTATION_ADAPTERS,@@ -65,12 +66,17 @@ const ConnectedProperties = ({const activeTool = useCanvasActiveTool(engine);const operation = useCanvasOperation(engine);const running = operation.status === 'active' ? OPERATION_PRESENTATION_ADAPTERS[operation.identity.kind] : null;+ const runningForm = running && isOperationPropertyForm(running) ? running : null;+ const runningLegacy = running && !isOperationPropertyForm(running) ? running : null;const tool = TOOL_PRESENTATION_ADAPTERS[activeTool];const toolName = t(`widgets.canvas.tools.${tool.id}`);const form = isToolPropertyForm(tool) ? tool : null;const legacy = isToolPropertyForm(tool) ? null : tool;const ToolStatus = legacy?.status;const Preview = form?.preview;+ // The pane has ONE sticky footer: a running operation's, else the tool+ // form's; the operation always wins because the tool section is inert then.+ const Footer = runningForm ? runningForm.footer : running ? null : form?.footer;const regionProps = { engine, isSurfaceInteractionLocked };const rows = ([@@ -100,9 +106,18 @@ const ConnectedProperties = ({)}title={t('widgets.properties.sections.operation')}>- {running.modes ? <running.modes {...regionProps} /> : null}- {running.more ? <running.more {...regionProps} /> : null}- <running.status engine={engine} isExternalInteractionLocked={isSurfaceInteractionLocked} />+ {runningForm+ ? runningForm.groups.map((group) => (+ <PropertyGroup key={group.id} collapsible={group.collapsible} id={group.id} label={t(group.labelKey)}>+ <group.body {...regionProps} />+ </PropertyGroup>+ ))+ : null}+ {runningLegacy?.modes ? <runningLegacy.modes {...regionProps} /> : null}+ {runningLegacy?.more ? <runningLegacy.more {...regionProps} /> : null}+ {runningLegacy ? (+ <runningLegacy.status engine={engine} isExternalInteractionLocked={isSurfaceInteractionLocked} />+ ) : null}</PropertiesSection>) : null}<PropertiesSection@@ -122,20 +137,6 @@ const ConnectedProperties = ({<group.body {...regionProps} /></PropertyGroup>))}- {form.footer ? (- <Flex- bg="bg.panel"- borderColor="border.subtle"- borderTopWidth="1px"- bottom="0"- mx="-3"- position="sticky"- px="3"- py="1.5"- >- <form.footer engine={engine} isExternalInteractionLocked={isSurfaceInteractionLocked} />- </Flex>- ) : null}</>) : legacy && hasToolRegions(legacy) ? (rows.map(([region, Region]) => (@@ -154,6 +155,19 @@ const ConnectedProperties = ({{ToolStatus ? <ToolStatus engine={engine} isExternalInteractionLocked={isSurfaceInteractionLocked} /> : null}</PropertiesSection><LayerSection disabled={isSurfaceInteractionLocked || running !== null} />+ {Footer ? (+ <Flex+ bg="bg.panel"+ borderColor="border.subtle"+ borderTopWidth="1px"+ bottom="0"+ position="sticky"+ px="3"+ py="1.5"+ >+ <Footer engine={engine} isExternalInteractionLocked={isSurfaceInteractionLocked} />+ </Flex>+ ) : null}</Stack>);};