Add specific error messages for additional details page#9495
Conversation
There was a problem hiding this comment.
Changes look good and also test well. One request, @thesahindia Is it possible to get a minDate on the date picker?
Also can you check mark every item on the list in GH body (even if they don't apply) to confirm that we've checked those.
| containerStyles={[styles.mt4]} | ||
| label={this.props.translate(this.fieldNameTranslationKeys.dob)} | ||
| onInputChange={val => this.clearErrorAndSetValue('dob', val)} | ||
| onInputChange={val => this.clearDateErrorsAndSetValue(val)} |
There was a problem hiding this comment.
I just tested this again and it shows Must be over 18
Oh NVM, you have added a future date that's why the error is different.
I get a different date format and unable to move forward.
Yeah we have a different format on native.
We have maximumDate which stops user from choosing future dates but it only works for Web/Desktop
Done. |
No I meant |
I am not really sure but I guess we can do that. Also can you please provide some context about how we wanna use it? |
|
You're right this could be out of the scope of this issue. I thought if its a prop available we can just set it. |
|
@AndrewGable Review done 🎀 👀 🎀 C+ reviewed
|
|
Nice work on filling out the checklists! |
|
✋ 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 @AndrewGable in version: 1.1.83-1 🚀
|
|
🚀 Deployed to production by @chiragsalian in version: 1.1.84-13 🚀
|
|
@mananjadhav @thesahindia do you think #10240 is a regression from this PR? |

Details
This PR will add specific error message for different fields at additional details page.
Fixed Issues
$ #9247
Tests
EnablePaymentsPageto render the additional details page(now you can just tap on your avatar and it will render the additional details page)App/src/libs/Navigation/AppNavigator/ModalStackNavigators.js
Line 179 in 2ec4a1c
Please enter a valid xyzMust be over 18 years old)PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly 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
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followed/** comment above it */displayNamepropertythisproperly 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)QA Steps
Please enter a valid xyzMust be over 18 years old)Screenshots
Web
Mobile Web
Desktop
iOS
Android