Skip to content

feat(honors): Latin honors GWA counts only the required electives - #122

Merged
smmariquit merged 1 commit into
stagingfrom
feat/honors-electives
Oct 6, 2026
Merged

smmariquit merged 1 commit into
stagingfrom
feat/honors-electives

Conversation

@smmariquit

Copy link
Copy Markdown
Collaborator

Closes #121

The UPLB catalog (Graduation with Honors) counts only as many electives toward Latin honors as the program requires, taken in date order. GradeSim counted every passed course.

  • surplusElectives in requirements.js reuses fillRequirementSlots. It returns passed academic rows that fill no named course, GE, specialization or elective slot.
  • When there are any, the GWA card adds a "GWA for Latin honors" line that names each course it left out, and the honor badge follows that number. The main GWA does not change.
  • A program with no elective slots returns nothing, because its data cannot tell an extra course from a missing one.

Caveat. The source is the 2016-era general rules volume, which the OUR site still links, so confidence is medium. The catalog's shiftee priority order (graduating program first, then accepted electives from the old program) is simplified to date order. Because the card lists what it left out, a wrong call is visible and the user can fix it with "Leave out of GWA" or a substitution.

Checks

  • All 7 extension/*.test.js pass. New tests cover the two latest extras being dropped, no surplus when electives fit, and no guessing without elective slots.
  • Rendered a BSCS fixture with 7 extra electives. The GWA stayed at 1.3966, the honors GWA showed 1.4196 with the left-out list, and no page errors were logged.

https://claude.ai/code/session_01T3dKAgr7Yo2637teHP4vNU

The UPLB catalog counts only as many electives toward Latin honors as the
program requires, the earliest first. Extra passed courses that fill no
slot stay in the GWA but leave the honors GWA, which now drives the honor
badge. The GWA card names every course it left out, so a data gap is
visible instead of silent. Programs with no elective slots skip this.

Claude-Session: https://claude.ai/code/session_01T3dKAgr7Yo2637teHP4vNU
@smmariquit
smmariquit merged commit ce67a54 into staging Oct 6, 2026
2 checks passed
@smmariquit
smmariquit deleted the feat/honors-electives branch October 6, 2026 12:34
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.

Latin honors GWA should count only the required electives

1 participant