-
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
[$500] Task - The "Chat Report" briefly displays when the receiver clicks on a sent task before loading the task details and returns to the chat #29036
Comments
Job added to Upwork: https://www.upwork.com/jobs/~012bf63c7fac0f0222 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The "Chat Report" briefly displays when the receiver clicks on a sent task before loading the task details and returns to the chat What is the root cause of that problem?
App/src/components/ReportActionItem/TaskPreview.js Lines 73 to 74 in 1b93fc9
When detail is loading, the taskTitle is rendering from this data: App/src/libs/actions/Report.js Lines 459 to 461 in 1b93fc9
What changes do you think we should make in order to solve the problem?Prefer to use Change this line:
to:
What alternative solutions did you explore? (Optional)N/A |
It reads value from reportName variable inside value object as reportName sometimes is actual task name and sometimes its just "Chat Report" {
{ |
📣 @abhikam395! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.When a tack recipient opens the task report, its name is set to "Chat Report" for a moment. What is the root cause of that problem?In the
It should take However, when the recipient opens the task report, we send an App/src/libs/actions/Report.js Lines 454 to 462 in 5dc3c25
So when the user opens the report, the What changes do you think we should make in order to solve the problem?We should rely not only on the We can even make this check a separate variable and use it above as well: - const isTaskCompleted = !_.isEmpty(props.taskReport)
+ const isTaskReportReady = lodashHas(props.taskReport, 'reportID');
+ const isTaskCompleted = isTaskReportReady
? props.taskReport.stateNum === CONST.REPORT.STATE_NUM.SUBMITTED && props.taskReport.statusNum === CONST.REPORT.STATUS.APPROVED
: props.action.childStateNum === CONST.REPORT.STATE_NUM.SUBMITTED && props.action.childStatusNum === CONST.REPORT.STATUS.APPROVED;
- const taskTitle = props.taskReport.reportName || props.action.childReportName;
+ const taskTitle = isTaskReportReady ? props.taskReport.reportName : props.action.childReportName; What alternative solutions did you explore? (Optional) |
Possible similar root cause as #24460 |
This #24460 bug is not reproducible |
Edited. |
@situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Triggered auto assignment to @joekaufmanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Not overdue. I will triage today |
I can't reproduce this on my end. The skeleton UI isn't used when I try to click into a task, so there is no chance to click the task, and then click the parent chat in LHN before the task loads. 2023-10-10_16-32-53.mp4 |
I'm not sure it really makes sense to do anything here if this isn't consistently reproducible. Going to close this for now. |
@joekaufmanexpensify that's because report data is already cached locally. Can you try again after logout and re-login? |
@joekaufmanexpensify I've just reproduced it in prod. It's not inconsistent – all you should do is just test on slow internet (you can mimic it on the Network tab, similar to going offline). Also, make sure that you share the task with user B, but don't assign it to them. Just for the experiment's clarity. slow.task.-.chat.report.mov |
Got it. I will try both of those and see if I can reproduce. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I still can't consistently reproduce this, even after trying right after signing in, and throttling my network requests to slow 3G. 2023-10-18_17-07-21.mp4 |
Even if this was consistently reproducible though, I'm not sure this would warrant doing anything. Since it seems like right after the report data is cached locally, this doesn't happen. Which would mean someone would need to have either just signed in/have bad network connection, and then click into a task and quickly try and click the parent chat before the task loads. Which doesn't really seem like a super user action, unless someone is trying to test this. |
Closing for now! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Chat report should not be displayed when the receiver clicks on a sent task before loading the task details and returns back to the chat
Actual Result:
The chat report briefly appears when the receiver clicks on the sent task before the task details have fully loaded and then returns back to the chat
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number:
Reproducible in staging?: y
Reproducible in production?: y
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
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-10-06.at.11.55.37.PM.mov
20231006235310.mp4
Screen.Recording.2023-10-06.at.11.43.56.PM.mov
screen-recording-2023-10-06-at-112140-pm_ZiruaoqJ.mp4
Recording.14.mp4
Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696617667600819
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: