-
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 2023-05-25] [$1000] Payment delete modal menu missing margin at the top #18581
Comments
Triggered auto assignment to @slafortune ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Delete Payment modal has a missing margin at the top compared to the payment option. What is the root cause of that problem?At the time of calculating the top anchor position in setPositionAddPaymentMenu, we are not adding any additional top margin outside the touch area, so when the user press MenuItem(Payment method), we count the top position like this, MenuItem height + Pressed MenuItem component position from top App/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js Lines 153 to 162 in 4a4b22b
What changes do you think we should make in order to solve the problem?We can add the top margin many ways, but I would suggest that when calculating the we should add six here in App/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js Lines 155 to 160 in 4a4b22b
we can add the top margin to individual PopOver too, like this App/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js Lines 436 to 439 in 4a4b22b
Why 6 margin ? Throughout the app, we added different margins from the top and bottom of the touchable area, but for this page, we can use 6. I am attaching a video here with 6 pixel space Result6px-delete.movWhat alternative solutions did you explore? (Optional)N/A |
We do nothing before here https://expensify.slack.com/archives/C049HHMV9SM/p1670338674482959 |
Job added to Upwork: https://www.upwork.com/jobs/~01510361e941b5686d |
Current assignee @slafortune is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
Triggered auto assignment to @PauloGasparSv ( |
@slafortune It seems like in your screenshot the top border has less width than the other three sides due to which it's difficult to notice but it looks okay here - |
Thks for bringing this up @bernhardoj. I'm not sure why we did nothing last time since it looks like everyone agreed it wasn't a bug but that we should add the space. I think we should fix it this time. |
I am not sure either. @shawnborton do you want to chime in here if we are open to fix it now? |
I'm cool with adding some margin above the menu. |
I actually feel like that green box around the delete button seems odd to have - or doesn't seem to add anything. Are we set on that staying? Disclaimer not a designer |
thanks for the confirmation @shawnborton. Could you also specify how much margin do we want to keep? @slafortune I think the green border would be required to show the popup? It is due to no margin we can't identify the border. That being said, I think @jayeshmangwani's initial proposal is good to go with. @Nikhil-Vats's proposal is also on the similar lines and as they also agree their alternative solutions are not relevant to fix the current PR. @PauloGasparSv All yours. |
Thks @mananjadhav, I'm assigning @jayeshmangwani since it was the first proposal here |
📣 @jayeshmangwani You have been assigned to this job by @PauloGasparSv! |
@PauloGasparSv @mananjadhav PR is ready for review @shawnborton Added margin 6 between the delete modal and Payment Option and it looks like this |
We should do everything using blocks of our 4px spacer. We already have some helper classes built in for this too. So you could use something like |
@shawnborton We can add 8 directly to the
As we are calculating anchorPositionTop in state value and using it at every PopOver on the page, here we can not use mt2 from styles. e.g. here we are calculating anchorPositionRight by adding an additional 13 px App/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js Lines 156 to 157 in dd5fbb6
|
@jayeshmangwani You can add the value to |
@mananjadhav Right now there are 4 constants in variables.js, that have an 8px value
IMO we should add a new variable whose name is relevant to Modal/Popover |
Yeah that's what I meant when I said |
@mananjadhav Updated code to use variables value and updated desktop and web video with 8 top margins to PR |
🎯 ⚡️ Woah @mananjadhav / @jayeshmangwani, great job pushing this forwards! ⚡️ The pull request got merged within 2 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.15-12 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-05-25. 🎊 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.
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:
|
I think the closest PR where we add the margin changes was here. I won't treat this as a bug (more so feature request/UI change) because when the earlier PR was reviewed, we didn't set any requirements for the margin top. Neither I think we should add a regression test for this one. wdyt @slafortune @PauloGasparSv ? |
I agree @mananjadhav. IMO we could reference that P.R. as the one that "added the bug" and mark the rest of the checklist as complete but do nothing : ) |
@slafortune this one is ready for payout then. thank you. |
@mananjadhav and @jayeshmangwani offers sent! |
Accepted @slafortune |
@slafortune I am not able to accept the offer, shows offer withdrawal by the client |
Shoot! I've run into so many errors with Upworks recently. Resent @jayeshmangwani |
Thanks @slafortune , Offer accepted |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
There should be some padding between the payment option and the delete modal
Actual Result:
There is no padding between the payment option and the delete modal
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.11.2
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
Notes/Photos/Videos: Any additional supporting documentation
delete-modal-no-spacing.mov
Recording.525.mp4
Expensify/Expensify Issue URL:
Issue reported by: @jayeshmangwani
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1682631614889629
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: