feat: Show the Workspace name beside the room name in Search results#96574
feat: Show the Workspace name beside the room name in Search results#96574nkdengineer wants to merge 4 commits into
Conversation
|
@dubielzyk-expensify @huult One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cfff42a41d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| rightElement: workspaceIcon ? ( | ||
| <AvatarWithTextCell | ||
| reportName={workspaceIcon.name} | ||
| icon={workspaceIcon} | ||
| isLargeScreenWidth | ||
| /> | ||
| ) : undefined, |
There was a problem hiding this comment.
Add workspace labels to room result rows
This only attaches the workspace cell to autocompleteSuggestions, so it appears for in: filter suggestions but not for the normal search switcher result rows: typing a room name such as admins still builds nextStyledRecentReports above and renders those rows through BareUserListItem without any rightElement. In the duplicate #admins scenario, users who search by the room name still see indistinguishable room results unless they know to type the in: prefix, so the disambiguation should also be propagated to the report result options.
Useful? React with 👍 / 👎.
|
@nkdengineer Once your screenshots are ready, please tag the Product/Design team to review them. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 dubielzyk-expensify has triggered a test Expensify/App build. You can view the workflow run here. |
Explanation of Change
Fixed Issues
$ #96151
PROPOSAL: #96151 (comment)
Tests
in:adminsOffline tests
QA Steps
Same as test
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari