Skip to content

Conversation

@sirQuail
Copy link
Contributor

Test Modal preview

2025-10-27.13-00-08.mp4

-shows all test entries of a student
-result icon depend on the grade result
-does not fully implement the edit and delete buttons yet
-matches the server-side test interface
added formatter from helperfunction `formHelper.ts`
Prompts a modal for adding/editing tests as described in #219
Will be used in the `TestsComponent` that will be created next.
@HackYourFutures HackYourFutures temporarily deployed to dojo-frontend-testslist-foz3ws October 27, 2025 12:04 Inactive
@stasel stasel requested a review from Copilot October 27, 2025 12:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a modal component for adding and editing trainee test records, replacing the previous grade field with score throughout the Test interface.

Key Changes:

  • Renamed the grade field to score in the Test model
  • Created a new TestsList component to display test records with edit/delete actions
  • Implemented a TestDetailsModal component for creating and editing test entries with validation

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
client/src/models/Trainee.ts Renamed grade field to score in the Test interface
client/src/components/education/TestsList.tsx New component displaying a list of tests with result icons and action buttons
client/src/components/education/TestDetailsModal.tsx New modal component for adding/editing test records with form validation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@HackYourFutures HackYourFutures temporarily deployed to dojo-frontend-testslist-foz3ws October 27, 2025 13:25 Inactive
@HackYourFutures HackYourFutures temporarily deployed to dojo-frontend-testslist-foz3ws October 27, 2025 13:27 Inactive
@stasel stasel added the FE Frontend ticket label Oct 27, 2025
@stasel stasel added this to Dojo Oct 27, 2025
@stasel stasel removed this from Dojo Oct 27, 2025
@HackYourFutures HackYourFutures temporarily deployed to dojo-frontend-testslist-foz3ws October 27, 2025 14:37 Inactive
previously entered data from the last edited test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FE Frontend ticket

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants