-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
New Chat page list refactor #34356
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The checkbox doesn't work for users in contacts section.
- Start chat
- Input a value in search
- For users that are in
Contacts
section, 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cristipaval LGTM! updated the checklist
🚀 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
staging
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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