-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[TS migration] Migrate 'SignInButtons' component to TypeScript #33404
Conversation
@shahinyan11 Videos/screenshots are missing in your PR Author's Checklist. Please complete it. |
@shahinyan11 Please also request review from @fabioh8010 and @blazejkustra. |
I know. I just wanted to add a video and then ask to review |
How I should request review from them. Only you are mentioned in reviewers |
Hmmm... I thought you can do it as an author of the PR. I'll speak to Fabio then and let them know. |
@burczu Should I add videos with testing full apple sign in flow or only work of buttons is enough ? I would like to ask permission to not record videos with full apple sign in flow for Web and Desktop because the testing apple sign in on those platforms is a big process . |
@shahinyan11 I think working buttons is enough. |
@burczu I have added all videos . |
@shahinyan11 Typecheck is failing, please merge the newest main and fix 😄 |
@blazejkustra Ready |
@@ -296,11 +296,11 @@ function beginSignIn(email: string) { | |||
* Given an idToken from Sign in with Apple, checks the API to see if an account | |||
* exists for that email address and signs the user in if so. | |||
*/ | |||
function beginAppleSignIn(idToken: string) { | |||
function beginAppleSignIn(idToken: string | undefined | null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this function accept undefined strings? If so, why?
function beginAppleSignIn(idToken: string | undefined | null) { | |
function beginAppleSignIn(idToken: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rushatgabhane The beginAppleSignIn function is called in Promise.then
where the received value can be undefined . We should use this approach or call it in a condition
@@ -313,11 +313,11 @@ function beginAppleSignIn(idToken: string) { | |||
* Shows Google sign-in process, and if an auth token is successfully obtained, | |||
* passes the token on to the Expensify API to sign in with | |||
*/ | |||
function beginGoogleSignIn(token: string) { | |||
function beginGoogleSignIn(token: string | null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rushatgabhane The same cause
Reviewer Checklist
Screenshots/Videos |
@shahinyan11 @rushatgabhane @yuwenmemon seems like this is causing linting errors on main:
|
Should be a quick fix. I can handle. |
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 1.4.24-4 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.24-8 🚀
|
Details
[TS migration] Migrate 'SignInButtons' component to TypeScript
Fixed Issues
$ #31980
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as in the Tests section.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mp4
Android: mWeb Chrome
2023-12-21.17.05.27.mp4
iOS: Native
ios.mov
iOS: mWeb Safari
Screen.Recording.2023-12-21.at.16.39.02.mov
MacOS: Chrome / Safari
Screen.Recording.2023-12-21.at.16.10.17.mov
MacOS: Desktop
Screen.Recording.2023-12-21.at.16.16.39.mov