Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
b24c857
Update course icons and portal design
YoussefHanyy Nov 27, 2026
c912219
refactor: organize the course editor into tabs
wweater Nov 27, 2026
3cb4a13
Polish advisor and coordinator Portal workflows
AdamMagued Nov 27, 2026
8d8ee03
feat: polish student schedule swaps and shared notification feedback
YoussefHanyy Nov 27, 2026
c56991a
fix: emphasize swap deadlines and verify shared Home notifications
YoussefHanyy Nov 27, 2026
b3006f0
fix: prevent duplicate extra-hours submissions
wweater Nov 27, 2026
e3cab8d
Fix Calendar OAuth return and polish student schedule pages
YoussefHanyy Nov 27, 2026
4a5dbdf
Simplify connected Google Calendar actions
YoussefHanyy Nov 27, 2026
6735c8e
Merge calendar sync redesign into development
wweater Nov 27, 2026
1d44555
Refine Portal staff and student workflows
AdamMagued Nov 27, 2026
b4afc28
Restore Portal navigation and remove submission demo sign-in
AdamMagued Nov 27, 2026
0569c91
Complete standalone assessment seed and sign-in setup
AdamMagued Nov 27, 2026
f03d415
Reconcile main sign-in release with stricter assessment gate
AdamMagued Nov 27, 2026
628fa76
Document populated evaluation workflows
AdamMagued Nov 27, 2026
35919c7
Keep Portal navigation stable while home data loads
AdamMagued Nov 27, 2026
70a30f5
Fix administrator read-only advising overview
AdamMagued Nov 27, 2026
ecfe4b2
Enforce assessed scheduling and payment eligibility
AdamMagued Nov 27, 2026
abd83ea
Explain extra-hours payment eligibility and recovery
AdamMagued Nov 27, 2026
dcd2b1d
Merge main and remove quick sign-in on every host
AdamMagued Nov 27, 2026
3a7d63b
Use clear service errors in the Portal
AdamMagued Nov 27, 2026
7c2a6bb
Make the submission setup guide account-based
AdamMagued Nov 27, 2026
a1ecd1a
Give graduation planner tables room at their edges
AdamMagued Nov 27, 2026
bd1c049
Keep the student directory stable during repeated searches
AdamMagued Nov 27, 2026
5b87f0b
Disable shortcut provisioning in the submission defaults
AdamMagued Nov 27, 2026
cf5c8d0
Scope student directory recovery assertion to the page
AdamMagued Nov 27, 2026
12369e6
Restore outer gutters to terms and offerings tables
AdamMagued Nov 27, 2026
2888245
Record the submitted main baseline in development
AdamMagued Nov 27, 2026
00f4368
Clarify graduation planner requirements and term setup
AdamMagued Nov 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions apps/web/src/components/GraduationPlans.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { StudentIdentity } from "./CoordinatorRecords.jsx";
import OfferingCourseIcon from "./OfferingCourseIcon.jsx";
import PaperTossButton, { waitForPaperToss } from "./PaperTossButton.jsx";

const seasonList = new Intl.ListFormat("en", { type: "conjunction" });

