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

Refactor login form into a single component #2363

Merged
merged 10 commits into from
Apr 20, 2021
Merged

Conversation

jasperhuangg
Copy link
Contributor

@jasperhuangg jasperhuangg commented Apr 13, 2021

Details

Before, the LoginForm component had narrow and wide counterparts (sub-components), which made the logic confusing.

In lieu of the changes in #2196, we can now refactor this into a single component without these counterparts and clean up the code.

Fixed Issues

Expensify/Expensify#157816

Tests

  1. Navigate to the sign in page.
  2. Verify it renders the same as it does on production.

QA Steps

  1. Navigate to the sign in page.
  2. Verify the welcome text everything renders correctly.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Screen Shot 2021-04-02 at 11 03 58 AM

Mobile Web

Screen Shot 2021-04-01 at 11 37 28 AM

Desktop

Screen Shot 2021-04-02 at 11 00 34 AM

iOS

Screen Shot 2021-04-02 at 10 59 53 AM

Android

Screen Shot 2021-04-02 at 11 03 18 AM

@jasperhuangg jasperhuangg self-assigned this Apr 13, 2021
@jasperhuangg jasperhuangg marked this pull request as ready for review April 13, 2021 00:48
@jasperhuangg jasperhuangg requested a review from a team as a code owner April 13, 2021 00:48
@MelvinBot MelvinBot requested review from tylerkaraszewski and removed request for a team April 13, 2021 00:48
Copy link
Contributor

@tylerkaraszewski tylerkaraszewski left a comment

Choose a reason for hiding this comment

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

This is not my area of expertise, but this looks OK to me.

Copy link
Contributor

@marcaaron marcaaron left a comment

Choose a reason for hiding this comment

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

Leaving a few comments mostly LGTM

src/pages/signin/LoginForm/index.js Show resolved Hide resolved
src/pages/signin/LoginForm.js Outdated Show resolved Hide resolved
src/pages/signin/SignInPageLayout/index.js Outdated Show resolved Hide resolved
Copy link
Contributor

@marcaaron marcaaron left a comment

Choose a reason for hiding this comment

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

auto focus feature still has 2 problems

@marcaaron marcaaron self-requested a review April 20, 2021 03:41
Copy link
Contributor

@marcaaron marcaaron left a comment

Choose a reason for hiding this comment

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

Looks great thanks!

@OSBotify
Copy link
Contributor

🚀 Deployed to staging 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented May 8, 2021

🚀 Deployed to production in version: 1.0.39-5🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

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.

4 participants