Campus tools
Campus tools help students make day-to-day study decisions with shared module, timetable, and campus context. They connect course planning to room availability, travel information, schedule preferences, and prerequisite relationships. Their results guide student choices but do not replace official NUS records, enrolment decisions, or live service data.
Decision support model
The tools turn a student’s current academic context and published campus data into practical views. Module data supplies courses and lessons. Campus data supplies venues, days, times, locations, and transport context.
Decision inputs
A module is a course identified by a module code. A lesson is one scheduled class period for that module. A venue is the room or place where a lesson takes place.
| Input | Decision it supports |
|---|---|
| Module and lesson data | Which classes can appear in a timetable |
| Lesson days, times, and venues | Whether a room is free and how practical a schedule is to attend |
| Student schedule preferences | Which timetable choices fit free days, time ranges, breaks, and fixed classes |
| Prerequisite relationships | Which earlier courses support a later course |
| Venue locations and shuttle data | Where a class is and how a student can move around campus |
References: website/…/OptimiserContent.tsx• L40-67 website/…/AvailabilitySearch.tsx• L19-34 website/…/constants.ts• L1-4
Tool relationships
Each tool answers a different question, but the results support one study-planning flow. A student can explore course requirements, select modules, find a suitable room, and compare a schedule that is practical to attend.
This diagram shows how module choices connect the supporting tools and how each tool returns a decision aid.
flowchart LR
A[Student module choices] --> B[Module and lesson data]
B --> C[Prerequisite exploration]
B --> D[Timetable optimisation]
B --> E[Venue and transport tools]
F[Campus location and shuttle data] --> D
F --> E
C --> A
D --> G[Shareable timetable]
E --> H[Room and travel decision]
The links between tools are practical rather than a single forced workflow. The optimiser uses lesson choices and student constraints to create a candidate schedule. Venue tools add room and travel context. The prerequisite explorer supports longer-term course planning.
References: website/…/OptimiserContent.tsx• L64-67 website/…/OptimiserContent.tsx• L135-177 website/…/AvailabilitySearch.tsx• L36-97 website/…/MpeContainer.tsx• L128-146
Supporting tools
The campus tool set has three user-facing areas. Each area supports a separate decision, so its output must be read in the context of its own data and limits.
Venue and transport tools
The venue and transport tools help a student answer where a class is, whether a room is available, and how nearby shuttle services are moving. Venue search uses a day, start time, and duration to describe the period that the student wants to check. It includes all days shown by the campus day list, including Sunday. See Venue and transport tools for the detailed view.
The search starts from a useful current-time window during class hours. The map then adds place context, while live shuttle times remain a separate on-demand part of the map experience.
References: website/…/AvailabilitySearch.tsx• L5-33 website/…/AvailabilitySearch.tsx• L49-97 website/…/AvailabilitySearch.test.tsx• L19-49
Timetable optimisation
The timetable optimiser searches for a schedule that fits a student’s stated preferences. It starts with the active semester’s modules and lesson choices, then sends constraints to a service that evaluates possible combinations. The result includes a shareable timetable link.
Students can choose free days, set earliest and latest class times, mark recorded lessons, pin class choices, choose a lunch window, and limit consecutive lesson hours. Weekend free-day options appear only when the selected lessons include those days. The form also reports conflicts before the request is sent. These preferences guide the result, but prioritised preferences are not guaranteed.
The optimiser can return a partial timetable when some lessons cannot fit the selected constraints. The interface keeps the assigned result and a default-link view for lessons that remain unassigned. See Timetable optimisation for the service boundary and result model. The wider schedule experience is described in Timetable experience.
References: website/…/OptimiserContent.tsx• L81-177 website/…/OptimiserForm.tsx• L44-81 website/…/OptimiserFreeDaySelect.tsx• L21-65 website/…/OptimiserFreeDaySelect.test.tsx• L28-81
Module prerequisite exploration
The module prerequisite explorer helps students understand course relationships before they build a study plan. The related Course Planning Exercise (CPEx) supports a fixed AY2026/2027 Semester 2 exercise with a limit of seven selected courses. Its course search lists only courses in the active CPEx round and links students to the NUS CPEx FAQ when a search has no match. The selection is intended to show course demand for planning. It does not check timetable clashes or prerequisites and does not guarantee course allocation.
Students can rank selected courses and state the degree requirement type for each one. Added courses cannot be selected again and can be removed from the selection. The exercise is separate from registration, so its result must not be treated as an enrolment decision. See Module prerequisite explorer for the detailed view.
References: website/…/constants.ts• L1-4 website/…/MpeContainer.tsx• L119-170 website/…/ModuleForm.tsx• L46-110 website/…/ModuleForm.tsx• L177-233 website/…/ModulesSelect.tsx• L119-212 website/…/ModulesSelect.test.tsx• L66-133
Tool entry points
The application exposes the venue and optimisation tools as separate routes. Module planning and prerequisite exploration is reached through course-related views and the Course Planning Exercise flow rather than through the venue or optimiser route.
Route entry points
| Area | User entry point | Primary result |
|---|---|---|
| Venue and transport | /venues | Searchable room availability, maps, and shuttle context |
| Timetable optimisation | /optimiser | A candidate timetable link based on lesson data and preferences |
| Module planning and prerequisite exploration | Course and MPE views | Course relationships or a ranked course-demand submission |
The route names and shared links form part of the product’s navigation contract. Changes to an entry point can break links from timetable, course, or venue views.
References: website/…/OptimiserContent.tsx• L179-217 website/…/AvailabilitySearch.tsx• L36-100 website/…/MpeContainer.tsx• L119-146
Decision boundaries
These tools support informed choices, but their outputs depend on published data, current settings, and external services. A generated schedule is a candidate, a room search is a time-window aid, and course-planning data is for demand planning rather than allocation.
Data trust boundaries
Venue availability and lesson choices depend on the selected academic data. Optimisation quality depends on the available lesson and venue information. Shuttle arrival times depend on a live external service and can fail while the map remains useful. Course-planning status depends on the active exercise dates and configured academic year and semester. Students must check official course and registration information before making a final decision.
References: website/…/AvailabilitySearch.tsx• L19-34 website/…/OptimiserContent.tsx• L140-177 website/…/MpeContainer.tsx• L77-115 website/…/MpeContainer.tsx• L128-170
Change checklist
When these files or sections are changed, remember to consider these:
- Changes to lesson days or available weekend lessons must stay aligned between optimiser options, free-day choices, conflict messages, and the request sent to the service.
- Changes to venue search day, start-time, or duration rules must preserve the day-index contract and the valid class-hour range used by venue results.
- Changes to the optimiser form must preserve the difference between hard conflicts and preferences that are only prioritised.
- Changes to optimiser result completeness must preserve the distinction between assigned lessons and the default view for unassigned lessons in shareable links.
- Changes to the Course Planning Exercise academic year, semester, or course limit must stay aligned between its status text, course filter, selection count, and submission data.
- Changes to CPEx search behavior must keep the active-round course filter, added-course state, removal action, and FAQ guidance consistent across desktop and mobile views.
- Changes to venue, timetable, or course-planning routes must be checked against links from the timetable and course views.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A selected lesson is removed from the current timetable | Stale optimiser lesson choices or pins can remain in the form | Drop choices and pins that no longer match available lessons |
| Free-day or time constraints conflict with lesson choices | The optimiser may return unassigned lessons or reject the request | Show conflict information before submission and expose unassigned results |
| A venue search uses an invalid day or time window | The room result does not match the student’s intended period | Keep day values aligned with the campus day list and class-hour bounds |
| Live transport data is unavailable | A stop cannot show current arrival information | Keep the map usable and show the stop-level error state |
| Course Planning Exercise data is outside its configured round | Students may submit a stale or misleading course-demand choice | Show the exercise status and keep the academic year, semester, and end dates aligned |
| A CPEx search includes a course outside the active round | Students may select a course that is not part of the current demand exercise | Filter results to the current round and explain when no course matches |
| Course-planning selections are treated as registration choices | A student may expect allocation or prerequisite validation that the exercise does not provide | State that the exercise is for planning and has no clash, prerequisite, or allocation guarantee |
Key files
| File | Why to read it |
|---|---|
| website/…/OptimiserContent.tsx | Shows how timetable state and student constraints become an optimisation request and result. |
| website/…/OptimiserForm.tsx | Shows the user-facing groups of optimiser constraints and conflict feedback. |
| website/…/OptimiserFreeDaySelect.tsx | Shows how available lesson days control the free-day choices. |
| website/…/AvailabilitySearch.tsx | Shows the venue availability question and its day, time, and duration inputs. |
| website/…/MpeContainer.tsx | Shows the Course Planning Exercise purpose, timing, status, and planning limits. |
| website/…/ModuleForm.tsx | Shows how students select, rank, and describe courses for the exercise. |
| website/…/ModulesSelect.tsx | Shows how students search the active CPEx course list and manage selected courses. |
| website/…/constants.ts | Defines the active exercise period and course-selection limit. |
| website/…/OptimiserFreeDaySelect.test.tsx | Captures the expected weekday and weekend free-day behavior. |
| website/…/AvailabilitySearch.test.tsx | Captures the default time-window behavior and Sunday availability. |
| website/…/ModulesSelect.test.tsx | Captures course search, selected-course state, responsive entry, and no-result guidance. |