-
Notifications
You must be signed in to change notification settings - Fork 8
feat:updated validation code and UI components related to upload #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| // Filter CMS Data | ||
| const filterCMSData = (searchText: string) => { | ||
| const filterCMSData = async (searchText: string) => { | ||
| const { all_cms = [] } = migrationData.legacyCMSData; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add ?.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| <div className="col-12 mt-2"> | ||
| </div> */} | ||
| <div className="col-12"> | ||
| {validateArray(cmsData) ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add validation for cmsData
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| <Line type="solid" /> | ||
| </div> | ||
| <div className="col-12 mt-2"> | ||
| </div> */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this commented code if not required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kept for future use case ( as per my understanding if we are showing only the card for cms which user has given in config of upload service, then search will not be useful)
| }; | ||
|
|
||
| updateNewMigrationData(newMigrationDataObj); | ||
| console.log(newMigrationData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove console.log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| <p className="summary-title">AWS Region: {fileDetails.awsData.awsRegion}</p> | ||
| <p className="summary-title">Bucket Name: {fileDetails.awsData.bucketName}</p> | ||
| <p className="summary-title">Bucket Key: {fileDetails.awsData.buketKey}</p> | ||
| </div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
** UI **
++ select cms will display only a card of cms which user has given in config of upload seervice
++ upload component will display config details(filepath, aws details, validation message)
++if validation is successful then proceed to destination cta will be enable
++if validation unsuccessful then cta will be disabled
** Upload**
++ integrated and refactored latest code
++ added eslint config
++ refactored api response (irrespective of validation success, it will pass config details in response)