🍞 feat: Add Toasts for Successful Conversation Deletion (#10661)

* feat: add toasts for succesful conversation deletion

* chore: address copilot comments
This commit is contained in:
Dustin Healy 2025-11-25 14:02:01 -08:00 committed by GitHub
parent f5132a65e9
commit 30df16f5b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 0 deletions

View file

@ -55,6 +55,11 @@ export function DeleteConversationDialog({
} }
setMenuOpen?.(false); setMenuOpen?.(false);
retainView(); retainView();
showToast({
message: localize('com_ui_convo_delete_success'),
severity: NotificationSeverity.SUCCESS,
showIcon: true,
});
}, },
onError: () => { onError: () => {
showToast({ showToast({

View file

@ -93,6 +93,11 @@ export default function ArchivedChatsTable({
onSuccess: async () => { onSuccess: async () => {
setIsDeleteOpen(false); setIsDeleteOpen(false);
await refetch(); await refetch();
showToast({
message: localize('com_ui_convo_delete_success'),
severity: NotificationSeverity.SUCCESS,
showIcon: true,
});
}, },
onError: (error: unknown) => { onError: (error: unknown) => {
showToast({ showToast({

View file

@ -799,6 +799,7 @@
"com_ui_continue_oauth": "Continue with OAuth", "com_ui_continue_oauth": "Continue with OAuth",
"com_ui_controls": "Controls", "com_ui_controls": "Controls",
"com_ui_convo_delete_error": "Failed to delete conversation", "com_ui_convo_delete_error": "Failed to delete conversation",
"com_ui_convo_delete_success": "Conversation successfully deleted",
"com_ui_copied": "Copied!", "com_ui_copied": "Copied!",
"com_ui_copied_to_clipboard": "Copied to clipboard", "com_ui_copied_to_clipboard": "Copied to clipboard",
"com_ui_copy_code": "Copy code", "com_ui_copy_code": "Copy code",