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
Expense - Expense preview with more than 1 request grays out when requesting money offline #34004
Version Number: 1.4.22-0 Reproducible in staging?: Y Reproducible in production?: N 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:
Go to workspace chat that has some requests
Go offline
Create a money request
Expected Result:
The expense preview in the workspace chat will not gray out
Actual Result:
The expense preview in the workspace chat grays out
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 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:
Identify the pull request that introduced this issue and revert it.
We are using iouReport.pendingFields.preview` field for ReportPreview. So that when there is a new request money, the Report Preview will be greyed out
What changes do you think we should make in order to solve the problem?
Activity
github-actions commentedon Jan 5, 2024
👋 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:
melvin-bot commentedon Jan 5, 2024
Triggered auto assignment to @marcaaron (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.DylanDylann commentedon Jan 5, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The expense preview in the workspace chat grays out
What is the root cause of that problem?
When adding a new request, we will update
iouReport.pendingFields.preview: UPDATEApp/src/components/ReportActionItem/ReportPreview.js
Line 264 in 2d455bf
We are using iouReport.pendingFields.preview` field for ReportPreview. So that when there is a new request money, the Report Preview will be greyed out
What changes do you think we should make in order to solve the problem?
App/src/components/ReportActionItem/ReportPreview.js
Line 264 in 2d455bf
In here we should use
iouReport.pendingFields.createChatinstead ofiouReport.pendingFields.previewWhat alternative solutions did you explore? (Optional)
DylanDylann commentedon Jan 5, 2024
@marcaaron This issue was caused by this PR. I am available to raise a quick PR if you agree with my proposal above
c3024 commentedon Jan 5, 2024
Greying out when offline is the expected behaviour as per the discussion here. I don't think this is a regression.