-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[CP Staging] Fix regression #23189 #23240
[CP Staging] Fix regression #23189 #23240
Conversation
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.
Code looks good , let one small comment.
Co-authored-by: Fedi Rajhi <[email protected]>
…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 |
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.
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 |
* @returns {Object} | ||
*/ | ||
function getWorkspaceIcon(report) { | ||
const workspaceName = getPolicyName(report); | ||
function getWorkspaceIcon(report, policy = 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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
function getStringInput(name, options, defaultValue = undefined) { |
@@ -56,7 +56,7 @@ const propTypes = { | |||
|
|||
currentUserPersonalDetails: personalDetailsPropType, | |||
|
|||
priorityMode: PropTypes.oneOf(_.values(CONST.OPTION_MODE)), | |||
priorityMode: PropTypes.oneOf(_.values(CONST.PRIORITY_MODE)), |
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.
Why is this changed?
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.
It was causing a warning, please check #23240 (comment)
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.
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)
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.
Thanks!
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.
Lets Thanks!
✋ 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 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
Screen.Recording.2023-07-20.at.10.35.23.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android