-
Notifications
You must be signed in to change notification settings - Fork 3k
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] Cha - Chat in offline with invalid no. & go online makes header disappear& keeps loading #35290
Comments
Job added to Upwork: https://www.upwork.com/jobs/~017e13f18c6953c14a |
Triggered auto assignment to @MitchExpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat in offline with invalid no. & go online makes header disappear& keeps loading What is the root cause of that problem?The App/src/pages/home/HeaderView.js Line 108 in c5ca9a8
Therefore, the Lines 1609 to 1614 in c5ca9a8
This is because the RCA is we are deleting the App/src/libs/actions/Report.ts Lines 668 to 671 in c5ca9a8
What changes do you think we should make in order to solve the problem?In the App/src/pages/home/HeaderView.js Line 220 in c5ca9a8
Therefore, we should add this line below before
What alternative solutions did you explore? (Optional)We can remove the However, this might create a chance of duplicate |
ProposalPlease re-state the problem that we are trying to solve in this issue.Starting chat with invalid number in offline, sending messages and turns online, header text disappears and keeps loading What is the root cause of that problem?In This leads to the This was done to fix this issue where the invalid contact method will show up in search even after the user clears the error in the report. This doesn't look like the right pattern because normally what we do in the app is: If there's an error on when creating an entity:
This is exactly what we've been doing with reports, reportActions, ... but we're not doing it with personal details. So the UX looks quite broken, because the header of the chat will become empty/show loading indicator, and in LHN there'll be no title of the option. The user won't know what they did that lead to this because the personal details of the user they try to chat with, disappear. What changes do you think we should make in order to solve the problem?
This way, we'll maintain a good UX that are consistent with the pattern of error on creation in the app, and we'll not reintroduce the issue of invalid report earlier What alternative solutions did you explore? (Optional)If we want just want to remove the loading, we should fallback the title here to
We should also set the
We should do the same for the logic to show title in the LHN as well, to make sure it fallbacks to Aside from the above main and alternative solution, I also notice another existing bug where sometimes the chat-creation error does not show when going online (must reload page for it to show), this is because in here we're using memoization but do not have |
Will take a look at it tomorrow |
I don't quite understand the issue - What header are we referring to here for example? |
@MitchExpensify This one at the top of the report, it's loading infinitely |
Ah got it! I think this is too edgy and not obviously a part of a wave or VIP project - Closing |
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: 1.4.32.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: https://expensify.testrail.io/index.php?/tests/view/4206011
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:
Expected Result:
Starting chat with invalid number in offline, sending messages and turns online, header text must be displayed without loading
Actual Result:
Starting chat with invalid number in offline, sending messages and turns online, header text disappears and keeps loading
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6347839_1705682973162.moo.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: