Skip to content

Phase 2: reports, value lists & help editors, class schedule & majors, deadline, polish - #89

Merged
miguelr-dev merged 4 commits into
mainfrom
phase-2-completion
Oct 28, 2026
Merged

miguelr-dev merged 4 commits into
mainfrom
phase-2-completion

Conversation

@miguelr-dev

Copy link
Copy Markdown
Owner

Summary

Completes the Phase 2 requirements that weren't built yet: the reports, user-maintained value lists and help, the class schedule and majors maintenance, and the registration deadline, plus polish. Four commits, one per group:

1 · Reports with on-screen preview and partial printing (GEN-18)

A shared report viewer opens from each screen. You pick the report and its options, see the whole report on screen with a SignMeUp header, "printed by" and date, and print all of it or only the sections you tick. Printing while it's open prints just the report.

  • GRADE: course, department and university statistics (registered, passing, average, A–F shares).
  • FCI: faculty list and course list with short descriptions, for one department or the whole university by department (replaces the "Department report" stub).
  • REG: student schedule, courses offered by a department, courses with seats available.
  • MAJOR: required courses for any major (all users), completed required courses, status against the approved outline, and outline change history.
  • ER: student record report with optional course detail, this-university-only or all courses, and GPA. The old print checkboxes on the record were decorative and never affected printing.
  • Framework: authorized-user report for the whole system or one subsystem, never with passwords.

2 · Value lists, validation parameters and help editors

Authorized Users now has Users | Value lists | Help screens tabs for administrators.

  • Parameters (GEN-11): maximum units per term and the grade list are maintained values that registration, grade entry and course history validate against.
  • Value lists (GEN-12): semesters, universities, buildings/rooms, position titles and job titles back their fields. Typing suggests values, and F4 or Alt+↓ opens the list to pick from. Database-fixed lists are shown read-only.
  • Help editor: edit each screen's help, or restore the built-in text. Admins get an "Edit this help" link inside Help.
  • Bug fix: the help text copied into the database when it was first seeded overrode every later improvement, so the live site still shows Oct 23 help. Built-in help is now the default, and only admin-edited topics (stamped with who and when) override it.

3 · Class schedule, majors and the term calendar

  • /schedule (REG): sections by department. The registrar adds and edits sections and checks for room and instructor clashes, qualified instructors, and seats at or above enrollment. Empty sections can be cancelled.
  • Term calendar: registration deadline and grade window. After the deadline students can't register (UI and server); the registrar and admins still can, and drops still work.
  • /majors (MAJOR): every major with units, required courses, electives and advisors. The registrar adds and edits them.

4 · Polish and fixes

  • Getting started checklist for students (record → outline → register), with every step linked so any screen can still be opened out of order (GEN-28/29). A new student can fill in a missing last name and date of birth.
  • A clear local-mode message instead of "Shared database returned 200.".
  • The menu highlights a subsystem on all of its pages.
  • Phone-appropriate help text and a branded loading screen.
  • /api/health + a daily Vercel cron keeps the free Supabase project from pausing.

⚠️ After merging

  1. Set the registration deadline. The live database still says registration closed Sep 26, 2026, so after this merge students will be blocked from registering until an admin opens Registration → Search courses → Class schedule and sets a new date.
  2. Add A+ back to the grade list if you want it. The live grade list came from the original sample data, which never had A+. Add it under Authorized Users → Value lists → Grades.
  3. The daily cron is created when Vercel deploys vercel.json (Hobby plans allow one daily cron).

Test plan

  • npm run typecheck, npm test (158 pass; new: reports, parameters, schedule and majors, help storage round trip, late-registration server check), npm run build
  • Local build with a stand-in signed-in admin:
    • All 30 report variants open with the right sections, and unticking a section removes it.
    • Value list save, validation and cancel; the F4 pick-list fills the field; a help edit shows in Help and restores.
    • Section add with room-clash rejection, section cancel, term dates; the deadline blocks a student (banner, disabled Register, reason shown) but not staff.
    • Adding a major with validation; the new-student checklist through to unblocking.
  • Every screen (including the new ones) at 320–1920px: nothing wider than the window, no overlapping cells.
  • Not tried against the live database: /api/health and the cron after deploy, and saving value lists, help, sections and majors through the shared API.

Closes #48, closes #49, closes #51, closes #53, closes #55, closes #56, closes #57, closes #58, closes #59, closes #60, closes #61, closes #68, closes #69, closes #70, closes #71, closes #73, closes #74, closes #80, closes #81, closes #82, closes #83, closes #84, closes #85, closes #86

