-
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: Workspace Avatar Error is impossible to dismiss #37874
Conversation
@shawnborton @jjcoffee One of you needs to 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] |
Reviewer Checklist
Screenshots/Videos |
This comment was marked as resolved.
This comment was marked as resolved.
@dukenv0307 Could we add some more detail here? e.g. like this comment. |
FWIW this general style seems okay to me though, but of course we need to address @jjcoffee's comments above |
@jjcoffee We can hard code an error by replacing
|
@dukenv0307 Can you add that to the test steps, so QA can test easily? 🙏 |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Yup, definitely agree with that. |
@jjcoffee please check again |
styles.alignItemsStart, | ||
styles.sectionMenuItemTopDescription, | ||
]} | ||
style={[styles.mb1, isSmallScreenWidth ? styles.mtn17 : styles.mtn20, styles.alignItemsStart, styles.sectionMenuItemTopDescription]} |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
Agree, that does not look good.
@@ -283,7 +283,7 @@ function AvatarWithImagePicker({ | |||
|
|||
return ( | |||
<View style={StyleSheet.flatten([styles.alignItemsCenter, style])}> | |||
<View style={[styles.pRelative, avatarStyle]}> | |||
<View style={errors && styles.w100}> |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
@jjcoffee i just update the code, please check again 🙏 |
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!
@grgia please check this when you get a chance 🙏 |
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.
@dukenv0307 mostly LGTM, but could you please take a look at these comments before I merge?
@@ -287,11 +287,12 @@ function AvatarWithImagePicker({ | |||
|
|||
return ( | |||
<View style={StyleSheet.flatten([styles.alignItemsCenter, style])}> | |||
<View style={[styles.pRelative, avatarStyle]}> | |||
<View style={styles.w100}> |
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.
Have you QA'd this change on both the Initial Settings Page and the Workspace Profile Page?
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.
Yes, we also reviewed and tested Initial Settings Page.
@@ -128,7 +128,7 @@ function WorkspaceProfilePage({policy, currencyList = {}, route}: WorkSpaceProfi | |||
type={CONST.ICON_TYPE_WORKSPACE} | |||
fallbackIcon={Expensicons.FallbackWorkspaceAvatar} | |||
style={[ | |||
isSmallScreenWidth ? styles.mb1 : styles.mb3, | |||
policy?.errorFields?.avatar ?? isSmallScreenWidth ? styles.mb1 : styles.mb3, |
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.
Should we only be evalutating isSmallScreenWidth ? styles.mb1 : styles.mb3
if there's an error? Before we always hit this check
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.
We should apply style mb1 if there's an error or the device is small screen width.
✋ 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/grgia in version: 1.4.56-0 🚀
|
@dukenv0307, where should we run the script? Could you explain a little bit more?
|
@kavimuru When testing in staging we can run this script in the console, and replace
|
@dukenv0307 thanks we will try. |
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.56-8 🚀
|
Details
Fixed Issues
$ #37819
PROPOSAL: #37819 (comment)
Tests
errors
in here with the one belowOffline tests
QA Steps
errors
in here with the one belowPR 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 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