347S24 / 347-final-project-campusq

347-final-project-campusq created by GitHub Classroom
MIT License
0 stars 0 forks source link

Retool backend #32

Closed wynn-ames closed 4 months ago

wynn-ames commented 4 months ago

shelsey i deleted your original wait.jsx, repurposed it slightly and used it as the code for the waitroom, but i put a copy of it commented out in the top of waitroom.jsx in case you need it for something else. I just repurposed it to be what the student sees. I added my own page for the instructor that displays a table. Also, the way I have done it, there are not seperate student and teacher accounts because canvas doesnt provide a simple way for us to tell if the person logging in has one of those roles, so everyone logging in is both a teacher and a student, but the login button will take them to the respective page so it works. I have updated the database as well so you will need to migrate. delete your cookies and canvas user account in admin before testing just to be safe and you should be good. right now, everything works accept the instructor editing questions still has to be hooked up to the api, which I will get done tomorrow.

As of now, it automatically creates an officehourssession and associates a waitlist with it when you first create an account, and keeps it when you sign back in. all you have to do is create your questions in the admin panel, and they will show up for students and the instructor on the instructor page as well as the student names and responses.