Skip to content

add registration planning - #263

Draft
Cattn wants to merge 5 commits into
expanded-shellfrom
registration
Draft

Cattn wants to merge 5 commits into
expanded-shellfrom
registration

Conversation

@Cattn

@Cattn Cattn commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

Adds a Registration mode to the panel, next to Calendar. It has three tabs.

  • Courses (/registration):
    • The courses your degree plan recommends for the term, plus the ones from earlier terms that you haven't taken.
    • "Build my schedule" asks six questions and finds schedules with the backend's schedule builder.
    • You can also add courses one at a time and pick sections and labs.
    • Elective slots list the backend's candidates. An Ethics slot shows only Ethics courses, and a full course says "Full".
  • Schedule (/registration/schedule): the builder's ranked results, then the week view of the chosen sections.
  • Review, on the Courses tab:
    • Checks the schedule with schedule_check and saves the plan for the term with PUT /api/user/registration_plans/:term_uid.
    • Review stays up while you switch tabs.
  • Progress (/registration/progress): credits, co-ops and finish term, the courses not taken when planned, the plan by term, the HSS card, and the minor's lists and where it fits.

The term buttons switch between the registering term and the other term that has sections. Each term keeps its own picks, and the Progress tab looks the same with either term selected.

Commits

The PR is meant to be read commit by commit:

  1. add registration state and api: types, response checks, API methods, and the RegistrationPlan state in src/lib/registration/.
  2. add registration courses, schedule and review: the (registration) route group, the Courses and Schedule tabs, the review page, and the Registration nav item.
  3. add registration progress: the Progress tab.
  4. add registration ui tests: one combined spec and the fake backend routes.

Backend

This needs the backend changes from WITCodingClub/calendar-backend#989 to #998 and #1008 to #1015 (degree progress details, the plan timeline and estimates, HSS details, minor lists and overlap, elective candidates, plan-aware prerequisites, saved plans, open seats, and the schedule builder).

How I tested

  • npm run check: 0 errors.
  • npm test: 134 passed.
  • npm run test:ui: 56 passed. The new tests/ui/registration.spec.ts covers:
    • the questions through to a schedule, a section change, review and save (with the PUT body), and restore
    • the Progress tab, including the same timeline with either term selected
    • a busy builder, zero results, an unpublished term, and a retry after each fetch error
    • no horizontal overflow at 360, 440 and 680px in light and dark

Types, response checks and API methods for degree progress, next term courses, saved plans, catalog sections, the schedule check and the schedule builder. RegistrationPlan holds per-term picks, loading, the builder, the schedule check, saving and drafts.
Registration is a new mode with its own route group. The Courses tab has the course list and the Build my schedule questions, the Schedule tab has the builder results and the week view, and the review page checks and saves the plan.
The Progress tab shows the program card, the courses not taken when planned, the plan by term, the HSS card and the minor.
@Cattn
Cattn added this pull request to stack #264 November 13, 2026 03:48
@Cattn Cattn linked an issue Nov 13, 2026 that may be closed by this pull request
The term buttons were the registering term and the current term, but the current term has already started. They are now the two terms after the current term, such as Spring and Summer during the fall.
@Cattn
Cattn marked this pull request as draft November 13, 2026 04:03
@Cattn Cattn mentioned this pull request Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

registration

1 participant