Component Review - Create unit Modal
Student Name: Gaganjeet Singh
Section titled “Student Name: Gaganjeet Singh”Student ID: 220032936
Section titled “Student ID: 220032936”First select a component to review from the list below:
Component Name
Section titled “Component Name”****./src/app/admin/modals/create-unit-modal/create-unit-modal.coffee
File Name: create-unit-modal.coffee
Component purpose
Section titled “Component purpose”It is used to create a new unit
Component outcomes/interactions
Section titled “Component outcomes/interactions”It creates a new unit.

Currently, the modal had 2 text input fields unit code and unit name. In the new modal a 3rd dorp down field is to be added, teaching period.
So, in the updated modal the user provides the following:
- Unit Code
- Unit Name
- Teaching period
New design sketch: Existing UI components are to be used for the input fields and button etc.

Link to figma: here
Component migration Check list – What is needs to be checked for this component to work once migrated?
[ ] ability to collect details from the user
[ ] succeeds when data is valid
[ ] handles errors - duplicate unit code in the teaching period, or invalid dates
[ ] created unit is shown on success