🤖 Generated with Claude Code

miguelr-dev and others added 4 commits October 27, 2026 22:27
src/lib/reports.ts builds every report the requirements list from the shared
document:
- GRADE: course, department and university grade statistics (registered,
  passing, average, A-F shares).
- FCI: faculty and course lists with short descriptions, for one department
  or the whole university by department (FCI-07 to FCI-10).
- REG: student schedule, courses offered by a department, and courses with
  seats available by department or for all (REG-10 to REG-12).
- MAJOR: required courses for a major, completed required courses, status
  against the approved outline, and outline change history (MAJ-08 to
  MAJ-10).
- ER: the student record report with optional course detail, this
  university only or all universities, and overall GPA (ER-05 to ER-07).
- Framework: the authorized-user report for the whole system or one
  subsystem, never with passwords (FW-06).

A shared viewer (src/components/Reports.tsx) opens from each screen. It
picks the report and its options, shows the full report on screen before
printing (GEN-18) with SignMeUp header, printed-by and date, and prints all
of it or only the ticked sections. While the viewer is open, printing
prints the report alone. This replaces the Faculty & Courses "Department
report" stub, the decorative print options on the student record, and the
old user-report scope picker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Authorized Users now has three tabs for system administrators: Users, Value
lists and Help screens.

Value lists (GEN-11, GEN-12): src/lib/parameters.ts defines the
user-maintained parameters and lists. Registration's maximum units per term
and the grade list for grade entry and course history are now read from
there instead of being fixed in code. Lists for semesters, universities,
buildings, faculty positions and job titles back their entry fields. The
database-fixed lists (note categories, registration types, outline
statuses) are shown read-only. Edits are drafts with Save and Cancel and
restore, validated with a reason and a requirement, and logged.

Key sequence (GEN-12): in any field tied to a list, typing suggests values,
and F4 or Alt+Down opens the full list (filtered by what is typed) to pick
from with the arrow keys and Enter.

Help screens: administrators can edit each screen's title, summary and field
notes, or restore the built-in text. The Help window links admins to the
editor. Fixes a bug where the copy of the help text saved when the shared
database was first seeded overrode every later improvement: built-in help is
now the default, and only topics an administrator edited (stamped with who
and when) override it. Older unstamped rows are ignored.

The default grade list now includes A+.

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

Class schedule (REG-01, REG-02, REG-03, REG-13): a new /schedule screen lists
the term's sections by department with seats. The registrar and
administrators add and edit sections (course, schedule number, days, times,
room, instructor, seats) and cancel empty ones. src/lib/schedule.ts
validates each section: a 5-digit unique number, a catalog course, days in
weekday order, times within teaching hours, an instructor qualified for the
course, no room or instructor double-booking, and seats at or above current
enrollment.

Term calendar: the same screen sets the registration deadline and the
grade-entry window, which must close after it opens and open after
registration closes. After the deadline students can no longer register:
the dashboard explains it, Register buttons are disabled, the confirmation
shows the reason, and the server refuses a late student registration. The
registrar and administrators can still register students, and drops are
still allowed. The sample deadline moves to Dec 11, 2026.

Majors (MAJ-01, MAJ-02): a new /majors screen shows every major and minor
with units, required courses, electives and advisors. The registrar and
administrators add and edit them (src/lib/majors.ts validates IDs, units, a
course in only one list, and staff advisors). Search courses and Major
Outline link to the new screens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Getting started (GEN-28): until a student has a complete record, an
  approved outline and at least one registration, the dashboard shows those
  three steps in order with their status. Every step links to its screen,
  so any screen can still be opened out of sequence (GEN-29). The eligible
  list explains what to do when there is no approved outline yet.
- A new student can fill in a blank last name and date of birth along with
  contact details.
- Plain `npm run dev` now says the database API isn't running there and how
  to connect, instead of "Shared database returned 200."
- The menu highlights a subsystem on all of its pages (Registration on
  Search courses and Class schedule, not only the dashboard).
- On phones, help describes the help sheet instead of dragging windows.
- A branded loading screen with a spinner replaces the bare "Loading…".
- Names without a last name no longer leave a stray space.
- GET /api/health runs a trivial query, and a daily Vercel cron calls it so
  the free Supabase project is never idle long enough to be paused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@miguelr-dev miguelr-dev self-assigned this Oct 28, 2026
@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
signmeup Ready Ready Preview Oct 28, 2026 5:45am UTC

@miguelr-dev
miguelr-dev merged commit ebe7f70 into main Oct 28, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 73a1319d Deployed Oct 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant