-
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
[$250] 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) |
I reposted after digging into the previous changes to identify the correct problem we were trying to solve with the check and proposed a full solution based on that which includes all places (you are missing) that we need to remove the isOffline check. It has nothing to do with your solution. And suggesting to creat util function doesn't proof that you could easily find the missed case. Let's just wait for the reviewer |
@sonialiap Huh... This is 4 days overdue. Who can take care of this? |
Job added to Upwork: https://www.upwork.com/jobs/~021874048824719107982 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
@allroundexperts What do you think about my proposal? Thanks |
@sonialiap, @allroundexperts Huh... This is 4 days overdue. Who can take care of this? |
@sonialiap @allroundexperts this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@sonialiap, @allroundexperts Still overdue 6 days?! Let's take care of this! |
Triggered auto assignment to @mountiny, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @daledah 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com 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
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @allroundexpertsThe text was updated successfully, but these errors were encountered: