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(gallery): support listing images across all boards

joshistoast2dc99da77ffe
diff --git a/invokeai/frontend/webv2/src/features/gallery/data/backend.ts b/invokeai/frontend/webv2/src/features/gallery/data/backend.ts
index 263e5feded..2972ac1bad 100644
--- a/invokeai/frontend/webv2/src/features/gallery/data/backend.ts
+++ b/invokeai/frontend/webv2/src/features/gallery/data/backend.ts
@@ -263,7 +263,8 @@ export const listGalleryImages = async ({
searchTerm,
starredFirst = false,
}: {
- boardId: string;
+ /** Omit to list across every board the user can see. */
+ boardId?: string;
createdFrom?: string;
createdTo?: string;
galleryView: GalleryView;
@@ -273,7 +274,7 @@ export const listGalleryImages = async ({
searchTerm: string;
starredFirst?: boolean;
}): Promise<GalleryImagesPage> => {
- if (isDateBoardId(boardId)) {
+ if (boardId !== undefined && isDateBoardId(boardId)) {
return listGalleryDateBoardImages({
boardId,
createdFrom,
diff --git a/invokeai/frontend/webv2/src/features/gallery/data/queries.ts b/invokeai/frontend/webv2/src/features/gallery/data/queries.ts
index 091c7c2f4f..ba6052f8a3 100644
--- a/invokeai/frontend/webv2/src/features/gallery/data/queries.ts
+++ b/invokeai/frontend/webv2/src/features/gallery/data/queries.ts
@@ -13,7 +13,8 @@ export interface GalleryBoardsQuery {
}
export interface GalleryImagesQuery {
- boardId: string;
+ /** Omit to search across every board the user can see. */
+ boardId?: string;
/** Inclusive lower-bound calendar day (YYYY-MM-DD) on created_at. */
createdFrom?: string;
/** Inclusive upper-bound calendar day (YYYY-MM-DD) on created_at. */