fix: change task share destination error message - #19879
Conversation
|
@madmax330 @aimane-chnaif One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Bump @aimane-chnaif! |
| const [assignee, setAssignee] = React.useState({}); | ||
| const [shareDestination, setShareDestination] = React.useState({}); | ||
| const [submitError, setSubmitError] = React.useState(false); | ||
| const [errorMessage, setErrorMessage] = React.useState(props.translate('newTaskPage.confirmError')); |
There was a problem hiding this comment.
| const [errorMessage, setErrorMessage] = React.useState(props.translate('newTaskPage.confirmError')); | |
| const [errorMessage, setErrorMessage] = React.useState(''); |
| @@ -1264,7 +1264,7 @@ export default { | |||
| markAsDone: 'Mark as done', | |||
| markAsIncomplete: 'Mark as incomplete', | |||
| pleaseEnterTaskAssignee: 'Please select an assignee', | |||
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
|
@allroundexperts 2 bugs on this video:
bug.mov |
|
@aimane-chnaif Do we want to fix the below in this PR?
|
Handled. |
|
@allroundexperts lint failing Updated code looks good, though we should still wait for confirmation on all error copies as I commented on GH. |
|
@allroundexperts let's just add periods to every sentence and then we are all good |
| </View> | ||
| <FormAlertWithSubmitButton | ||
| isAlertVisible={submitError} | ||
| isAlertVisible={!!errorMessage} |
There was a problem hiding this comment.
| isAlertVisible={!!errorMessage} | |
| isAlertVisible={!_.isEmpty(errorMessage)} |
This comment was marked as outdated.
This comment was marked as outdated.
|
@allroundexperts can you share example case on the issue and tag copy writer? |
|
now conflicts |
My bad. Looks like we are using period at a lot of places. I take my comment back! |
|
@allroundexperts please update Tests step to cover all cases with 3 different errors. This is sample test case: msafari.mov |
Updated @aimane-chnaif! |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
|
@allroundexperts please fix conflict again |
|
@madmax330 Friendly bump for the review! |
|
✋ 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/madmax330 in version: 1.3.26-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.26-4 🚀
|
Details
This PR fixes the incorrect error message that showed up once we tried to submit a new task.
Fixed Issues
$ #18669
PROPOSAL: #18669 (comment)
Tests
http://staging.new.expensify.com/new/taskConfirm Taskbutton and verify that an error appears asking for bothTitleandShare destination.Titleoption and enter it. Click onConfirm Taskbutton again and Verify that an error appears asking forShare destinationonly.Share somewhereoption and click theConfirm Taskbutton. Verify that an error appears asking toenter titleonly.Verify that an error appears asking to enter task share destination.
Offline tests
N/A
QA Steps
http://staging.new.expensify.com/new/taskConfirm Taskbutton and verify that an error appears asking for bothTitleandShare destination.Titleoption and enter it. Click onConfirm Taskbutton again and Verify that an error appears asking forShare destinationonly.Share somewhereoption and click theConfirm Taskbutton. Verify that an error appears asking toenter titleonly.Verify that an error appears asking to enter task share destination.
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
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android