gabrielshufelt / Real-Ratings-SOEN-341_Project_F24

0 stars 1 forks source link

Create evaluation form (backend and frontend) #61

Open gabrielshufelt opened 2 weeks ago

gabrielshufelt commented 2 weeks ago

Description:

Develop both the front-end and back-end for the peer evaluation form where students assess teammates based on cooperation, conceptual contribution, practical contribution, and work ethic (7-point scale). The form should also allow students to leave a general comment and prevent multiple submissions for the same teammate.

Frontend: Evaluation Form Interface

  1. Form Design:

    • Build a form to evaluate teammates on the four dimensions and include a general comment box.
    • Add a checkbox or dropdown to allow students to select one, many, or all teammates for evaluation (exclude already evaluated teammates).
  2. Dynamic Behavior:

    • Show evaluation fields dynamically for each selected teammate.
  3. Validation:

    • Ensure ratings are on a 7-point scale and the comment box is optional (with a character limit).
    • Prevent form submission until all required fields are filled out.
  4. Cancel Option:

    • Add a "Cancel" button that returns students to the dashboard without saving data.

Backend: Evaluation Submission Logic

  1. Database Logic:

    • Process and save ratings and comments for each teammate.
    • Ensure students can only evaluate a teammate once per project.
  2. Save and Confirm:

    • Save evaluations to the Evaluations table, log submission time, and redirect students to a confirmation page.
  3. Error Handling:

    • Handle errors such as invalid ratings or duplicate evaluations and provide feedback to the user.