[CP Staging] Fix regression #23189#23240
Conversation
fedirjh
left a comment
There was a problem hiding this comment.
Code looks good , let one small comment.
Co-authored-by: Fedi Rajhi <fedirjh@gmail.com>
…pensify-app-fork into fix/23189-regression-of-21022
Screenshots/VideosWebWeb.mp4Mobile Web - ChromeChrome.mp4Mobile Web - SafariSafari.mp4DesktopDesktop.mp4iOSIOs.mp4AndroidAndroid.mp4 |
|
@hannojg We have a warning caused by this line when gsd mode is enabled,
|
Reviewer Checklist
|
|
@fedirjh I am double checking! |
|
Fixed it @fedirjh can you please double check? |
|
@hannojg We have a lint failure |
fedirjh
left a comment
There was a problem hiding this comment.
Code looks good and tests well, should be ready to merge once lint is fixed.
|
Ehm the lint failure is super weird, no clue, I think something went wrong on the CI system. Will ask @mountiny to restart it! |
|
Oh, it seemed to have been a failure, now fixed on |
| */ | ||
| function getWorkspaceIcon(report) { | ||
| const workspaceName = getPolicyName(report); | ||
| function getWorkspaceIcon(report, policy = undefined) { |
There was a problem hiding this comment.
I think policy = undefined has no meaning. We can safely remove the default value because default value is undefined in JS
There was a problem hiding this comment.
while its true, we found in other places that its more expressive. It conveys the meaning, that you don't have to set policy.
See similar cases here: https://github.com/Expensify/App/pull/23206/files#r1268753442
App/.github/libs/ActionUtils.js
Line 28 in 450573e
| currentUserPersonalDetails: personalDetailsPropType, | ||
|
|
||
| priorityMode: PropTypes.oneOf(_.values(CONST.OPTION_MODE)), | ||
| priorityMode: PropTypes.oneOf(_.values(CONST.PRIORITY_MODE)), |
There was a problem hiding this comment.
It was causing a warning, please check #23240 (comment)
There was a problem hiding this comment.
well, the onyx value we read is the priority mode, it has been wrong in the first place to check for OPTION_MODE, which is not what we are working with (we changed it to PRIORITY_MODE)
|
✋ 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/mountiny in version: 1.3.43-3 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.43-7 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.45-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|

Details
Fixed Issues
$ #23189
PROPOSAL: #23189 (comment)
Tests
Offline tests
QA Steps
n/a
PR 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
Screen.Recording.2023-07-20.at.10.35.23.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android