fix: console errors due to faulty prop type#24185
fix: console errors due to faulty prop type#24185neil-marcellini merged 3 commits intoExpensify:mainfrom allroundexperts:fix-23200-followup
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 |
neil-marcellini
left a comment
There was a problem hiding this comment.
Looks great, one suggestion.
| ...(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.
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.
Makes sense. I'll change this and will let you know.
|
As usual please DM me on NewDot when it's updated. |
|
✋ 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