-
Notifications
You must be signed in to change notification settings - Fork 3k
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
chore: change size of avatar to 100x100 for react action item created #49555
chore: change size of avatar to 100x100 for react action item created #49555
Conversation
@dubielzyk-expensify @shawnborton I have added multiple screenshots for macos chrome. Also I have added new style (property) that didn't exist for XLARGE size.
Also we used to divide width by 3 to get overlap between two avatars, for XLARGE it was't looking good so I made it 4. Please have a look and let me know if that's okay |
Let's wait for @Expensify/design to review first. |
I think the screenshots are looking good. Will let @dubielzyk-expensify weigh in too but I think I like the |
Yeah the 4px above looks good. Can you answer the inline code question? Cause it looks like there was some logic when there's more than 3 avatars? I'm not sure if we have that anymore given groups use a group avatar. |
As far as I know we'll only have a max of two avatars up there now. |
If so, then this looks good to me 👍 |
@BhuvaneshPatil Can you complete remain PR checklist please? |
@eh2077 Checklist is completed and all checks are passing |
Reviewer Checklist
Screenshots/Videos |
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 and tested well
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.
Approving the visual end
@@ -77,7 +77,8 @@ function ReportActionItemCreated({report, personalDetails, policy, reportID}: Re | |||
> | |||
<MultipleAvatars | |||
icons={icons} | |||
size={isLargeScreenWidth || (icons && icons.length < 3) ? CONST.AVATAR_SIZE.LARGE : CONST.AVATAR_SIZE.MEDIUM} |
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.
Interesting. What does this mean? If there are more than 3 avatars, then it'll make them smaller?
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.
@dubielzyk-expensify Oh yes, this is what we did previously. This PR will set size={CONST.AVATAR_SIZE.XLARGE}
for all cases. I think it'll be aligned with your comment here #49435 (comment)
@puneetlath ^^ |
✋ 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/puneetlath in version: 9.0.46-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.46-5 🚀
|
Details
We are changing the size of avatar that is displayed when chat starts, or top of the chat
Fixed Issues
$ #49435
PROPOSAL: #49435 (comment)
Tests
Offline tests
Same as above
QA Steps
same as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop