-
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
[HOLD for payment 2024-02-05] [$500] Chat - "Start a chat, get 250$" popup blocks recent contacts #32499
Comments
Triggered auto assignment to @slafortune ( |
Job added to Upwork: https://www.upwork.com/jobs/~01eb186a7b7dd5933b |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The "start a chart" referral overlaps a good size of the screen while keyboard is focused on mobile What is the root cause of that problem?The "start a chart" referral component is designed to be sticky/fixed positioned, thus, it remains visible at all times regardless of input being focused What changes do you think we should make in order to solve the problem?If the field is being focused, the The "start a chart" referral component would not behave as being sticky/fixed What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Referral modal blocks view on small screen devices. What is the root cause of that problem?The referral block is sticky and too large on small height devices leading to blocking view. What changes do you think we should make in order to solve the problem?OutdatedResponsively adjust the style of referral modal on small screen height determined here. Things we can adjust in here and here:
Based on the latest discussion, we want to make the referral banner dismissable.
Suggested code changes<PressableWithoutFeedback
onPress={this.handleReferralModal}
onMouseDown={(e) => {
e.preventDefault();
}}
role={CONST.ACCESSIBILITY_ROLE.BUTTON}
accessibilityLabel={this.props.translate('common.close')}
>
<Icon
src={Close}
height={20}
width={20}
/>
</PressableWithoutFeedback> What alternative solutions did you explore? (Optional)Avoid display the referral block as sticky on small height devices. We can show a floating icon just like on TikTok. |
📣 @gijoe0295! 📣
|
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.The "start a chart" referral overlaps a good size of the screen while keyboard is focused on mobile What is the root cause of that problem?The "start a chart" referral component is designed to be sticky/fixed positioned, thus, it remains visible at all times regardless of input being focused What changes do you think we should make in order to solve the problem?
const [shouldShowReferralCTA, setShouldShowReferralCTA] = useState(true)
const hideShouldShowReferralCTA = () => {
setShouldShowReferralCTA(false);
}
<PressableWithoutFeedback accessibilityRole="button"
onPress={() => {
if (this.props.hideShouldShowReferralCTA) {this.props.hideShouldShowReferralCTA()}
}}
>
<Icon
src={Info}
height={20}
width={20}
/>
</PressableWithoutFeedback> What alternative solutions did you explore? (Optional)Screen.Recording.2023-12-14.at.8.26.54.PM.mov |
reviewing now |
@slafortune What is the expected behaviour here? The popup is currently made to be shown always. For small screen devices it seems to block the view. What should we do here from design perspective? |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
|
@slafortune, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - "Start a chat, get 250$" popup blocks recent contacts What is the root cause of that problem?Here the root cause is not specific to code rather the user device height, if device height is small the sticky footer and keyboard takes the most space on screen resulting the search results hide behind the footer. What changes do you think we should make in order to solve the problem?Hiding the footer when the keyboard is open, using the hook seems a good solution, the problem is this creates a problem as keyboard close/open can only be detected on native devices so on mweb chrome/safari |
Triggered auto assignment to @dannymcclain ( |
I'm not sure @abdulrahuman5196 , let's get their 2 cents on this! |
Hmm this is a tricky one. @dubielzyk-expensify since you worked on this (I think?) do you have any strong feelings about it? I'm tempted to say we should hide the promo banner when the keyboard is open, but I'm keen on Jon and the @Expensify/design team's thoughts. |
Oh yeah, this isn't great. I like the idea of hiding the banner when the keyboard is open or reduce the spacing/padding (though there might not be much to gain from this). The problem though with hiding it on I think we'll have to adjust the size. Looping in @jamesdeanexpensify |
We can adjust the spacing, padding, etc. Or we can have a little (but impressive) gift box icon on the upper right corner (almost like the Question mark icon in Settings page)? That's my proposed alternate solution. |
Current assignee @abdulrahuman5196 is eligible for the Internal assigner, not assigning anyone new. |
Looks good. I assigned @gijoe0295 to this issue. Feel free to start working on the PR. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.32-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-02-05. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Payment Summary
BugZero Checklist (@slafortune)
|
@abdulrahuman5196 can you please complete the checklist? Offers sent - ROLE: @abdulrahuman5196 paid $500 via Upwork (LINK) |
Not a regression. Feature update.
Yes.
@slafortune Completed the checklist and accepted the offer. |
👍 Paid Paid and testrail done! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.8.0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
I should be albe to see at least one recent contact fully
EDITED:
This is expected - thanks @dannymcclain Here's a quick mock showing the x icon instead of the i icon.
Actual Result:
"Start a chat, get 250$" popup blocks recent contacts
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6302054_1701794809860.Az_Recorder_20231205_074926.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: