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.

fix: point mixed-upload success notice at the Uploads tab (#9847)

Aniket Kumarfe68285d5a00
diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.json
index d26cfa7172..e1289b61c0 100644
--- a/invokeai/frontend/webv2/public/locales/en.json
+++ b/invokeai/frontend/webv2/public/locales/en.json
@@ -5286,7 +5286,7 @@
"uploadFailed": "No files uploaded. {{failed}} failed.",
"uploadMediaToBoard": "Upload media to {{name}}",
"uploadPartialTitle": "Uploaded {{succeeded}} of {{total}} files",
- "uploadSplit": "Images appear in Uploads; videos appear in Media.",
+ "uploadSplit": "Images and videos appear in Uploads.",
"uploadSuccessTitle_one": "Uploaded {{count}} file",
"uploadSuccessTitle_other": "Uploaded {{count}} files",
"uploadSummary": "{{images}} and {{videos}} uploaded to {{board}}. {{failed}} failed.",
diff --git a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryWidgetView.test.ts b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryWidgetView.test.ts
index 11945133e9..f46b15a2a3 100644
--- a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryWidgetView.test.ts
+++ b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryWidgetView.test.ts
@@ -56,7 +56,7 @@ describe('mixed-media gallery translations', () => {
videos: instance.t('widgets.gallery.videoCount', { count: 3 }),
})
).toBe('2 images and 3 videos uploaded to Clips. 1 failed.');
- expect(instance.t('widgets.gallery.uploadSplit')).toBe('Images appear in Uploads; videos appear in Media.');
+ expect(instance.t('widgets.gallery.uploadSplit')).toBe('Images and videos appear in Uploads.');
expect(
instance.t('widgets.gallery.deleteBoardMediaOutcome', {
failedImages: instance.t('widgets.gallery.imageCount', { count: 1 }),
diff --git a/invokeai/frontend/webv2/src/features/gallery/ui/useGalleryActions.browser.test.tsx b/invokeai/frontend/webv2/src/features/gallery/ui/useGalleryActions.browser.test.tsx
index 3b6822d5e0..e0e2f63a9f 100644
--- a/invokeai/frontend/webv2/src/features/gallery/ui/useGalleryActions.browser.test.tsx
+++ b/invokeai/frontend/webv2/src/features/gallery/ui/useGalleryActions.browser.test.tsx
@@ -66,7 +66,7 @@ vi.mock('react-i18next', () => ({
'widgets.gallery.uploadDateBoardUnavailable': 'Uploads are unavailable for date boards.',
'widgets.gallery.uploadFailed': `No files uploaded. ${String(values?.failed)} failed.`,
'widgets.gallery.uploadPartialTitle': `Uploaded ${String(values?.succeeded)} of ${String(values?.total)} files`,
- 'widgets.gallery.uploadSplit': 'Images appear in Assets; videos appear in Media.',
+ 'widgets.gallery.uploadSplit': 'Images and videos appear in Uploads.',
'widgets.gallery.uploadSummary': `${String(values?.images)} and ${String(values?.videos)} uploaded to ${String(
values?.board
)}. ${String(values?.failed)} failed.`,
@@ -934,7 +934,7 @@ describe('mixed gallery upload', () => {
expect(mocks.notificationsAdd).toHaveBeenCalledOnce();
expect(mocks.notificationsAdd).toHaveBeenCalledWith({
kind: 'success',
- message: '2 images and 2 videos uploaded to Board 1. 1 failed. Images appear in Assets; videos appear in Media.',
+ message: '2 images and 2 videos uploaded to Board 1. 1 failed. Images and videos appear in Uploads.',
title: 'Uploaded 4 of 5 files',
});
});
diff --git a/invokeai/frontend/webv2/src/features/gallery/ui/useGalleryUploadAction.browser.test.tsx b/invokeai/frontend/webv2/src/features/gallery/ui/useGalleryUploadAction.browser.test.tsx
index 4a4ef6a047..db8cd43eb8 100644
--- a/invokeai/frontend/webv2/src/features/gallery/ui/useGalleryUploadAction.browser.test.tsx
+++ b/invokeai/frontend/webv2/src/features/gallery/ui/useGalleryUploadAction.browser.test.tsx
@@ -46,7 +46,7 @@ vi.mock('react-i18next', () => ({
'widgets.gallery.uploadDateBoardUnavailable': 'Uploads are unavailable for date boards.',
'widgets.gallery.uploadFailed': `No files uploaded. ${String(values?.failed)} failed.`,
'widgets.gallery.uploadPartialTitle': `Uploaded ${String(values?.succeeded)} of ${String(values?.total)} files`,
- 'widgets.gallery.uploadSplit': 'Images appear in Assets; videos appear in Media.',
+ 'widgets.gallery.uploadSplit': 'Images and videos appear in Uploads.',
'widgets.gallery.uploadSummary': `${String(values?.images)} and ${String(values?.videos)} uploaded to ${String(
values?.board
)}. ${String(values?.failed)} failed.`,
@@ -294,7 +294,7 @@ describe('focused gallery upload action', () => {
expect(mocks.invalidateGallery).toHaveBeenCalledOnce();
expect(mocks.notificationsAdd).toHaveBeenCalledWith({
kind: 'success',
- message: '2 images and 2 videos uploaded to Board 1. 1 failed. Images appear in Assets; videos appear in Media.',
+ message: '2 images and 2 videos uploaded to Board 1. 1 failed. Images and videos appear in Uploads.',
title: 'Uploaded 4 of 5 files',
});
expect(selectItem).toHaveBeenCalledExactlyOnceWith(expect.objectContaining({ kind: 'video', name: 'third.mp4' }));