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
fix(webv2): badge project boards by ownership in the panel test
Josh Corbett5d69dfa419e1
diff --git a/invokeai/frontend/webv2/performance/architecture-baseline.json b/invokeai/frontend/webv2/performance/architecture-baseline.jsonindex 3fb8d05204..6d6d5962a0 100644--- a/invokeai/frontend/webv2/performance/architecture-baseline.json+++ b/invokeai/frontend/webv2/performance/architecture-baseline.json@@ -858,9 +858,7 @@"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/src/features/gallery/ui/GalleryBoardsPanel.browser.test.tsx b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryBoardsPanel.browser.test.tsxindex 36b70ae0a9..916cadd787 100644--- a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryBoardsPanel.browser.test.tsx+++ b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryBoardsPanel.browser.test.tsx@@ -168,8 +168,15 @@ describe('GalleryBoardsPanel', () => {expect(text).toContain('GORL');});- it('marks the project board with a Project badge', async () => {- await renderPanel({ ...createGallery(), projectBoardId: 'cats' } as GalleryStateView);+ /**+ * The badge follows board ownership, not the open project: the server tells every board whose+ * project it belongs to, and one that belongs to a project the user is not in is protected the+ * same way. Only the *hoisting* is about the active project.+ */+ it('marks every project-owned board with a Project badge', async () => {+ const ownedBoards = boards.map((board) => (board.id === 'cats' ? { ...board, projectId: 'p1' } : board));++ await renderPanel({ ...createGallery(), boards: ownedBoards, projectBoardId: 'cats' } as GalleryStateView);const catsRow = getBoardRows().find((row) => row.textContent?.includes('Cats'));