-
Notifications
You must be signed in to change notification settings - Fork 0
Add Tests modal for adding/editing tests. #257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
-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.
There was a problem hiding this 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
gradefield toscorein 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.
…b.com/HackYourFuture/dojo into frontend/TestsList-crud-functionality
previously entered data from the last edited test.
Test Modal preview
2025-10-27.13-00-08.mp4