High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
feat: primary notifications (#26988)
Jason Rasmussen48e6e1782951
diff --git a/web/src/lib/components/QueuePanel.svelte b/web/src/lib/components/QueuePanel.svelteindex 177cbf33c3..2b091c6750 100644--- a/web/src/lib/components/QueuePanel.svelte+++ b/web/src/lib/components/QueuePanel.svelte@@ -112,7 +112,7 @@switch (dto.command) {case QueueCommand.Empty: {- toastManager.success($t('admin.cleared_jobs', { values: { job: item.title } }));+ toastManager.primary($t('admin.cleared_jobs', { values: { job: item.title } }));break;}}diff --git a/web/src/lib/components/admin-settings/AuthSettings.svelte b/web/src/lib/components/admin-settings/AuthSettings.svelteindex 25af7bf2c1..ae0e1c97c5 100644--- a/web/src/lib/components/admin-settings/AuthSettings.svelte+++ b/web/src/lib/components/admin-settings/AuthSettings.svelte@@ -55,7 +55,7 @@try {await unlinkAllOAuthAccountsAdmin();- toastManager.success();+ toastManager.primary();} catch (error) {handleError(error, $t('errors.something_went_wrong'));}diff --git a/web/src/lib/components/admin-settings/NotificationSettings.svelte b/web/src/lib/components/admin-settings/NotificationSettings.svelteindex e97af356df..f6c98c2cc4 100644--- a/web/src/lib/components/admin-settings/NotificationSettings.svelte+++ b/web/src/lib/components/admin-settings/NotificationSettings.svelte@@ -45,7 +45,7 @@},});- toastManager.success($t('admin.notification_email_test_email_sent', { values: { email: $user.email } }));+ toastManager.primary($t('admin.notification_email_test_email_sent', { values: { email: $user.email } }));if (!disabled) {await handleSystemConfigSave({ notifications: configToEdit.notifications });diff --git a/web/src/lib/components/asset-viewer/actions/delete-action.svelte b/web/src/lib/components/asset-viewer/actions/delete-action.svelteindex 24ef7d941f..60cf59a7ca 100644--- a/web/src/lib/components/asset-viewer/actions/delete-action.svelte+++ b/web/src/lib/components/asset-viewer/actions/delete-action.svelte@@ -40,7 +40,7 @@preAction({ type: AssetAction.DELETE, asset: timelineAsset });await deleteAssets({ assetBulkDeleteDto: { ids: [asset.id], force: true } });onAction({ type: AssetAction.DELETE, asset: timelineAsset });- toastManager.success($t('permanently_deleted_asset'));+ toastManager.primary($t('permanently_deleted_asset'));} catch (error) {handleError(error, $t('errors.unable_to_delete_asset'));}diff --git a/web/src/lib/components/asset-viewer/actions/restore-action.svelte b/web/src/lib/components/asset-viewer/actions/restore-action.svelteindex 311eab461b..9a8a22f486 100644--- a/web/src/lib/components/asset-viewer/actions/restore-action.svelte+++ b/web/src/lib/components/asset-viewer/actions/restore-action.svelte@@ -21,7 +21,7 @@await restoreAssets({ bulkIdsDto: { ids: [asset.id] } });asset.isTrashed = false;onAction({ type: AssetAction.RESTORE, asset: toTimelineAsset(asset) });- toastManager.success($t('restored_asset'));+ toastManager.primary($t('restored_asset'));} catch (error) {handleError(error, $t('errors.unable_to_restore_assets'));}diff --git a/web/src/lib/components/asset-viewer/actions/set-album-cover-action.svelte b/web/src/lib/components/asset-viewer/actions/set-album-cover-action.svelteindex 98d01ff9d3..bb36220e89 100644--- a/web/src/lib/components/asset-viewer/actions/set-album-cover-action.svelte+++ b/web/src/lib/components/asset-viewer/actions/set-album-cover-action.svelte@@ -23,7 +23,7 @@},});eventManager.emit('AlbumUpdate', response);- toastManager.success($t('album_cover_updated'));+ toastManager.primary($t('album_cover_updated'));} catch (error) {handleError(error, $t('errors.unable_to_update_album_cover'));}diff --git a/web/src/lib/components/asset-viewer/actions/set-person-featured-action.svelte b/web/src/lib/components/asset-viewer/actions/set-person-featured-action.svelteindex dcc8921a34..136737d830 100644--- a/web/src/lib/components/asset-viewer/actions/set-person-featured-action.svelte+++ b/web/src/lib/components/asset-viewer/actions/set-person-featured-action.svelte@@ -31,7 +31,7 @@person,});- toastManager.success($t('feature_photo_updated'));+ toastManager.primary($t('feature_photo_updated'));} catch (error) {handleError(error, $t('errors.unable_to_set_feature_photo'));}diff --git a/web/src/lib/components/asset-viewer/activity-viewer.svelte b/web/src/lib/components/asset-viewer/activity-viewer.svelteindex 4120212165..0dc031a5e3 100644--- a/web/src/lib/components/asset-viewer/activity-viewer.svelte+++ b/web/src/lib/components/asset-viewer/activity-viewer.svelte@@ -74,7 +74,7 @@[ReactionType.Comment]: $t('comment_deleted'),[ReactionType.Like]: $t('like_deleted'),};- toastManager.success(deleteMessages[reaction.type]);+ toastManager.primary(deleteMessages[reaction.type]);} catch (error) {handleError(error, $t('errors.unable_to_remove_reaction'));}diff --git a/web/src/lib/components/asset-viewer/detail-panel-description.svelte b/web/src/lib/components/asset-viewer/detail-panel-description.svelteindex 9aeb7855b6..e766975b8c 100644--- a/web/src/lib/components/asset-viewer/detail-panel-description.svelte+++ b/web/src/lib/components/asset-viewer/detail-panel-description.svelte@@ -22,7 +22,7 @@}try {await updateAsset({ id: asset.id, updateAssetDto: { description } });- toastManager.success($t('asset_description_updated'));+ toastManager.primary($t('asset_description_updated'));} catch (error) {handleError(error, $t('cannot_update_the_description'));}diff --git a/web/src/lib/components/faces-page/manage-people-visibility.svelte b/web/src/lib/components/faces-page/manage-people-visibility.svelteindex 619a908507..f47b4b0921 100644--- a/web/src/lib/components/faces-page/manage-people-visibility.svelte+++ b/web/src/lib/components/faces-page/manage-people-visibility.svelte@@ -67,7 +67,7 @@if (failCount > 0) {toastManager.warning($t('errors.unable_to_change_visibility', { values: { count: failCount } }));}- toastManager.success($t('visibility_changed', { values: { count: successCount } }));+ toastManager.primary($t('visibility_changed', { values: { count: successCount } }));}for (const person of people) {diff --git a/web/src/lib/components/faces-page/merge-face-selector.svelte b/web/src/lib/components/faces-page/merge-face-selector.svelteindex 9584afceca..55be17c535 100644--- a/web/src/lib/components/faces-page/merge-face-selector.svelte+++ b/web/src/lib/components/faces-page/merge-face-selector.svelte@@ -72,7 +72,7 @@});const mergedPerson = await getPerson({ id: person.id });const count = results.filter(({ success }) => success).length;- toastManager.success($t('merged_people_count', { values: { count } }));+ toastManager.primary($t('merged_people_count', { values: { count } }));onMerge(mergedPerson);} catch (error) {handleError(error, $t('cannot_merge_people'));diff --git a/web/src/lib/components/faces-page/person-side-panel.svelte b/web/src/lib/components/faces-page/person-side-panel.svelteindex 6bcede36c3..cad29706a4 100644--- a/web/src/lib/components/faces-page/person-side-panel.svelte+++ b/web/src/lib/components/faces-page/person-side-panel.svelte@@ -1,6 +1,7 @@<script lang="ts">import OnEvents from '$lib/components/OnEvents.svelte';import { timeBeforeShowLoadingSpinner } from '$lib/constants';+ import { assetViewerManager } from '$lib/managers/asset-viewer-manager.svelte';import { eventManager } from '$lib/managers/event-manager.svelte';import { assetViewingStore } from '$lib/stores/asset-viewing.store';import { boundingBoxesArray } from '$lib/stores/people.store';@@ -25,7 +26,6 @@import { fly } from 'svelte/transition';import ImageThumbnail from '../assets/thumbnail/image-thumbnail.svelte';import AssignFaceSidePanel from './assign-face-side-panel.svelte';- import { assetViewerManager } from '$lib/managers/asset-viewer-manager.svelte';interface Props {assetId: string;@@ -126,7 +126,7 @@}}- toastManager.success($t('people_edits_count', { values: { count: numberOfChanges } }));+ toastManager.primary($t('people_edits_count', { values: { count: numberOfChanges } }));} catch (error) {handleError(error, $t('errors.cant_apply_changes'));}diff --git a/web/src/lib/components/faces-page/unmerge-face-selector.svelte b/web/src/lib/components/faces-page/unmerge-face-selector.svelteindex f12df74730..735e7a450a 100644--- a/web/src/lib/components/faces-page/unmerge-face-selector.svelte+++ b/web/src/lib/components/faces-page/unmerge-face-selector.svelte@@ -71,7 +71,7 @@disableButtons = true;const data = await createPerson({ personCreateDto: {} });await reassignFaces({ id: data.id, assetFaceUpdateDto: { data: selectedPeople } });- toastManager.success($t('reassigned_assets_to_new_person', { values: { count: assetIds.length } }));+ toastManager.primary($t('reassigned_assets_to_new_person', { values: { count: assetIds.length } }));} catch (error) {handleError(error, $t('errors.unable_to_reassign_assets_new_person'));} finally {@@ -88,7 +88,7 @@disableButtons = true;if (selectedPerson) {await reassignFaces({ id: selectedPerson.id, assetFaceUpdateDto: { data: selectedPeople } });- toastManager.success(+ toastManager.primary($t('reassigned_assets_to_existing_person', {values: { count: assetIds.length, name: selectedPerson.name || null },}),diff --git a/web/src/lib/components/memory-page/memory-viewer.svelte b/web/src/lib/components/memory-page/memory-viewer.svelteindex d20eb29227..c86385b8d9 100644--- a/web/src/lib/components/memory-page/memory-viewer.svelte+++ b/web/src/lib/components/memory-page/memory-viewer.svelte@@ -206,7 +206,7 @@}await memoryStore.deleteMemory(current.memory.id);- toastManager.success($t('removed_memory'));+ toastManager.primary($t('removed_memory'));init(page);};@@ -217,7 +217,7 @@const newSavedState = !current.memory.isSaved;await memoryStore.updateMemorySaved(current.memory.id, newSavedState);- toastManager.success(newSavedState ? $t('added_to_favorites') : $t('removed_from_favorites'));+ toastManager.primary(newSavedState ? $t('added_to_favorites') : $t('removed_from_favorites'));init(page);};diff --git a/web/src/lib/components/share-page/individual-shared-viewer.svelte b/web/src/lib/components/share-page/individual-shared-viewer.svelteindex 0bf1a2f7f2..ec58bd7ea3 100644--- a/web/src/lib/components/share-page/individual-shared-viewer.svelte+++ b/web/src/lib/components/share-page/individual-shared-viewer.svelte@@ -52,7 +52,7 @@? openFileUploadDialog(): fileUploadHandler({ files }));- toastManager.success();+ toastManager.primary();} catch (error) {handleError(error, $t('errors.unable_to_add_assets_to_shared_link'));}diff --git a/web/src/lib/components/shared-components/upload-panel.svelte b/web/src/lib/components/shared-components/upload-panel.svelteindex 13b980f085..498410b815 100644--- a/web/src/lib/components/shared-components/upload-panel.svelte+++ b/web/src/lib/components/shared-components/upload-panel.svelte@@ -30,7 +30,7 @@if ($stats.errors > 0) {toastManager.danger($t('upload_errors', { values: { count: $stats.errors } }));} else if ($stats.success > 0) {- toastManager.success($t('upload_success'));+ toastManager.primary($t('upload_success'));}if ($stats.duplicates > 0) {toastManager.warning($t('upload_skipped_duplicates', { values: { count: $stats.duplicates } }));diff --git a/web/src/lib/components/timeline/actions/FavoriteAction.svelte b/web/src/lib/components/timeline/actions/FavoriteAction.svelteindex 7978c8f9c5..d970a16b8d 100644--- a/web/src/lib/components/timeline/actions/FavoriteAction.svelte+++ b/web/src/lib/components/timeline/actions/FavoriteAction.svelte@@ -42,7 +42,7 @@onFavorite?.(ids, isFavorite);- toastManager.success(+ toastManager.primary(isFavorite? $t('added_to_favorites_count', { values: { count: ids.length } }): $t('removed_from_favorites_count', { values: { count: ids.length } }),diff --git a/web/src/lib/components/timeline/actions/RemoveFromAlbumAction.svelte b/web/src/lib/components/timeline/actions/RemoveFromAlbumAction.svelteindex 5ad696767e..ea2a8d4c2d 100644--- a/web/src/lib/components/timeline/actions/RemoveFromAlbumAction.svelte+++ b/web/src/lib/components/timeline/actions/RemoveFromAlbumAction.svelte@@ -38,7 +38,7 @@onRemove?.(ids);const count = results.filter(({ success }) => success).length;- toastManager.success($t('assets_removed_count', { values: { count } }));+ toastManager.primary($t('assets_removed_count', { values: { count } }));clearSelect();} catch (error) {diff --git a/web/src/lib/components/timeline/actions/RestoreAction.svelte b/web/src/lib/components/timeline/actions/RestoreAction.svelteindex 3a2258d49a..48094825f6 100644--- a/web/src/lib/components/timeline/actions/RestoreAction.svelte+++ b/web/src/lib/components/timeline/actions/RestoreAction.svelte@@ -24,7 +24,7 @@const ids = [...getAssets()].map((a) => a.id);await restoreAssets({ bulkIdsDto: { ids } });onRestore?.(ids);- toastManager.success($t('assets_restored_count', { values: { count: ids.length } }));+ toastManager.primary($t('assets_restored_count', { values: { count: ids.length } }));clearSelect();} catch (error) {handleError(error, $t('errors.unable_to_restore_assets'));diff --git a/web/src/lib/components/user-settings-page/PinCodeChangeForm.svelte b/web/src/lib/components/user-settings-page/PinCodeChangeForm.svelteindex 1323380b7e..f230a01ba5 100644--- a/web/src/lib/components/user-settings-page/PinCodeChangeForm.svelte+++ b/web/src/lib/components/user-settings-page/PinCodeChangeForm.svelte@@ -22,7 +22,7 @@try {await changePinCode({ pinCodeChangeDto: { pinCode: currentPinCode, newPinCode } });resetForm();- toastManager.success($t('pin_code_changed_successfully'));+ toastManager.primary($t('pin_code_changed_successfully'));} catch (error) {handleError(error, $t('unable_to_change_pin_code'));} finally {diff --git a/web/src/lib/components/user-settings-page/PinCodeCreateForm.svelte b/web/src/lib/components/user-settings-page/PinCodeCreateForm.svelteindex 3307474401..7ee9fb3565 100644--- a/web/src/lib/components/user-settings-page/PinCodeCreateForm.svelte+++ b/web/src/lib/components/user-settings-page/PinCodeCreateForm.svelte@@ -26,7 +26,7 @@isLoading = true;try {await setupPinCode({ pinCodeSetupDto: { pinCode: newPinCode } });- toastManager.success($t('pin_code_setup_successfully'));+ toastManager.primary($t('pin_code_setup_successfully'));onCreated?.(newPinCode);resetForm();} catch (error) {diff --git a/web/src/lib/components/user-settings-page/device-list.svelte b/web/src/lib/components/user-settings-page/device-list.svelteindex 6bc94672df..003eb03224 100644--- a/web/src/lib/components/user-settings-page/device-list.svelte+++ b/web/src/lib/components/user-settings-page/device-list.svelte@@ -25,7 +25,7 @@try {await deleteSession({ id: device.id });- toastManager.success($t('logged_out_device'));+ toastManager.primary($t('logged_out_device'));} catch (error) {handleError(error, $t('errors.unable_to_log_out_device'));} finally {@@ -41,7 +41,7 @@try {await deleteAllSessions();- toastManager.success($t('logged_out_all_devices'));+ toastManager.primary($t('logged_out_all_devices'));} catch (error) {handleError(error, $t('errors.unable_to_log_out_all_devices'));} finally {diff --git a/web/src/lib/components/user-settings-page/download-settings.svelte b/web/src/lib/components/user-settings-page/download-settings.svelteindex 78e97ffd11..fb9581c75b 100644--- a/web/src/lib/components/user-settings-page/download-settings.svelte+++ b/web/src/lib/components/user-settings-page/download-settings.svelte@@ -25,7 +25,7 @@});$preferences = newPreferences;- toastManager.success($t('saved_settings'));+ toastManager.primary($t('saved_settings'));} catch (error) {handleError(error, $t('errors.unable_to_update_settings'));}diff --git a/web/src/lib/components/user-settings-page/feature-settings.svelte b/web/src/lib/components/user-settings-page/feature-settings.svelteindex 0ce2e97840..fe0318c009 100644--- a/web/src/lib/components/user-settings-page/feature-settings.svelte+++ b/web/src/lib/components/user-settings-page/feature-settings.svelte@@ -53,7 +53,7 @@$preferences = { ...data };- toastManager.success($t('saved_settings'));+ toastManager.primary($t('saved_settings'));} catch (error) {handleError(error, $t('errors.unable_to_update_settings'));}diff --git a/web/src/lib/components/user-settings-page/notifications-settings.svelte b/web/src/lib/components/user-settings-page/notifications-settings.svelteindex 00bd150b33..225d6268ac 100644--- a/web/src/lib/components/user-settings-page/notifications-settings.svelte+++ b/web/src/lib/components/user-settings-page/notifications-settings.svelte@@ -26,7 +26,7 @@$preferences.emailNotifications.albumInvite = data.emailNotifications.albumInvite;$preferences.emailNotifications.albumUpdate = data.emailNotifications.albumUpdate;- toastManager.success($t('saved_settings'));+ toastManager.primary($t('saved_settings'));} catch (error) {handleError(error, $t('errors.unable_to_update_settings'));}diff --git a/web/src/lib/components/user-settings-page/oauth-settings.svelte b/web/src/lib/components/user-settings-page/oauth-settings.svelteindex f711a8b02d..916ef1b826 100644--- a/web/src/lib/components/user-settings-page/oauth-settings.svelte+++ b/web/src/lib/components/user-settings-page/oauth-settings.svelte@@ -22,7 +22,7 @@try {loading = true;user = await oauth.link(globalThis.location);- toastManager.success($t('linked_oauth_account'));+ toastManager.primary($t('linked_oauth_account'));} catch (error) {handleError(error, $t('errors.unable_to_link_oauth_account'));} finally {@@ -36,7 +36,7 @@const handleUnlink = async () => {try {user = await oauth.unlink();- toastManager.success($t('unlinked_oauth_account'));+ toastManager.primary($t('unlinked_oauth_account'));} catch (error) {handleError(error, $t('errors.unable_to_unlink_account'));}diff --git a/web/src/lib/components/user-settings-page/user-profile-settings.svelte b/web/src/lib/components/user-settings-page/user-profile-settings.svelteindex 4f909a141d..bf431a53da 100644--- a/web/src/lib/components/user-settings-page/user-profile-settings.svelte+++ b/web/src/lib/components/user-settings-page/user-profile-settings.svelte@@ -23,7 +23,7 @@Object.assign(editedUser, data);$user = data;- toastManager.success($t('saved_profile'));+ toastManager.primary($t('saved_profile'));} catch (error) {handleError(error, $t('errors.unable_to_save_profile'));}diff --git a/web/src/lib/managers/edit/edit-manager.svelte.ts b/web/src/lib/managers/edit/edit-manager.svelte.tsindex 1366bbea9a..9eba741c36 100644--- a/web/src/lib/managers/edit/edit-manager.svelte.ts+++ b/web/src/lib/managers/edit/edit-manager.svelte.ts@@ -142,7 +142,7 @@ export class EditManager {eventManager.emit('AssetEditsApplied', assetId);- toastManager.success(t('editor_edits_applied_success'));+ toastManager.primary(t('editor_edits_applied_success'));this.hasAppliedEdits = true;return true;diff --git a/web/src/lib/modals/AvatarEditModal.svelte b/web/src/lib/modals/AvatarEditModal.svelteindex a0faba57e4..a30a25870f 100644--- a/web/src/lib/modals/AvatarEditModal.svelte+++ b/web/src/lib/modals/AvatarEditModal.svelte@@ -20,7 +20,7 @@await deleteProfileImage();}- toastManager.success($t('saved_profile'));+ toastManager.primary($t('saved_profile'));$user = await updateMyUser({ userUpdateMeDto: { avatarColor: color } });onClose();diff --git a/web/src/lib/modals/PersonMergeSuggestionModal.svelte b/web/src/lib/modals/PersonMergeSuggestionModal.svelteindex 66070e1326..62cae0bed0 100644--- a/web/src/lib/modals/PersonMergeSuggestionModal.svelte+++ b/web/src/lib/modals/PersonMergeSuggestionModal.svelte@@ -38,7 +38,7 @@id: personToBeMergedInto.id,mergePersonDto: { ids: [personToMerge.id] },});- toastManager.success($t('merge_people_successfully'));+ toastManager.primary($t('merge_people_successfully'));onClose([personToMerge, personToBeMergedInto]);} catch (error) {handleError(error, $t('errors.unable_to_save_name'));diff --git a/web/src/lib/modals/ProfileImageCropperModal.svelte b/web/src/lib/modals/ProfileImageCropperModal.svelteindex dcce97a7c1..9e0c0d7874 100644--- a/web/src/lib/modals/ProfileImageCropperModal.svelte+++ b/web/src/lib/modals/ProfileImageCropperModal.svelte@@ -69,7 +69,7 @@}const file = new File([blob], 'profile-picture.png', { type: 'image/png' });const { profileImagePath, profileChangedAt } = await createProfileImage({ createProfileImageDto: { file } });- toastManager.success($t('profile_picture_set'));+ toastManager.primary($t('profile_picture_set'));$user.profileImagePath = profileImagePath;$user.profileChangedAt = profileChangedAt;diff --git a/web/src/lib/services/album.service.ts b/web/src/lib/services/album.service.tsindex 0f155df0e9..e0420f4341 100644--- a/web/src/lib/services/album.service.ts+++ b/web/src/lib/services/album.service.ts@@ -163,7 +163,7 @@ const notifyAddToAlbums = (} else if (results.error) {toastManager.warning($t('assets_cannot_be_added_to_albums', { values: { count: assetIds.length } }));} else {- toastManager.success(+ toastManager.primary($t('assets_added_to_albums_count', {values: { albumTotal: albumIds.length, assetTotal: assetIds.length },}),@@ -269,7 +269,7 @@ export const handleDeleteAlbum = async (album: AlbumResponseDto, options?: { proawait deleteAlbum({ id: album.id });eventManager.emit('AlbumDelete', album);if (notify) {- toastManager.success();+ toastManager.primary();}return true;} catch (error) {diff --git a/web/src/lib/services/api-key.service.ts b/web/src/lib/services/api-key.service.tsindex dec333c0bc..590a9b7ae3 100644--- a/web/src/lib/services/api-key.service.ts+++ b/web/src/lib/services/api-key.service.ts@@ -80,7 +80,7 @@ export const handleUpdateApiKey = async (apiKey: { id: string }, dto: ApiKeyUpdatry {const response = await updateApiKey({ id: apiKey.id, apiKeyUpdateDto: dto });eventManager.emit('ApiKeyUpdate', response);- toastManager.success($t('saved_api_key'));+ toastManager.primary($t('saved_api_key'));return true;} catch (error) {handleError(error, $t('errors.unable_to_save_api_key'));@@ -98,7 +98,7 @@ export const handleDeleteApiKey = async (apiKey: ApiKeyResponseDto) => {try {await deleteApiKey({ id: apiKey.id });eventManager.emit('ApiKeyDelete', apiKey);- toastManager.success($t('removed_api_key', { values: { name: apiKey.name } }));+ toastManager.primary($t('removed_api_key', { values: { name: apiKey.name } }));} catch (error) {handleError(error, $t('errors.unable_to_remove_api_key'));}diff --git a/web/src/lib/services/asset.service.spec.ts b/web/src/lib/services/asset.service.spec.tsindex b67db960be..170f5d2f23 100644--- a/web/src/lib/services/asset.service.spec.ts+++ b/web/src/lib/services/asset.service.spec.ts@@ -11,7 +11,7 @@ import { vitest } from 'vitest';vitest.mock('@immich/ui', () => ({toastManager: {- success: vitest.fn(),+ primary: vitest.fn(),},}));@@ -67,7 +67,7 @@ describe('AssetService', () => {const asset = assetFactory.build({ originalFileName: 'asset.heic' });await handleDownloadAsset(asset, { edited: false });expect($t).toHaveBeenNthCalledWith(1, 'downloading_asset_filename', { values: { filename: 'asset.heic' } });- expect(toastManager.success).toHaveBeenCalledWith('formatter');+ expect(toastManager.primary).toHaveBeenCalledWith('formatter');});it('should use the motion asset originalFileName when showing toasts', async () => {@@ -79,7 +79,7 @@ describe('AssetService', () => {await handleDownloadAsset(asset, { edited: false });expect($t).toHaveBeenNthCalledWith(1, 'downloading_asset_filename', { values: { filename: 'asset.heic' } });expect($t).toHaveBeenNthCalledWith(2, 'downloading_asset_filename', { values: { filename: 'asset.mov' } });- expect(toastManager.success).toHaveBeenCalledWith('formatter');+ expect(toastManager.primary).toHaveBeenCalledWith('formatter');});});});diff --git a/web/src/lib/services/asset.service.ts b/web/src/lib/services/asset.service.tsindex 5d7ae07684..c8614186fd 100644--- a/web/src/lib/services/asset.service.ts+++ b/web/src/lib/services/asset.service.ts@@ -334,7 +334,7 @@ export const handleDownloadAsset = async (asset: AssetResponseDto, { edited }: {}try {- toastManager.success($t('downloading_asset_filename', { values: { filename } }));+ toastManager.primary($t('downloading_asset_filename', { values: { filename } }));downloadUrl(getBaseUrl() +`/assets/${id}/original` +@@ -352,7 +352,7 @@ const handleFavorite = async (asset: AssetResponseDto) => {try {const response = await updateAsset({ id: asset.id, updateAssetDto: { isFavorite: true } });- toastManager.success($t('added_to_favorites'));+ toastManager.primary($t('added_to_favorites'));eventManager.emit('AssetUpdate', response);} catch (error) {handleError(error, $t('errors.unable_to_add_remove_favorites', { values: { favorite: asset.isFavorite } }));@@ -364,7 +364,7 @@ const handleUnfavorite = async (asset: AssetResponseDto) => {try {const response = await updateAsset({ id: asset.id, updateAssetDto: { isFavorite: false } });- toastManager.success($t('removed_from_favorites'));+ toastManager.primary($t('removed_from_favorites'));eventManager.emit('AssetUpdate', response);} catch (error) {handleError(error, $t('errors.unable_to_add_remove_favorites', { values: { favorite: asset.isFavorite } }));@@ -387,7 +387,7 @@ const handleRunAssetJob = async (dto: AssetJobsDto) => {try {await runAssetJobs({ assetJobsDto: dto });- toastManager.success(getAssetJobMessage($t, dto.name));+ toastManager.primary(getAssetJobMessage($t, dto.name));} catch (error) {handleError(error, $t('errors.unable_to_submit_job'));}diff --git a/web/src/lib/services/job.service.ts b/web/src/lib/services/job.service.tsindex 3241afc5b0..1e23dbe615 100644--- a/web/src/lib/services/job.service.ts+++ b/web/src/lib/services/job.service.ts@@ -8,7 +8,7 @@ export const handleCreateJob = async (dto: JobCreateDto) => {try {await createJob({ jobCreateDto: dto });- toastManager.success($t('admin.job_created'));+ toastManager.primary($t('admin.job_created'));return true;} catch (error) {handleError(error, $t('errors.unable_to_submit_job'));diff --git a/web/src/lib/services/library.service.ts b/web/src/lib/services/library.service.tsindex e465ed0be5..c856ec3f85 100644--- a/web/src/lib/services/library.service.ts+++ b/web/src/lib/services/library.service.ts@@ -161,7 +161,7 @@ export const handleCreateLibrary = async (dto: CreateLibraryDto) => {try {const library = await createLibrary({ createLibraryDto: dto });eventManager.emit('LibraryCreate', library);- toastManager.success($t('admin.library_created', { values: { library: library.name } }));+ toastManager.primary($t('admin.library_created', { values: { library: library.name } }));return library;} catch (error) {handleError(error, $t('errors.unable_to_create_library'));@@ -174,7 +174,7 @@ export const handleUpdateLibrary = async (library: LibraryResponseDto, dto: Updatry {const updatedLibrary = await updateLibrary({ id: library.id, updateLibraryDto: dto });eventManager.emit('LibraryUpdate', updatedLibrary);- toastManager.success($t('admin.library_updated'));+ toastManager.primary($t('admin.library_updated'));return true;} catch (error) {handleError(error, $t('errors.unable_to_update_library'));@@ -205,7 +205,7 @@ const handleDeleteLibrary = async (library: LibraryResponseDto) => {try {await deleteLibrary({ id: library.id });eventManager.emit('LibraryDelete', { id: library.id });- toastManager.success($t('admin.library_deleted'));+ toastManager.primary($t('admin.library_deleted'));} catch (error) {handleError(error, $t('errors.unable_to_remove_library'));}@@ -225,7 +225,7 @@ export const handleAddLibraryFolder = async (library: LibraryResponseDto, folderupdateLibraryDto: { importPaths: [...library.importPaths, folder] },});eventManager.emit('LibraryUpdate', updatedLibrary);- toastManager.success($t('admin.library_updated'));+ toastManager.primary($t('admin.library_updated'));} catch (error) {handleError(error, $t('errors.unable_to_update_library'));return false;@@ -246,7 +246,7 @@ export const handleEditLibraryFolder = async (library: LibraryResponseDto, oldVatry {const updatedLibrary = await updateLibrary({ id: library.id, updateLibraryDto: { importPaths } });eventManager.emit('LibraryUpdate', updatedLibrary);- toastManager.success($t('admin.library_updated'));+ toastManager.primary($t('admin.library_updated'));} catch (error) {handleError(error, $t('errors.unable_to_update_library'));return false;@@ -273,7 +273,7 @@ const handleDeleteLibraryFolder = async (library: LibraryResponseDto, folder: stupdateLibraryDto: { importPaths: library.importPaths.filter((path) => path !== folder) },});eventManager.emit('LibraryUpdate', updatedLibrary);- toastManager.success($t('admin.library_updated'));+ toastManager.primary($t('admin.library_updated'));} catch (error) {handleError(error, $t('errors.unable_to_update_library'));}@@ -293,7 +293,7 @@ export const handleAddLibraryExclusionPattern = async (library: LibraryResponseDupdateLibraryDto: { exclusionPatterns: [...library.exclusionPatterns, exclusionPattern] },});eventManager.emit('LibraryUpdate', updatedLibrary);- toastManager.success($t('admin.library_updated'));+ toastManager.primary($t('admin.library_updated'));} catch (error) {handleError(error, $t('errors.unable_to_update_library'));return false;@@ -314,7 +314,7 @@ export const handleEditExclusionPattern = async (library: LibraryResponseDto, oltry {const updatedLibrary = await updateLibrary({ id: library.id, updateLibraryDto: { exclusionPatterns } });eventManager.emit('LibraryUpdate', updatedLibrary);- toastManager.success($t('admin.library_updated'));+ toastManager.primary($t('admin.library_updated'));} catch (error) {handleError(error, $t('errors.unable_to_update_library'));return false;@@ -339,7 +339,7 @@ const handleDeleteExclusionPattern = async (library: LibraryResponseDto, exclusi},});eventManager.emit('LibraryUpdate', updatedLibrary);- toastManager.success($t('admin.library_updated'));+ toastManager.primary($t('admin.library_updated'));} catch (error) {handleError(error, $t('errors.unable_to_update_library'));}diff --git a/web/src/lib/services/person.service.ts b/web/src/lib/services/person.service.tsindex b40028258a..10ed66f148 100644--- a/web/src/lib/services/person.service.ts+++ b/web/src/lib/services/person.service.ts@@ -57,7 +57,7 @@ const handleFavoritePerson = async (person: { id: string }) => {try {const response = await updatePerson({ id: person.id, personUpdateDto: { isFavorite: true } });eventManager.emit('PersonUpdate', response);- toastManager.success($t('added_to_favorites'));+ toastManager.primary($t('added_to_favorites'));} catch (error) {handleError(error, $t('errors.unable_to_add_remove_favorites', { values: { favorite: false } }));}@@ -69,7 +69,7 @@ const handleUnfavoritePerson = async (person: { id: string }) => {try {const response = await updatePerson({ id: person.id, personUpdateDto: { isFavorite: false } });eventManager.emit('PersonUpdate', response);- toastManager.success($t('removed_from_favorites'));+ toastManager.primary($t('removed_from_favorites'));} catch (error) {handleError(error, $t('errors.unable_to_add_remove_favorites', { values: { favorite: false } }));}@@ -80,7 +80,7 @@ const handleHidePerson = async (person: { id: string }) => {try {const response = await updatePerson({ id: person.id, personUpdateDto: { isHidden: true } });- toastManager.success($t('changed_visibility_successfully'));+ toastManager.primary($t('changed_visibility_successfully'));eventManager.emit('PersonUpdate', response);} catch (error) {handleError(error, $t('errors.unable_to_hide_person'));@@ -92,7 +92,7 @@ const handleShowPerson = async (person: { id: string }) => {try {const response = await updatePerson({ id: person.id, personUpdateDto: { isHidden: false } });- toastManager.success($t('changed_visibility_successfully'));+ toastManager.primary($t('changed_visibility_successfully'));eventManager.emit('PersonUpdate', response);} catch (error) {handleError(error, $t('errors.something_went_wrong'));@@ -104,7 +104,7 @@ export const handleUpdatePersonBirthDate = async (person: PersonResponseDto, birtry {const response = await updatePerson({ id: person.id, personUpdateDto: { birthDate } });- toastManager.success($t('date_of_birth_saved'));+ toastManager.primary($t('date_of_birth_saved'));eventManager.emit('PersonUpdate', response);return true;} catch (error) {diff --git a/web/src/lib/services/queue.service.ts b/web/src/lib/services/queue.service.tsindex 37cd4699ae..414cc2fb17 100644--- a/web/src/lib/services/queue.service.ts+++ b/web/src/lib/services/queue.service.ts@@ -129,7 +129,7 @@ export const handleEmptyQueue = async (queue: QueueResponseDto) => {await emptyQueue({ name: queue.name, queueDeleteDto: { failed: false } });const response = await getQueue({ name: queue.name });eventManager.emit('QueueUpdate', response);- toastManager.success($t('admin.cleared_jobs', { values: { job: item.title } }));+ toastManager.primary($t('admin.cleared_jobs', { values: { job: item.title } }));} catch (error) {handleError(error, $t('errors.something_went_wrong'));}@@ -155,7 +155,7 @@ const handleRemoveFailedJobs = async (queue: QueueResponseDto) => {await emptyQueue({ name: queue.name, queueDeleteDto: { failed: true } });const response = await getQueue({ name: queue.name });eventManager.emit('QueueUpdate', response);- toastManager.success();+ toastManager.primary();} catch (error) {handleError(error, $t('errors.something_went_wrong'));}diff --git a/web/src/lib/services/shared-link.service.ts b/web/src/lib/services/shared-link.service.tsindex 135c67b95a..bae46e63cb 100644--- a/web/src/lib/services/shared-link.service.ts+++ b/web/src/lib/services/shared-link.service.ts@@ -95,7 +95,7 @@ export const handleUpdateSharedLink = async (sharedLink: SharedLinkResponseDto,const response = await updateSharedLink({ id: sharedLink.id, sharedLinkEditDto: dto });eventManager.emit('SharedLinkUpdate', { album: sharedLink.album, ...response });- toastManager.success($t('saved'));+ toastManager.primary($t('saved'));return true;} catch (error) {@@ -118,7 +118,7 @@ const handleDeleteSharedLink = async (sharedLink: SharedLinkResponseDto) => {try {await removeSharedLink({ id: sharedLink.id });eventManager.emit('SharedLinkDelete', sharedLink);- toastManager.success($t('deleted_shared_link'));+ toastManager.primary($t('deleted_shared_link'));} catch (error) {handleError(error, $t('errors.unable_to_delete_shared_link'));}@@ -150,7 +150,7 @@ export const handleRemoveSharedLinkAssets = async (sharedLink: SharedLinkRespons}const count = results.filter((item) => item.success).length;- toastManager.success($t('assets_removed_count', { values: { count } }));+ toastManager.primary($t('assets_removed_count', { values: { count } }));return true;} catch (error) {handleError(error, $t('errors.unable_to_remove_assets_from_shared_link'));diff --git a/web/src/lib/services/system-config.service.ts b/web/src/lib/services/system-config.service.tsindex 022ad8b8bb..1e8f898d6d 100644--- a/web/src/lib/services/system-config.service.ts+++ b/web/src/lib/services/system-config.service.ts@@ -62,7 +62,7 @@ export const handleSystemConfigSave = async (update: Partial<SystemConfigDto>) =const newConfig = await updateConfig({ systemConfigDto });eventManager.emit('SystemConfigUpdate', newConfig);- toastManager.success($t('settings_saved'));+ toastManager.primary($t('settings_saved'));} catch (error) {handleError(error, $t('errors.unable_to_save_settings'));}diff --git a/web/src/lib/services/tag.service.ts b/web/src/lib/services/tag.service.tsindex bbdc843c46..fff7770a76 100644--- a/web/src/lib/services/tag.service.ts+++ b/web/src/lib/services/tag.service.ts@@ -42,7 +42,7 @@ export const handleCreateTag = async (tagValue: string) => {return;}- toastManager.success($t('tag_created', { values: { tag: tag.value } }));+ toastManager.primary($t('tag_created', { values: { tag: tag.value } }));eventManager.emit('TagCreate', tag);return true;@@ -61,7 +61,7 @@ export const handleUpdateTag = async (tag: TreeNode, dto: TagUpdateDto) => {try {const response = await updateTag({ id: tag.id, tagUpdateDto: dto });- toastManager.success($t('tag_updated', { values: { tag: tag.value } }));+ toastManager.primary($t('tag_updated', { values: { tag: tag.value } }));eventManager.emit('TagUpdate', response);return true;@@ -91,7 +91,7 @@ const handleDeleteTag = async (tag: TreeNode) => {try {await deleteTag({ id: tagId });eventManager.emit('TagDelete', tag);- toastManager.success();+ toastManager.primary();} catch (error) {handleError(error, $t('errors.something_went_wrong'));}diff --git a/web/src/lib/services/trash.service.ts b/web/src/lib/services/trash.service.tsindex d9660c2f29..4e03960b69 100644--- a/web/src/lib/services/trash.service.ts+++ b/web/src/lib/services/trash.service.ts@@ -31,7 +31,7 @@ export const handleEmptyTrash = async () => {try {const { count } = await emptyTrash();- toastManager.success($t('assets_permanently_deleted_count', { values: { count } }));+ toastManager.primary($t('assets_permanently_deleted_count', { values: { count } }));} catch (error) {handleError(error, $t('errors.unable_to_empty_trash'));}@@ -47,7 +47,7 @@ export const handleRestoreTrash = async () => {try {const { count } = await restoreTrash();- toastManager.success($t('assets_restored_count', { values: { count } }));+ toastManager.primary($t('assets_restored_count', { values: { count } }));} catch (error) {handleError(error, $t('errors.unable_to_restore_trash'));}diff --git a/web/src/lib/services/user-admin.service.ts b/web/src/lib/services/user-admin.service.tsindex c132076672..378e49fa31 100644--- a/web/src/lib/services/user-admin.service.ts+++ b/web/src/lib/services/user-admin.service.ts@@ -109,7 +109,7 @@ export const handleCreateUserAdmin = async (dto: UserAdminCreateDto) => {try {const response = await createUserAdmin({ userAdminCreateDto: dto });eventManager.emit('UserAdminCreate', response);- toastManager.success();+ toastManager.primary();return response;} catch (error) {handleError(error, $t('errors.unable_to_create_user'));@@ -122,7 +122,7 @@ export const handleUpdateUserAdmin = async (user: UserAdminResponseDto, dto: Usetry {const response = await updateUserAdmin({ id: user.id, userAdminUpdateDto: dto });eventManager.emit('UserAdminUpdate', response);- toastManager.success();+ toastManager.primary();return true;} catch (error) {handleError(error, $t('errors.unable_to_update_user'));@@ -136,7 +136,7 @@ export const handleDeleteUserAdmin = async (user: UserAdminResponseDto, dto: Usetry {const result = await deleteUserAdmin({ id: user.id, userAdminDeleteDto: dto });eventManager.emit('UserAdminDelete', result);- toastManager.success();+ toastManager.primary();return true;} catch (error) {handleError(error, $t('errors.unable_to_delete_user'));@@ -149,7 +149,7 @@ export const handleRestoreUserAdmin = async (user: UserAdminResponseDto) => {try {const response = await restoreUserAdmin({ id: user.id });eventManager.emit('UserAdminRestore', response);- toastManager.success();+ toastManager.primary();return true;} catch (error) {handleError(error, $t('errors.unable_to_restore_user'));@@ -190,7 +190,7 @@ const handleResetPasswordUserAdmin = async (user: UserAdminResponseDto) => {const dto = { password: generatePassword(), shouldChangePassword: true };const response = await updateUserAdmin({ id: user.id, userAdminUpdateDto: dto });eventManager.emit('UserAdminUpdate', response);- toastManager.success();+ toastManager.primary();await modalManager.show(PasswordResetSuccessModal, { newPassword: dto.password });} catch (error) {handleError(error, $t('errors.unable_to_reset_password'));@@ -208,7 +208,7 @@ const handleResetPinCodeUserAdmin = async (user: UserAdminResponseDto) => {try {const response = await updateUserAdmin({ id: user.id, userAdminUpdateDto: { pinCode: null } });eventManager.emit('UserAdminUpdate', response);- toastManager.success($t('pin_code_reset_successfully'));+ toastManager.primary($t('pin_code_reset_successfully'));} catch (error) {handleError(error, $t('errors.unable_to_reset_pin_code'));}diff --git a/web/src/lib/services/user.service.ts b/web/src/lib/services/user.service.tsindex a1fead693f..53c5f8404f 100644--- a/web/src/lib/services/user.service.ts+++ b/web/src/lib/services/user.service.ts@@ -39,7 +39,7 @@ export const handleResetPinCode = async (dto: PinCodeResetDto) => {try {await resetPinCode({ pinCodeResetDto: dto });- toastManager.success($t('pin_code_reset_successfully'));+ toastManager.primary($t('pin_code_reset_successfully'));eventManager.emit('UserPinCodeReset');return true;} catch (error) {@@ -52,7 +52,7 @@ export const handleChangePassword = async (dto: ChangePasswordDto) => {try {await changePassword({ changePasswordDto: dto });- toastManager.success($t('updated_password'));+ toastManager.primary($t('updated_password'));return true;} catch (error) {handleError(error, $t('errors.unable_to_change_password'));diff --git a/web/src/lib/services/workflow.service.ts b/web/src/lib/services/workflow.service.tsindex 96815725bb..ec8817f84c 100644--- a/web/src/lib/services/workflow.service.ts+++ b/web/src/lib/services/workflow.service.ts@@ -397,7 +397,7 @@ export const handleToggleWorkflowEnabled = async (});eventManager.emit('WorkflowUpdate', updated);- toastManager.success($t('workflow_updated'));+ toastManager.primary($t('workflow_updated'));return updated;} catch (error) {handleError(error, $t('errors.unable_to_update_workflow'));@@ -419,7 +419,7 @@ export const handleDeleteWorkflow = async (workflow: WorkflowResponseDto): Promitry {await deleteWorkflow({ id: workflow.id });eventManager.emit('WorkflowDelete', workflow);- toastManager.success($t('workflow_deleted'));+ toastManager.primary($t('workflow_deleted'));return true;} catch (error) {handleError(error, $t('errors.unable_to_delete_workflow'));diff --git a/web/src/lib/utils/asset-utils.ts b/web/src/lib/utils/asset-utils.tsindex 6f0363c74a..f82377b63f 100644--- a/web/src/lib/utils/asset-utils.ts+++ b/web/src/lib/utils/asset-utils.ts@@ -49,7 +49,7 @@ export const tagAssets = async ({if (showNotification) {const $t = await getFormatter();- toastManager.success($t('tagged_assets', { values: { count: assetIds.length } }));+ toastManager.primary($t('tagged_assets', { values: { count: assetIds.length } }));}return assetIds;@@ -70,7 +70,7 @@ export const removeTag = async ({if (showNotification) {const $t = await getFormatter();- toastManager.success($t('removed_tagged_assets', { values: { count: assetIds.length } }));+ toastManager.primary($t('removed_tagged_assets', { values: { count: assetIds.length } }));}return assetIds;@@ -364,7 +364,7 @@ export const deleteStack = async (stackIds: string[]) => {await deleteStacks({ bulkIdsDto: { ids: [...ids] } });- toastManager.success($t('unstacked_assets_count', { values: { count } }));+ toastManager.primary($t('unstacked_assets_count', { values: { count } }));const assets = stacks.flatMap((stack) => stack.assets);for (const asset of assets) {@@ -385,7 +385,7 @@ export const keepThisDeleteOthers = async (keepAsset: AssetResponseDto, stack: Sawait deleteAssets({ assetBulkDeleteDto: { ids: assetsToDeleteIds } });await deleteStacks({ bulkIdsDto: { ids: [stack.id] } });- toastManager.success($t('kept_this_deleted_others', { values: { count: assetsToDeleteIds.length } }));+ toastManager.primary($t('kept_this_deleted_others', { values: { count: assetsToDeleteIds.length } }));keepAsset.stack = null;return keepAsset;@@ -440,7 +440,7 @@ export const toggleArchive = async (asset: AssetResponseDto) => {});asset.isArchived = data.isArchived;- toastManager.success(asset.isArchived ? $t(`added_to_archive`) : $t(`removed_from_archive`));+ toastManager.primary(asset.isArchived ? $t(`added_to_archive`) : $t(`removed_from_archive`));} catch (error) {handleError(error, $t('errors.unable_to_add_remove_archive', { values: { archived: asset.isArchived } }));}@@ -459,7 +459,7 @@ export const archiveAssets = async (assets: { id: string }[], visibility: AssetV});}- toastManager.success(+ toastManager.primary(visibility === AssetVisibility.Archive? $t('archived_count', { values: { count: ids.length } }): $t('unarchived_count', { values: { count: ids.length } }),diff --git a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelteindex e354d2c1fc..2e911d8330 100644--- a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte+++ b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte@@ -200,7 +200,7 @@},});eventManager.emit('AlbumUpdate', response);- toastManager.success($t('album_cover_updated'));+ toastManager.primary($t('album_cover_updated'));} catch (error) {handleError(error, $t('errors.unable_to_update_album_cover'));}diff --git a/web/src/routes/(user)/people/+page.svelte b/web/src/routes/(user)/people/+page.svelteindex 2e921da80c..0bc2439efe 100644--- a/web/src/routes/(user)/people/+page.svelte+++ b/web/src/routes/(user)/people/+page.svelte@@ -157,7 +157,7 @@break;}}- toastManager.success($t('change_name_successfully'));+ toastManager.primary($t('change_name_successfully'));} catch (error) {handleError(error, $t('errors.unable_to_save_name'));}@@ -178,7 +178,7 @@return person;});- toastManager.success($t('changed_visibility_successfully'));+ toastManager.primary($t('changed_visibility_successfully'));} catch (error) {handleError(error, $t('errors.unable_to_hide_person'));}@@ -198,7 +198,7 @@return person;});- toastManager.success(updatedPerson.isFavorite ? $t('added_to_favorites') : $t('removed_from_favorites'));+ toastManager.primary(updatedPerson.isFavorite ? $t('added_to_favorites') : $t('removed_from_favorites'));} catch (error) {handleError(error, $t('errors.unable_to_add_remove_favorites', { values: { favorite: detail.isFavorite } }));}diff --git a/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelteindex d28847068b..a891c01b3e 100644--- a/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte+++ b/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte@@ -149,7 +149,7 @@}try {person = await updatePerson({ id: person.id, personUpdateDto: { featureFaceAssetId: asset.id } });- toastManager.success($t('feature_photo_updated'));+ toastManager.primary($t('feature_photo_updated'));} catch (error) {handleError(error, $t('errors.unable_to_set_feature_photo'));}@@ -210,7 +210,7 @@try {person = await updatePerson({ id: person.id, personUpdateDto: { name: personName } });- toastManager.success($t('change_name_successfully'));+ toastManager.primary($t('change_name_successfully'));} catch (error) {handleError(error, $t('errors.unable_to_save_name'));}diff --git a/web/src/routes/(user)/utilities/duplicates/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/utilities/duplicates/[[photos=photos]]/[[assetId=id]]/+page.svelteindex a3212fe009..f1b9ca7614 100644--- a/web/src/routes/(user)/utilities/duplicates/[[photos=photos]]/[[assetId=id]]/+page.svelte+++ b/web/src/routes/(user)/utilities/duplicates/[[photos=photos]]/[[assetId=id]]/+page.svelte@@ -95,7 +95,7 @@const message = featureFlagsManager.value.trash? $t('assets_moved_to_trash_count', { values: { count: trashedCount } }): $t('permanently_deleted_assets_count', { values: { count: trashedCount } });- toastManager.success(message);+ toastManager.primary(message);};const handleResolve = async (duplicateId: string, duplicateAssetIds: string[], trashIds: string[]) => {@@ -167,7 +167,7 @@duplicates = [];- toastManager.success($t('resolved_all_duplicates'));+ toastManager.primary($t('resolved_all_duplicates'));page.url.searchParams.delete('index');await goto(Route.duplicatesUtility());},diff --git a/web/src/routes/(user)/utilities/workflows/[workflowId]/+page.svelte b/web/src/routes/(user)/utilities/workflows/[workflowId]/+page.svelteindex debf7fafc6..2f1104b2fc 100644--- a/web/src/routes/(user)/utilities/workflows/[workflowId]/+page.svelte+++ b/web/src/routes/(user)/utilities/workflows/[workflowId]/+page.svelte@@ -131,7 +131,7 @@previousWorkflow = updated;editWorkflow = updated;- toastManager.success($t('workflow_update_success'), {+ toastManager.primary($t('workflow_update_success'), {closable: true,});} catch (error) {