-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[HOLD for payment 2023-08-16] [$1000] On request money report clicking the down arrow on options to pay with expensify hides the entire button #23140
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
Comments
Triggered auto assignment to @sakluger ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.On request money report clicking the down arrow on options to pay with expensify hides the entire button What is the root cause of that problem?The root cause is we are passing wrong What changes do you think we should make in order to solve the problem?We need to pass correct App/src/components/ButtonWithDropdownMenu.js Line 122 in 25c8ae5
What alternative solutions did you explore? (Optional)N/A |
Bug0 Triage Checklist (Main S/O)
|
Asking in the Slack threadabout reproduction. |
ProposalPlease re-state the problem that we are trying to solve in this issue.In IOU Report, when caret/arrow/dropdown button is clicked in settlement button in header, the main button gets hidden behind the popover menu. What is the root cause of that problem?We are using a fixed
Also, we always add the height App/src/components/ButtonWithDropdownMenu.js Lines 67 to 70 in 9508dfa
Lastly, there is no padding here which we are using on other pages - App/src/components/KYCWall/BaseKYCWall.js Line 72 in 9508dfa
What changes do you think we should make in order to solve the problem?We need to introduce a new prop // type -
anchorAlignment: PropTypes.shape({
horizontal: PropTypes.oneOf(_.values(CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL)),
vertical: PropTypes.oneOf(_.values(CONST.MODAL.ANCHOR_ORIGIN_VERTICAL)),
})
// default value -
anchorAlignment: {
horizontal: CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.RIGHT,
vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.TOP, // we can keep it as bottom also
} Also, we need to calculate the vertical position based on the vertical setPopoverAnchorPosition({
horizontal: x + w,
vertical: props.anchorAlignment.vertical === CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.TOP
? y + h + 8 // if anchorPosition is top, menu will open below the button and we need to add the height of button
: y - 8 // if anchorPosition is bottom, menu will open above the button so no need to add height to vertical position
}); We should make a constant for this Finally, we should pass the new prop from following components -
anchorAlignment={{
horizontal: CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.RIGHT,
vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.TOP,
}}
anchorAlignment={{
horizontal: CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.RIGHT,
vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.BOTTOM,
}} Other inconsistencies
We are using
What alternative solutions did you explore? (Optional)Instead of introducing the
Videos
Screen.Recording.2023-07-25.at.5.10.29.PM.movScreen.Recording.2023-07-25.at.5.11.08.PM.mov |
I was able to reproduce this and it's definitely a bug! |
Job added to Upwork: https://www.upwork.com/jobs/~01f871dc05dbdb8459 |
Current assignee @sakluger is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
There are cases where |
Hey @situchan, we don't show the dropdown options on App/src/components/ReportActionItem/ReportPreview.js Lines 132 to 141 in e6daea8
Notice that |
ok, that's just an example. What about MoneyRequestConfirmationList? |
You are right @situchan. Although we show the dropdown button only for send money requests which are disabled at the moment, we should still fix it, I will update my proposal. App/src/components/MoneyRequestConfirmationList.js Lines 251 to 266 in e6daea8
But I have a follow-up in that case, the dropdown icon points to the bottom in Screen.Recording.2023-07-25.at.3.50.57.AM.movI see @Julesssss worked on this before. Hey @Julesssss can you confirm what should be the behaviour here? It is for send money flow which is disabled at the moment but still is it okay if dropdown icon points downward but menu open upwards? |
Yeah, I think it's fine because it's still a dropdown menu, we just happen to show the menu above the button instead of on-top or below. |
Hey @situchan, I have updated my proposal. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Current assignee @Julesssss is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @situchan 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @Nikhil-Vats 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @dhairyasenjaliya 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
I have started working on this and will have the PR ready for review today. |
FYI: We've closed #22505 as a dupe of this issue. Let's make sure the solution extends to the |
PR is ready for review. |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.51-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 2023-08-16. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
@situchan as soon as you finish the BugZero checklist I can complete your payment as well. Thanks! |
No PR caused regression. I'd say this is minor UI improvement than bug so no regression test is needed |
Thanks @situchan! I completed payment via Upwork. |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
pay with expensify button
Expected Result:
On opening the drop menu should not hide the button
Actual Result:
On opening the drop menu it hides the entire button
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.41-2
Reproducible in staging?: Needs reproducion (Pay with expensify only for USD)
Reproducible in production?: Needs reproduction
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
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-07-17.at.5.37.39.PM.mov
Expensify/Expensify Issue URL:
Issue reported by: @dhairyasenjaliya
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689595589459449
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: