Add errors object back to menu item, remove unused isPolicy#12460
Add errors object back to menu item, remove unused isPolicy#12460luacmartins merged 1 commit intomainfrom
Conversation
|
|
|
Also repeated the testing steps from #12117 to verify that this PR doesn't break it, and it works fine: |
|
Removing @Santhosh-Sellavel because the only way I know how to test this involves changing API layer code |
luacmartins
left a comment
There was a problem hiding this comment.
LGTM and tests well! Thanks for the fix!
|
|
Tested well! |
|
@luacmartins looks like this was merged without the Run e2e performance regression tests test passing. Please add a note explaining why this was done and remove the |
|
Tests passed. Removing |
Add errors object back to menu item, remove unused isPolicy (cherry picked from commit e275d4f)
…-12460 🍒 Cherry pick PR #12460 to staging 🍒
|
🚀 Cherry-picked to staging by @luacmartins in version: 1.2.23-8 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
We had a discussion on this to only show the error message on the policy details page.(https://expensify.slack.com/archives/C01GTK53T8Q/p1666955764560879) |
|
Cool, thanks @Justicea83 -- checking this one off. |
|
🚀 Deployed to production by @Julesssss in version: 1.2.23-9 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|









Details
I'm not sure why this key was removed, I'm not sure it was done intentionally, cc @Justicea83
Also, I removed the unused
isPolicyfield. Its only usage was removed here. You can confirm by running the following from theAppdirectoryag 'isPolicy(?!ExpenseChat)'That just finds all the occurrences of
isPolicynot followed byExpenseChat, and you can see there's only one such occurrence and it's unrelated:Fixed Issues
$ #12452
Tests
Go to here, comment out the function contents and replace it with:
Sign into an account on NewDot and make a workspace.
Go offline.
Go to
Settings->Workspaces-><your_workspace>->...->Delete Workspaceto delete the workspace.Verify that the workspace now appears with strikethrough. On web and desktop, hovering over the deleted workspace, your mouse style should change to disabled. On all platforms you should no longer be able to click into the workspace.
Go back to the home page.
Come back online.
Verify that there is a red dot over the settings menu icon.
Open the settings page.
Verify that there is a red dot over the Workspaces menu item
Click on the Workspaces menu item
Verify that there is a red dot over your individual workspace, and that there is an error message with an
xnext to it displaying beneath it.Click on the
xto dismiss the error message.Verify that you can now click into the workspace again.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesWaiting 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)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** 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)Screenshots
Web