Academic planning
Academic planning helps students turn module choices into a multi-year study plan. It places modules in academic years and semesters, checks the plan against module availability and academic requirements, and uses calendar data to keep term-aware behavior aligned with the academic year. The planner and module bank and academic calendar utilities pages describe the two main child areas.
Planning model
The planning model connects three kinds of information: a student's intended timeline, module facts, and term context. The planner stores where each module belongs and the module bank supplies names, units, offering terms, prerequisites, and exam data when available.
Study timeline
The study timeline covers a selected range from matriculation to graduation. Each module has a year, semester, and order within that semester. The plan also has special areas for exemptions, modules the student plans to take later, and optional iBLOCs taken before matriculation. These areas let the student record relevant choices without treating them as normal enrolled semesters. References: website/…/reducers.ts• L139-179, website/…/planner.ts• L14-38, website/…/PlannerSettings.tsx• L65-153
Module facts
The module bank acts as the shared source of module information for planning and other student tools. A compact module list supports search and term filtering. Detailed module records add the facts needed to show units and exams and to assess prerequisites. A custom record can supply a title or unit value when the normal source has no usable data or needs correction. References: website/…/moduleBank.ts• L20-36, website/…/moduleBank.ts• L23-27, website/…/reducers.ts• L159-168, website/…/PlannerModuleSelect.tsx• L82-99
Requirement checks
The planner turns module facts into guidance about plan quality. It can flag missing module data, modules placed in a term when they are not offered, duplicate modules, exam clashes in the current academic year, and unmet prerequisites. Prerequisite checks use modules already placed earlier in the plan and can account for the student's cohort and undergraduate or graduate schedule type. References: website/…/planner.ts• L43-121, website/…/planner.ts• L200-265, website/…/planner.ts• L192-272
Planning workflow
The planner presents the study timeline as year and semester groups. Students add modules by search or by entering module codes, move them between terms, remove them, and review unit totals and warnings as the plan changes.
The main planning flow links a selected module to data lookup and then to a semester-specific plan. This diagram shows how the system turns a student choice into planning feedback and an optional timetable action.
flowchart LR
A[Student selects module] --> B[Module bank lookup]
B --> C[Module placed in year and semester]
C --> D[Plan checks]
D --> E[Units and warnings]
C --> F[Optional add to timetable]
The current academic year's semester can be added to the timetable as a group. This keeps long-term planning separate from weekly lesson selection while giving the student a direct path from a plan to a usable schedule. Plans can also be imported, exported, or cleared so that a study outline can move between sessions or be rebuilt. References: website/…/PlannerContainer.tsx• L107-160, website/…/PlannerContainer.tsx• L204-315, website/…/PlannerSemester.tsx• L71-126, website/…/planner.ts• L38-113
Academic-calendar context
The academic calendar gives planning and date-aware features a common view of academic years and semester starts. It includes the normal semesters and Special Terms I and II, which are represented as semesters 3 and 4. Calendar helpers also decide which academic year supplies Special Term data during the period when the previous year's special term overlaps the new academic year.
The calendar context affects more than labels. It helps the application choose the correct semester data and prevents a new academic-year switch from making an active special term appear to belong to the wrong year. A missing semester start date produces no calendar answer, so callers must handle incomplete calendar coverage. References: packages/…/academic-calendar.json• L1-70, packages/…/index.js• L3-17, packages/…/index.js• L19-73, website/…/academic-calendar.ts• L1-13
Planning relationships
Academic planning is a coordination layer rather than a separate copy of academic data. The module bank supplies facts, the calendar supplies term meaning, and the planner combines both with student choices. The timetable remains a downstream view for modules the student is ready to schedule in a specific semester.
The /planner route is the user-facing entry point for this coordination flow. The planner reads shared module and timetable state, while the timetable keeps its own lesson choices and schedule view. This boundary allows a student to revise a future plan without changing a weekly schedule until the student chooses to add modules to it. References: website/…/Routes.tsx• L18-21, website/…/Routes.tsx• L27-41, website/…/PlannerSemester.tsx• L71-126, website/…/PlannerContainer.tsx• L321-342
Change checklist
When these files or sections are changed, remember to consider these:
- Changes to planner state shape must stay aligned across the planner schema, actions, reducer, selectors, and import or export behavior.
- Changes to module offering terms or prerequisite data must be checked against both module search filtering and planner conflict messages.
- Changes to Special Term or academic-year rules must be checked against archived module data and the active timetable's semester interpretation.
- Changes to the planner-to-timetable action must preserve the semester mapping so a plan does not add modules to the wrong schedule.
- Changes to the
/plannerroute or either child area should update the links from this page and any route documentation.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A planned module is absent from the module list and has no custom data | The planner cannot show reliable module facts and reports missing information | Add valid custom module data or restore the module source record before relying on units or checks |
| A module is placed in a semester that its data does not list | The plan shows a semester conflict even when the student intended a different offering term | Confirm the module's offered semesters and move it to a valid term |
| Cohort or schedule type is wrong, or prerequisite checking is disabled | Prerequisite guidance can be incomplete or misleading | Set the planner context correctly and treat disabled checks as a manual review point |
| Calendar coverage lacks a needed semester start | Date-based term selection cannot identify a calendar answer | Add the required academic-year entry before depending on Special Term or date-aware behavior |
Key files
| File | Why to read it |
|---|---|
| website/…/PlannerContainer.tsx | Shows the planner's user flow and its bridge to module lookup and the timetable. |
| website/…/planner.ts | Explains how the stored plan becomes semester groups with module facts and warnings. |
| website/…/planner.ts | Defines the shared meaning of special planner areas, prerequisites, units, and conflict display. |
| website/…/reducers.ts | Defines the high-level shape of planner state and custom module data. |
| website/…/moduleBank.ts | Shows how the module list, detailed records, and archive data support planning. |
| website/…/academic-calendar.ts | Provides the website-facing academic-calendar interface. |
| packages/…/index.js | Defines semester-start and Special Term academic-year decisions. |
| packages/…/academic-calendar.json | Provides the academic-year and semester start-date data used by the calendar helpers. |