Add SVG Support and Update Default Avatars for New Dot 2023#13216
Conversation
|
Update: holding while we finalize core branding fixes |
|
Planning to update these by early next week! |
…upport to attachmentView
|
Pushed an update, I still want to clean up the code and try and think of any edge cases that might break things, but so far working well with SVGs! |
|
Hey @shawnborton I just want to double-check on this sizing for avatar previews (300x300)
|
|
I think the preview size feels pretty good. I suppose we could bump it up to 400px so that it feels "full width" on mobile at least? What do you think? |
|
Updated again, thank you @mananjadhav ! |
Reviewer Checklist
Screenshots/Videos |
|
@grgia I've tried my best to cover all the places where we've got Avatars. This tests well but I just saw we've got Merge conflict. I can see it's only in one file Thank you so much for catering to all the feedback and we're almost at the finish line. @Beamanator @arosiclair if you folks can review this and we can merge today we won't end up resolving more conflicts later. |
|
Fixed merged conflict! @mananjadhav |
|
Merging so we don't get any more conflicts :D |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
|
Thanks for resolving the conflicts @grgia. I just did a basic test on main branch and it works well. Glad we merged before another conflict. |
|
🚀 Deployed to staging by https://github.com/Beamanator in version: 1.2.64-0 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
|
On Workspace Invite Member Page, images are not updated immediately for newly invited users while the user is offline. This happens because the workspace member invite page was not updated to remove the old Fallback image. Here is the regression which was missed during this refactor #14819 |


















Details
This PR adds our new default avatars as Local SVGs following the pattern of our workspace avatars.
Previously, the avatar URL from CloudFront was stored in the user's NVPs. In addition, we would hash the users email to get the default avatar source URL from CloudFront.
We will use this same general method, but now, we first check if the account requires a default avatar and if so, we get the local SVG for the user's default avatar and use that instead.
General flows:
Screen.Recording.2023-01-04.at.7.18.55.PM.mov
Old dot & New Dot upload/delete (note: old dot does not automatically render):
Screen.Recording.2023-01-04.at.7.38.26.PM.mov
New account flow:
Screen.Recording.2023-01-05.at.12.42.03.PM.mov
Fixed Issues
#12259 (1/2 - User Default Avatars)
Tests
Offline tests
Verify that no errors appear in the JS console
Verify New User Flow Avatars Match
Verify Avatar can be changed to a custom photo, and can be deleted
Verify Concierge Icon is correct for both old dot and new dot
Verify Avatar Previews work
Verify Chat Avatar matches in all places
Create an empty chat with a new user, verify that a new avatar is used.
Verify Attachment flows still work
Go offline and Upload a new user avatar
Verify Chat Avatar Works in Workspace Invite Flow
-[x] Verify that #focus mode looks correct
QA Steps
Verify that no errors appear in the JS console
Verify New User Flow Avatars Match
Verify Avatar can be changed to a custom photo, and can be deleted
Verify Concierge Icon is correct for both old dot and new dot
Verify Chat Avatar matches in all places
Verify Avatar Previews work
Create an empty chat with a new user, verify that a new avatar is used.
Verify Attachment flows still work
Go offline and Upload a new user avatar
Verify Chat Avatar Works in Workspace Invite Flow
-[ ] Verify that #focus mode looks correct
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
See description for videos.

Mobile Web - Chrome
Screen.Recording.2023-01-04.at.7.53.47.PM.mov
Mobile Web - Safari
Screen.Recording.2023-01-04.at.7.56.53.PM.mov
Desktop
iOS
Screen.Recording.2023-01-04.at.7.55.21.PM.mov
Android
Screen.Recording.2023-01-04.at.7.52.51.PM.mov