Closed yugantarjain closed 4 years ago
My comments so far: 1 - Social logins should be visible on the sign up and login screens without scrolling. You will have to adjust these screen layouts. (tested on iPhone 8) 2 - Need to note in the docs that to test social logins you must set the developer account AND change the bundle identifier.
My comments so far: 1 - Social logins should be visible on the sign up and login screens without scrolling. You will have to adjust these screen layouts. (tested on iPhone 8) 2 - Need to note in the docs that to test social logins you must set the developer account AND change the bundle identifier.
I think it'd be better to have them only on the login screen and not sign-up (since the backend API handles both the cases), otherwise the user may get a wrong idea about which button on which screen does what. To show them without scrolling, one solution can be to remove logo image and use a navigation bar instead in login screen... What do you think?
Okay.
1- yes I think you are right about the signup screen.
I can’t envision what you mean by the nav bar. But the issue only occurs on certain smaller screens.
@sunjunkie to show sign-in buttons without scrolling on small screens, I can think of two solutions -
Remove scroll view. SwiftUI manages to show everything by scaling down the mentorship system image (it is resizable, image size now depends on the screen size).
Remove image and use a simple title instead (like we do in sign-up screen).
Method 1 | Method 2 |
---|---|
Personally, I think the current implementation (scroll view) works well. However, if we do want to remove that, I think Method 2 looks better.
Apple's guidelines specifically say to avoid scrolling. "Prominently display a Sign in with Apple button. Make a Sign in with Apple button no smaller than other sign-in buttons, and avoid making people scroll to see the button." https://developer.apple.com/design/human-interface-guidelines/sign-in-with-apple/overview/buttons/
As for the 2 alternatives, the first is my choice. Just alter the image size. I expect this screen design will be decided by the UI team eventually anyway.
My comments so far: 1 - Social logins should be visible on the sign up and login screens without scrolling. You will have to adjust these screen layouts. (tested on iPhone 8) 2 - Need to note in the docs that to test social logins you must set the developer account AND change the bundle identifier.
UI Issues
Signin button are looking good in dark mode
When there is an error message. Google sign in button slides down and break the bounds of screen. Also logo disappeared
Suggestions:
@vatsalkul UI issues fixed.
@vatsalkul social sign in buttons made into one line. Also, space between buttons and divider reduced.
@yugantarjain This looks good. Update the base branch first and I will approve.
@sunjunkie updated. @anitab-org/mentorship-ios-maintainers have updated the docs too and have removed the google auth client id from app.
Description
This PR implements social logins on the app for two providers - Apple and Google. Now, a user can sign into the app using username/password, or through the convenient social sign-in methods. The social sign-in process uses new callback APIs on the backend (PR).
To test -
Note: run 'pod install' in the project directory before running and use .xcworkspace instead of .xcodeproj (Instructions for setting up the project in the README have been updated)
Mocks
Fixes #23
Type of Change:
Code/Quality Assurance Only
How Has This Been Tested?
Tested on Simluator
Checklist:
Code/Quality Assurance Only