Componnet Review for file-uploader #599
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ontrack Component review
Team Member Name : Lovleen Kala
Component Name
File Uploader
List of Files in this Component:
file-uploader.component.html
file-uploader.component.scss
file-uploader.coffee
Component purpose
The File Uploader component provides a interface for uploading files within the OnTrack platform. It is designed to handle various file formats, validate file types, and trigger events for successful uploads. This component is crucial for managing group-related files, such as CSV imports for group sets and student data.
This component is being used in:
Group Set Editor: Used for bulk importing student data via CSV files.
Group Member List: Supports adding multiple members to a group by uploading a CSV file.
CSV Upload Modal: Provides the main interface for uploading CSV files within modals.
Portfolio Add Extra Files Step: Enables students to upload additional files as part of their portfolio submission process.
Portfolio Learning Summary Report Step: Allows instructors and students to upload supporting documents for learning summary reports.
Upload Submission Modal: Facilitates assignment and project file submissions by students.
Task ILO Alignment Editor: Supports uploading task-related documents for alignment with intended learning outcomes (ILOs).
Student File Upload Screen: Provides a direct file upload interface for students to add required documents for assessment.
Before Migration:

Component outcomes and interactions
The File Uploader component interacts with the Group Set Editor and Group Member List components, csv-upload-modal, portfolio-add-extra-files-step,portfolio-learning-summary-report-step, upload-submission-modal, task-ilo-alignment-edior. It takes in file objects and uploads them to a specified endpoint, triggering success and completion events. It can pass the uploaded file data to the parent component for further processing.
Expected Outcomes:
Successful file upload triggers an 'on-success' event.
Completion of the entire upload triggers an 'on-complete' event.
Error handling for unsupported file types or exceeding file size limits.
Data Objects:
File Object: Represents the uploaded file.
Upload Progress: Tracks the progress of the current upload.
Upload Status: Indicates the current state (uploading, completed, failed).
Component migration plan
I aim on following the migration guide in order to migrate this componnet. After completing the code I plan on testing all the components with the parent components to make sure that everything works.
Discussion with Client (Andrew Cain)
Finally you will need to take the feedback from Andrew and Discuss any addtional considertions he
may have with this component before writing any code.