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.
Agree, that does not look good.
| 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 🙏 |
|
@grgia please check this when you get a chance 🙏 |
grgia
left a comment
There was a problem hiding this comment.
@dukenv0307 mostly LGTM, but could you please take a look at these comments before I merge?
| return ( | ||
| <View style={StyleSheet.flatten([styles.alignItemsCenter, style])}> | ||
| <View style={[styles.pRelative, avatarStyle]}> | ||
| <View style={styles.w100}> |
There was a problem hiding this comment.
Have you QA'd this change on both the Initial Settings Page and the Workspace Profile Page?
There was a problem hiding this comment.
Yes, we also reviewed and tested Initial Settings Page.
| fallbackIcon={Expensicons.FallbackWorkspaceAvatar} | ||
| style={[ | ||
| isSmallScreenWidth ? styles.mb1 : styles.mb3, | ||
| policy?.errorFields?.avatar ?? isSmallScreenWidth ? styles.mb1 : styles.mb3, |
There was a problem hiding this comment.
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.
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
errorsin here with the one belowOffline tests
QA Steps
errorsin here with the one belowPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop