-
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-06-28] [$1000] Web - Web- Send money - Green payment button is partially visible #20262
Comments
Triggered auto assignment to @michaelhaxhiu ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Web- Send money - Green payment button is partially visible What is the root cause of that problem?There are two causes for this problem
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)N/A ResultIn works well Screen.Recording.2023-06-07.at.09.06.45.mov |
Job added to Upwork: https://www.upwork.com/jobs/~01c7865a7582eac48a |
Current assignee @michaelhaxhiu is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
Triggered auto assignment to @arosiclair ( |
@michaelhaxhiu yes I think so, actually the width of popover and button are equal but popover is positioned incorrectly so when we fix popover should be placed exactly on the top of the button and it will hide the whole button behind it. |
I would bet it's a regression from some change we made 😢 but it would be challenging to figure that out. either way, it's labelled |
@michaelhaxhiu App/src/components/PopoverMenu/index.js Lines 64 to 68 in c3b3a53
In every instance of PopoverMenu usage, anchorAlignment is used to pass the values but anchorAlignment is not used.
App/src/components/AvatarWithImagePicker.js Line 327 in 82ce35f
App/src/pages/home/report/ReportActionCompose.js Line 1028 in 82ce35f
|
@dostongulmatov Thanks for the proposal. Your RCA is correct. The proposed solution makes sense but it is not complete. We should indeed pass The
Also we should avoid measuring the caret button when it's measured already and window height/width didn't change. Please update your proposal answering the above concerns and feel free to tag me. Fun fact: the Footnotes |
^ other option is we can call |
@s77rt yes, in order to be able to initially render the popover in a correct position we will need to make mesurePopoverPosition function which is going to look like below
and we'll call it inside useEffect only when popoverAnchorPosition !== null so if it is null that means popover is not rendered yet and we do not need to measurePopoverPosition yet
we can call measurePopoverPosition in the onPress of caretButton as well and measurePopoverPosition function should be called only when popoverAnchorPosition === null which is going to prevent from measuring position every time when the caret button is clicked and it is going to avoid measuring the caret button when it's measured already and window height/width didn't change. Here it is how the caret button onPress going to look like:
|
thank you @hoangzinh for suggestion |
@s77rt regarding anchorAlignment no solution other then checking each PopoverMenu component came to my mind, I see it is being used in 6 places and if we are going to give all of them correct anchorAlignment it should fix the issue, what do you think? |
@dostongulmatov Is your last comment regarding the edit photo misplaced popover? (those may require styles changes) Can you please add more details on the style changes? |
@s77rt okay I will check and will update you about how I am going to handle it |
@s77rt I do not think the popover placement problem require styling changes, I see that its happening because of the value of anchorAlignment is given incorrectly. for example in order to fix the alignment of popover in the profile photo popover we will need to change anchorAlignment value App/src/pages/settings/Profile/ProfilePage.js Lines 95 to 97 in 035783a
I see the same problem in Workespace Settings as well. we can fix it with the same approach. App/src/pages/workspace/WorkspaceSettingsPage.js Lines 125 to 127 in 035783a
I will check it in another places as well and let you know. |
@s77rt I have checked most of other places where PopoverMenu is being used as well and I do not see any problem regarding the alignment of the popover menu other then Workspace Settings Page and Profile Page, if you see any problem let me know. |
The PR is ready for review. |
…opover-position fix send money - green payment button is visible bug
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 🚀 |
@arosiclair, @michaelhaxhiu, @s77rt, @dostongulmatov Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Not overdue. PR is merged and deployed to staging |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.29-11 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-06-28. 🎊 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:
|
|
looks like we can proceed with the payment |
Ready to pay this one as soon as you accept the final offer on Upwork. Comment here when you do please! |
@michaelhaxhiu Accepted! Thanks! |
@michaelhaxhiu Accepted, Thank you! |
@arosiclair, @michaelhaxhiu, @s77rt, @dostongulmatov Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@arosiclair, @michaelhaxhiu, @s77rt, @dostongulmatov Still overdue 6 days?! Let's take care of this! |
all paid |
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:
Expected Result:
Green payment button is NOT partially visible
Actual Result:
Green payment button is partially visible
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.24.4.
Reproducible in staging?: yes
Reproducible in production?: yes
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
Bug6081541_Recording__4834__1_.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: