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: Auth form visual enhancements (master) #767

Conversation

Lunyachek
Copy link
Contributor

@Lunyachek Lunyachek commented Mar 1, 2023

Description

Cosmetic improvements for the login/registration page. Changes in React are related to the situation when third-party login providers is disabled, but when switching between Login and Registration tabs, we still see a preloader that is not necessary in this situation.

2023-03-01.16.08.24.mov

And sass changes are related to the suggested username field, which is too short and can be extended to match the neighboring inputs.

image1

After making our changes, we no longer see preloaders in cases where third-party login providers are turned off.

2023-03-01.16.47.42.mov

And suggested username field looks pretty

Снимок экрана 2023-03-01 в 16 46 17

@Lunyachek Lunyachek requested a review from a team as a code owner March 1, 2023 15:15
@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Mar 1, 2023
@openedx-webhooks
Copy link

openedx-webhooks commented Mar 1, 2023

Thanks for the pull request, @Lunyachek! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@Lunyachek Lunyachek changed the title feat: Auth form visual enhancements feat: Auth form visual enhancements (master) Mar 1, 2023
@mphilbrick211 mphilbrick211 added the needs test run Author's first PR to this repository, awaiting test authorization from Axim label Mar 1, 2023
@jmakowski1123 jmakowski1123 added the product review PR requires product review before merging label Mar 1, 2023
@e0d e0d removed the needs test run Author's first PR to this repository, awaiting test authorization from Axim label Mar 6, 2023
@codecov
Copy link

codecov bot commented Mar 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.04%. Comparing base (90ae870) to head (f66d610).
Report is 7 commits behind head on master.

❗ Current head f66d610 differs from pull request most recent head 92fcc31. Consider uploading reports for the commit 92fcc31 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #767      +/-   ##
==========================================
- Coverage   87.71%   87.04%   -0.68%     
==========================================
  Files         124      124              
  Lines        2288     2284       -4     
  Branches      636      639       +3     
==========================================
- Hits         2007     1988      -19     
- Misses        272      287      +15     
  Partials        9        9              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Overall the layout is changed for me, I can see in your screenshots that it's fine but the left panel width is decreased for me. Although it's working fine on the master branch. Could you please also look into this?
Screenshot 2023-03-08 at 10 20 39 AM

@mphilbrick211
Copy link

Overall the layout is changed for me, I can see in your screenshots that it's fine but the left panel width is decreased for me. Although it's working fine on the master branch. Could you please also look into this? Screenshot 2023-03-08 at 10 20 39 AM

Hi @Lunyachek - friendly ping on this :)

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.

One more thing that we noticed (thanks to @zainab-amir )

If we use this approach for hiding the social auth skeleton when they are inactive, then it will also hide the skeleton when social auth is active. Because we get providers in MFE_context api response and based on the response we render these buttons if providers are available.

@mphilbrick211
Copy link

Hi @Lunyachek! Looks like some tests need to be re-run and branch conflicts need to be resolved.

@zainab-amir @syedsajjadkazmii - Product has completed their review. Once the conflicts and tests are all set, please review and merge if all looks good. Thanks!

@zainab-amir
Copy link
Contributor

@mphilbrick211 the changes will introduce a bug as mentioned by Sajjad. Those need to be resolved first.

@mphilbrick211
Copy link

Hi @syedsajjadkazmii and @zainab-amir - any update on this?

@syedsajjadkazmii
Copy link
Contributor

Hi @syedsajjadkazmii and @zainab-amir - any update on this?

Hi @mphilbrick211, we are waiting on the author to resolve the suggestions before we proceed with this.

@mphilbrick211
Copy link

Hi @syedsajjadkazmii and @zainab-amir - any update on this?

Hi @mphilbrick211, we are waiting on the author to resolve the suggestions before we proceed with this.

@Lunyachek - flagging this for you :)

@mphilbrick211
Copy link

Hi @Lunyachek! Just checking to see if you're able to address the items above? Thanks!

@mphilbrick211
Copy link

Hi @Lunyachek! Just checking to see if you're able to address the items above? Thanks!

Hi @Lunyachek - are you planning to pursue this pull request? Please let us know if you have any questions. Thanks!

@mphilbrick211 mphilbrick211 added the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label Jul 17, 2023
@Lunyachek Lunyachek force-pushed the lunyachek/feat/auth-form-visual-enhancements-master branch 2 times, most recently from 670c2c4 to fecccd5 Compare July 21, 2023 22:34
@Lunyachek
Copy link
Contributor Author

Overall the layout is changed for me, I can see in your screenshots that it's fine but the left panel width is decreased for me. Although it's working fine on the master branch. Could you please also look into this? Screenshot 2023-03-08 at 10 20 39 AM

I removed changes in css related to the suggested username field because of fresh master branch already includes enhancements for this field. And left bar, shown on this screenshot, increased to it normal size

@mphilbrick211
Copy link

Thanks, @Lunyachek! It looks like there's a failing test - would you mind taking a look?

@syedsajjadkazmii
Copy link
Contributor

One more thing that we noticed (thanks to @zainab-amir )

If we use this approach for hiding the social auth skeleton when they are inactive, then it will also hide the skeleton when social auth is active. Because we get providers in MFE_context api response and based on the response we render these buttons if providers are available.

Hi @Lunyachek, could you please consider this scenario too?

@mphilbrick211
Copy link

One more thing that we noticed (thanks to @zainab-amir )
If we use this approach for hiding the social auth skeleton when they are inactive, then it will also hide the skeleton when social auth is active. Because we get providers in MFE_context api response and based on the response we render these buttons if providers are available.

Hi @Lunyachek, could you please consider this scenario too?

Hi @Lunyachek! Just checking to see if you plan to pursue this PR?

@mphilbrick211 mphilbrick211 added the inactive PR author has been unresponsive for several months label Oct 3, 2023
@Lunyachek Lunyachek force-pushed the lunyachek/feat/auth-form-visual-enhancements-master branch 2 times, most recently from 1776312 to f8f0115 Compare October 21, 2023 10:04
@Lunyachek
Copy link
Contributor Author

Lunyachek commented Oct 21, 2023

One more thing that we noticed (thanks to @zainab-amir )

If we use this approach for hiding the social auth skeleton when they are inactive, then it will also hide the skeleton when social auth is active. Because we get providers in MFE_context api response and based on the response we render these buttons if providers are available.

When social auth is active - skeleton will not be hidden. I recorded a video with local check (sorry for quality, I need to made it less than 10mb)

First part - no providers and no skeleton, second part - provider is enabled and skeleton is visible

2023-10-21.14.09.23-2.mov

@mphilbrick211 mphilbrick211 removed the product review PR requires product review before merging label Oct 24, 2023
@mphilbrick211
Copy link

Hi @Lunyachek! Would you mind rebasing to see if that fixes the codecov failure?

Also, @zainab-amir just flagging this for review, along with the backport.

@mphilbrick211 mphilbrick211 removed the inactive PR author has been unresponsive for several months label Nov 15, 2023
@syedsajjadkazmii
Copy link
Contributor

syedsajjadkazmii commented Nov 23, 2023

Hi @Lunyachek, you are right. The loader is not hidden when social auth is enabled.

But could you please do the following changes?

I agree, changed to isThirdPartyAuthActive

please change all ThirdPartyAuthPreloader to isThirdPartyAuthActive.

also i think you can use isThirdPartyAuthActive variable instead of condition in the following places
login page component and
third party auth component

And please rebase the branch :)

@mphilbrick211
Copy link

Hi @Lunyachek, you are right. The loader is not hidden when social auth is enabled.

But could you please do the following changes?

I agree, changed to isThirdPartyAuthActive

please change all ThirdPartyAuthPreloader to isThirdPartyAuthActive.

also i think you can use isThirdPartyAuthActive variable instead of condition in the following places login page component and third party auth component

And please rebase the branch :)

Hi @Lunyachek! Flagging this for you.

@dyudyunov dyudyunov force-pushed the lunyachek/feat/auth-form-visual-enhancements-master branch from f8f0115 to f66d610 Compare January 11, 2024 15:25
@dyudyunov
Copy link

@mphilbrick211 hi

I rebased the branch, now we need someone to trigger workflows

@Lunyachek please check recent comments:

Hi @Lunyachek, you are right. The loader is not hidden when social auth is enabled.
But could you please do the following changes?
I agree, changed to isThirdPartyAuthActive
please change all ThirdPartyAuthPreloader to isThirdPartyAuthActive.
also i think you can use isThirdPartyAuthActive variable instead of condition in the following places
login page component and
third party auth component

@mphilbrick211 mphilbrick211 added needs test run Author's first PR to this repository, awaiting test authorization from Axim and removed waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. needs test run Author's first PR to this repository, awaiting test authorization from Axim labels Jan 11, 2024
@mphilbrick211
Copy link

@Lunyachek @dyudyunov - tests have been re-run. Looks like there's still a failing check.

@mphilbrick211
Copy link

@Lunyachek @dyudyunov - tests have been re-run. Looks like there's still a failing check.

Hi @Lunyachek and @dyudyunov - it would be great to get this reviewed soon. Flagging the failing check and the branch conflicts that have popped up.

@dyudyunov
Copy link

@mphilbrick211 thanks for the ping!
We'll try to work on it ASAP

Note: codecov (failed check) is pointing to lines where no changes were made. The rebasing might fix it

@Lunyachek Lunyachek force-pushed the lunyachek/feat/auth-form-visual-enhancements-master branch from f66d610 to ac6e84d Compare April 11, 2024 21:53
@Lunyachek Lunyachek requested a review from a team as a code owner April 11, 2024 21:53
@Lunyachek Lunyachek force-pushed the lunyachek/feat/auth-form-visual-enhancements-master branch from ac6e84d to 92fcc31 Compare April 11, 2024 22:25
@Lunyachek
Copy link
Contributor Author

Lunyachek commented Apr 12, 2024

I rebased branch and moved changes to the ThirdPartyAuth.jsx

Also made PR to quince branch - #1225

@mphilbrick211
Copy link

Hi @openedx/2u-vanguards! This is ready for review, along with backports #766 and #1225

@syedsajjadkazmii syedsajjadkazmii merged commit 3ddaf79 into openedx:master Apr 19, 2024
5 checks passed
@openedx-webhooks
Copy link

@Lunyachek 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

8 participants