fix: Workspace chats not showing up in search#62942
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-05-30.at.4.51.53.PM.movAndroid: mWeb ChromeScreen.Recording.2025-05-29.at.2.55.57.PM.moviOS: HybridAppScreen.Recording.2025-05-29.at.2.42.01.PM.moviOS: mWeb SafariScreen.Recording.2025-05-29.at.2.43.05.PM.movMacOS: Chrome / SafariScreen.Recording.2025-05-29.at.2.49.11.PM.movScreen.Recording.2025-05-29.at.1.44.52.PM.movMacOS: DesktopScreen.Recording.2025-05-29.at.2.49.11.PM.mov |
|
🚧 @lakchote has triggered a test app build. You can view the workflow run here. |
|
@chrispader prettier is failing |
fixed! 🙌🏼 |
This comment has been minimized.
This comment has been minimized.
|
searching for the name of a workspace does not show the workspace chat @chrispader (happens with adhoc build only, locally its works) Screen.Recording.2025-05-29.at.3.15.36.PM.mov |
@ishpaul777 i think i could repro and fix this issue. @lakchote could you please trigger another ad-hoc build? |
|
🚧 @lakchote has triggered a test app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
|
@chrispader there are conflicts, when it's done I'll merge this, thanks! |
|
@lakchote just merged main! |
|
Perf. tests failing, @chrispader can you please take a look if its related |
@ishpaul777 perf tests were not related. Just merged main and it's passing now. @lakchote this should be ready to merge! |
|
@lakchote can we merge this? 🙌🏼 |
|
Oops, sorry @chrispader I thought I had merged it! Done! |
|
🚀 Deployed to staging by https://github.com/lakchote in version: 9.1.66-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.66-5 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.66-5 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.66-5 🚀
|
@RachCHopkins @JmillsExpensify
Explanation of Change
This PR fixes an issue where workspace chats are not shown in the search because of two reasons:
alternateText, which includes the workspace nameFastSearchimplementation we initially just filter the options by the longest word, after which we filter again by the whole search string. This was previously only limited to thetextproperty of every option.This PR introduces some extra logic to
FastSearchto allow for performantly storing the used search strings in memory and then later using the storedsearchableStringto filter in the second round instead of just filtering bytext.Fixed Issues
$ #62407
PROPOSAL:
Tests
), make sure that the workspace chat either shows up or does not dissapear, if it was already visible.Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.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
Screen.Recording.2025-05-28.at.14.28.37.mov
MacOS: Desktop