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
[$500] Workspace-Some workspaces are shown in bold and some not #35766
Version Number: 1.4.36 Reproducible in staging?: Y Reproducible in production?: N 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:
Pre-condition: open account with many workspaces created
changed the title [-]Workspace-Some workspaces are shown in bold and some not[/-][+][$500] Workspace-Some workspaces are shown in bold and some not[/+]on Feb 3, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
@ZhenjaHorbach then the actual bug is that some workspace names are not getting the bold font even after having a green or red dot, meanwhile some have bold text even without a dot.
📣 @puneet2715! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Both getWorkspacesUnreadStatuses and ReportUtils.isUnread functions are working as expected. If there's any unread report within a workspace (policy) based on the code block above -> the isUnread will return true for that said report which is part of the workspace -> therefore we will see the workspace name text having the bold style.
If what we want here as expected result is to keep the workspace name in bold style when there's no unread reports, but we have red / green brick indicators present then the problem is we're missing an additional condition where we set the boldStyle: hasUnreadData(policy?.id).
What changes do you think we should make in order to solve the problem?
Within the WorkspaceSwitcherPage component, add additional condition to boldStyle as follows:
this way if within any of that workspace's reports there's any kind of indicator present -> the workspace name text will have the bold style until the indicator is resolved by the user within the report that is causing it.
Activity
melvin-bot commentedon Feb 3, 2024
Job added to Upwork: https://www.upwork.com/jobs/~015db9082b5dbefc79
[-]Workspace-Some workspaces are shown in bold and some not[/-][+][$500] Workspace-Some workspaces are shown in bold and some not[/+]melvin-bot commentedon Feb 3, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (
External)melvin-bot commentedon Feb 3, 2024
Triggered auto assignment to @alexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.github-actions commentedon Feb 3, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
melvin-bot commentedon Feb 3, 2024
Triggered auto assignment to @marcaaron (
Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.izarutskaya commentedon Feb 3, 2024
We think that this bug might be related to #vip-vsb
CC @quinthar
ZhenjaHorbach commentedon Feb 3, 2024
puneet2715 commentedon Feb 3, 2024
@ZhenjaHorbach then the actual bug is that some workspace names are not getting the bold font even after having a green or red dot, meanwhile some have bold text even without a dot.
melvin-bot commentedon Feb 3, 2024
📣 @puneet2715! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Format:
muas19 commentedon Feb 3, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Some workspaces are shown in bold and some not.
What is the root cause of that problem?
There might be a delay from onyx when new data is returned for a policy in
This line
App/src/pages/WorkspaceSwitcherPage.tsx
Line 139 in 3ab4e6e
What changes do you think we should make in order to solve the problem?
We could pass a false type to the hasBoldStyle or remove it altogether since the unread have their own green/red dots.
What alternative solutions did you explore? (Optional)
ikevin127 commentedon Feb 4, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue
Some workspaces names are not shown in bold text when they are supposed to due to either having red / green brick indicators.
What is the root cause of that problem?
App/src/libs/ReportUtils.ts
Lines 3569 to 3578 in 3ab4e6e
Both
getWorkspacesUnreadStatusesandReportUtils.isUnreadfunctions are working as expected. If there's any unread report within a workspace (policy) based on the code block above -> the isUnread will returntruefor that said report which is part of the workspace -> therefore we will see the workspace name text having the bold style.If what we want here as expected result is to keep the workspace name in bold style when there's no unread reports, but we have red / green brick indicators present then the problem is we're missing an additional condition where we set the
boldStyle: hasUnreadData(policy?.id).What changes do you think we should make in order to solve the problem?
Within the
WorkspaceSwitcherPagecomponent, add additional condition toboldStyleas follows:boldStyle: hasUnreadData(policy?.id) || !!getIndicatorTypeForPolicy(policy?.id)this way if within any of that workspace's reports there's any kind of indicator present -> the workspace name text will have the bold style until the indicator is resolved by the user within the report that is causing it.
Videos
iOS: Native
Screen.Recording.2024-02-04.at.15.53.24.mov
b89f75a4-a9fb-467c-b867-5a44fabd4d3f.mp4
mountiny commentedon Feb 5, 2024
This is not a blocker, I actually think this is expected behaviour
mountiny commentedon Feb 5, 2024
This is a dupe of existing issue with better issue body/ repro steps here #35682
trjExpensify commentedon Feb 5, 2024
Right, if the workspace in question has chats with unread messages, the row should be bold. We don't add a GBR for unread messages.
That said, I think there's a bug with the bold rows, as logged here: #35682
Perhaps this issue is just a dupe.