-
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
Allow users to permanently dismiss the referral banners #34842
Conversation
package.json
Outdated
@@ -58,7 +58,7 @@ | |||
"setup-https": "mkcert -install && mkcert -cert-file config/webpack/certificate.pem -key-file config/webpack/key.pem dev.new.expensify.com localhost 127.0.0.1" | |||
}, | |||
"dependencies": { | |||
"@dotlottie/react-player": "^1.6.3", | |||
"@dotlottie/react-player": "^1.6.15", |
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.
Note: The changes to this file and the lockfile aren't strictly related to this PR, but it was something that we found and discussed on Slack and it was easy to add the update to my current PR (ref).
@hoangzinh 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] |
bump @hoangzinh for review! |
@@ -2,19 +2,25 @@ import React, {useState} from 'react'; | |||
import {View} from 'react-native'; | |||
import ReferralProgramCTA from '@components/ReferralProgramCTA'; | |||
import useThemeStyles from '@hooks/useThemeStyles'; | |||
import * as User from '@userActions/User'; | |||
import CONST from '@src/CONST'; | |||
|
|||
function SearchPageFooter() { |
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.
Do you think this + its parent redundant components? I found that there are 2 SearchPage components:
- src/pages/SearchPage.js
- src/pages/SearchPage/index.js
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.
This is confusing, but yes... this change is mostly redundant because the parent component is being removed in another PR. This was discussed over here.
@tgolen there are some failed on the checklist:
For perf-tests, I think you can merge latest main to fix. 2 others might be related to PR changes on the package.json file. |
Co-authored-by: Vinh Hoang <hoangzinhvn@gmail.com>
Co-authored-by: Vinh Hoang <hoangzinhvn@gmail.com>
I've reverted the |
OK, this is ready for review now. I reverted the change to |
Oops, I still need |
OK, I've updated this with the changes necessary for |
According to the commit histories of But somehow (maybe resolve conflict) the
|
OK, considering that I can't get this to work without removing |
@hoangzinh I looked at the history of SearchPage.js and I found these two PRs that changed the file significantly.
ConclusionI think it's fine to remove |
It will be removed in #35058 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-01-31.at.22.47.31.android.movAndroid: mWeb ChromeScreen.Recording.2024-01-31.at.22.30.26.android.chrome.moviOS: NativeScreen.Recording.2024-01-31.at.22.59.07.ios.moviOS: mWeb SafariScreen.Recording.2024-01-31.at.22.55.09.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2024-01-31.at.22.18.26.web.movMacOS: DesktopScreen.Recording.2024-01-31.at.22.22.41.desktop.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.
LGTM
@tylerkaraszewski 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] |
I resolved conflicts and this is ready for review @tylerkaraszewski |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 1.4.36-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
1 similar comment
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 1.4.36-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.37-7 🚀
|
Details
This PR allows users to permanently dismiss the referral banners. It was based off #33925
Fixed Issues
$ #34387
Tests
There are four banners to test. For each banner, you should:
The four banners to test are:
Offline tests
QA Steps
Same as the tests above
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop