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 Tutor is valid #259

Open samliangsk opened 3 years ago

samliangsk commented 3 years ago

User Story

As an admin when I see try to upload Tutor information to web in Tutor 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 Tutor page we would like to see a checker that can check if the elements in the input CSV is really for Tutors. So that Course or any other CSV will not get mistakenly uploaded to the Tutor 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: