Migrate/unit date selector #588
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
Chelaka Yasodhana
Student ID: s224114763
Component Name
unit-dates-selector
Files in this Component
unit-dates-selector.coffee
unit-dates-selector.tpl.html
Component Purpose
• The unit-dates-selector component is a date selection tool for editing a unit's key details during the rollover process. It enables users to configure teaching periods, select start and end dates, and save the updated information for the unit.
Component Migration Plan
Migration Steps:
Analyze the Old component:
• Run the current program to see how it works and what important parts it has.
Remove the Old component:
• Remove the line that includes src/app/units/states/rollover/directives/unit-dates-selector from the program files.
• Remove link to component from the angular module.
Add component to an Existing File:
• Add the component to a TypeScript file that already handles routing. This helps keep everything in one place.
Remove the refernces:
• Remove the reference. This will mean that the component is no longer loaded by angular.js.
• Make sure this file is connected properly to work with the rest of the program.
Setup the new component
• Setup the new component in doubtfire-angular.module.ts by importing import { TaskDescriptionCardComponent } from './projects/states/dashboard/directives/task-dashboard/directives/task-description-card/task-description-card.component';
• Then add the component name to the list of declarations. Now the component will be available in Angular.
• Migrate the HTML, CoffeeScript, and SCSS.
• Fix any problems that come up during testing.
Test Everything:
• Check that the new setup works just like the old one by running the same tests.
• Fix any problems that come up during testing.