-
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-11-11] [$250] Invoices - Unable to select payment option in the dropdown in expense preview in the main chat #51016
Comments
Triggered auto assignment to @OfstadC ( |
@OfstadC FYI 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 |
We think that this bug might be related to #vip-bills |
Edited by proposal-police: This proposal was edited at 2024-10-17 15:38:53 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Invoices - Unable to select payment option in the dropdown in expense preview in the main chat What is the root cause of that problem?In the The issue occurs because the
What changes do you think we should make in order to solve the problem?
// In ButtonWithDropdownMenu.js
const menuItems = useMemo(
() =>
options.map((item, index) => ({
...item,
onSelected: item.onSelected
? () => item.onSelected?.()
: () => {
onOptionSelected?.(item);
setSelectedItemIndex(index);
},
shouldCallAfterModalHide: true,
})),
[options, onOptionSelected],
);
// In SettlementButton.js
const onOptionSelected = useCallback(
(option) => {
if (policyID === '-1') {
return;
}
savePreferredPaymentMethod(policyID, option.value);
},
[policyID],
); By making these changes, we stabilize the POCScreen.Recording.2024-10-17.at.17.37.00.movWhat alternative solutions did you explore? (Optional) |
Edited by proposal-police: This proposal was edited at 2024-10-19 06:03:19 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.User is unable to select payment option from the dropdown. App does not proceed after selecting any option from the dropdown What is the root cause of that problem?
App/src/components/PopoverMenu.tsx Line 179 in 66cf824
The hover event will be detected at the moment when we remove the main list then show the sublist -> The menuItems will be re-calculated If the menuItems get changed, we will reset the current menu items App/src/components/PopoverMenu.tsx Lines 261 to 267 in 66cf824
The RCA of this issue is: What changes do you think we should make in order to solve the problem?
so we should apply the same in here
if
we just update this line to
What alternative solutions did you explore? (Optional) |
Added to BillPay - just waiting on confirmation here |
@OfstadC Huh... This is 4 days overdue. Who can take care of this? |
Job added to Upwork: https://www.upwork.com/jobs/~021848792881281684450 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
Thanks for the proposals. I have tested both, and both will fix the issue. However, I agree with @truph01 that we should return early in the hoverable component to prevent flickering of the hover state value and freeze the hover, This approach will resolve our issue |
Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @truph01 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@truph01 , could you let us know when we can expect the PR? |
friendly bump @truph01 |
I will open PR in a few hours |
Thanks for the update |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.56-9 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-11-11. 🎊 For reference, here are some details about the assignees on this issue:
|
@jayeshmangwani @OfstadC The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
@jayeshmangwani Please complete the BZ checklist before the payment date. Thanks 😃 |
@jayeshmangwani Please complete the BZ checklist so I can issue payment |
Payment Summary
|
Really sorry, I missed the BZ checklist , Let me complete it now! |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal
Do we agree 👍 or 👎 |
Thanks @jayeshmangwani ! |
$250 approved for @jayeshmangwani |
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: 9.0.50-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
User will be able to select payment option from the dropdown
Actual Result:
User is unable to select payment option from the dropdown. App does not proceed after selecting any option from the dropdown
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6637233_1729136962344.20241017_114642.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @OfstadCThe text was updated successfully, but these errors were encountered: