diff --git a/web/components/api-token/delete-token-modal.tsx b/web/components/api-token/delete-token-modal.tsx index 97fa0b55f..014531c42 100644 --- a/web/components/api-token/delete-token-modal.tsx +++ b/web/components/api-token/delete-token-modal.tsx @@ -58,7 +58,7 @@ export const DeleteApiTokenModal: FC = (props) => { .catch((err) => setToast({ type: TOAST_TYPE.ERROR, - title: "Error", + title: "Error!", message: err?.message ?? "Something went wrong. Please try again.", }) ) diff --git a/web/components/api-token/modal/create-token-modal.tsx b/web/components/api-token/modal/create-token-modal.tsx index 19a523439..f71b5fcdd 100644 --- a/web/components/api-token/modal/create-token-modal.tsx +++ b/web/components/api-token/modal/create-token-modal.tsx @@ -76,7 +76,7 @@ export const CreateApiTokenModal: React.FC = (props) => { .catch((err) => { setToast({ type: TOAST_TYPE.ERROR, - title: "Error", + title: "Error!", message: err.message, }); diff --git a/web/components/cycles/transfer-issues-modal.tsx b/web/components/cycles/transfer-issues-modal.tsx index 2c950002d..2e95d7054 100644 --- a/web/components/cycles/transfer-issues-modal.tsx +++ b/web/components/cycles/transfer-issues-modal.tsx @@ -39,7 +39,7 @@ export const TransferIssuesModal: React.FC = observer((props) => { .then(() => { setToast({ type: TOAST_TYPE.SUCCESS, - title: "Issues transferred successfully", + title: "Success!", message: "Issues have been transferred successfully", }); }) diff --git a/web/components/inbox/modals/create-edit-modal/create-root.tsx b/web/components/inbox/modals/create-edit-modal/create-root.tsx index 9e72240eb..27e710a5f 100644 --- a/web/components/inbox/modals/create-edit-modal/create-root.tsx +++ b/web/components/inbox/modals/create-edit-modal/create-root.tsx @@ -94,7 +94,7 @@ export const InboxIssueCreateRoot: FC = observer((props) }); setToast({ type: TOAST_TYPE.SUCCESS, - title: `${TOAST_TYPE.SUCCESS}!`, + title: `Success!`, message: "Issue created successfully.", }); }) @@ -111,7 +111,7 @@ export const InboxIssueCreateRoot: FC = observer((props) }); setToast({ type: TOAST_TYPE.ERROR, - title: `${TOAST_TYPE.ERROR}!`, + title: `Error!`, message: "Some error occurred. Please try again.", }); }); diff --git a/web/components/inbox/modals/create-edit-modal/edit-root.tsx b/web/components/inbox/modals/create-edit-modal/edit-root.tsx index 06f3787b2..0c1fda13a 100644 --- a/web/components/inbox/modals/create-edit-modal/edit-root.tsx +++ b/web/components/inbox/modals/create-edit-modal/edit-root.tsx @@ -99,7 +99,7 @@ export const InboxIssueEditRoot: FC = observer((props) => { }); setToast({ type: TOAST_TYPE.SUCCESS, - title: `${TOAST_TYPE.SUCCESS}!`, + title: `Success!`, message: "Issue created successfully.", }); descriptionEditorRef?.current?.clearEditor(); @@ -118,7 +118,7 @@ export const InboxIssueEditRoot: FC = observer((props) => { }); setToast({ type: TOAST_TYPE.ERROR, - title: `${TOAST_TYPE.ERROR}!`, + title: `Error!`, message: "Some error occurred. Please try again.", }); }); diff --git a/web/components/instance/ai-form.tsx b/web/components/instance/ai-form.tsx index 680cb41ca..961c01df3 100644 --- a/web/components/instance/ai-form.tsx +++ b/web/components/instance/ai-form.tsx @@ -42,7 +42,7 @@ export const InstanceAIForm: FC = (props) => { .updateInstanceConfigurations(payload) .then(() => setToast({ - title: "Success", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "AI Settings updated successfully", }) diff --git a/web/components/instance/email-form.tsx b/web/components/instance/email-form.tsx index 83056f769..7923d261a 100644 --- a/web/components/instance/email-form.tsx +++ b/web/components/instance/email-form.tsx @@ -53,7 +53,7 @@ export const InstanceEmailForm: FC = (props) => { .updateInstanceConfigurations(payload) .then(() => setToast({ - title: "Success", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Email Settings updated successfully", }) diff --git a/web/components/instance/general-form.tsx b/web/components/instance/general-form.tsx index b3c5471b7..3803a46a9 100644 --- a/web/components/instance/general-form.tsx +++ b/web/components/instance/general-form.tsx @@ -40,7 +40,7 @@ export const InstanceGeneralForm: FC = (props) => { .updateInstanceInfo(payload) .then(() => setToast({ - title: "Success", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Settings updated successfully", }) diff --git a/web/components/instance/github-config-form.tsx b/web/components/instance/github-config-form.tsx index 694eecb92..c8ec393c1 100644 --- a/web/components/instance/github-config-form.tsx +++ b/web/components/instance/github-config-form.tsx @@ -42,7 +42,7 @@ export const InstanceGithubConfigForm: FC = (props) = .updateInstanceConfigurations(payload) .then(() => setToast({ - title: "Success", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Github Configuration Settings updated successfully", }) diff --git a/web/components/instance/google-config-form.tsx b/web/components/instance/google-config-form.tsx index b25b240aa..f086dac87 100644 --- a/web/components/instance/google-config-form.tsx +++ b/web/components/instance/google-config-form.tsx @@ -40,7 +40,7 @@ export const InstanceGoogleConfigForm: FC = (props) = .updateInstanceConfigurations(payload) .then(() => setToast({ - title: "Success", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Google Configuration Settings updated successfully", }) diff --git a/web/components/instance/image-config-form.tsx b/web/components/instance/image-config-form.tsx index af8185b0e..13ff4dfe9 100644 --- a/web/components/instance/image-config-form.tsx +++ b/web/components/instance/image-config-form.tsx @@ -40,7 +40,7 @@ export const InstanceImageConfigForm: FC = (props) => .updateInstanceConfigurations(payload) .then(() => setToast({ - title: "Success", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Image Configuration Settings updated successfully", }) diff --git a/web/components/issues/issue-detail/issue-activity/root.tsx b/web/components/issues/issue-detail/issue-activity/root.tsx index d8de769c1..1f8617834 100644 --- a/web/components/issues/issue-detail/issue-activity/root.tsx +++ b/web/components/issues/issue-detail/issue-activity/root.tsx @@ -53,13 +53,13 @@ export const IssueActivity: FC = observer((props) => { if (!workspaceSlug || !projectId || !issueId) throw new Error("Missing fields"); await createComment(workspaceSlug, projectId, issueId, data); setToast({ - title: "Comment created successfully.", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Comment created successfully.", }); } catch (error) { setToast({ - title: "Comment creation failed.", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Comment creation failed. Please try again later.", }); @@ -70,13 +70,13 @@ export const IssueActivity: FC = observer((props) => { if (!workspaceSlug || !projectId || !issueId) throw new Error("Missing fields"); await updateComment(workspaceSlug, projectId, issueId, commentId, data); setToast({ - title: "Comment updated successfully.", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Comment updated successfully.", }); } catch (error) { setToast({ - title: "Comment update failed.", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Comment update failed. Please try again later.", }); @@ -87,13 +87,13 @@ export const IssueActivity: FC = observer((props) => { if (!workspaceSlug || !projectId || !issueId) throw new Error("Missing fields"); await removeComment(workspaceSlug, projectId, issueId, commentId); setToast({ - title: "Comment removed successfully.", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Comment removed successfully.", }); } catch (error) { setToast({ - title: "Comment remove failed.", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Comment remove failed. Please try again later.", }); diff --git a/web/components/issues/issue-detail/label/create-label.tsx b/web/components/issues/issue-detail/label/create-label.tsx index 43fbb8939..577003c7d 100644 --- a/web/components/issues/issue-detail/label/create-label.tsx +++ b/web/components/issues/issue-detail/label/create-label.tsx @@ -73,7 +73,7 @@ export const LabelCreate: FC = (props) => { reset(defaultValues); } catch (error) { setToast({ - title: "Label creation failed", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Label creation failed. Please try again sometime later.", }); diff --git a/web/components/issues/issue-detail/label/root.tsx b/web/components/issues/issue-detail/label/root.tsx index 31030555a..ccba89640 100644 --- a/web/components/issues/issue-detail/label/root.tsx +++ b/web/components/issues/issue-detail/label/root.tsx @@ -43,7 +43,7 @@ export const IssueLabel: FC = observer((props) => { else await updateIssue(workspaceSlug, projectId, issueId, data); } catch (error) { setToast({ - title: "Issue update failed", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Issue update failed", }); @@ -54,14 +54,14 @@ export const IssueLabel: FC = observer((props) => { const labelResponse = await createLabel(workspaceSlug, projectId, data); if (!isInboxIssue) setToast({ - title: "Label created successfully", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Label created successfully", }); return labelResponse; } catch (error) { setToast({ - title: "Label creation failed", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Label creation failed", }); diff --git a/web/components/issues/issue-detail/parent-select.tsx b/web/components/issues/issue-detail/parent-select.tsx index a51d0c569..8c3dc755b 100644 --- a/web/components/issues/issue-detail/parent-select.tsx +++ b/web/components/issues/issue-detail/parent-select.tsx @@ -66,7 +66,7 @@ export const IssueParentSelect: React.FC = observer((props) } catch (error) { setToast({ type: TOAST_TYPE.ERROR, - title: "Error", + title: "Error!", message: "Something went wrong", }); } diff --git a/web/components/issues/issue-detail/reactions/issue-comment.tsx b/web/components/issues/issue-detail/reactions/issue-comment.tsx index 5461e35c4..1542d9751 100644 --- a/web/components/issues/issue-detail/reactions/issue-comment.tsx +++ b/web/components/issues/issue-detail/reactions/issue-comment.tsx @@ -41,13 +41,13 @@ export const IssueCommentReaction: FC = observer((props) if (!workspaceSlug || !projectId || !commentId) throw new Error("Missing fields"); await createCommentReaction(workspaceSlug, projectId, commentId, reaction); setToast({ - title: "Reaction created successfully", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Reaction created successfully", }); } catch (error) { setToast({ - title: "Reaction creation failed", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Reaction creation failed", }); @@ -58,13 +58,13 @@ export const IssueCommentReaction: FC = observer((props) if (!workspaceSlug || !projectId || !commentId || !currentUser?.id) throw new Error("Missing fields"); removeCommentReaction(workspaceSlug, projectId, commentId, reaction, currentUser.id); setToast({ - title: "Reaction removed successfully", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Reaction removed successfully", }); } catch (error) { setToast({ - title: "Reaction remove failed", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Reaction remove failed", }); diff --git a/web/components/issues/issue-detail/reactions/issue.tsx b/web/components/issues/issue-detail/reactions/issue.tsx index 26e51fe61..9a8a68af8 100644 --- a/web/components/issues/issue-detail/reactions/issue.tsx +++ b/web/components/issues/issue-detail/reactions/issue.tsx @@ -40,13 +40,13 @@ export const IssueReaction: FC = observer((props) => { if (!workspaceSlug || !projectId || !issueId) throw new Error("Missing fields"); await createReaction(workspaceSlug, projectId, issueId, reaction); setToast({ - title: "Reaction created successfully", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Reaction created successfully", }); } catch (error) { setToast({ - title: "Reaction creation failed", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Reaction creation failed", }); @@ -57,13 +57,13 @@ export const IssueReaction: FC = observer((props) => { if (!workspaceSlug || !projectId || !issueId || !currentUser?.id) throw new Error("Missing fields"); await removeReaction(workspaceSlug, projectId, issueId, reaction, currentUser.id); setToast({ - title: "Reaction removed successfully", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Reaction removed successfully", }); } catch (error) { setToast({ - title: "Reaction remove failed", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Reaction remove failed", }); diff --git a/web/components/issues/issue-detail/root.tsx b/web/components/issues/issue-detail/root.tsx index 037a7b13d..717173f62 100644 --- a/web/components/issues/issue-detail/root.tsx +++ b/web/components/issues/issue-detail/root.tsx @@ -111,7 +111,7 @@ export const IssueDetailRoot: FC = observer((props) => { path: router.asPath, }); setToast({ - title: "Issue update failed", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Issue update failed", }); @@ -122,7 +122,7 @@ export const IssueDetailRoot: FC = observer((props) => { if (is_archived) await removeArchivedIssue(workspaceSlug, projectId, issueId); else await removeIssue(workspaceSlug, projectId, issueId); setToast({ - title: "Issue deleted successfully", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Issue deleted successfully", }); @@ -133,7 +133,7 @@ export const IssueDetailRoot: FC = observer((props) => { }); } catch (error) { setToast({ - title: "Issue delete failed", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Issue delete failed", }); diff --git a/web/components/issues/issue-detail/subscription.tsx b/web/components/issues/issue-detail/subscription.tsx index 43fffd3fd..b3c77ec5c 100644 --- a/web/components/issues/issue-detail/subscription.tsx +++ b/web/components/issues/issue-detail/subscription.tsx @@ -33,7 +33,7 @@ export const IssueSubscription: FC = observer((props) => { else await createSubscription(workspaceSlug, projectId, issueId); setToast({ type: TOAST_TYPE.SUCCESS, - title: `Issue ${isSubscribed ? `unsubscribed` : `subscribed`} successfully.!`, + title: "Success!", message: `Issue ${isSubscribed ? `unsubscribed` : `subscribed`} successfully.!`, }); setLoading(false); @@ -41,7 +41,7 @@ export const IssueSubscription: FC = observer((props) => { setLoading(false); setToast({ type: TOAST_TYPE.ERROR, - title: "Error", + title: "Error!", message: "Something went wrong. Please try again later.", }); } diff --git a/web/components/issues/issue-layouts/calendar/base-calendar-root.tsx b/web/components/issues/issue-layouts/calendar/base-calendar-root.tsx index 1b8235af8..8d6b734ff 100644 --- a/web/components/issues/issue-layouts/calendar/base-calendar-root.tsx +++ b/web/components/issues/issue-layouts/calendar/base-calendar-root.tsx @@ -71,7 +71,7 @@ export const BaseCalendarRoot = observer((props: IBaseCalendarRoot) => { updateIssue ).catch((err) => { setToast({ - title: "Error", + title: "Error!", type: TOAST_TYPE.ERROR, message: err?.detail ?? "Failed to perform this action", }); diff --git a/web/components/issues/issue-layouts/kanban/base-kanban-root.tsx b/web/components/issues/issue-layouts/kanban/base-kanban-root.tsx index b33a74660..76455c103 100644 --- a/web/components/issues/issue-layouts/kanban/base-kanban-root.tsx +++ b/web/components/issues/issue-layouts/kanban/base-kanban-root.tsx @@ -163,7 +163,7 @@ export const BaseKanBanRoot: React.FC = observer((props: IBas orderBy !== "sort_order" ).catch((err) => { setToast({ - title: "Error", + title: "Error!", type: TOAST_TYPE.ERROR, message: err?.detail ?? "Failed to perform this action", }); diff --git a/web/components/issues/peek-overview/root.tsx b/web/components/issues/peek-overview/root.tsx index eb5b46652..38c80b8ca 100644 --- a/web/components/issues/peek-overview/root.tsx +++ b/web/components/issues/peek-overview/root.tsx @@ -105,7 +105,7 @@ export const IssuePeekOverview: FC = observer((props) => { path: router.asPath, }); setToast({ - title: "Issue update failed", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Issue update failed", }); @@ -115,7 +115,7 @@ export const IssuePeekOverview: FC = observer((props) => { try { removeIssue(workspaceSlug, projectId, issueId); setToast({ - title: "Issue deleted successfully", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Issue deleted successfully", }); @@ -126,7 +126,7 @@ export const IssuePeekOverview: FC = observer((props) => { }); } catch (error) { setToast({ - title: "Issue delete failed", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Issue delete failed", }); diff --git a/web/components/issues/sub-issues/root.tsx b/web/components/issues/sub-issues/root.tsx index deff31f1e..d86e8abbc 100644 --- a/web/components/issues/sub-issues/root.tsx +++ b/web/components/issues/sub-issues/root.tsx @@ -143,7 +143,7 @@ export const SubIssuesRoot: FC = observer((props) => { } catch (error) { setToast({ type: TOAST_TYPE.ERROR, - title: "Error fetching sub-issues", + title: "Error!", message: "Error fetching sub-issues", }); } @@ -153,13 +153,13 @@ export const SubIssuesRoot: FC = observer((props) => { await createSubIssues(workspaceSlug, projectId, parentIssueId, issueIds); setToast({ type: TOAST_TYPE.SUCCESS, - title: "Sub-issues added successfully", + title: "Success!", message: "Sub-issues added successfully", }); } catch (error) { setToast({ type: TOAST_TYPE.ERROR, - title: "Error adding sub-issue", + title: "Error!", message: "Error adding sub-issue", }); } @@ -187,7 +187,7 @@ export const SubIssuesRoot: FC = observer((props) => { }); setToast({ type: TOAST_TYPE.SUCCESS, - title: "Sub-issue updated successfully", + title: "Success!", message: "Sub-issue updated successfully", }); setSubIssueHelpers(parentIssueId, "issue_loader", issueId); @@ -203,7 +203,7 @@ export const SubIssuesRoot: FC = observer((props) => { }); setToast({ type: TOAST_TYPE.ERROR, - title: "Error updating sub-issue", + title: "Error!", message: "Error updating sub-issue", }); } @@ -214,7 +214,7 @@ export const SubIssuesRoot: FC = observer((props) => { await removeSubIssue(workspaceSlug, projectId, parentIssueId, issueId); setToast({ type: TOAST_TYPE.SUCCESS, - title: "Sub-issue removed successfully", + title: "Success!", message: "Sub-issue removed successfully", }); captureIssueEvent({ @@ -239,7 +239,7 @@ export const SubIssuesRoot: FC = observer((props) => { }); setToast({ type: TOAST_TYPE.ERROR, - title: "Error removing sub-issue", + title: "Error!", message: "Error removing sub-issue", }); } @@ -250,7 +250,7 @@ export const SubIssuesRoot: FC = observer((props) => { await deleteSubIssue(workspaceSlug, projectId, parentIssueId, issueId); setToast({ type: TOAST_TYPE.SUCCESS, - title: "Issue deleted successfully", + title: "Error!", message: "Issue deleted successfully", }); captureIssueEvent({ @@ -267,7 +267,7 @@ export const SubIssuesRoot: FC = observer((props) => { }); setToast({ type: TOAST_TYPE.ERROR, - title: "Error deleting issue", + title: "Error!", message: "Error deleting issue", }); } diff --git a/web/components/modules/sidebar.tsx b/web/components/modules/sidebar.tsx index 6da125286..2e98a38c2 100644 --- a/web/components/modules/sidebar.tsx +++ b/web/components/modules/sidebar.tsx @@ -125,7 +125,7 @@ export const ModuleDetailsSidebar: React.FC = observer((props) => { }); setToast({ type: TOAST_TYPE.SUCCESS, - title: "Module link created", + title: "Success!", message: "Module link created successfully.", }); }) @@ -151,7 +151,7 @@ export const ModuleDetailsSidebar: React.FC = observer((props) => { }); setToast({ type: TOAST_TYPE.SUCCESS, - title: "Module link updated", + title: "Success!", message: "Module link updated successfully.", }); }) @@ -175,7 +175,7 @@ export const ModuleDetailsSidebar: React.FC = observer((props) => { }); setToast({ type: TOAST_TYPE.SUCCESS, - title: "Module link deleted", + title: "Success!", message: "Module link deleted successfully.", }); }) diff --git a/web/components/notifications/select-snooze-till-modal.tsx b/web/components/notifications/select-snooze-till-modal.tsx index d7fa81bff..a6e4c5466 100644 --- a/web/components/notifications/select-snooze-till-modal.tsx +++ b/web/components/notifications/select-snooze-till-modal.tsx @@ -99,7 +99,7 @@ export const SnoozeNotificationModal: FC = (props) => { handleClose(); onSuccess(); setToast({ - title: "Notification snoozed", + title: "Success!", message: "Notification snoozed successfully", type: TOAST_TYPE.SUCCESS, }); diff --git a/web/components/pages/editor/header/options-dropdown.tsx b/web/components/pages/editor/header/options-dropdown.tsx index dedf94a3b..54a8708e0 100644 --- a/web/components/pages/editor/header/options-dropdown.tsx +++ b/web/components/pages/editor/header/options-dropdown.tsx @@ -91,7 +91,7 @@ export const PageOptionsDropdown: React.FC = observer((props) => { copyTextToClipboard(editorRef.getMarkDown()).then(() => setToast({ type: TOAST_TYPE.SUCCESS, - title: "Successful!", + title: "Success!", message: "Markdown copied to clipboard.", }) ); @@ -106,7 +106,7 @@ export const PageOptionsDropdown: React.FC = observer((props) => { copyUrlToClipboard(`${workspaceSlug}/projects/${projectId}/pages/${id}`).then(() => setToast({ type: TOAST_TYPE.SUCCESS, - title: "Successful!", + title: "Success!", message: "Page link copied to clipboard.", }) ); diff --git a/web/components/profile/preferences/email-notification-form.tsx b/web/components/profile/preferences/email-notification-form.tsx index 6d352beef..f56648c66 100644 --- a/web/components/profile/preferences/email-notification-form.tsx +++ b/web/components/profile/preferences/email-notification-form.tsx @@ -42,7 +42,7 @@ export const EmailNotificationForm: FC = (props) => .updateCurrentUserEmailNotificationSettings(payload) .then(() => setToast({ - title: "Success", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Email Notification Settings updated successfully", }) diff --git a/web/components/project/member-list-item.tsx b/web/components/project/member-list-item.tsx index c97d1da2f..f1b3a1415 100644 --- a/web/components/project/member-list-item.tsx +++ b/web/components/project/member-list-item.tsx @@ -58,7 +58,7 @@ export const ProjectMemberListItem: React.FC = observer((props) => { .catch((err) => setToast({ type: TOAST_TYPE.ERROR, - title: "Error", + title: "Error!", message: err?.error || "Something went wrong. Please try again.", }) ); @@ -67,7 +67,7 @@ export const ProjectMemberListItem: React.FC = observer((props) => { (err) => setToast({ type: TOAST_TYPE.ERROR, - title: "Error", + title: "Error!", message: err?.error || "Something went wrong. Please try again.", }) ); diff --git a/web/components/project/project-settings-member-defaults.tsx b/web/components/project/project-settings-member-defaults.tsx index caaccadfd..0d5787b2f 100644 --- a/web/components/project/project-settings-member-defaults.tsx +++ b/web/components/project/project-settings-member-defaults.tsx @@ -72,7 +72,7 @@ export const ProjectSettingsMemberDefaults: React.FC = observer(() => { }) .then(() => { setToast({ - title: "Success", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Project updated successfully", }); diff --git a/web/components/project/send-project-invitation-modal.tsx b/web/components/project/send-project-invitation-modal.tsx index 753a184b4..d549c8a41 100644 --- a/web/components/project/send-project-invitation-modal.tsx +++ b/web/components/project/send-project-invitation-modal.tsx @@ -81,7 +81,7 @@ export const SendProjectInvitationModal: React.FC = observer((props) => { if (onSuccess) onSuccess(); onClose(); setToast({ - title: "Success", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Members added successfully.", }); diff --git a/web/components/workspace/settings/invitations-list-item.tsx b/web/components/workspace/settings/invitations-list-item.tsx index 74a736d10..9745e601e 100644 --- a/web/components/workspace/settings/invitations-list-item.tsx +++ b/web/components/workspace/settings/invitations-list-item.tsx @@ -41,14 +41,14 @@ export const WorkspaceInvitationsListItem: FC = observer((props) => { .then(() => { setToast({ type: TOAST_TYPE.SUCCESS, - title: "Success", + title: "Success!", message: "Invitation removed successfully.", }); }) .catch((err) => setToast({ type: TOAST_TYPE.ERROR, - title: "Error", + title: "Error!", message: err?.error || "Something went wrong. Please try again.", }) ); diff --git a/web/components/workspace/settings/members-list-item.tsx b/web/components/workspace/settings/members-list-item.tsx index 085cacdcd..7d8de09b5 100644 --- a/web/components/workspace/settings/members-list-item.tsx +++ b/web/components/workspace/settings/members-list-item.tsx @@ -54,7 +54,7 @@ export const WorkspaceMembersListItem: FC = observer((props) => { .catch((err) => setToast({ type: TOAST_TYPE.ERROR, - title: "Error", + title: "Error!", message: err?.error || "Something went wrong. Please try again.", }) ); @@ -66,7 +66,7 @@ export const WorkspaceMembersListItem: FC = observer((props) => { await removeMemberFromWorkspace(workspaceSlug.toString(), memberDetails.member.id).catch((err) => setToast({ type: TOAST_TYPE.ERROR, - title: "Error", + title: "Error!", message: err?.error || "Something went wrong. Please try again.", }) ); diff --git a/web/components/workspace/settings/workspace-details.tsx b/web/components/workspace/settings/workspace-details.tsx index 4919fc9e1..0a6d5a2f0 100644 --- a/web/components/workspace/settings/workspace-details.tsx +++ b/web/components/workspace/settings/workspace-details.tsx @@ -75,7 +75,7 @@ export const WorkspaceDetails: FC = observer(() => { }, }); setToast({ - title: "Success", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "Workspace updated successfully", }); diff --git a/web/pages/god-mode/authorization.tsx b/web/pages/god-mode/authorization.tsx index 17ee43ad4..de1be62ea 100644 --- a/web/pages/god-mode/authorization.tsx +++ b/web/pages/god-mode/authorization.tsx @@ -43,7 +43,7 @@ const InstanceAdminAuthorizationPage: NextPageWithLayout = observer(() => { await updateInstanceConfigurations(payload) .then(() => { setToast({ - title: "Success", + title: "Success!", type: TOAST_TYPE.SUCCESS, message: "SSO and OAuth Settings updated successfully", }); @@ -52,7 +52,7 @@ const InstanceAdminAuthorizationPage: NextPageWithLayout = observer(() => { .catch((err) => { console.error(err); setToast({ - title: "Error", + title: "Error!", type: TOAST_TYPE.ERROR, message: "Failed to update SSO and OAuth Settings", });