utmgdsc / CourseOfAction

Course Manager that uses a script to convert you syllabus PDFs to website component with custom notification to keep you on track to get a 4.0
https://mcsapps.utm.utoronto.ca/coa
4 stars 4 forks source link

Allow students to choose a course that already exists in the database when creating a new course for their profile #13

Open huonggiangbui opened 2 years ago

huonggiangbui commented 2 years ago

Is your feature request related to a problem? Please describe. Now, a user can create whatever courses they want. But chances are some other uses may already create such course. Because of that, our database now stores many redundant courses created by different users.

Describe the solution you'd like When students create a new course (see UI below), we want to change the text input of the course code to a search bar so that students can browse all the courses available in the database. This should involve making an API call to get all courses available (see #9). If there is a course that students want, they can choose that course and get all information (e.g. assessments, offering) populated to their UI (see #11 for API call). If there is no course match, they can go ahead and create a new course.

After a student adds the course to their profile (regardless of whether the course is new or not), you should make an API call to update the student's profile (so the database can reflect what courses such student has in their list now)

Additional context This issue should be the extension of #9 and #11 (so you want to do this issue after figuring out the API call to get the information you want)

This is what the UI look like for now when student adds a course image