New Chat page list refactor#34356
Conversation
|
@rushatgabhane Please 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] |
There was a problem hiding this comment.
Bug: The checkbox doesn't work for users in contacts section.
- Start chat
- Input a value in search
- For users that are in
Contactssection, clickAdd to group
Expected: Checkbox is ticked
Actual: checkbox doesn't change its state.
Screen.Recording.2024-01-17.at.11.35.27.mov
|
@rushatgabhane thank for that. Looks like it need the same change as here #34562 |
Reviewer Checklist
Screenshots/VideosiOS: mWeb SafariScreen.Recording.2024-02-02.at.23.35.28.movMacOS: Chrome / SafariScreen.Recording.2024-03-12.at.03.33.18.mov |
|
@lukemorawski the same bug is present #34356 (review) Screen.Recording.2024-01-26.at.18.22.40.mov |
|
@rushatgabhane honestly cannot replicate that issue. But did some more cleaning up. new.chat.page.issue.mov |
|
@rushatgabhane kind bump |
|
Let's solve the conflicts please 🙏 |
|
@cristipaval @rushatgabhane resolved conflicts with
|
I think a separate PR would be best.
I think it's fine as you already did, because I'm not sure if the hook refactor would be always applicable where it is used. @rushatgabhane any thoughts? |
I think we should do it in this PR because the changes to ReferralCTA are already done in this PR. Now we just have to remove the |
i think we should refactor the hook and debounce it internally. I don't see any cons with always debouncing search. cc: @cristipaval @lukemorawski what do you think? |
|
@lukemorawski if both the changes are too big, feel free to close this PR and create seperate PRs. |
|
OK, so I think we could do it like that:
|
|
Sounds like a plan! |
4a16e71 to
06382db
Compare
|
@lukemorawski let us know if this is ready, thanks 🙇 |
|
@rushatgabhane it's ready. I'll just prepare a second PR with useSearchTermAndSearch refactoring, but that's a separate thing. |
|
@rushatgabhane could you please do the checklist for this one? |
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 1.4.51-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.51-3 🚀
|
|
new PR here #38610 |




Details
This PR refactors the NewChatPage to use new component.
A new param has been added to to allow it to display a component on the right hand side of each list item. This param allows to pass a react node or a function that will render a component.
Fixed Issues
$ #20354
PROPOSAL: this PR (no proposal)
Tests
Offline tests
QA Steps
stagingPR 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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
native.android.mov
Android: mWeb Chrome
web.android.mov
iOS: Native
native.ios.mov
iOS: mWeb Safari
web.ios.mov
MacOS: Chrome / Safari
web.desktop.mov
MacOS: Desktop
native.desktop.mov