Adding_Single_Player - MukeshKumar101/IPL_Auction GitHub Wiki
Problem statement:
To Add a single-player and add it to the database
Events:
- onDisplayError()
- onSupportedInputValue()
- onProvideName()
- onProvideDob()
- onProvideBasePrice()
- onProvideImageSrc()
- onSelectRole()
- onSelectBattingStyle()
- onSelectBowlingStyle()
- onSelectOrigin()
- onSelectCapped()
- onSubmit()
onDisplayError()
Jobs to be done: 1. Style the corresponding input-field with red border
onSupportedInputValue()
Jobs to be done: 1. Style the corresponding input-field with green border 2. Display a green checkbox to the right of the corresponding input-field 3. Set the provided value to the corresponding input-field
onProvideName()
Possibilities
* nameLengthIsNotWithinRange()
* Jobs to be done:
1. Display an error with message " Please provide the name within the range (5 to 45)"
* nameContainsUnsupportedCharacter()
* Jobs to be done:
1. Display an error message " Please provide supported characters "
2. Display a tooltip showing the supported characters
onProvideDob()
Possibilities
* unsupportedStringProvided()
* Jobs to be done:
1. Display a tooltip for the supported format for the date input-field
2. Make the date input-field with red border
* dateWithDifferentFormat()
* Jobs to be done:
1. Convert the date to the supported format(Ex: yyyy/mm/dd to dd/mm/yyyy)
2. set the date to the date input-field
onProvideBasePrice()
Possibilities
* priceNotWithinRange()
* Jobs to be done:
1. Display an error with message " Provide the price within the range (10L to 80L)"
* containsUnsupportedCharacter()
* Jobs to be done:
1. Display a tooltip with supported character
onProvideImageSrc()
Possibilities
* providedInvalidImageSrc()
* providedValidImageSrc()
* imageWithUnsupportedDimensions()
onSelectRole()
Possibilities
* selectedBatsman()
* selectedBowling()
* selectedAllRounder()
* selectedWicketKeeper()
onSelectBattingStyle()
Possibilities
* selectedRightHanded()
* selectedLeftHanded()
onSelectBowlingStyle()
Possibilities
* selectedRightArmFast()
* selectedRightArmFastMedium()
* selectedRightArmMedium()
* selectedRightArmMediumFast()
* selectedLeftArmMedium()
* selectedLeftArmMediumFast()
* selectedLeftArmFast()
* selectedLeftArmFastMedium()
* selectedRightArmOffBreak()
* selectedRightArmLegBreak()
* selectedLeftArmOffBreak()
* selectedLeftArmLegBreak()
* selectedLeftArmOrthodox()
* selectedLeftArmChinaMan()
* selectedRightArmOrthodox()
* selectedRightArmChinaMan()
onSelectOrigin()
Possibilities
onSelectCapped()
Possibilities
* selectedCapped()
* selectedUnCapped()
onSubmit()
Possibilities
* withoutInternet()
* Jobs to be done:
1. Display an error with message " No internet connection..Please check the connection "
* withInternet()
* Jobs to be done:
1. Make a post-api-call to store the players entry in the player's db
2. clear all the input fields