marcusgeorgievski / prj-team-1

Student management system to track assessments and organize notes
https://prj-frontend.vercel.app
3 stars 0 forks source link

As a user, I want to be able to see my class resources from a single page so I can access and find them in an organized manner #70

Closed marcusgeorgievski closed 3 weeks ago

marcusgeorgievski commented 1 month ago

This feature will allow users to find assessments and notes on the class page they are assigned to. The creation of the class page is highly important for user experience. Since assessments are the key feature of our platform, the class page will first display assessments. The user can toggle between notes and assessments "page" will be displayed based on a search query such as ?tab=assessments, ?tab=notes. The classes can also be edited or deleted from this page by a dropdown menu in the top right.

Acceptance Criteria

Testing Criteria

marcusgeorgievski commented 3 weeks ago

This page is complete. For now, it can be access through a slug by classId like so /classes/[classId]. In the future, we will change it to the class name which will require more steps.

  1. Make a composite PK on classes table with userId and name
  2. Write api route to get one class based on those two fields
  3. Fetch on class page (temporarily now, gets all user classes then matches class id)

Additionally, user can switch between assessments and notes with buttons which will set the search param ?tab=assessment or ?tab=notes as per the initial specs

Awaiting assessment and note features to start rendering resources on this page