refactor: migrate MagicCodeInput to function component#18398
Conversation
ArekChr
left a comment
There was a problem hiding this comment.
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 |
cristipaval
left a comment
There was a problem hiding this comment.
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. |
cristipaval
left a comment
There was a problem hiding this comment.
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
MagicCodeInputto function componentFixed Issues
$ #18332
PROPOSAL: --
Tests
Permissions.jsmethodcanUsePasswordlessLoginsto returntrue)Offline tests
Same tests as above, but with the submission failing
QA Steps
Permissions.jsmethodcanUsePasswordlessLoginsto returntrue)PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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