-
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
Group chat stacked avatars are different in Search list and LHN #36403
Group chat stacked avatars are different in Search list and LHN #36403
Conversation
@mollfpr |
@@ -25,6 +25,7 @@ function BaseListItem<TItem extends User | RadioItem>({ | |||
onDismissError = () => {}, | |||
rightHandSideComponent, | |||
keyForList, | |||
shouldUseOnySubscriptAvatar = true, |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain more about this condition and give the example for the case?
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we not using shouldUseOnySubscriptAvatar
? I don't see any scenario for the props to exist.
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.
I think we can)
I'm just afraid
So that this does not cause regression)
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.
I understand that. Let's see how it goes, and I'll help test it thoroughly.
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.
No problem )
Give me few minutes )
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.
Done )
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.
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 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
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