From 3ef67acb920a28eefa4f93b3b660531753652d0c Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Fri, 24 May 2024 13:52:22 +0530 Subject: [PATCH 1/3] [WEB-1417] chore: fix size updating issue on create workspace form when multiple errors are shown. (#4575) --- web/components/onboarding/create-workspace.tsx | 4 ++-- web/components/workspace/create-workspace-form.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/components/onboarding/create-workspace.tsx b/web/components/onboarding/create-workspace.tsx index 57da9fc5a..0dcf04387 100644 --- a/web/components/onboarding/create-workspace.tsx +++ b/web/components/onboarding/create-workspace.tsx @@ -224,9 +224,9 @@ export const CreateWorkspace: React.FC = (props) => { )} />

You can only edit the slug of the URL

- {slugError && Workspace URL is already taken!} + {slugError &&

Workspace URL is already taken!

} {invalidSlug && ( - {`URL can only contain ( - ), ( _ ) & alphanumeric characters.`} +

{`URL can only contain ( - ), ( _ ) & alphanumeric characters.`}

)}
diff --git a/web/components/workspace/create-workspace-form.tsx b/web/components/workspace/create-workspace-form.tsx index 9ccaa813d..d96bf093f 100644 --- a/web/components/workspace/create-workspace-form.tsx +++ b/web/components/workspace/create-workspace-form.tsx @@ -188,9 +188,9 @@ export const CreateWorkspaceForm: FC = observer((props) => { )} /> - {slugError && Workspace URL is already taken!} + {slugError &&

Workspace URL is already taken!

} {invalidSlug && ( - {`URL can only contain ( - ), ( _ ) & alphanumeric characters.`} +

{`URL can only contain ( - ), ( _ ) & alphanumeric characters.`}

)}
From f5d95ba3a155fe1af855d38b2a4bac85a111f6a0 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Fri, 24 May 2024 13:52:37 +0530 Subject: [PATCH 2/3] chore: minor improvement in admin service provider field. (#4577) --- admin/components/common/copy-field.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/components/common/copy-field.tsx b/admin/components/common/copy-field.tsx index 47e1a3364..6322356b4 100644 --- a/admin/components/common/copy-field.tsx +++ b/admin/components/common/copy-field.tsx @@ -24,7 +24,7 @@ export const CopyField: React.FC = (props) => { return (
-

{label}

+

{label}

-
{description}
+
{description}
); }; From 4bb4609833bc5f463644a3d35605ad92949f7e64 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Fri, 24 May 2024 13:56:20 +0530 Subject: [PATCH 3/3] [WEB-1413] chore: update label creation toast error message. (#4572) --- web/components/labels/create-label-modal.tsx | 4 ++-- web/components/labels/create-update-label-inline.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/components/labels/create-label-modal.tsx b/web/components/labels/create-label-modal.tsx index 0de255c8c..18bed7a3a 100644 --- a/web/components/labels/create-label-modal.tsx +++ b/web/components/labels/create-label-modal.tsx @@ -73,9 +73,9 @@ export const CreateLabelModal: React.FC = observer((props) => { }) .catch((error) => { setToast({ - title: "Oops!", + title: "Error!", type: TOAST_TYPE.ERROR, - message: error?.error ?? "Error while adding the label", + message: error?.detail ?? "Something went wrong. Please try again later.", }); reset(formData); }); diff --git a/web/components/labels/create-update-label-inline.tsx b/web/components/labels/create-update-label-inline.tsx index 2aa8851c9..280ae55d9 100644 --- a/web/components/labels/create-update-label-inline.tsx +++ b/web/components/labels/create-update-label-inline.tsx @@ -63,9 +63,9 @@ export const CreateUpdateLabelInline = observer( }) .catch((error) => { setToast({ - title: "Oops!", + title: "Error!", type: TOAST_TYPE.ERROR, - message: error?.error ?? "Error while adding the label", + message: error?.detail ?? "Something went wrong. Please try again later.", }); reset(formData); });