Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-1086] chore: update toast messages for consistency. (#4384)

Prateek Shouryaf5f683b8b835
diff --git a/web/components/api-token/delete-token-modal.tsx b/web/components/api-token/delete-token-modal.tsx
index 97fa0b55f7..014531c424 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> = (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 19a5234399..f71b5fcdd5 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> = (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 2c950002d3..2e95d70545 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<Props> = 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 9e72240ebf..27e710a5fb 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<TInboxIssueCreateRoot> = 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<TInboxIssueCreateRoot> = 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 06f3787b2d..0c1fda13a7 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<TInboxIssueEditRoot> = 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<TInboxIssueEditRoot> = 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 680cb41ca5..961c01df33 100644
--- a/web/components/instance/ai-form.tsx
+++ b/web/components/instance/ai-form.tsx
@@ -42,7 +42,7 @@ export const InstanceAIForm: FC<IInstanceAIForm> = (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 83056f7698..7923d261aa 100644
--- a/web/components/instance/email-form.tsx
+++ b/web/components/instance/email-form.tsx
@@ -53,7 +53,7 @@ export const InstanceEmailForm: FC<IInstanceEmailForm> = (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 b3c5471b72..3803a46a97 100644
--- a/web/components/instance/general-form.tsx
+++ b/web/components/instance/general-form.tsx
@@ -40,7 +40,7 @@ export const InstanceGeneralForm: FC<IInstanceGeneralForm> = (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 694eecb927..c8ec393c19 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<IInstanceGithubConfigForm> = (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 b25b240aa6..f086dac871 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<IInstanceGoogleConfigForm> = (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 af8185b0e2..13ff4dfe9a 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<IInstanceImageConfigForm> = (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 d8de769c19..1f86178347 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<TIssueActivity> = 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<TIssueActivity> = 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<TIssueActivity> = 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 43fbb8939b..577003c7dd 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<ILabelCreate> = (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 31030555ae..ccba896403 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<TIssueLabel> = 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<TIssueLabel> = 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 a51d0c569d..8c3dc755b7 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<TIssueParentSelect> = 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 5461e35c43..1542d9751e 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<TIssueCommentReaction> = 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<TIssueCommentReaction> = 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 26e51fe612..9a8a68af86 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<TIssueReaction> = 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<TIssueReaction> = 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 037a7b13dd..717173f62c 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<TIssueDetailRoot> = 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<TIssueDetailRoot> = 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<TIssueDetailRoot> = 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 43fffd3fd0..b3c77ec5c9 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<TIssueSubscription> = 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<TIssueSubscription> = 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 1b8235af8b..8d6b734ff5 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 b33a746601..76455c103f 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<IBaseKanBanLayout> = 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 eb5b466528..38c80b8caa 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<IIssuePeekOverview> = 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<IIssuePeekOverview> = 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<IIssuePeekOverview> = 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 deff31f1e0..d86e8abbc7 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<ISubIssuesRoot> = 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<ISubIssuesRoot> = 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<ISubIssuesRoot> = 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<ISubIssuesRoot> = 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<ISubIssuesRoot> = 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<ISubIssuesRoot> = 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<ISubIssuesRoot> = 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<ISubIssuesRoot> = 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 6da1252864..2e98a38c2f 100644
--- a/web/components/modules/sidebar.tsx
+++ b/web/components/modules/sidebar.tsx
@@ -125,7 +125,7 @@ export const ModuleDetailsSidebar: React.FC<Props> = 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<Props> = 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<Props> = 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 d7fa81bff9..a6e4c5466e 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<SnoozeModalProps> = (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 dedf94a3b0..54a8708e0f 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<Props> = 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<Props> = 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 6d352beefe..f56648c660 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<IEmailNotificationFormProps> = (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 c97d1da2f0..f1b3a14159 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<Props> = 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<Props> = 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 caaccadfd5..0d5787b2f9 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 753a184b45..d549c8a41c 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<Props> = 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 74a736d103..9745e601e2 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<Props> = 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 085cacdcd6..7d8de09b55 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<Props> = 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<Props> = 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 4919fc9e1b..0a6d5a2f05 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 17ee43ad4a..de1be62eab 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",
});