Repository navigation
Fix travel settings button error modal - #84954
stitesExpensify wants to merge 12 commits into
Conversation
…SettingsButtonErrorModal
…SettingsButtonErrorModal
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
…SettingsButtonErrorModal
…SettingsButtonErrorModal
|
🚧 @stitesExpensify has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
🚧 @stitesExpensify has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
Testing failed, for a blocked account I got this payload, but got a generic "something went wrong" instead of a dedicated modal. { This has been getting pushed to the side for me, so I'm going to open this up for contributors to get it across the finish line |
After C+ review on Expensify#81764, situchan asked us to add the additional guards that the old BookTravelButton had: redirect SMS-login users and public-domain email users (gmail.com etc) to the existing TRAVEL_PUBLIC_DOMAIN_ERROR page before falling through to openTravelDotLink. Mirrors the additional changes in stitesExpensify's draft PR Expensify#84954.
…travel CTA Rebased on top of the read-only access changes from #ShridharGoel's 'Show read-only modal from travel and card CTAs' commit. Preserves the new usePolicyFeatureWriteAccess wrapping while wiring the prevent-spotnana beta branch and the SMS-login / public-domain-email guards that BookTravelButton.tsx still uses. Per situchan's review on Expensify#81764, this matches the same shape as the draft PR Expensify#84954, with the corrected route call (policyID prop instead of the active route URL).
Explanation of Change
When we changed the book travel button from a custom component to a generic we lost some functionality in errors. This is fine because the errors are rare and hadn't been updated in a while, but we still need to re-add the functionality.
Fixed Issues
$#81764
PROPOSAL: n/a
Tests
travel. A single "Got it" button dismisses it.
Offline tests
n/a
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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./** 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)Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari