-
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
Chat - In offline, parent conversation is not highlighted. #54521
Comments
Triggered auto assignment to @sonialiap ( |
Edited by proposal-police: This proposal was edited at 2024-12-24 15:44:07 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.In offline, parent conversation is not highlighted. What is the root cause of that problem?
App/src/components/ParentNavigationSubtitle.tsx Lines 50 to 52 in 126d92a
so the data is empty App/src/libs/PaginationUtils.ts Lines 175 to 177 in d5cdd55
that shows the loading screen even though the data is loaded. What changes do you think we should make in order to solve the problem?Solution 1: Disable navigating to parent if isOffline and pages is empty We should update this condition in here and here But this solution is not a best idea since even the page is not loaded, we still can show the parent message. Solution 2: Remove Then update
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We should update What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - In offline, parent conversation is not highlighted. What is the root cause of that problem?We are not linking to the parent report action id in offline mode here App/src/components/ParentNavigationSubtitle.tsx Lines 50 to 52 in 126d92a
When comment linking to parent report action was implemented a regression occurred where if you create threads offline and try to comment link back to parent actions it was showing skeleton loading although the report actions where available in onyx so we disabled comment linking to parent actions in here by adding conditions in all three places here here and here But the reason it was showing loading indicator was because usePaginatedReportActions was returning empty data (reportActions list) because when linking to report actions we return empty if page is empty here App/src/libs/PaginationUtils.ts Lines 175 to 176 in 126d92a
What changes do you think we should make in order to solve the problem?Remove the isOffline checks in all three places here here and here To avoid the skeleton loading problem we should only return empty if the linked report action doesn't exist in App/src/libs/PaginationUtils.ts Lines 175 to 176 in 126d92a
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can create a test for getContinuousChain by passing empty pages and proper id param to assert that it doesn't return empty if the action exists in sortedItems What alternative solutions did you explore? (Optional) |
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: 9.0.78-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
Issue reported by: Applause Internal Team
Device used: Redmi note 10s Android 13
App Component: Chat Report View
Action Performed:
Expected Result:
In offline, parent conversation must be highlighted.
Actual Result:
In offline, parent conversation is not highlighted.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6701658_1735019559394.Screenrecorder-2024-12-24-11-11-44-33.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: