Group chat stacked avatars are different in Search list and LHN#36403
Conversation
|
@mollfpr |
| onDismissError = () => {}, | ||
| rightHandSideComponent, | ||
| keyForList, | ||
| shouldUseOnySubscriptAvatar = true, |
There was a problem hiding this comment.
Typo
| shouldUseOnySubscriptAvatar = true, | |
| shouldUseOnlySubscriptAvatar = true, |
Could you give the case for this specific prop? I see that we pass false on the search page.
There was a problem hiding this comment.
Just so as not to change the display logic on other places where we use UserListItem
I added this parameter so that we display SubscriptAvatar or MultipleAvatars only on the Search screen
| showTooltip={showTooltip} | ||
| /> | ||
| <> | ||
| {item.shouldShowSubscript ?? shouldUseOnySubscriptAvatar ? ( |
There was a problem hiding this comment.
Could you explain more about this condition and give the example for the case?
There was a problem hiding this comment.
Oh )
Sorry )
It should be like this
shouldUseOnySubscriptAvatar || item.shouldShowSubscript
By default shouldUseOnySubscriptAvatar is true this means that we will display only SubscriptAvatar as before
But for Search this value is false, so depending on item.shouldShowSubscript we will show SubscriptAvatar or MultipleAvatars as on LHN or Header chat
There was a problem hiding this comment.
Can we not using shouldUseOnySubscriptAvatar? I don't see any scenario for the props to exist.
There was a problem hiding this comment.
I think we can)
I'm just afraid
So that this does not cause regression)
There was a problem hiding this comment.
I understand that. Let's see how it goes, and I'll help test it thoroughly.
There was a problem hiding this comment.
No problem )
Give me few minutes )
There was a problem hiding this comment.
Actually, I found only one place where we use UserListItem except Search
When we create request money and select participants
And everything looks good )
Reviewer Checklist
Screenshots/VideosAndroid: Native36403.Android.mp4Android: mWeb Chrome36403.mWeb-Chrome.mp4iOS: Native36403.iOS.mp4iOS: mWeb Safari36403.mWeb-Safari.mp4MacOS: Chrome / Safari36403.Web.mp4MacOS: Desktop36403.Desktop.mp4 |
|
✋ 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/MariaHCD in version: 1.4.43-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.43-20 🚀
|
Details
Group chat - Group chat stacked avatars are different in Search list and LHN
Fixed Issues
$ #36229
PROPOSAL: #36229 (comment)
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)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
Screen.Recording.2024-02-13.at.12.11.39.mov
Android: mWeb Chrome
Screen.Recording.2024-02-13.at.12.11.39.mov
iOS: Native
Screen.Recording.2024-02-13.at.12.13.54.mov
iOS: mWeb Safari
Screen.Recording.2024-02-13.at.12.13.35.mov
MacOS: Chrome / Safari
MacOS: Desktop