-
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
[Awaiting Payment][$500] [Wave 6: Categories] Category is not selected when refreshing category selection page and selecting it #30682
Comments
Triggered auto assignment to @zanyrenney ( |
Job added to Upwork: https://www.upwork.com/jobs/~01d27ff5e9974105ea |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Category is not selected after refreshing the category selection page What is the root cause of that problem?We are clearing the category when the request confirmation page is mounted, so when the category selection is refreshed and used goes back to the confirmation page, it is mounted as a new page, and the selected category is cleared.
What changes do you think we should make in order to solve the problem?Clearing the selected category only on navigation, instead of on mount would solve the issue. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Category is not selected when refreshing category selection page and selecting it What is the root cause of that problem?We are calling App/src/pages/iou/steps/MoneyRequestConfirmPage.js Lines 83 to 86 in c8e7ee5
This was added in this PR - #27936 It mentions that category should be empty when participant doesn't contain workspace. What changes do you think we should make in order to solve the problem?We shall add a check before calling This check and removal logic should be in What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Category is not selected when refreshing category selection page What is the root cause of that problem?We are resetting category on mount on these lines of code App/src/pages/iou/steps/MoneyRequestConfirmPage.js Lines 83 to 86 in e99c297
So when the user refreshes while the page is on the Category selection page, the MoneyRequestConfirmPage is not rendered as the Category selection page is the one on top of the stack navigator state. Therefore, when the user selects a category the page navigates to MoneyRequestConfirmPage with the selected category set but the MoneyRequestConfirmPage is just only rendered now which means the resetting code above will run and reset the category.
What changes do you think we should make in order to solve the problem?We should take the resetting code from the App/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsPage.js Lines 77 to 80 in e99c297
to the navigating function here
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Category is not selected when refreshing category selection page and selecting it What is the root cause of that problem?When we refresh the category page, the confirm page is removed from the navigator stack and then after selecting category, we go back to the confirm page that is just mounted. And then it is reset here. App/src/pages/iou/steps/MoneyRequestConfirmPage.js Lines 83 to 86 in c8e7ee5
The same issue with tag selection What changes do you think we should make in order to solve the problem?We should only reset tag and category when we navigate to confirm page from participant or amount page with the change of participant. we should add the reset tag and category function here Line 2922 in c8e7ee5
and here App/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsPage.js Line 77 in c8e7ee5
What alternative solutions did you explore? (Optional) |
Hi, @zanyrenney, I have a full plate these this week, so please feel free to reassign this issue as needed. : ) |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
readding the labels to get a new c+ |
📣 @parasharrajat Please request via NewDot manual requests for the Reviewer role ($500) |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@Gonals @parasharrajat @zanyrenney @dukenv0307 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@parasharrajat The PR is ready for review. |
This issue has not been updated in over 15 days. @Gonals, @parasharrajat, @zanyrenney, @dukenv0307 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Looks like this was missed. It should be ready for payment. @zanyrenney |
@zanyrenney Bump. |
@zanyrenney friendly bump on this, thank you! |
@zanyrenney This one is a long-standing issue. Could you please check if payment was issued to @dukenv0307. Please post the payment summary and then we can close this issue. I will request it later. |
Payment summary @dukenv0307 - paid $500 via Upwork. Thanks for the patience here! |
Payment requested as per #30682 (comment) |
$500 approved for @parasharrajat |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.94.0
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
The category is selected.
Actual Result:
The category is not selected.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Bug6259295_1698838084578.20231101_095722.mp4
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @zanyrenneyThe text was updated successfully, but these errors were encountered: