Repository navigation
Phase 2: reports, value lists & help editors, class schedule & majors, deadline, polish - #89
Merged
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
2 · Value lists, validation parameters and help editors
Authorized Users now has Users | Value lists | Help screens tabs for administrators.
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./majors(MAJOR): every major with units, required courses, electives and advisors. The registrar adds and edits them.4 · Polish and fixes
/api/health+ a daily Vercel cron keeps the free Supabase project from pausing.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/api/healthand 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