-
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
IOU - Details modal is dismissed after editing title #44963
Comments
Triggered auto assignment to @adelekennedy ( |
Triggered auto assignment to @iwiznia ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@adelekennedy 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 this issue might be related to the #collect project. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Details modal is dismissed after editing title What is the root cause of that problem?We are dismissing the modal and navigating to the previous report here App/src/pages/EditReportFieldPage.tsx Line 84 in 51dd814
What changes do you think we should make in order to solve the problem?We should change What alternative solutions did you explore? (Optional) |
That makes sense @etCoderDysto but wouldn't that break the feature for the other places where we call this (that existed before we added the possibility of editing the title like this)? |
I have been trying to check other pages after applying. I found that different component is used other pages as room's details page. But to make things sure. I will check other places that use the same component. |
@iwiznia The component seems to be used only in |
Solution seems good 👍 |
Should I raise a quick PR? |
Yeah, looks good to me too, but I am kind of surprised though, what was that component/page used for before? It must've been used for something in some flow, but I am not sure where... I'd want us to test that flow to ensure we are not breaking it. |
I am raising a pr asap. And investigating what component was used before. |
@iwiznia I have found a flow where we use EditReportsFieldPage. We use it in App/src/components/ReportActionItem/MoneyReportView.tsx Lines 83 to 86 in c5c4ea8
I have changed the logic to address that we don't change exiting behaviour in if (isReportFieldTitle) {
ReportActions.updateReportName(report.reportID, value, report.reportName ?? '');
Navigation.goBack();
} else {
ReportActions.updateReportField(report.reportID, {...reportField, value: value === '' ? null : value}, reportField);
Navigation.dismissModal(report?.reportID);
}
|
The PR is ready for review. |
Ah nice, I knew that code must've been there for a reason 😄 |
CPd. thanks |
@adelekennedy Please assign me to the issue for tracking the payment (reviewed PR) |
done @jayeshmangwani ! |
@adelekennedy the pr was deployed to production 8 days ago. |
Thank you @etCoderDysto - the automatic update failed here. |
Yes, mevlin is not adding lables. |
@jayeshmangwani 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:
|
Payouts due:
|
@etCoderDysto will you link your upwork profile here? |
Regression Test Proposal
Do we agree 👍 or 👎 |
offer sent @etCoderDysto |
I have accepted the offer. Thank you! |
Requested $250 |
$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: v9.0.5-3
Reproducible in staging?: Y
Reproducible in production?: New feature
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
User should be returned to Details RHP
Actual Result:
Details RHP modal is dismissed
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6535803_1720442342286.Screen_Recording_2024-07-08_at_3.14.10_in_the_afternoon.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: