Skip to content

OnTrack Component Review

Team Member

Matt Kinnia

Component

teaching-period-breaks

Relevant files:

  • teaching-period-breaks.coffee
  • teaching-period-breaks.tpl.html

Component Purpose

The purpose of the component is to display the breaks that have been registered against a teaching period. It also allows the user to sort the list by different criteria.

teaching-period-breaks

Component Outcomes and Interactions

The expected outcome of the component is to provide a user-friendly interface for managing breaks registered against a teaching period, allowing the user to quickly find and view information about specific breaks.

Interaction occurs with the user through filtering and pagination controls. A button is clickable which invokes the CreateBreakModal (which is out of scope for this review).

The component takes in a teachingPeriod object where its properties are used to display information in the user interface.

Component Migration Plan

The migration plan is to review similar tabular based components that have already been migrated to TypeScript and Material UI.

For example, the unit-students-editor component. Based on this review, migrate the component in such a way that is in line with the previous works to maintain consistency.

unit-students-editor

unit-students-editor

Component Post-Migration

The work required to migrate the component is now complete and the migrated component is shown below.

teaching-period-breaks-migrated