function assignmentsFor(plan) {
return Object.fromEntries((plan?.termPlans ?? []).flatMap(({ term, courses }) =>
courses.map((course) => [course, term])));
Expand Down Expand Up @@ -145,6 +147,7 @@ export default function GraduationPlans({ student, token, onBack, backLabel }) {
exam.course === currentExamCourse?._id && ["pending", "approved"].includes(exam.status));
const canRequestExam = currentExamCourse && !examEligibility.message && !examAlreadyRequested;
const readOnly = Boolean(plan && plan.status !== "draft");
const { count: electiveCount, hours: electiveHours } = workspace?.electiveRequirement ?? {};

const visibleCourses = courses.filter((course) => `${course.code} ${course.name}`.toLowerCase().includes(courseSearch.trim().toLowerCase()));
return <div className="page-stack workspace-page graduation-planner-page">
Expand Down Expand Up @@ -190,10 +193,12 @@ export default function GraduationPlans({ student, token, onBack, backLabel }) {
</section>}
{editing && <section className="panel" aria-busy={busy}>
<div className="results-heading">
<h2>{readOnly ? "Saved plan" : plan ? "Edit private draft" : "New plan"}</h2>
<div className="planner-editor-heading">
<h2>{readOnly ? "Saved plan" : plan ? "Edit private draft" : "New plan"}</h2>
{!readOnly && <p className="helper-text">This draft stays private until you submit it to the coordinator.</p>}
</div>
<button className="outline-button" type="button" disabled={busy} onClick={() => setEditing(false)}>Close plan</button>
</div>
{!readOnly && <p className="helper-text">This plan is private until you submit it for coordinator review.</p>}
{plan?.responseNote && <p>Coordinator response: {plan.responseNote}</p>}
{readOnly ? (
<>
Expand All @@ -204,10 +209,15 @@ export default function GraduationPlans({ student, token, onBack, backLabel }) {
{plan.exitExamRequest && <p>This plan uses an approved exit exam.</p>}
</>
) : <>
<p>Choose at least {workspace.electiveRequirement.count} remaining electives totalling {workspace.electiveRequirement.hours} credit hours.</p>
{workspace.missingSeasons.length > 0 && <p className="feedback warning">
Upcoming terms still to be configured: {workspace.missingSeasons.join(", ")}.
</p>}
<div className="planner-editor-requirements">
<p>
Choose at least <strong>{electiveCount} remaining {electiveCount === 1 ? "elective" : "electives"}</strong>
{" "}for a minimum of <strong>{electiveHours} credit {electiveHours === 1 ? "hour" : "hours"}</strong>.
</p>
{workspace.missingSeasons.length > 0 && <p className="helper-text">
Term setup is pending for {seasonList.format(workspace.missingSeasons.map((season) => termLabel({ season })))}.
</p>}
</div>
{terms.length > 0 && <div className="table-scroll"><table>
<thead><tr><th>Term</th><th>Assigned hours</th><th>Credit limit</th></tr></thead>
<tbody>{terms.map((term) => {
Expand Down
14 changes: 12 additions & 2 deletions apps/web/src/portal-academic.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@
letter-spacing: normal;
}
.academic-services-embedded table td { padding: 18px 14px; border-bottom: 1px solid var(--line); }
.academic-services-embedded table:not(.catalogue-table) :is(th, td):first-child { padding-inline-start: 0; }
.academic-services-embedded table:not(.catalogue-table) :is(th, td):last-child { padding-inline-end: 0; }
.academic-services-embedded table:not(.catalogue-table):not(:where(.terms-table > table, .offering-register > table)) :is(th, td):first-child { padding-inline-start: 0; }
.academic-services-embedded table:not(.catalogue-table):not(:where(.terms-table > table, .offering-register > table)) :is(th, td):last-child { padding-inline-end: 0; }
.academic-services-embedded table td strong { font-weight: 500; }
.academic-services-embedded tbody tr:hover { background: transparent; }
.academic-services-embedded :is(.primary-button, .outline-button) {
Expand Down Expand Up @@ -1302,6 +1302,16 @@
.review-decision .graduation-response p, .graduation-planner-page .planner-exams p { margin:0; }
.planner-sections { display:grid; gap:28px; min-width:0; }
.planner-sections > section { min-width:0; }
.planner-editor-heading, .planner-editor-requirements { display:grid; gap:5px; }
.planner-editor-requirements {
margin-block-end:16px;
padding:10px 12px;
border-inline-start:2px solid var(--line);
background:color-mix(in srgb,var(--raised) 45%, transparent);
font-size:14px;
line-height:1.5;
}
.planner-editor-requirements p { margin:0; }
.academic-services-embedded .graduation-planner-page .table-scroll > table :is(th, td):first-child {
padding-inline-start: clamp(12px, 2vw, 16px);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/browser/portal.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ test("Req 6–10: student directory finds the matching profile and changes the a
await page.route(url => url.pathname === "/api/admin/students" && url.searchParams.get("search") === "invalid response",
route => route.fulfill({ contentType: "application/json", body: "null" }));
await search.fill("invalid response");
await expect(page.getByRole("alert")).toContainText("The student directory could not load.");
await expect(page.getByRole("main").getByRole("alert")).toContainText("The student directory could not load.");
await search.fill("28-90001");
await search.press("Enter");
await student.click();
Expand Down
Loading