fix: solve missing avatar workspace logo issue#21657
Conversation
|
@rushatgabhane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
Reviewer Checklist
Screenshots/Videos |
rushatgabhane
left a comment
There was a problem hiding this comment.
@developerdavi there is a border box for custom avatars. And it doesn't look nice. Could we do something about it?
|
Note that we require all contributors to upload screenshot for all platforms. Please make sure to do that when you get the time, thanks! |
In which platform did that happen?
The builds for iOS/Android do not have the workspace logo in the avatar, that's why I didn't include them, but I can provide. |
it's on web and happens on uploading any jpg
makes sense! but we still require it 😅 |
|
@rushatgabhane fixed border issue + updated PR with other platforms screenshots. Ps.: I could not run desktop (electron) by my side, could you help me or run by yours? |
|
thank you @rushatgabhane 🙌 |
|
@NikkiWines all yours! |
NikkiWines
left a comment
There was a problem hiding this comment.
Looks good, couple of minor comments and you need to run npm run prettier
|
@NikkiWines applied all recommendations. |
|
ps.: maybe should be good to have |
|
@NikkiWines looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
?? All tests were passing 🤨 Untitled.mov |
|
@NikkiWines yeah it's happening on all PRs. It's a bug with the bot cc @mountiny |
|
🚀 Deployed to staging by https://github.com/NikkiWines in version: 1.3.37-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.37-7 🚀
|
|
Just noticed there is a regression from this PR #22467 (comment) |
| : [StyleUtils.getAvatarStyle(props.size), styles.noBorderRadius]; | ||
|
|
||
| const iconStyle = props.imageStyles ? [StyleUtils.getAvatarStyle(props.size), styles.bgTransparent, ...props.imageStyles] : undefined; | ||
| const iconStyle = props.imageStyles && props.imageStyles.length ? [StyleUtils.getAvatarStyle(props.size), styles.bgTransparent, ...props.imageStyles] : undefined; |
There was a problem hiding this comment.
Previously, Avatar component used to apply this style by default to all View at line 107 but and similarly the imageStyles was applied to image at line 110. We migrated imageStyle properly but not the wrapper View style. Now, iconStyle will be undefined by default causing issues. as mentioned above.
Is there any issues if I revert the iconStyle to be same as before.
There was a problem hiding this comment.
I am waiting on this question to move forward on a PR. Looking forward to it. @rushatgabhane @developerdavi
There was a problem hiding this comment.
@parasharrajat feel free to revert. it should be fine








Details
Fixed Issues
$ #19905
PROPOSAL: #19905 (comment)
Tests
2.1. If you don't have a chat with the user, start one
Offline tests
None. The changes do not affect offline behavior.
QA Steps
Same as
TestsPR 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)/** 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.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android