ilo-alignment-modal-component review #589
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.
Description
This is a Component review of frontend migration on OnTrack.
Ontrack Component Review
Team Member Name
Disuru Rathnayake
Student ID: s223987245
Component Name
Task-ilo-alignment-modal
Files in this Component
task-ilo-alignment-modal.coffee
task-ilo-alignment-modal.tpl.html
Component Purpose
This component is designed to manage the alignment of tasks or activities with specific learning outcomes. Users can select a rating to indicate how strongly a task contributes to a given outcome. Upon selection, a popup allows users to edit the rating, provide a rationale, or delete the alignment if it's no longer relevant.
Learning Outcomes -> Outcome Alignment

Open Modal
Component Outcomes and Interactions
Expected Outcome:
When a user clicks a rating cell for a task–outcome combination, the popup component is triggered.
The popup displays the current rating and rationale (if available).
Users can:
Edit the rating value.
Add or update the rationale.
Delete the outcome alignment entirely.
Interactions:
Inputs:
Current rating: The numeric value passed to the popup for display and editing.
Existing rationale : Pre-filled text for the user to edit or provide a new rationale.
Save action: Triggered when a user confirms the rating/rationale.
Delete action: Triggered when a user clicked the delete button.
Outputs:
Outputs:
Updated rating: The modified rating value is returned to the parent component for updating the interface.
Updated rationale: The edited or newly added rationale is saved and displayed in the relevant task–outcome cell.
Deleted outcome alignment: When the delete button is clicked, the popup triggers the removal of the rating and rationale from the corresponding task–outcome pair in the main interface.
Popup closure: After saving or deleting, the popup closes automatically to return the user to the main view.
Component Migration Plan
Migration Steps:
Create new files:
task-ilo-alignment-modal.component.ts
task-ilo-alignment-modal.component.html
Import and declare the component in doubtfire-angular.module.ts.
In doubtfire-angularjs.module.ts, downgrade the Angular component so it can be used by AngularJS.
• Check that the new setup works just like the old one by running the same tests.
• Fix any problems that come up during testing.
Component Review Checklist