-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 |
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 👍
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. |
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
Report
component. It also addsoffline
mode styles when creating a task.Fixed Issues
$ #23200
PROPOSAL: #23200 (comment)
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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-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