-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[Uber for business] Remove the promotional banner #78168
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
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@dominictb 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] |
| const {setAsDismissed, isDismissed} = useDismissedUberBanners({policyID}); | ||
| const shouldDismissBanner = !!policy?.receiptPartners?.enabled || !isBetaEnabled(CONST.BETAS.UBER_FOR_BUSINESS) || isDismissed || readOnly; | ||
|
|
||
| const illustrations = useMemoizedLazyIllustrations(['PinkCar']); |
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.
Remove the PinkCar (simple-illustration__car_pink.svg) illustration too.
| return; | ||
| } | ||
|
|
||
| enablePolicyReceiptPartners(policyID, true, true); |
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.
Remove the shouldNavigateToReceiptPartnersPage param from enablePolicyReceiptPartners.
And remove navigateToReceiptPartnersPage function too.
|
@rushatgabhane Can you merge |
Reviewer Checklist
Screenshots/Videos |
dominictb
left a comment
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.
🎀
|
🎯 @dominictb, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #78507. |
|
LGTM from the design side 👍 |
| NVP_DISMISSED_REFERRAL_BANNERS: 'nvp_dismissedReferralBanners', | ||
|
|
||
| /** This NVP contains the uber banners the user dismissed */ | ||
| NVP_DISMISSED_UBER_BANNERS: 'nvp_dismissedUber4BusinessBanner', |
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.
We'll also need to remove this from Auth so that the backend doesn't unnecessarily pass that NVP to the client anymore.
https://github.com/Expensify/Auth/blob/8fc994d9bcc1a12c38477/auth/lib/OnyxUpdates.cpp#L86
|
✋ 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: 9.2.93-0 🚀
|
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.93-1 🚀
|
[Uber for business] Remove the promotional banner





Explanation of Change
Removed uber banner
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/530438
PROPOSAL: N.A.
Tests
Offline tests
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari