-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[$250] Expense preview- Report title part of report preview is blank briefly after submitting expense #59525
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
Comments
Triggered auto assignment to @isabelastisser ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-04-02 10:48:29 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.In offline mode, the report title part of the expense report preview is blank after submitting the expense. What is the root cause of that problem?We don't return the Lines 5953 to 5980 in 66f28d3
It leads to App/src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx Lines 483 to 488 in 66f28d3
What changes do you think we should make in order to solve the problem?We have some ways to fix it as follows
App/src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx Line 487 in 66f28d3
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?None What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.In offline mode, the report title part of the expense report preview is blank after submitting the expense. What is the root cause of that problem?We're displaying the report title in report preview from App/src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx Lines 483 to 488 in 66f28d3
But Lines 5953 to 5980 in 66f28d3
What changes do you think we should make in order to solve the problem?
Lines 5953 to 5980 in 66f28d3
I noticed that we have an inconsistency for the expense report's reportName. The default report title formula is ![]()
![]()
App/src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx Lines 483 to 488 in 66f28d3
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?Add a unit test for What alternative solutions did you explore? (Optional)NA Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Job added to Upwork: https://www.upwork.com/jobs/~021907791019793338504 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
@nkdengineer I got confused here. Can you clarify what it means? I'm interpreting that because BE is already returning |
@hoangzinh That is the report name of the expense report. I mean, we need to fix Lines 5411 to 5413 in 3b313d1
|
Thank you for posting proposals @daledah @nkdengineer. I think we can go with @nkdengineer's proposal, because:
Link to proposal #59525 (comment) 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @Beamanator, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@isabelastisser Because this issue requires BE change and we already had the issue to do that, should we hold it util BE is fixed? IMO, we can process this issue separately since we can verify it on offline mode. cc @hoangzinh |
cc @Beamanator ^ what do you think? I think we can continue to proceed with @nkdengineer PR here. The current issue is that the Report title of report preview will have the format "Expenses yyyy-mm-dd" briefly (FE optimistic), then change to "Expenses #id" format (BE response). |
I like the idea of moving forward with this, BUT i don't necessarily love the idea of optimistic & BE being different, especially in case the BE changes takes a long time. @neil-marcellini Can you help advise if it would make sense to move forward with this while you're working on the linked issue? |
Yes I agree I don't think the optimistic data should be different from the backend data. I think we should hold this on the auto report title project. Instead, would you guys be interested in helping with this? Plan and implement a system for optimistic report title formula computation. |
Actually instead of holding I'm going to close this as not planned, since it will be fixed as part of that project. |
@neil-marcellini This is only the back-end part of this issue. We still have the front-end bug with optimistic data here that we need to fix this, please help to re-open this issue. |
The linked issue is specifically for the frontend. |
@neil-marcellini I mean, we're having another bug with Expense preview that isn't related to this issue.
The problem we want to confirm here is will this issue fix this backend bug |
Yes we'll make sure the frontend and backend report title computations work the same way. |
@neil-marcellini Got it now. But our bug here is that the report preview doesn't show the expense report name in offline. And the RCA is not related to the |
Agreed with @nkdengineer, the original bug of this issue is report title part is blank because we missed adding optimistic data for report preview. You can take a look at this proposal #59525 (comment) @neil-marcellini |
@neil-marcellini Please help to check this comment above. |
Right that would be good to fix, but I'm still not clear on whether we can fix this without creating an inconsistency between the optimistic and backend data. If so, please update your proposal to do exactly that and explain why there is no inconsistency. If not, we should keep this closed and fix it holistically. |
I see. Actually, I'm unsure what the correct way to fix it from FE side. I mean, should we use |
@isabelastisser, because the proposal has been accepted and the PR was created. Can you process payment here for @nkdengineer and me? Then we can close this issue. |
Payment summary: $250 for C+ review to @hoangzinh, |
Thank you @isabelastisser. I requested in ND |
$250 approved for @hoangzinh |
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.1.22-2
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: No, reproducible on hybrid only
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp #58479
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Money Requests
Action Performed:
Precondition:
Expected Result:
The report title part of the expense report preview should not be blank after submitting the expense.
Actual Result:
In offline mode, the report title part of the expense report preview is blank after submitting the expense.
In online mode, the same part is blank briefly after submitting the expense.
Workaround:
Unknown
Platforms:
Screenshots/Videos
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @BeamanatorThe text was updated successfully, but these errors were encountered: