ucsb-cs156-s21 / proj-ucsb-cs-las

https://proj-ucsb-cs-las.herokuapp.com/
MIT License
2 stars 3 forks source link

Add checkers that can check the input CSV for Courses is valid #260

Open samliangsk opened 3 years ago

samliangsk commented 3 years ago

User Story

As an admin when I see try to upload Course information to web in Course page, I accidentally upload a incorrect file, and there are no checkers that can check whether the input is correct or incorrect. The whole table is messed up and I need to spend a lot of time trying to delete wrong elements in the table.

Discussion

On the Course page we would like to see a checker that can check if the elements in the input CSV is really for Courses. So that Course or any other CSV will not get mistakenly uploaded to the Course table.

Along with the checker, we would like to see a pop up notification telling the admins that they have uploaded a incorrect file, or even prompt them about what elements the file should contain.

Acceptance Criteria

Implementation Todos

Front end:

Back end:

Testing: