Describe the bugIssue 1: Uploading a CSV file with an invalid column name, such as "AppId" instead of "appId," results in two error messages being displayed.
Issue 2: When uploading a CSV file with one of the required columns (first name, last name, or appId) missing, the displayed error message is not user-friendly.
error message if first name column is missing : CSV file missing required fields Missing first name in CSV Missing first name in CSV
error message if last name column is missing : CSV file missing required fields Missing last name in CSV Missing last name in CSV
error message if appId column is missing : CSV file missing required fields Missing app ID in CSV Missing app ID in CSV
To Reproduce
Steps to reproduce the behavior:
Go to 'Upload csv '
Click on choose file.'
Click on submit button
See error
Expected behavior
Issue 1 : There should be only one error message "Invalid column name: AppId" hence the additional error message "Failed to upload a file" should be removed.
Screenshot attached:
Issue 2: The error message is not user friendly
Error message should be like :
The CSV file is missing a required field: first name.
The CSV file is missing a required field: last name.
The CSV file is missing a required field: appId.
Describe the bug Issue 1: Uploading a CSV file with an invalid column name, such as "AppId" instead of "appId," results in two error messages being displayed.
Issue 2: When uploading a CSV file with one of the required columns (first name, last name, or appId) missing, the displayed error message is not user-friendly. error message if first name column is missing : CSV file missing required fields Missing first name in CSV Missing first name in CSV error message if last name column is missing : CSV file missing required fields Missing last name in CSV Missing last name in CSV error message if appId column is missing : CSV file missing required fields Missing app ID in CSV Missing app ID in CSV
To Reproduce Steps to reproduce the behavior:
Expected behavior
Issue 1 : There should be only one error message "Invalid column name: AppId" hence the additional error message "Failed to upload a file" should be removed.
Screenshot attached:
Issue 2: The error message is not user friendly Error message should be like : The CSV file is missing a required field: first name. The CSV file is missing a required field: last name. The CSV file is missing a required field: appId.
Screenshots attached :