Show the student's own data on the dashboard - #143
Merged
Merged
Conversation
Grade point average skipped every result carrying a grade code other than PS, NCN or WN, so recorded HD to N results never counted. A mark still decides the points; the code covers results without one. Plan courses now carry their latest published domestic fee, taken as listed. The tuition estimate sums those fees across the plan, splits them by study year and counts the priced courses per year. Academic terms also report their GPA and each marked course, for the per-semester charts.
pnpm db:seed:dashboard <empty|first-year|midway|final-year> replaces a local student's attempts and plan items with a known state, publishing sample courses with domestic fees only where a course year has no published version. Loopback databases only.
The dashboard showed sample cards in development and older real-data cards in production. Both now show one set of cards built from the plan: GPA by semester, grades, estimated tuition by year and the average mark per semester, then key dates, planning coverage by study year and the upcoming semester load. Empty cards keep a muted outline of their chart, and the loading screen pulses the same outlines. Degree progress uses two rings cut into semesters, completed outside and enrolled or planned inside, with a tooltip beside the hovered segment. The requirements header uses the same rings in a slimmer card. The course table lists courses in the order they are taken with coloured grade chips, status chips use tints in dark mode, and tooltips keep to one line. Charts draw in once the page has hydrated, so a slow start no longer runs the animations unseen.
|
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
The dashboard showed hard-coded sample cards in development (
NODE_ENV === "development") and older, unstyled real-data cards in production. Both now show one set of cards built from the student's plan.pnpm db:seed:dashboard <empty|first-year|midway|final-year>seeds a local student into a known state. It only runs against loopback databases.Verification
pnpm verifyNew unit tests cover grade-code GPA, per-semester marks and GPA, and the domestic-fee tuition estimate.
Deployment notes
None. The dashboard page now also loads the published university calendar (this year and next) for key dates. If the calendar fails to load, that card shows its empty state and the rest of the page still loads.