-
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
[HOLD Web-E#36008] Display avatars / avatar thumbnails correctly throughout App #14056
Conversation
@@ -476,7 +476,9 @@ function getIcons(report, personalDetails, policies, defaultIcon = null) { | |||
participantDetails.push([ | |||
login, | |||
lodashGet(personalDetails, [login, 'firstName'], ''), | |||
lodashGet(personalDetails, [login, 'avatar']) || getDefaultAvatar(login), | |||
lodashGet(personalDetails, [login, 'avatarThumbnail']) || |
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.
Not actually sure if we want this - Not sure if we ever get other people's avatar thumbnails in Onyx?
Interesting note: On refresh,
|
Holding on https://github.com/Expensify/Web-Expensify/pull/36008, where I'm fixing a few other avatar thumbnail things |
Yikes forgot about this, closing |
Details
Fixed Issues
$ #13555
Tests
Upload new avatar
Inspect the avatar showing in LHN, verify it's the avatar thumbnail URL
Delete avatar
Verify Onyx avatar & avatarThumbnail both point to the default avatar
Request money from someone
Verify the IOU Preview message shows your avatar thumbnail URL
Navigate to Profile page
Inspect the avatar showing in the top of the page, verify it's the avatar thumbnail URL
Open a chat with an account that has a custom avatar uploaded
Inspect the avatar (Using React dev tools -> Component -> Search for
MultipleAvatars
), verify it's the avatar thumbnail URLOffline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android