You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-06-25] [$250] Expense - Expense preview is blank briefly when deleted offline and returning online #63155
Version Number: 9.1.54-2 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail: Exp Email or phone of affected tester (no customers):applausetester+300506kh@applause.expensifail.com Issue reported by: Applause Internal Team Device used: Mac 15.4 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Log in with Expensifail account.
Go to staging.new.expensify.com
Go to any chat.
Submit two expenses.
Go to expense report.
Go offline.
Click on any expense row.
Click More > Delete.
Delete the expense.
Go back to main workspace chat.
Go online.
Expected Result:
The preview of the deleted expense will disappear immediately after returning online.
Actual Result:
The preview of the deleted expense becomes blank briefly after returning online.
What changes do you think we should make in order to solve the problem?
We can take the parent view component inside the OfflineWithFeedback to follow the approach we use in other places so that the OfflineWithFeedback will hide it when online
we will only need some additional style tweaking so that it will not show unnecessary spacings linked to the hidden previews. Or apply the OfflineWithFeedback on a higher parent componet of TransactionPreviewContent
Or, we can filter out pending delete transactions when online
We can optionally take this filter in useReportWithTransactionsAndViolations if we want it to generally apply it.
We need to check if similar problems occur in other components such as MoneyRequestPreviewContent and apply similar fix.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N / A
What alternative solutions did you explore? (Optional)
changed the title [-]Expense - Expense preview is blank briefly when deleted offline and returning online[/-][+][$250] Expense - Expense preview is blank briefly when deleted offline and returning online[/+]on Jun 3, 2025
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not critical
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Activity
melvin-bot commentedon May 30, 2025
Triggered auto assignment to @kadiealexander (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.FitseTLT commentedon May 30, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-05-30 18:35:08 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense - Expense preview is blank briefly when deleted offline and returning online
What is the root cause of that problem?
We have passed shouldHIdeOnDelete as true for the offline so it hides it when there is pending delete online
App/src/components/ReportActionItem/TransactionPreview/TransactionPreviewContent.tsx
Line 180 in df2c3c1
but it appears as an empty box because the parent View has a fixed width set.
App/src/styles/utils/getMoneyRequestReportPreviewStyle/index.ts
Line 32 in 0a8ae6b
App/src/components/ReportActionItem/TransactionPreview/TransactionPreviewContent.tsx
Line 171 in 0a8ae6b
What changes do you think we should make in order to solve the problem?
OfflineWithFeedbackto follow the approach we use in other places so that theOfflineWithFeedbackwill hide it when onlineApp/src/components/ReportActionItem/TransactionPreview/TransactionPreviewContent.tsx
Lines 171 to 172 in 0a8ae6b
we will only need some additional style tweaking so that it will not show unnecessary spacings linked to the hidden previews. Or apply the OfflineWithFeedback on a higher parent componet of TransactionPreviewContent
App/src/components/ReportActionItem/MoneyRequestReportPreview/index.tsx
Line 54 in df2c3c1
We can optionally take this filter in
useReportWithTransactionsAndViolationsif we want it to generally apply it.We need to check if similar problems occur in other components such as
MoneyRequestPreviewContentand apply similar fix.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N / A
What alternative solutions did you explore? (Optional)
[-]Expense - Expense preview is blank briefly when deleted offline and returning online[/-][+][$250] Expense - Expense preview is blank briefly when deleted offline and returning online[/+]melvin-bot commentedon Jun 3, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021929752908827516446
melvin-bot commentedon Jun 3, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (
External)26 remaining items
kadiealexander commentedon Jun 25, 2025
Payments needed:
@rushatgabhane please complete the checklist!
melvin-bot commentedon Jun 30, 2025
@kadiealexander Eep! 4 days overdue now. Issues have feelings too...
melvin-bot commentedon Jun 30, 2025
@kadiealexander Eep! 4 days overdue now. Issues have feelings too...
kadiealexander commentedon Jul 2, 2025
@rushatgabhane bump on this!
rushatgabhane commentedon Jul 2, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: https://github.com/Expensify/App/pull/56405/files#r2178823134
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not critical
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/521299
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
kadiealexander commentedon Jul 3, 2025
Payment summary here.
garrettmknight commentedon Jul 3, 2025
$250 approved for @rushatgabhane