-
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
refactor: migrate MagicCodeInput to function component #18398
refactor: migrate MagicCodeInput to function component #18398
Conversation
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.
Left some minor comments with useRef
object
Overall LGTM 🙌
TESTS SUMMARY The new component is verified on Branch PR Draft *BeeMargarida:refactor/18332-magic_code_input_function_component Tests are conducted on the following devices:
The above tests are executed with a 100% pass value MagicCodeInput.Android.mp4MagicCodeInput.web.android.mp4MagicCodeInput.desktop.mp4MagicCodeInput.web.Safari.mp4MagicCodeInput.web.iOS.mp4MagicCodeInput.iOS.mp4MagicCodeInput.web.Chrome.mp4 |
@cristipaval @aimane-chnaif One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@aimane-chnaif @cristipaval Conflicts are solved and prettier was run, ready for a review! |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromechrome.on.mobile.movMobile Web - Safarisafari.on.mobile.movDesktopScreen.Recording.2023-05-10.at.14.00.27.moviOSios.native.mp4AndroidScreen.Recording.2023-05-10.at.13.54.13.mov |
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.
Screen.Recording.2023-05-10.at.14.13.59.mov
It doesn't work on iOS Native
@cristipaval thanks for checklist. I was about to review today 🙂
It's already known issue I reported #16076 (comment). Still in investigation |
Yes, as @aimane-chnaif mentioned, it's currently broken for simulators running iOS 16.4. I've stopped investigation for a while since I'm currently focusing on other issues. |
I removed you as this is a class component refactor and we decided internally that we can remove the C+ for this kind of PRs. I thought that you might be swamped with other reviews as we have lots of things moving thess days. |
ah, ok, I'll tets on my physical device then |
@cristipaval to unblock login on iOS simulator, click numbers twice quickly to suppress backspace. |
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.
Tests well on physical iOS devices.
✋ 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/cristipaval in version: 1.3.13-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.13-5 🚀
|
Details
Ported
MagicCodeInput
to function componentFixed Issues
$ #18332
PROPOSAL: --
Tests
Permissions.js
methodcanUsePasswordlessLogins
to returntrue
)Offline tests
Same tests as above, but with the submission failing
QA Steps
Permissions.js
methodcanUsePasswordlessLogins
to returntrue
)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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
web.mp4
Mobile Web - Chrome
Screen.Recording.2023-05-04.at.11.32.25.mov
Mobile Web - Safari
Screen.Recording.2023-05-04.at.11.33.15.mov
Desktop
Screen.Recording.2023-05-04.at.11.38.04.mov
iOS
Screen.Recording.2023-05-04.at.12.13.47.mov
Android
Screen.Recording.2023-05-04.at.11.34.04.mov