Skip to content

Planner: sort by type, too-early courses in light red - #161

Merged
thodel merged 2 commits into
mainfrom
feat/planner-issues-sort
Nov 25, 2026
Merged

thodel merged 2 commits into
mainfrom
feat/planner-issues-sort

Conversation

@thodel

@thodel thodel commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Two improvements to the semester planner (/teaching/planning/):

  • Too early in light red: a course whose block the study plan places in a later semester is tinted light red in the course list, with "too early: planned for semester N"; its check in "My plan" also appears light red (sorted right after overlaps). Elective seminars and ProjM/PPP workshops may be taken earlier, so they remain blue notes, as the page notes say.
  • Sort by type: exercises (Introduction to DH, DH Lab; new kind exercise), the programming course, seminars, colloquia, lectures (incl. the online lecture), micro-credited workshops (ProjM first, then PPP, Alt-Soc now marked [PPP]), then meetings. Within a group the order of courses.js is kept; the type filter follows the same order.

Checked in the local preview for spring and autumn 2027.

🤖 Generated with Claude Code

The course list now shows exercises, seminars, colloquia, then the
micro-credited workshops (ProjM before PPP), then lectures and meetings.
The kind "course" is labelled "Exercise". Courses the study plan places
in a later semester are tinted light red in the list, and their check
gets its own light red level; elective seminars and workshops stay notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The course planner changes course-kind labels and ordering. It also marks courses scheduled before their required semester as early, while treating elective seminars and workshops as informational.

Changes

Course planning

Layer / File(s) Summary
Course-kind labels and ordering
teaching/planning/courses.js, teaching/planning/planning.js, teaching/planning/index.qmd
The course kind is documented as an alias for exercise and labeled “Exercise.” Course kinds receive a defined order, which the page’s filter and notes reflect.
Early-course checks and display
teaching/planning/planning.js, teaching/planning/index.qmd
Courses scheduled before their block’s required semester receive an early level and display label, except elective-block courses and workshops. The page adds matching styles and explanatory notes.

Change: Feature

Merge Risk: Minimal · up to f6ebe

The change relabels, reorders, and marks courses planned for a later semester on the teaching planner page. It affects only display, with a low chance of user-facing impact and no observed merge-blocking issues.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The author gave a clear, specific description of the two changes: light-red 'too early' marking with its exemptions, and sorting by course kind. It also names the preview check. The template has three… 1. Under 'Types of changes', check the box(es) that apply. The change adds a feature and changes existing sorting behaviour, so 'Enhancement' is likely the best fit. Check 'Breaking change' only if existing users are affected. 2. Under 'Che…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title names the two main changes: sorting the planner by course type, and marking too-early courses in light red. Both appear in the summary and the objectives. The title is concise, specific, and…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the two main changes: sorting the planner by course type, and marking too-early courses in light red. Both appear in the summary and the objectives. The title is concise, specific, and does not use vague terms.

Full details: Description check

Explanation

The author gave a clear, specific description of the two changes: light-red 'too early' marking with its exemptions, and sorting by course kind. It also names the preview check. The template has three required parts that the description does not fill. The 'Proposed changes' section is present and filled. The 'Types of changes' section has no box checked. The 'Checklist' section has no box checked, and the description does not say whether the documentation was updated, even though the PR changes the notes shown on the page (index.qmd). Those gaps make the description largely incomplete against the template, so the check fails.

Resolution

  1. Under 'Types of changes', check the box(es) that apply. The change adds a feature and changes existing sorting behaviour, so 'Enhancement' is likely the best fit. Check 'Breaking change' only if existing users are affected. 2. Under 'Checklist', check each box that applies. Mark 'My change requires a change to the documentation' and 'I have updated the documentation accordingly' if the page notes changed, which the summary indicates they did. 3. Confirm that you read the README. 4. Optionally link any related issue in 'Proposed changes'.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between fbe3306 and f6ebe81.

Files selected for processing: 3

  • teaching/planning/courses.js
  • teaching/planning/index.qmd
  • teaching/planning/planning.js

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

…ures after colloquia

New kind "exercise" for Introduction to DH and DH Lab; the programming
course keeps the label "Course" and follows them. Alt-Soc carries the
[PPP] prefix. Lectures and the online lecture now come after the
colloquia, before the workshops.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thodel
thodel merged commit 33eaf54 into main Nov 25, 2026
6 checks passed
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.

1 participant