-
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
[HOLD for payment 2024-03-13] [$500] Search - Display names are bold regardless of unread state #36075
Comments
👋 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:
|
Triggered auto assignment to @neil-marcellini ( |
Interesting, I wouldn't think this would be a blocker, it's been like this since we first created NewDot |
The display name is bold in search regardless of the unread status of that chat, so I don't understand why that's part of the test steps. I think there is a small regression here, but it's very different than what's described in the current issue. Here's the current behavior on prod Screen.Recording.2024-02-07.at.2.18.15.PM.movI will update the issue from what's currently described to something that's more clear. Currently:
New bug description: Action Performed:
Expected Result:The display name of the chats should not be bold Actual Result:The display name of the chats is bold Furthermore, this is a very minor regression, so I won't consider it a blocker. |
It would make more sense if the style of the chats on the search page matched the LHN. That's not the case on staging or prod. What do you think @shawnborton? |
ProposalPlease re-state the problem that we are trying to solve in this issue.The display name on the search page is bold. What is the root cause of that problem?This happened after the search page used SelectionList (in #35058). The selection list item has a bold style by default.
This can be seen on some page that already uses a selection list, such as the room member page. What changes do you think we should make in order to solve the problem?If we want to bold it only when the chat is unread, we can add a new attribute to the list item called
Then, we need to map the report array here to include App/src/pages/SearchPage/index.js Line 95 in 9f37d3e
What alternative solutions did you explore? (Optional)If we want to disable the bold for all items, we can add a new props to the SelectionList itself to disable the bold style. Or if we don't want to bold a list item that is a user list item, then we can apply the bold style only if it's not a user list item. |
@trjExpensify or @JmillsExpensify or @Expensify/design do you have any context on this one? As far as I know, results in the chat search list were always bold. And this is because that's our standard pattern for displaying this kind of information in a list. Then at some point, we made the workspace switcher use this bold or non-bold pattern depending on if there was unread messages or not. I think for the chat switcher, it does make sense that the chat matches how it would look in the LHN. So if the chat is unread, keep it bold. If the chat is read, make it not-bold. But for things like the flow to start a new chat, or looking at a list of members, etc - I think we should keep our current pattern and use bold for the names. Let me know if all of that makes sense! |
☝️ I agree with everything you said. I also thought they were always bold and was surprised to find out that's not the case! I'm actually torn on whether or not we should make the chats match the LHN or just have them all bold all the time. Reason being is that it's kinda weird that a new chat with someone you've never chatted with would be bold (denoting it has unread messages). So I wonder if by trying to include that we're actually just doing too much and making it more complicated than it needs to be. And to be clear, I think the workspace switcher is a totally different type of searching/switching and the pattern we have there still makes sense. |
Totally fair, but I think of that as something that actually doesn't exist in your LHN, and thus would just follow the standard list option patterns we have? |
Yeah that's a good point. Totally down for what you're proposing! |
@shawnborton I totally agree with these statements ^
@dannymcclain I agree that if you search for a user that you have never chatted with, it's odd to show that new entry as bold. I think we should make this not bold so it appears that you don't have any unread messages from them, which is true given that it's a new chat. I see Shawn's point too, but if we're going to make this list of chats match the LHN state, then I think we have to stay consistent there for it to make sense. |
I think because they're different contexts they don't have to follow the same pattern. I kinda lean towards bold for the reasons @shawnborton mentioned. |
@neil-marcellini Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Ok so it sounds like this is the desired behavior. I'm going to update the issue description and send it to be implemented externally.
|
PR is ready |
wooot! |
PR merged, pending payout after regression period |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.47-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-03-13. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
This PR has caused a regression where local personal details show up in bold, due to this condition as they don't have the property |
@youssef-lr before the PR, all items on the search page are in bold. Then, we agree to bold it only when the chat is unread. Personal details don't have an unread state, so they stay bold. |
Ah okay, thanks for clarifying! |
payment today! @abdulrahuman5196 mind completing checklist |
@neil-marcellini, @abdulrahuman5196, @bernhardoj, @dylanexpensify Huh... This is 4 days overdue. Who can take care of this? |
bump @abdulrahuman5196 on checklist. Paying out now |
payments done! Will close after Abdul does checklist |
Not a regression. Seems to be the case for sometime.
Yes.
|
👋 Is this bug report from @iwiznia related to whatever we did to fix this issue? |
What we do here is to bold the search page item when there are unread items. In #38704, looks like it works correctly in search page, but not on the LHN (can't reproduce though). |
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: 1.4.38-0
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): applausetester+0507gm@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Actual Result:
The display name of the chats is always bold, regardless of the unread state
Workaround:
Ignore it
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Staging
Bug6370903_1707338329044.Recording__2129.mp4
Production
Screen.Recording.2024-02-07.at.2.18.15.PM.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @dylanexpensifyThe text was updated successfully, but these errors were encountered: