-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Make referral banner dismissible #33925
Conversation
@dannymcclain @abdulrahuman5196 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] |
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.
Looks to be working as expected to me. From a design perspective I think we're all good, but please make sure to still get a review from someone with a more technical background. 👍
@abdulrahuman5196 Please review. |
Hi, Will review today. |
Reviewing now |
width={20} | ||
fill={this.props.theme.icon} | ||
/> | ||
<PressableWithoutFeedback |
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.
It seems the pressable and the icon have same size.
Screen.Recording.2024-01-11.at.3.31.42.PM.mov
Shouldn't we have some extra size for pressing? For now both the icon size and the pressing place size is 20
@dannymcclain yours thoughts on this?
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.
@dannymcclain what do you think?
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.
Good call—ideally the pressable area of the x
icon should be at least a 44px square.
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.
@dannymcclain Can you confirm whether it is 40
or 44
? 40
is the pressable area of the back (and other) button.
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.
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.
Gotcha—40 would be acceptable if that's what we do elsewhere.
I see what you're talking about in your before and after. The right thing to do here IMO would be to adjust the padding on the actual banner so that the x
icon gets the proper amount of clickable space without impacting the size of the banner/layout of the icon. @Expensify/design do y'all think it's worth it to adjust the banner to give that icon a proper amount of clickable area?
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.
I agree with that Danny. But I could have sworn we can also solve for this using React Native's hitslop, right? This we we can keep the button where it is but just define a greater hit area around around the button.
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.
@abdulrahuman5196 @dannymcclain I've updated, please check. I tried to keep everything visually the same though it requires some hard-coding for the padding.
Or we can do nothing and the hitSlop
will be automatically calculated.
Before | |
---|---|
After |
What's the next step on this PR? I am beginning to work on #34387 which is blocked on the functionality in this PR. I'll start working off the branch, but I also want to encourage everyone to work with urgency to get this completed. It should be reviewed or updated every day and it's been 4 days with no activity. |
Hi, it's miss from my end. Will test and update first thing in my morning and close this out ASAP. |
Reviewing now |
<ReferralProgramCTA referralContentType={CONST.REFERRAL_PROGRAM.CONTENT_TYPES.REFER_FRIEND} /> | ||
</View> | ||
<> | ||
{shouldShowReferralCTA && ( |
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.
I don't think this works, does it? I think there is some confusion with the SearchPage
component: https://expensify.slack.com/archives/C01GTK53T8Q/p1705959664098999?thread_ts=1701232130.505309&cid=C01GTK53T8Q
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.
Despite the problem with removing old file, it works fine for me.
@abdulrahuman5196 TL;DR: SearchPage.js
was moved to SearchPage/index.js
but the original file (SearchPage.js
) was not removed. But the changes in this PR were made in the latest file (SearchPage/index.js
) so we don't need to worry about it.
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.
OK, looks like the old file SearchPage.js
will be getting removed. Thanks!
Bump @abdulrahuman5196 for review, please. Let's get this one finished up. |
Working on another critical PR yesterday and today. Will close out that and start in 30 minutes. Sorry for the delay |
NAB: @gijoe0295 Kindly update the Tests in author's checklist to reflect all the pages which has this change. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-01-24.at.12.47.33.AM.movAndroid: mWeb ChromeScreen.Recording.2024-01-24.at.12.53.26.AM.moviOS: NativeScreen.Recording.2024-01-24.at.12.44.58.AM.moviOS: mWeb SafariScreen.Recording.2024-01-24.at.12.46.05.AM.movMacOS: Chrome / SafariScreen.Recording.2024-01-24.at.12.42.35.AM.movMacOS: DesktopScreen.Recording.2024-01-24.at.12.43.48.AM.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.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @tgolen / @joelbettner
🎀 👀 🎀
C+ Reviewed
@gijoe0295 Kindly also update the testing screenshots after high number of changes, since we added changes in couple more pages after last update. |
Updated. |
All yours @joelbettner |
✋ 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/joelbettner in version: 1.4.32-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.32-5 🚀
|
Details
This PR makes referral banner dismissible temporarily.
Fixed Issues
$ #32499
PROPOSAL: #32499 (comment)
Tests
Offline tests
NA
QA Steps
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
Screen.Recording.2024-01-04.at.14.52.46-compressed.mov
Android: mWeb Chrome
Screen.Recording.2024-01-04.at.14.51.22-compressed.mov
iOS: Native
ios-compressed.mov
iOS: mWeb Safari
safari-compressed.mov
MacOS: Chrome / Safari
Screen.Recording.2024-01-04.at.14.29.34-compressed.mov
MacOS: Desktop
desktop-compressed.mov