-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 'SettingsSecurity2FA' page to TypeScript #35359
Conversation
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthForm/BaseTwoFactorAuthForm.tsx
Outdated
Show resolved
Hide resolved
gentle bump @ntdiary :) |
Ah, sorry, I took a day off yesterday and will review the PR within 24 hours. |
no worries, take your time :) |
still under review. |
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthPropTypes.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/StepWrapper/StepWrapper.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/StepWrapper/StepWrapper.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/StepWrapper/StepWrapperPropTypes.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/StepWrapper/StepWrapperPropTypes.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthForm/BaseTwoFactorAuthForm.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthForm/index.android.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthForm/index.android.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthSteps.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthSteps.tsx
Outdated
Show resolved
Hide resolved
Hi, @GandalfGwaihir, can you please make improvements based on the above comments? :) |
hello @ntdiary , yes it’s on my calendar, will do later today :) |
Can you allow 6 awaiting flows please, it would be better if i get to run tests again those before merging :) @ntdiary @kubabutkiewicz Also i commented on some reviews, please find time to address them as well :) |
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthPropTypes.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthForm/BaseTwoFactorAuthForm.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthForm/index.android.tsx
Outdated
Show resolved
Hide resolved
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.
The review will continue tomorrow. :)
src/pages/settings/Security/TwoFactorAuth/StepWrapper/StepWrapper.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthSteps.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthSteps.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthPropTypes.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/Steps/SuccessStep.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/Steps/SuccessStep.tsx
Outdated
Show resolved
Hide resolved
sorry didn't find time today, will address the suggested changes tomorrow :) |
bump @ntdiary for final review :) |
Will review soon. :) |
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.
@GandalfGwaihir. Added some ts improvement suggestion.
Also, a tiny tip, you can run npm run prettier
and npm run typecheck
before pushing to ensure that the code passes lint and ts check. :)
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthForm/types.ts
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthForm/types.ts
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthForm/BaseTwoFactorAuthForm.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthForm/BaseTwoFactorAuthForm.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthForm/BaseTwoFactorAuthForm.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthSteps.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthStepProps.ts
Outdated
Show resolved
Hide resolved
src/pages/settings/Security/TwoFactorAuth/StepWrapper/StepWrapper.tsx
Outdated
Show resolved
Hide resolved
@ntdiary , implemented all the suggested changes and tested with the latest code, thanks for all your patience, can you check off the checklist from your side :) Also thanks @kubabutkiewicz for all your suggestions :) |
Reviewer Checklist
Screenshots/VideosAndroid: Native35359-android-native.mp4Android: mWeb Chrome35359-android-chrome.mp4iOS: Native35359-ios-native.mp4iOS: mWeb Safari35359-ios-safari.mp4MacOS: Chrome / Safari35359-web.mp4MacOS: Desktop35359-desktop.mp4 |
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.
LGTM :)
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.4.48-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.4.48-0 🚀
|
Details
This is a typescript migration issue, the file was migrated from
js
totsx
Fixed Issues
$ #25219
PROPOSAL:
Tests
Offline tests
QA Steps
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
iOS: mWeb Safari
WhatsApp.Video.2024-02-02.at.6.10.26.PM.mp4
iOS: Native
issueIOS.mp4
Android: Native
Android: mWeb Chrome
MacOS: Chrome / Safari
issueDesktop.mp4
MacOS: Desktop
issue.mp4