-
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-07-26] [$250] Send invoice - "Choose a payment method" disappears after returning from Pay elsewhere page #44830
Comments
Triggered auto assignment to @sonialiap ( |
We think this issue might be related to the #vip-bills. |
ProposalPlease re-state the problem that we are trying to solve in this issue."Choose a payment method below" in the payment method selection page disappears. What is the root cause of that problem?We don't use setState when click back button in App/src/components/PopoverMenu.tsx Line 159 in 6ac95e4
so state enteredSubMenuIndexes is not updated and popover isn't rendered again
What changes do you think we should make in order to solve the problem?We should create a function renderHeader() and it'll update header everytime
What alternative solutions did you explore? (Optional)Using setState in this case
|
ProposalPlease re-state the problem that we are trying to solve in this issue."Choose a payment method" disappears after returning from Pay elsewhere page What is the root cause of that problem?We update enteredSubMenuIndexes state directly App/src/components/PopoverMenu.tsx Line 159 in 6ac95e4
What changes do you think we should make in order to solve the problem?Need to utilize setState to adjust the state value App/src/components/PopoverMenu.tsx Line 159 in 6ac95e4
What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~01ace2c2d5df911f17 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
it would be better if you explain with voice |
📣 @Abdelrahman286! 📣
|
@cretadn22 What's the advantage of your solution to use slice instead of splice? |
@mollfpr The bug occurs because we modify the state directly instead of using setState App/src/components/PopoverMenu.tsx Line 159 in 6ac95e4
This logic will delete the final element from
|
Thanks @cretadn22 it seems to make sense to use The proposal from @cretadn22 looks good to me! 🎀 👀 🎀 C+ reviewed! |
Triggered auto assignment to @techievivek, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @cretadn22 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@cretadn22 I don't know why you laughing at my comment 🥲
Also, I'm not sure which part you mean is your idea. What I'm pointing out is this snippet from your PR. const renderHeaderText = () => {
if (!headerText || enteredSubMenuIndexes.length !== 0) {
return;
}
return <Text style={[styles.createMenuHeaderText, styles.ph5, styles.pv3]}>{headerText}</Text>;
}; Here's the history from the @daledah proposal. |
@mollfpr Sorry, I misunderstand your mean. I didn't expect this coincidence 😄 |
I don't mean anything, don't mind |
@cretadn22 No worries, I'm just joking with you 😄 |
@mollfpr so are we going with another PR here since the original changes got reverted? Or did we implement the solution somewhere else? |
@techievivek My PR fixed this issue. We don't need to create a new PR |
The fixing for additional bug also resolve this issue 😄 , (detail here) |
I think we can partially compensate @daledah(since their solution was used in the fix) and @cretadn22(they created the PR and helped fix another bug). I will let @sonialiap take a look into it. Thanks. |
No offending PR was found.
The regression step should be good!
|
Looks good to me, @sonialiap can we please get this added to testRail, thanks. |
@sonialiap, @mollfpr, @techievivek, @cretadn22 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@sonialiap please add a payment summary when you get a chance. |
Since it seems like there was extra work put into this, I'm increasing the base price to $500 Payment summary:
Does this sound fair to everyone? |
$500 approved for @mollfpr |
@JmillsExpensify @sonialiap Could you please approve my offer? |
@sonialiap Sounds good to me thanks, could you send the offer to my UW profile here? https://www.upwork.com/freelancers/~0138d999529f34d33f |
@daledah thanks for the upwork link! Offer sent 💃 |
@sonialiap Accepted the offer thx |
Everyone has been paid ✔️ |
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.4-0
Reproducible in staging?: Y
Reproducible in production?: Y
Found when validating PR : #43036
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
"Choose a payment method below" in the payment method selection page will persist.
Actual Result:
"Choose a payment method below" in the payment method selection page disappears.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6532611_1720055363822.20240704_090314.1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @sonialiapThe text was updated successfully, but these errors were encountered: