Conversation
|
@stitesExpensify @thesahindia 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] |
|
I'm going to jump in and review this since I have some time and it's interesting. |
neil-marcellini
left a comment
There was a problem hiding this comment.
@grgia would you please fill out the test and QA sections? It's pretty self explanatory so I'll go ahead and continue to test, but let's not skip filling it out.
neil-marcellini
left a comment
There was a problem hiding this comment.
Tests I used:
- Create a thread in a DM
- Navigate back to the parent report
- Verify the thread shows on the search page, with the same appearance as in the LHN.
- Click on the thread from the search page and verify you are navigated correctly
- Same for group chat
- Same for workspace chat
- Same for workspace room
- Same for a sub thread
The appearance of threads on a workspace chat doesn't look quite right in the LHN or the search, but we can fix that bug separately.

There's an inconsistency between the LHN and Search page for threads on messages workspace rooms. We probably want to match the LHN.

All the other cases look great.
|
Also there's a lint error. |
|
@neil-marcellini merging main fixed the matching headers and #19185 addresses the incorrect header for workspace non-room chats! Also, my bad for forgetting to update the test steps, I added yours and I appreciate you sending them! |
|
I think I experienced something unexpected. Here are the steps -
|
neil-marcellini
left a comment
There was a problem hiding this comment.
Thanks for the update, the issues from my last review were fixed as you noted. I think we're really close on this, one small thing.
I'm seeing the same problem that @thesahindia pointed out. If I create a new thread on a message but don't send a message in the thread, it shows in the LHN but not on the search page. The message I threaded is "My message I'm going to thread" sent in a DM with "Neil Chat".

|
looking into that bug |
|
@neil-marcellini @thesahindia that bug should be fixed by this PR which hides threads reports opened with no messages https://github.com/Expensify/App/pull/19375/files |
|
@grgia thanks for linking the PR to fix that bug. It looks like there's some merge conflicts, let me know when those are resolved in case a re-review is required. @thesahindia will probably want to review once more before we merge. |
7ca93e5
|
@neil-marcellini @thesahindia merged main, ready for final review |
| const title = ReportUtils.getReportName(report); | ||
| const chatRoomSubtitle = ReportUtils.getChatRoomSubtitle(report); | ||
|
|
||
| Array.prototype.push.apply(searchTerms, title.split(/[,\s]/)); |
There was a problem hiding this comment.
NAB A comment here would be nice to explain what we're doing with this regex
Reviewer Checklist
Screenshots/Videos |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.3.19-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.19-7 🚀
|






Details
Make threads appear in the search bar.
Fixed Issues
$ #19043
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android