-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix: console errors due to faulty prop type #24185
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: console errors due to faulty prop type #24185
Conversation
Reviewer Checklist
Screenshots/VideosWeb24185.Web.movMobile Web - ChromeScreen_Recording_20230807_222549_Chrome.mp4Mobile Web - Safari24185.mWeb.Safari.mp4Desktop24185.Desktop.moviOS24185.iOS.mp4AndroidScreen_Recording_20230807_222259_New.Expensify.mp4 |
mollfpr
left a 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.
LGTM 👍
neil-marcellini
left a 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.
Looks great, one suggestion.
src/libs/actions/Task.js
Outdated
| ...(title && {reportName: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD}), | ||
| ...(description && {description: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD}), | ||
| ...(assigneeAccountID && {managerID: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD}), |
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 we should set these all pending on creation. For example in the test videos the assignee field isn't grayed out because it was unset, but I think the whole task should show as grayed out because the entire thing is pending creation.
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.
Makes sense. I'll change this and will let you know.
|
As usual please DM me on NewDot when it's updated. |
neil-marcellini
left a 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.
Good to go!
|
✋ 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/neil-marcellini in version: 1.3.52-0 🚀
|
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.3.52-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.52-5 🚀
|
Details
This PR fixes the console errors due to a incorrect prop type added to the
Reportcomponent. It also addsofflinemode styles when creating a task.Fixed Issues
$ #23200
PROPOSAL: #23200 (comment)
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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-08-07.at.11.59.09.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-08-06.at.8.14.45.AM.mov
Mobile Web - Safari
Screen.Recording.2023-08-06.at.8.15.42.AM.mov
Desktop
Screen.Recording.2023-08-06.at.8.11.54.AM.mov
iOS
Screen.Recording.2023-08-06.at.8.16.59.AM.mov
Android
Screen.Recording.2023-08-06.at.8.17.37.AM.mov