PromucFlow_constructor/app/client/src/pages/UserAuth/VerificationError.tsx

166 lines
4.2 KiB
TypeScript
Raw Normal View History

feat: Email Verification (#25854) ## Description Adds a setting for Admin Users to enable Email verification of users who are signing up using "Form login" When enabled, it will send a verification email to a user who is signing up on a tenant and only when they verify (by clicking on the link in email) they will be allowed to proceed to the rest of the sign up process. Corresponding EE PR for the email template: https://github.com/appsmithorg/appsmith-ee/pull/2153 #### PR fixes following issue(s) Fixes #21387 Fixes #25552 #### Media > A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video > > #### Type of change - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Testing > #### How Has This Been Tested? - [x] Manual - [x] Jest - [x] Cypress We have mocked server apis to respond with different states and tested the ui on that change #### Test Plan https://github.com/appsmithorg/TestSmith/issues/2459 > > #### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [x] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed --------- Co-authored-by: nilansh <nilansh@appsmith.com>
2023-08-26 04:22:23 +00:00
import React, { useEffect } from "react";
import Container from "./Container";
chore: Updating the login and signup page for cloud hosting as per new design (#32641) ## Description Updating the login and signup page for cloud hosting as per new design Fixes [#32267](https://github.com/appsmithorg/appsmith/issues/32267) ## Automation /ok-to-test tags="@tag.All" ### :mag: Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/8723701550> > Commit: 65a0179c5d22e1f950888c24a119af608aed2a28 > Cypress dashboard url: <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8723701550&attempt=4" target="_blank">Click here!</a> <!-- end of auto-generated comment: Cypress test results --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced titles and messages across login, signup, and forgot password pages for clarity and engagement. - Added new analytics event for tracking visits to self-hosting documentation. - Introduced new content and layout adjustments in user authentication pages to improve user experience. - Implemented conditional rendering to optimize content display for mobile devices and cloud hosting scenarios. - **Bug Fixes** - Updated footer links to use consistent capitalization. - **Refactor** - Major structural and styling overhaul of forms and user authentication components to utilize modern CSS practices and improve maintainability. - **Documentation** - Added direct links to self-hosting documentation to facilitate user access. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-04-17 16:16:44 +00:00
import { Button, Callout, Icon, Link, Text } from "design-system";
feat: Email Verification (#25854) ## Description Adds a setting for Admin Users to enable Email verification of users who are signing up using "Form login" When enabled, it will send a verification email to a user who is signing up on a tenant and only when they verify (by clicking on the link in email) they will be allowed to proceed to the rest of the sign up process. Corresponding EE PR for the email template: https://github.com/appsmithorg/appsmith-ee/pull/2153 #### PR fixes following issue(s) Fixes #21387 Fixes #25552 #### Media > A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video > > #### Type of change - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Testing > #### How Has This Been Tested? - [x] Manual - [x] Jest - [x] Cypress We have mocked server apis to respond with different states and tested the ui on that change #### Test Plan https://github.com/appsmithorg/TestSmith/issues/2459 > > #### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [x] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed --------- Co-authored-by: nilansh <nilansh@appsmith.com>
2023-08-26 04:22:23 +00:00
import { AUTH_LOGIN_URL } from "constants/routes";
import {
createMessage,
DEFAULT_ERROR_MESSAGE,
PAGE_CLIENT_ERROR_DESCRIPTION,
VERIFY_ERROR_ALREADY_VERIFIED_TITLE,
VERIFY_ERROR_EXPIRED_TITLE,
VERIFY_ERROR_MISMATCH_TITLE,
} from "ee/constants/messages";
feat: Email Verification (#25854) ## Description Adds a setting for Admin Users to enable Email verification of users who are signing up using "Form login" When enabled, it will send a verification email to a user who is signing up on a tenant and only when they verify (by clicking on the link in email) they will be allowed to proceed to the rest of the sign up process. Corresponding EE PR for the email template: https://github.com/appsmithorg/appsmith-ee/pull/2153 #### PR fixes following issue(s) Fixes #21387 Fixes #25552 #### Media > A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video > > #### Type of change - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Testing > #### How Has This Been Tested? - [x] Manual - [x] Jest - [x] Cypress We have mocked server apis to respond with different states and tested the ui on that change #### Test Plan https://github.com/appsmithorg/TestSmith/issues/2459 > > #### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [x] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed --------- Co-authored-by: nilansh <nilansh@appsmith.com>
2023-08-26 04:22:23 +00:00
import { useResendEmailVerification } from "./helpers";
import type { RouteComponentProps } from "react-router-dom";
import styled from "styled-components";
import AnalyticsUtil from "ee/utils/AnalyticsUtil";
feat: Email Verification (#25854) ## Description Adds a setting for Admin Users to enable Email verification of users who are signing up using "Form login" When enabled, it will send a verification email to a user who is signing up on a tenant and only when they verify (by clicking on the link in email) they will be allowed to proceed to the rest of the sign up process. Corresponding EE PR for the email template: https://github.com/appsmithorg/appsmith-ee/pull/2153 #### PR fixes following issue(s) Fixes #21387 Fixes #25552 #### Media > A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video > > #### Type of change - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Testing > #### How Has This Been Tested? - [x] Manual - [x] Jest - [x] Cypress We have mocked server apis to respond with different states and tested the ui on that change #### Test Plan https://github.com/appsmithorg/TestSmith/issues/2459 > > #### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [x] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed --------- Co-authored-by: nilansh <nilansh@appsmith.com>
2023-08-26 04:22:23 +00:00
const Body = styled.div`
display: flex;
flex-direction: column;
align-items: center;
`;
export enum VerificationErrorType {
MISSING_PARAMETER = "AE-APP-4000",
ALREADY_VERIFIED = "AE-EMV-4095",
EXPIRED = "AE-EMV-4096",
MISMATCH = "AE-EMV-4098",
UNKNOWN = "UNKNOWN",
}
const VerificationError = (
props: RouteComponentProps<{
errorCode: string;
email: string;
message: string;
}>,
) => {
const queryParams = new URLSearchParams(props.location.search);
const email = queryParams.get("email");
const code = queryParams.get("code");
const message = queryParams.get("message");
const [resendVerificationLink, enabled] = useResendEmailVerification(email);
useEffect(() => {
AnalyticsUtil.logEvent("EMAIL_VERIFICATION_FAILED", {
errorCode: code,
message,
});
}, [code, message]);
if (code === VerificationErrorType.EXPIRED) {
return (
<Container testId="verification-error" title="">
<Body>
<Callout kind="error">
<Text kind={"body-m"}>
{createMessage(VERIFY_ERROR_EXPIRED_TITLE)}
</Text>
</Callout>
</Body>
<Body>
<Button
isDisabled={!enabled}
onClick={resendVerificationLink}
size="md"
>
Send new link
</Button>
</Body>
</Container>
);
}
if (code === VerificationErrorType.MISSING_PARAMETER) {
return (
<Container testId="verification-error" title="">
<Body>
<Callout kind="error">
<Text kind={"body-m"}>{message}</Text>
</Callout>
</Body>
<Body>
<Button
isDisabled={!enabled}
onClick={resendVerificationLink}
size="md"
>
Send new link
</Button>
</Body>
</Container>
);
}
if (code === VerificationErrorType.ALREADY_VERIFIED) {
return (
<Container
footer={
chore: Updating the login and signup page for cloud hosting as per new design (#32641) ## Description Updating the login and signup page for cloud hosting as per new design Fixes [#32267](https://github.com/appsmithorg/appsmith/issues/32267) ## Automation /ok-to-test tags="@tag.All" ### :mag: Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/8723701550> > Commit: 65a0179c5d22e1f950888c24a119af608aed2a28 > Cypress dashboard url: <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8723701550&attempt=4" target="_blank">Click here!</a> <!-- end of auto-generated comment: Cypress test results --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced titles and messages across login, signup, and forgot password pages for clarity and engagement. - Added new analytics event for tracking visits to self-hosting documentation. - Introduced new content and layout adjustments in user authentication pages to improve user experience. - Implemented conditional rendering to optimize content display for mobile devices and cloud hosting scenarios. - **Bug Fixes** - Updated footer links to use consistent capitalization. - **Refactor** - Major structural and styling overhaul of forms and user authentication components to utilize modern CSS practices and improve maintainability. - **Documentation** - Added direct links to self-hosting documentation to facilitate user access. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-04-17 16:16:44 +00:00
<div className="px-2 py-4 flex items-center justify-center text-base text-center text-[color:var(--ads-v2\-color-fg)] text-[14px]">
<Icon name="arrow-left-line" size="md" />
&nbsp; Back to &nbsp;
feat: Email Verification (#25854) ## Description Adds a setting for Admin Users to enable Email verification of users who are signing up using "Form login" When enabled, it will send a verification email to a user who is signing up on a tenant and only when they verify (by clicking on the link in email) they will be allowed to proceed to the rest of the sign up process. Corresponding EE PR for the email template: https://github.com/appsmithorg/appsmith-ee/pull/2153 #### PR fixes following issue(s) Fixes #21387 Fixes #25552 #### Media > A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video > > #### Type of change - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Testing > #### How Has This Been Tested? - [x] Manual - [x] Jest - [x] Cypress We have mocked server apis to respond with different states and tested the ui on that change #### Test Plan https://github.com/appsmithorg/TestSmith/issues/2459 > > #### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [x] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed --------- Co-authored-by: nilansh <nilansh@appsmith.com>
2023-08-26 04:22:23 +00:00
<Link
chore: Updating the login and signup page for cloud hosting as per new design (#32641) ## Description Updating the login and signup page for cloud hosting as per new design Fixes [#32267](https://github.com/appsmithorg/appsmith/issues/32267) ## Automation /ok-to-test tags="@tag.All" ### :mag: Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/8723701550> > Commit: 65a0179c5d22e1f950888c24a119af608aed2a28 > Cypress dashboard url: <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8723701550&attempt=4" target="_blank">Click here!</a> <!-- end of auto-generated comment: Cypress test results --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced titles and messages across login, signup, and forgot password pages for clarity and engagement. - Added new analytics event for tracking visits to self-hosting documentation. - Introduced new content and layout adjustments in user authentication pages to improve user experience. - Implemented conditional rendering to optimize content display for mobile devices and cloud hosting scenarios. - **Bug Fixes** - Updated footer links to use consistent capitalization. - **Refactor** - Major structural and styling overhaul of forms and user authentication components to utilize modern CSS practices and improve maintainability. - **Documentation** - Added direct links to self-hosting documentation to facilitate user access. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-04-17 16:16:44 +00:00
className="text-sm justify-center pl-[var(--ads-v2\-spaces-3)]"
feat: Email Verification (#25854) ## Description Adds a setting for Admin Users to enable Email verification of users who are signing up using "Form login" When enabled, it will send a verification email to a user who is signing up on a tenant and only when they verify (by clicking on the link in email) they will be allowed to proceed to the rest of the sign up process. Corresponding EE PR for the email template: https://github.com/appsmithorg/appsmith-ee/pull/2153 #### PR fixes following issue(s) Fixes #21387 Fixes #25552 #### Media > A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video > > #### Type of change - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Testing > #### How Has This Been Tested? - [x] Manual - [x] Jest - [x] Cypress We have mocked server apis to respond with different states and tested the ui on that change #### Test Plan https://github.com/appsmithorg/TestSmith/issues/2459 > > #### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [x] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed --------- Co-authored-by: nilansh <nilansh@appsmith.com>
2023-08-26 04:22:23 +00:00
kind="primary"
target="_self"
to={AUTH_LOGIN_URL}
>
chore: Updating the login and signup page for cloud hosting as per new design (#32641) ## Description Updating the login and signup page for cloud hosting as per new design Fixes [#32267](https://github.com/appsmithorg/appsmith/issues/32267) ## Automation /ok-to-test tags="@tag.All" ### :mag: Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/8723701550> > Commit: 65a0179c5d22e1f950888c24a119af608aed2a28 > Cypress dashboard url: <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8723701550&attempt=4" target="_blank">Click here!</a> <!-- end of auto-generated comment: Cypress test results --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced titles and messages across login, signup, and forgot password pages for clarity and engagement. - Added new analytics event for tracking visits to self-hosting documentation. - Introduced new content and layout adjustments in user authentication pages to improve user experience. - Implemented conditional rendering to optimize content display for mobile devices and cloud hosting scenarios. - **Bug Fixes** - Updated footer links to use consistent capitalization. - **Refactor** - Major structural and styling overhaul of forms and user authentication components to utilize modern CSS practices and improve maintainability. - **Documentation** - Added direct links to self-hosting documentation to facilitate user access. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-04-17 16:16:44 +00:00
Sign in
feat: Email Verification (#25854) ## Description Adds a setting for Admin Users to enable Email verification of users who are signing up using "Form login" When enabled, it will send a verification email to a user who is signing up on a tenant and only when they verify (by clicking on the link in email) they will be allowed to proceed to the rest of the sign up process. Corresponding EE PR for the email template: https://github.com/appsmithorg/appsmith-ee/pull/2153 #### PR fixes following issue(s) Fixes #21387 Fixes #25552 #### Media > A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video > > #### Type of change - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Testing > #### How Has This Been Tested? - [x] Manual - [x] Jest - [x] Cypress We have mocked server apis to respond with different states and tested the ui on that change #### Test Plan https://github.com/appsmithorg/TestSmith/issues/2459 > > #### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [x] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed --------- Co-authored-by: nilansh <nilansh@appsmith.com>
2023-08-26 04:22:23 +00:00
</Link>
</div>
}
testId="verification-error"
title=""
>
<Body>
<Callout kind="error">
<Text kind={"body-m"}>
{createMessage(VERIFY_ERROR_ALREADY_VERIFIED_TITLE)}
</Text>
</Callout>
</Body>
</Container>
);
}
if (code === VerificationErrorType.MISMATCH) {
return (
<Container testId="verification-error" title="">
<Body>
<Callout kind="error">
<Text kind={"body-m"}>
{createMessage(VERIFY_ERROR_MISMATCH_TITLE)}
</Text>
</Callout>
</Body>
<Body>
<Button
isDisabled={!enabled}
onClick={resendVerificationLink}
size="md"
>
Send new link
</Button>
</Body>
</Container>
);
}
return (
<Container
testId="verification-error"
title={createMessage(DEFAULT_ERROR_MESSAGE)}
>
<Body>
<Callout kind="error">
<Text kind={"body-m"}>
{createMessage(PAGE_CLIENT_ERROR_DESCRIPTION)}
</Text>
</Callout>
</Body>
</Container>
);
};
export default VerificationError;