-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[$500] LHN - Selecting Mark as unread not displaying chat in bold #33881
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
Comments
Job added to Upwork: https://www.upwork.com/jobs/~010c13f72ee15736be |
Triggered auto assignment to @slafortune ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Selecting "Mark as unread" must display chat in bold in LHN. What is the root cause of that problem?Currently in the App/src/components/LHNOptionsList/OptionRowLHN.js Lines 130 to 136 in 3826e5d
So that here it will take current time. App/src/libs/actions/Report.ts Lines 954 to 955 in 2fe1174
What changes do you think we should make in order to solve the problem?We should get the last report action if we do not pass the reportAction const sortedReportActions = ReportActionsUtils.getSortedReportActionsForDisplay(reportActions);
const lastReportAction = sortedReportActions[0];
const actionCreationTime = reportActionCreated || (lastReportAction?.created ?? latestReportActionFromOtherUsers?.created ?? DateUtils.getDBTime(0)); Result:Screen.Recording.2024-01-04.at.00.38.35.movWhat alternative solutions did you explore? (Optional)We should pass the last report action ID here.
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Mark as unred is not marking the report as unread (no bold effect) What is the root cause of that problem?the function If we check from dev tool, application, Onyx database, we will not find the "report_Actions_xxxxxxxxx" of the report. If we open the report, then mark it unred, it works, because the Onyx data is updated. The function App/src/libs/actions/Report.ts Lines 955 to 960 in 3b385ef
With the new lastReadTime time (wrong one), The function isUnread will compare Lines 3293 to 3302 in 3b385ef
What changes do you think we should make in order to solve the problem?We need to update Onyx data on App/src/libs/actions/Report.ts Line 943 in 3b385ef
We can use What alternative solutions did you explore? (Optional)We can update the Onyx data when the user press on item from LHNOptionsList. The onPress will use a function like |
Looks like a regression from #32958. |
I am not able to reproduce on latest main |
You need to mark it as unread on a report with undefined report actions (not loaded to Onyx yet). Try relogin first. |
@slafortune, @allroundexperts Huh... This is 4 days overdue. Who can take care of this? |
@situchan @allroundexperts are either of you able to reproduce this still? |
still not |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@situchan try to clean cache from dev tool, logout then login and try this from LHN without opening a report and for old chat. I just tested on staging and I can see the issue. 16.mp4 |
Still looking for better proposals. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Mark as unread on some chat doesn't turn the title to bold/ What is the root cause of that problem?The title will turn to bold if Line 3350 in fd45dea
When pressing the mark as unread, it will take the report action created time subtracted by 1. App/src/libs/actions/Report.ts Lines 955 to 968 in fd45dea
The report action created time that we take is:
But in our case, the report's report actions Onyx is not available yet, so the 2nd case fails too and falls back to the current time, so This is the regression from #32958 where we remove the fallback of the current report's What changes do you think we should make in order to solve the problem?Add back the fallback of the report's
|
If we decide to fix this here, then @bernhardoj's proposal looks good to me! 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @youssef-lr, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
This is no longer reproducible. |
@youssef-lr This is easily reproducible. You need to logout and then login. Without opening the report, try marking it as unread. |
I personally don't see a real world scenario for this. We typically mark messages as unread to get back to them later, after reading them, which means the report actions will be loaded. We also use infinite sessions so our typical users will only need to log in once. |
@youssef-lr I agree that it would be rare for any real user to encounter this case, but this works fine before #32958, so I think it makes sense if we fix it here. |
If this should be fixed, should be treated as regression from #32958. |
Uh oh!
There was an error while loading. Please reload this page.
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.21
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Selecting "Mark as unread" must display chat in bold in LHN.
Actual Result:
Selecting "Mark as unread" not displaying chat in bold in LHN.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6331459_1704300031496.unread.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: