-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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] [Search v2.2] - Report name is bold when report is unread or select, and unbold when not unselected #49100
Comments
Triggered auto assignment to @OfstadC ( |
Triggered auto assignment to @carlosmiceli ( |
👋 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:
|
Job added to Upwork: https://www.upwork.com/jobs/~021834272973003292308 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ikevin127 ( |
@carlosmiceli Could you please confirm the expected behavior here? |
I can take this one since it's part of Search. cc @Kicu @289Adam289 |
Edited by proposal-police: This proposal was edited at 2024-09-12 18:01:30 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The report name is bold when the report is unread or selected, and unbold when not selected. What is the root cause of that problem?
so the option title is always bold because of:
What changes do you think we should make in order to solve the problem?
return {...option, isSelected: true, reportID: option.reportID ?? '-1', isBold: OptionsListUtils.shouldUseBoldText(option)}; What alternative solutions did you explore? (Optional)Solution 1:
result.isBold = shouldUseBoldText(result); Solution 2:
|
@luacmartins Are we accepting proposals for this one or will somebody from agencies work on it ? |
Sure, we can take contributors too |
ProposalPlease re-state the problem that we are trying to solve in this issue.The title bold is inconsistent in chat search filter In list. What is the root cause of that problem?In App/src/libs/OptionsListUtils.ts Line 2067 in 1641532
So, the title will be bold based on the unread status. App/src/libs/OptionsListUtils.ts Line 1973 in 1641532
App/src/libs/OptionsListUtils.ts Lines 2502 to 2504 in 1641532
Then, for the selected options, the item doesn't have App/src/components/Search/SearchFiltersChatsSelector.tsx Lines 85 to 94 in 0f2de40
and it will be bold if
What changes do you think we should make in order to solve the problem?The solution is to always bold the title. To do that, add a new param to App/src/libs/OptionsListUtils.ts Line 2067 in 49b0051
|
In this case, thanks everyone for the proposals! I think @dominictb's proposal makes sense as the RCA is straight-forward and the main solution solves the issue as per the Expected result, without affecting other parts of the app other than the
🎀👀🎀 C+ reviewed |
Current assignee @luacmartins is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@bernhardoj Feel free to let us know if you think the selected proposal's main solution has some pitfalls which would create regressions whereas your solution won't - I'd be happy to re-assign! |
@ikevin127 I don't think there will be a regression, but both solutions actually have different results. My solution will bold all the title instead of depends on the unread status. |
@Expensify/design what's the expected behavior for the |
My assumption here is that they should always be bold like we you submit a regular expense. Keen to hear what rest of @Expensify/design thinks though |
I believe the behavior of the In filter should align with that of the /chat-finder page, as both are used for searching reports, which can be bold based on unread status. In contrast, the participant selector in the expense flow and start chat feature is used to search for individuals, rooms, or workspaces. |
Yeah, I see what you're saying, but I don't think this is an instance where we need to tell the user which are unread/read (needless complexity in this instance IMO). I think of this more as a picker-style which we tend to keep all bold. Happy for @Expensify/design to tell me otherwise though 😄 |
I agree! 👍 for going with all bold |
I think if we're displaying these rows the same way that we display the finder page, where we have the report title above and a preview of the latest message below, then it should follow the same behavior as the chat finder where unreads are bold and reads are not. If this follows the same behavior as the participant selector page, then they all should be bold. |
Interestingly on this, the defaultRooms (i.e #admins and announce) use the workspaceName as the second line in the chat switcher, whereas the user created rooms seem to use the lastMessage text. I know we did the former for ease of reference and discovery when looking for the room for a particular workspace. Was it intentional not to follow suit with the user created rooms in the chat switcher, or is that just an oversight? |
Hmm no idea, but I would think we should standardize on message preview in the chat finder, and then just use the Workspace label in the Submit flow/participant selector. |
Not overdue, still discussing about the right solution based on which we will assign one of the two existing proposals. |
That's fair, though there is a conversation happening about adding the workspace name right before the report name - so that would solve that issue and then make sure we have 100% consistency between LHN and Find. Thoughts on something like that? |
Ah, that would solve it if it's searchable by workspace name still. Do we have an issue for it? I would think we need to do that first before changing the defaultRooms to drop the workspace name, because I think that would break the guides' ability to find the admins rooms of deals they're working with if we do it before. |
Here's the thread where it was being discussed. I am fine doing nothing for now with the preview line until something like the above is in place. |
Yep, sounds good! 👍 |
Can we have a summary of the discussions and an update on the expected result (if changed) ? We need to know whether or not we go with the assigned proposal 👍 |
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.33-2
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
There should be consistency whether the report name should be bold.
Actual Result:
The report name is bold when the report is unread or selected, and unbold when not selected.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6601202_1726156396378.bandicam_2024-09-12_23-50-21-440.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ikevin127The text was updated successfully, but these errors were encountered: