From 9f1fd2327a4f6a1e649ce6600bca8858a736a5f3 Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Fri, 20 Oct 2023 17:10:17 +0530 Subject: [PATCH] fix: auth redirection issue fixes when user is logged in (#2499) * fix: auth redirection issues * fix: redirect flickering fix * chore: sign in page ui improvement and redirection fix (#2501) * style: sign in page ui improvement * chore: sign up redirection added and ui improvement * chore: redirection validation and create workspace form fix (#2504) * chore: sign in redirection validation * fix: create workspace form input fix * chore: code refactor --------- Co-authored-by: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> --- packages/ui/src/icons/layers-icon.tsx | 2 +- web/components/account/email-code-form.tsx | 2 +- .../account/email-forgot-password-form.tsx | 2 +- .../account/email-password-form.tsx | 8 ++- web/components/account/email-signup-form.tsx | 1 + web/components/page-views/signin.tsx | 63 ++++++++++++++----- .../project/create-project-modal.tsx | 7 +-- .../workspace/create-workspace-form.tsx | 10 ++- web/constants/crisp.tsx | 18 +++--- web/layouts/default-layout/index.tsx | 10 +-- web/lib/mobx/store-init.tsx | 20 +++--- web/pages/accounts/sign-up.tsx | 2 +- web/store/user.store.ts | 6 ++ 13 files changed, 99 insertions(+), 52 deletions(-) diff --git a/packages/ui/src/icons/layers-icon.tsx b/packages/ui/src/icons/layers-icon.tsx index adc2c82abc..d0ec6ebc1c 100644 --- a/packages/ui/src/icons/layers-icon.tsx +++ b/packages/ui/src/icons/layers-icon.tsx @@ -14,7 +14,7 @@ export const LayersIcon: React.FC = ({ xmlns="http://www.w3.org/2000/svg" {...rest} > - + { variant="primary" type="submit" className="w-full" - size="md" + size="xl" onClick={handleSubmit(handleSignin)} disabled={!isValid && isDirty} loading={isLoading} diff --git a/web/components/account/email-forgot-password-form.tsx b/web/components/account/email-forgot-password-form.tsx index 684589ca68..a78efec5da 100644 --- a/web/components/account/email-forgot-password-form.tsx +++ b/web/components/account/email-forgot-password-form.tsx @@ -51,7 +51,7 @@ export const EmailForgotPasswordForm: FC = (props) => onChange={onChange} hasError={Boolean(errors.email)} placeholder="Enter registered email address.." - className="border-custom-border-300 h-[46px]" + className="border-custom-border-300 h-[46px] w-full" /> )} /> diff --git a/web/components/account/email-password-form.tsx b/web/components/account/email-password-form.tsx index 7632a67c2f..fe8d2d51cd 100644 --- a/web/components/account/email-password-form.tsx +++ b/web/components/account/email-password-form.tsx @@ -56,7 +56,7 @@ export const EmailPasswordForm: React.FC = (props) => { onChange={onChange} hasError={Boolean(errors.email)} placeholder="Enter your email address..." - className="border-custom-border-300 h-[46px]" + className="border-custom-border-300 h-[46px] w-full" /> )} /> @@ -77,7 +77,7 @@ export const EmailPasswordForm: React.FC = (props) => { onChange={onChange} hasError={Boolean(errors.password)} placeholder="Enter your password..." - className="border-custom-border-300 h-[46px]" + className="border-custom-border-300 h-[46px] w-full" /> )} /> @@ -93,8 +93,10 @@ export const EmailPasswordForm: React.FC = (props) => {