Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: design registration form pop up #5

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

attiyaIshaque
Copy link
Member

@attiyaIshaque attiyaIshaque commented Apr 1, 2024

Description

In this pull request, I've implemented the registration form in alignment with the Figma style guidelines. I've included components such as the social authentication button, dividers, links, and footer text as specified in the design.

JIRA

VAN-1815

How Has This Been Tested?

Tested locally

Screenshots/sandbox (optional):

Screenshot 2024-04-04 at 12 01 26 PM

Merge Checklist

  • If your update includes visual changes, have they been reviewed by a designer? Send them a link to the Sandbox, if applicable.
  • Is there adequate test coverage for your changes?

Copy link
Contributor

@syedsajjadkazmii syedsajjadkazmii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use the dir structure and messages names as in https://github.com/edx/frontend-component-authn-edx/pull/4/files? this is for consistency

src/register/index.jsx Outdated Show resolved Hide resolved
src/register/index.scss Outdated Show resolved Hide resolved
src/register/index.scss Outdated Show resolved Hide resolved
src/register/index.scss Outdated Show resolved Hide resolved
src/register/index.scss Outdated Show resolved Hide resolved
src/register/index.scss Outdated Show resolved Hide resolved
src/register/index.jsx Outdated Show resolved Hide resolved
src/register/index.jsx Outdated Show resolved Hide resolved
src/register/index.jsx Outdated Show resolved Hide resolved
src/register/index.jsx Outdated Show resolved Hide resolved
@attiyaIshaque attiyaIshaque force-pushed the attiya/VAN-1815-registration-form branch 2 times, most recently from 04fbb67 to 5661a59 Compare April 1, 2024 14:38
src/forms/register/index.scss Outdated Show resolved Hide resolved
src/base-container/index.scss Outdated Show resolved Hide resolved
src/forms/register/index.jsx Outdated Show resolved Hide resolved
src/forms/register/index.jsx Outdated Show resolved Hide resolved
src/register/index.jsx Outdated Show resolved Hide resolved
@attiyaIshaque attiyaIshaque force-pushed the attiya/VAN-1815-registration-form branch 2 times, most recently from 9c707df to d913ac1 Compare April 2, 2024 07:03
src/base-container/index.jsx Outdated Show resolved Hide resolved
src/forms/register/index.scss Outdated Show resolved Hide resolved
src/forms/register/index.scss Outdated Show resolved Hide resolved
src/forms/register/index.jsx Outdated Show resolved Hide resolved
@attiyaIshaque attiyaIshaque force-pushed the attiya/VAN-1815-registration-form branch 3 times, most recently from 0a6ce38 to 33c277c Compare April 2, 2024 10:32
@attiyaIshaque attiyaIshaque force-pushed the attiya/VAN-1815-registration-form branch from 33c277c to 7f21f8c Compare April 2, 2024 10:39
Copy link
Contributor

@zainab-amir zainab-amir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe there were some changes that Ahtesham missed in his PR that he wanted you to do as part of this ticket.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the file name to registration-popup

import SocialAuthButtons from '../../common-ui/SocialAuthButtons';
import './index.scss';

const RegisterForm = () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const RegisterForm = () => {
const RegistrationForm = () => {

Comment on lines 26 to 31
<BaseContainer open={open} setOpen={setOpen}>
<LoginForm />
</BaseContainer>
<BaseContainer open={open} setOpen={setOpen} footerText={registrationFooterText}>
<RegisterForm />
</BaseContainer>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we decided to use a single BaseContainer in the standup.

footerText: {
id: 'footer.text',
defaultMessage: 'By creating an account, you agree to the Terms of Service and Honor Code and you acknowledge that edX and each Member process your personal data in accordance with the Privacy Policy.',
description: 'Text for footer',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: 'Text for footer',
description: 'Text that appears on registration form stating honor code and privacy policy',

<Form.Group controlId="email" className="w-100 mb-0">
<Form.Control
type="email"
floatingLabel={<span>{formatMessage(messages.registerFormEmailFieldLabel)}</span>}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need span around it?

Comment on lines 34 to 38
registerFormContinueButton: {
id: 'register.form.continue.button',
defaultMessage: 'Continue',
description: 'Text for submit button',
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this?

registerFormAlreadyHaveAccountText: {
id: 'register.form.already.have.account.text',
defaultMessage: 'Already have an account?',
description: 'Text for already have an account',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: 'Text for already have an account',
description: 'Text for registration button',

registerFormSignInLink: {
id: 'register.form.sign.in.link',
defaultMessage: 'Sign In',
description: 'Text for signing in',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: 'Text for signing in',
description: 'Text for sign in link',

registerFormAccountSchoolOrganizationText: {
id: 'register.form.account.school.organization.text',
defaultMessage: 'Have an account through school or organization?',
description: 'Text for having an account through school or organization',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: 'Text for having an account through school or organization',
description: 'Label for link that leads learners to the institution login page',

defaultMessage: 'Sign In',
description: 'Text for signing in',
},
registerFormAccountSchoolOrganizationText: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
registerFormAccountSchoolOrganizationText: {
registrationFormSchoolOrOrganizationLink: {

@attiyaIshaque attiyaIshaque force-pushed the attiya/VAN-1815-registration-form branch 2 times, most recently from 16605be to 5c6c003 Compare April 4, 2024 07:00
Copy link
Contributor

@zainab-amir zainab-amir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address the comments before merging.

defaultMessage: 'By creating an account, you agree to the Terms of Service and Honor Code and you acknowledge that edX and each Member process your personal data in accordance with the Privacy Policy.',
description: 'Text that appears on registration form stating honor code and privacy policy',
},

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove extra line

Comment on lines 4 to 13
registrationFormHeading: {
id: 'registration.form.heading',
defaultMessage: 'Create account',
description: 'registration form main heading',
},
registrationFormOrText: {
id: 'registration.form.or.message',
defaultMessage: 'or',
description: 'Heading that appears between social auth and basic registration form',
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we name similar to how we have named in Login form?

Suggested change
registrationFormHeading: {
id: 'registration.form.heading',
defaultMessage: 'Create account',
description: 'registration form main heading',
},
registrationFormOrText: {
id: 'registration.form.or.message',
defaultMessage: 'or',
description: 'Heading that appears between social auth and basic registration form',
},
registrationFormHeading1: {
id: 'registration.form.heading.1',
defaultMessage: 'Create account',
description: 'registration form main heading',
},
registrationFormHeading2: {
id: 'registration.form.heading.2',
defaultMessage: 'or',
description: 'Heading that appears between social auth and basic registration form',
},

registrationFormCreateAccountButton: {
id: 'registration.form.continue.button',
defaultMessage: 'Create an account for free',
description: 'Text for submit button',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: 'Text for submit button',
description: 'Text for submit button on registration form',

registrationFormAlreadyHaveAccountText: {
id: 'registration.form.already.have.account.text',
defaultMessage: 'Already have an account?',
description: 'Text for registration button',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: 'Text for registration button',
description: 'Login button help text',

@attiyaIshaque attiyaIshaque force-pushed the attiya/VAN-1815-registration-form branch from 5c6c003 to 0f6b354 Compare April 4, 2024 08:31
@attiyaIshaque attiyaIshaque merged commit 0424487 into master Apr 4, 2024
5 checks passed
@attiyaIshaque attiyaIshaque deleted the attiya/VAN-1815-registration-form branch April 4, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants