-
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
fix: solve missing avatar workspace logo issue #21657
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 |
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.
@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! |
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.
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 |
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.
👍
@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) |
|
||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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
Tests
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)/** 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.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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android