fix: 23369 back button navigation fixed for ondify steps#23864
fix: 23369 back button navigation fixed for ondify steps#23864francoisl merged 4 commits intoExpensify:mainfrom
Conversation
|
@robertKozik Please 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] |
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
robertKozik
left a comment
There was a problem hiding this comment.
Few things to consider
| } | ||
|
|
||
| goBack(...args) { | ||
| const ondifyBack = document.getElementsByClassName('onfido-sdk-ui-NavigationBar-back'); |
There was a problem hiding this comment.
Can't we use document.querySelector to get the first occurrence of that class? As we won't be having the array this way code would be simplified
There was a problem hiding this comment.
Also typo in the const name ondify should be onfido
There was a problem hiding this comment.
@robertKozik yes you are right, fixed now.
robertKozik
left a comment
There was a problem hiding this comment.
One minor thing, sorry
| this.goBack = this.goBack.bind(this); | ||
| } | ||
|
|
||
| goBack(...args) { |
There was a problem hiding this comment.
Didn't saw that one, onBackButtonPress is called inside HeaderWithBackButton without any args, so this spread is redundant in my opinion
| } | ||
| } | ||
|
|
||
| .onfido-sdk-ui-NavigationBar-back { |
There was a problem hiding this comment.
if you could add the explanation comment why we are hiding this button
|
@robertKozik is there anything still pending on this PR? |
|
Sorry @vipin87 coming back to this PR now |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromeandroid.-.web.movMobile Web - SafariiOS.-.web.movDesktopdesktop.moviOSiOS.-.native.movAndroidandroid.-.native.mov |
|
@vipin87 Could you kindly change the offline test steps, as I believe onfido flow is not accessible while offline? Also please check all the checkboxes in your Author checklist. Thank you in advance |
|
@robertKozik checked all checkboxes and updated offline steps. Sorry for to many to-and-fro, as it is my first PR. |
|
@vipin87 gentle bump on updating test steps and checkboxes. TYIA |
|
@robertKozik I already did those changes. |
|
Sorry, didn't saw them. I'll proceed with the testing then |
robertKozik
left a comment
There was a problem hiding this comment.
Looks good, lets push this forward
|
✋ 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/francoisl in version: 1.3.52-0 🚀
|
|
🚀 Deployed to staging by https://github.com/francoisl in version: 1.3.52-0 🚀
|
| } | ||
|
|
||
| goBack() { | ||
| const onfidoBack = document.querySelector('.onfido-sdk-ui-NavigationBar-back'); |
There was a problem hiding this comment.
This caused deploy blocker - #24343.
document doesn't exist on native.
There was a problem hiding this comment.
Dang, I didn't encountered this during my testing on offline...
@vipin87 Can you rise the follow-up for the issue with proper platform handling?
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.52-5 🚀
|

Details
Fixed Issues
$ #23369
PROPOSAL: #23369 (comment)
Tests
Offline tests
Onfido flow not available in offline mode. It has to be tested while application is online.
QA Steps
Same as "Tests" section above
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.mov
Mobile Web - Chrome
mobile-chrome.MP4
Mobile Web - Safari
mobile-safari.MP4
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov