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-09-30] [$250] Chat - Payment preview is displayed grayed out everytime internet connection is lost. #68817
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
changed the title [-]Chat - Payment preview is displayed grayed out everytime internet connection is lost.[/-][+][$250] Chat - Payment preview is displayed grayed out everytime internet connection is lost.[/+]on Aug 27, 2025
@parasharrajat@JmillsExpensify The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[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 needed
[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.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Test:
Open any chat with another user or create one if necessary.
Tap on the "+" button and select "Pay XX" option.
Input any amount and send the payment.
Once redirected to chat again, turn off internet connection.
Verify that the payment preview is displayed without reduced opacity while offline.
Open expense request page
Verify that the payment fields are displayed without reduced opacity while offline.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Aug 20, 2025
Triggered auto assignment to @JmillsExpensify (
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.Krishna2323 commentedon Aug 20, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Chat - Payment preview is displayed grayed out everytime internet connection is lost.
What is the root cause of that problem?
isOptimisticActionproperty for the report preview action is not set to null in success data and failure data:App/src/libs/actions/IOU.ts
Lines 8448 to 8811 in 9ce95b7
What changes do you think we should make in order to solve the problem?
isOptimisticActionto null in success data and failure data for the preview action.App/src/libs/actions/IOU.ts
Lines 8681 to 8689 in 9ce95b7
isOptimisticActionin success data and failure data if missing.buildOptimisticReportPreview.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)
Result
NJ-2020 commentedon Aug 20, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Chat - Payment preview is displayed grayed out everytime internet connection is lost
What is the root cause of that problem?
When we pay the expense, we set the report action preview
isOptimisticActionto true inside the optimisticDataApp/src/libs/actions/IOU.ts
Lines 9415 to 9416 in 4d7d44a
App/src/libs/actions/IOU.ts
Line 8448 in 4d7d44a
App/src/libs/actions/IOU.ts
Line 8507 in 4d7d44a
App/src/libs/ReportUtils.ts
Line 6827 in 4d7d44a
But we didn't set back to null in the success and failure data
App/src/libs/actions/IOU.ts
Lines 8681 to 8688 in 4d7d44a
What changes do you think we should make in order to solve the problem?
We should set to null here inside the success and failure data
App/src/libs/actions/IOU.ts
Lines 8681 to 8688 in 4d7d44a
App/src/libs/actions/IOU.ts
Line 8692 in 4d7d44a
We should check for other actions also
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Create a new test case inside
tests/actions/Report.tsand make sureisOptimisticActionis set to null after paying the expense (offline -> online)What alternative solutions did you explore? (Optional)
melvin-bot commentedon Aug 25, 2025
@JmillsExpensify Huh... This is 4 days overdue. Who can take care of this?
[-]Chat - Payment preview is displayed grayed out everytime internet connection is lost.[/-][+][$250] Chat - Payment preview is displayed grayed out everytime internet connection is lost.[/+]melvin-bot commentedon Aug 27, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021960638377598210469
melvin-bot commentedon Aug 27, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (
External)26 remaining items
melvin-bot commentedon Sep 23, 2025
@parasharrajat @JmillsExpensify The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
melvin-bot commentedon Sep 30, 2025
Payment Summary
Upwork Job
BugZero Checklist (@JmillsExpensify)
parasharrajat commentedon Oct 1, 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/21578/files#r2394341332
[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 needed
[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.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Test:
Do we agree 👍 or 👎
JmillsExpensify commentedon Oct 8, 2025
Please make requests via ND. Closing
Krishna2323 commentedon Oct 30, 2025
Requested in ND!
trjExpensify commentedon Nov 3, 2025
Confirming payment summary here is correct: #68817 (comment)
JmillsExpensify commentedon Nov 3, 2025
$250 approved for @Krishna2323
parasharrajat commentedon Nov 9, 2025
Payment requested as per #68817 (comment)
trjExpensify commentedon Nov 17, 2025
approved $250 for @parasharrajat.