You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-04-05] [Wave Collect] [Ideal Nav] Issues with the bold (unread) status on Workspace Item #35682
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.EngineeringInternalRequires API changes or must be handled by Expensify staffMonthlyKSv2
The workspace item on the Workspace Switcher should be bold when there are any unread chat/report in that workspace. This indicator, however, isn't working consistently.
Sometimes, the workspace item is bold even when there is no unread chat in that workspace. And sometimes, it's not bold when there is a unread chat/report.
The following is the reproduction step for the latter issue.
Create a workspace if you don't have one yet.
Go to a workspace (not Expensify one).
Right click (or long press) a chat and click Mark as unread on the popover that appears
Click the Workspace Switcher.
Look for the current workspace name. Confirm that the workspace name is bold.
Go back to the workspace.
Right click the same chat and click Mark as read
Go back to Workspace Switcher
Confirm the current workspace is not bold
Screen.Recording.2024-01-22.at.7.26.44.PM.mov
Workaround:
N/A
Platforms:
Which of our officially supported platforms is this issue occurring on?
While debugging a similar issue (#35766) which was closed as a dupe of this one I noticed the following:
within the ReportUtils.isUnread function we're checking the lastReadTime which if undefined will fallback to empty string
in WorkspacesSettingsUtils we're using Onyx.connect to get allReports
sometimes for certain workspaces -> reports within that workspace will initially have the lastReadTime as undefined
undefined lastReadTime defaults to empty string which when compared to an existing lastVisibleActionCreated date string, isUnread always returns true
Considering these, I tend to think that the RC here might come from the Onyx.connect -> allReports data which might first initialize some report variables as undefined - while shortly after to become defined but the function doesn't register the data change and remains with initial isUnread status.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.EngineeringInternalRequires API changes or must be handled by Expensify staffMonthlyKSv2
Activity
melvin-bot commentedon Feb 2, 2024
Triggered auto assignment to @Christinadobrzyn (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.hayata-suenaga commentedon Feb 2, 2024
@mateuuszzzzz I believe you're working on this regression? can you comment on this GH issue so that I can assign you?
Christinadobrzyn commentedon Feb 2, 2024
Ah good catch! I can reproduce this - we'll see if @mateuuszzzzz is working on this!
cdOut commentedon Feb 5, 2024
Hello, I'll be working on this one and take it from @mateuuszzzzz.
trjExpensify commentedon Feb 5, 2024
Nice, assigned you @cdOut!
ikevin127 commentedon Feb 5, 2024
While debugging a similar issue (#35766) which was closed as a dupe of this one I noticed the following:
ReportUtils.isUnreadfunction we're checking thelastReadTimewhich if undefined will fallback to empty stringallReportslastReadTimeas undefinedlastVisibleActionCreateddate string, isUnread always returns trueConsidering these, I tend to think that the RC here might come from the Onyx.connect -> allReports data which might first initialize some report variables as undefined - while shortly after to become defined but the function doesn't register the data change and remains with initial isUnread status.
Hope this helps w/ debugging ✌️
87 remaining items
Christinadobrzyn commentedon Apr 12, 2024
Ah okay! I'll move this to weekly since payment due is all that's left.
Christinadobrzyn commentedon Apr 24, 2024
holding for @situchan to accept this Upwork offer - https://www.upwork.com/nx/wm/offer/101773908
Christinadobrzyn commentedon May 3, 2024
Dmd @situchan to see if they are back and can accept the offer
Christinadobrzyn commentedon May 8, 2024
moving this to monthly since payment is all that's needed. @situchan let me know when you're back b/c I'll need to make a new offer
situchan commentedon May 17, 2024
Sorry for late. I am back. Can you please send new offer?
Christinadobrzyn commentedon May 17, 2024
@situchan here's the new offer - https://www.upwork.com/nx/wm/offer/102347085
Thanks!
Christinadobrzyn commentedon Jun 13, 2024
Paid @situchan in upwork based on this payment summary - #35682 (comment)
Closing!