-
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
[HOLD for payment 2024-05-09] [$500] Hold Request - "Hold" banner is aligned to the top when there is scan request message #37536
Comments
Triggered auto assignment to @isabelastisser ( |
We think that this bug might be related to #wave7 |
@isabelastisser I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue."Hold" banner is aligned to the top when there is scan request message What is the root cause of that problem?We only have bottom padding for hold banner as per here. It only works when there's only it and no other banners (money request status bar) above. What changes do you think we should make in order to solve the problem?Add a prop <HoldBanner shouldShowPaddingTop={isPending || isScanning} /> In that case, we use What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Hold Request - "Hold" banner is aligned to the top when there is scan request message What is the root cause of that problem?Since,the last discussion on this issue i.e. this comment. The solution should be not showing a App/src/components/MoneyRequestHeader.tsx Line 122 in a04481f
we need to add a condition that if the request is scanning till then don't show hold. Also, we have just added a style for padding bottom - App/src/components/HoldBanner.tsx Line 13 in a1a6a74
What changes do you think we should make in order to solve the problem?Here : App/src/components/MoneyRequestHeader.tsx Line 122 in a04481f
we need to add a condition to check for App/src/components/HoldBanner.tsx Line 13 in a1a6a74
As per Comment this we need to use these styles mentioned here : App/src/components/MoneyRequestHeaderStatusBar.tsx Lines 21 to 28 in a04481f
and add change it here : App/src/components/HoldBanner.tsx Lines 13 to 16 in a04481f
To make the Just like Lines 4134 to 4143 in a04481f
We need can a new class like What alternative solutions did you explore? (Optional)Alternatively, what we can do is App/src/components/MoneyRequestHeader.tsx Line 122 in a04481f
we need to add a condition to check for App/src/components/HoldBanner.tsx Line 13 in a1a6a74
we can add ResultsScreen.Recording.2024-03-06.at.12.33.13.PM.mp4 |
@lanitochka17 I agree that this can barely be noticed. I raised it for discussion in Slack. |
Job added to Upwork: https://www.upwork.com/jobs/~01dd5d1b7c81a77704 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
I confirmed this can be handled externally. @Santhosh-Sellavel to review the proposals above. Thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue."Hold" banner is aligned to the top when there is scan request message What is the root cause of that problem?The style for the banner is incorrect What changes do you think we should make in order to solve the problem?We should add styles.pv3 instead of pb3 here: App/src/components/HoldBanner.tsx Line 13 in a1a6a74
|
This is my proposal. |
Updated Proposal |
ProposalPlease re-state the problem that we are trying to solve in this issue. Hold Request - "Hold" banner is aligned to the top when there is a scan request message What is the root cause of that problem? Missing top padding styles.pt3 What changes do you think we should make in order to solve the problem? Need to add top padding styles.pt3 App/src/components/HoldBanner.tsx Line 13 in 48657b4
What alternative solutions did you explore? (Optional) N/A |
Hi @Santhosh-Sellavel, please review the proposals above. Thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue.A seperator botween Scanning and HOLD What is the root cause of that problem?The issues is that the component App/src/components/MoneyRequestHeader.tsx Lines 180 to 194 in de3a9e1
as you can see the 1st component for PENDING is showing only the border at the bottom when there's no scanning {isPending && (
<MoneyRequestHeaderStatusBar
title={translate('iou.pending')}
description={translate('iou.transactionPendingText')}
shouldShowBorderBottom={!isScanning}
/>
)} And this give the result below when SCANNING and PENDING are on the screen. (we don't need to ad margin top to SCANNING) We should follow the same for SCANNING and ONHOLD. The component at the top, SCANNING, should check if ONHOLD is displayed before displaying the border at the bottom What changes do you think we should make in order to solve the problem?1 - Disable the border on the bottom from the Scanning part when the HOLD is diplayedSame as pending component checking f scanning component is displayed to display the border on the bottom, we should do the same. The logic is that every component should check if any thing below it will be displayed. IF there's a nother part displayed below it, then there's no need to display a border at the bottom. {!isScanning && (
<MoneyRequestHeaderStatusBar
title={translate('iou.receiptStatusTitle')}
description={translate('iou.receiptStatusText')}
- shouldShowBorderBottom
+ shouldShowBorderBottom={!isOnHold}
/>
)} 2 - Use the same style for HOLD as SCANNINGAs the last request from the design team, to make the HOLD part similar visually as SCANNING and PENDING, we can use the same component {isPending && (
<MoneyRequestHeaderStatusBar
title={translate('iou.pending')}
description={translate('iou.transactionPendingText')}
shouldShowBorderBottom={!isScanning}
/>
)}
{isScanning && (
<MoneyRequestHeaderStatusBar
title={translate('iou.receiptStatusTitle')}
description={translate('iou.receiptStatusText')}
shouldShowBorderBottom={!isOnHold}
/>
)}
{isOnHold && (
<MoneyRequestHeaderStatusBar
title={translate('iou.hold')}
description={translate('iou.requestOnHold')}
shouldShowBorderBottom={isOnHold}
backgroundColor={themeColors.danger}
/>
)} POC: What alternative solutions did you explore? (Optional) |
I've been OOO, will check this in a day |
Whoa! I would think that we only ever show one of these banners at once. cc @trjExpensify @JmillsExpensify Also, why are the banner styles so different? The font colors and font sizes are way different across the badge and the message next to it. cc @robertjchen - any context there? |
Yeah you shouldn't be able to hold a scanning request. That feels like the solution in my opinion. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.69-2 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-05-09. 🎊 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:
|
Not overdue. @Santhosh-Sellavel, please complete the BZ list above before I can process the payments in Upwork and close the issue. Thanks! |
@Santhosh-Sellavel friendly bump :) |
It looks like @Santhosh-Sellavel is OOO until May 15. I've sent them a DM for visibility. |
Bump @Santhosh-Sellavel |
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:
|
@francoisl, @dragnoir, @isabelastisser, @neonbhai, @Santhosh-Sellavel Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Works for me. @isabelastisser feel free to process the payments and close the issue. Thanks! |
Noting that the PR was reviewed by me here but seems like the automation didn't mention it. Please take a look 🙇 cc: @isabelastisser |
@isabelastisser pls consider this when payment #37536 (comment) Thank you |
Based on @shawnborton's comment here, I'm increasing the payment to @dragnoir to $750. Payments summary: @dragnoir requires payment $750 (manual offer https://www.upwork.com/nx/wm/offer/102358820) |
All set! |
@isabelastisser offer accepted. Thank you |
@isabelastisser hi, the original job was split with me and @dragnoir. As noted here #37536 (comment) I also ended up reviewing one of the linked PRs, so the payout would be $250 + $500 for me! Please take a look 🙇 |
Requested on ND |
$500 approved for @Santhosh-Sellavel |
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.45-1
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:
The "Hold" banner will be aligned in the middle of the given space
Actual Result:
The "Hold" banner is aligned to the top of the given space when there is scan request message
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6397350_1709227408773.20240229_234646.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @isabelastisserThe text was updated successfully, but these errors were encountered: