Skip to content

CUIMS Clear 1.2.0: GPA calculator, Due tab, Last Bench theme, CI - #9

Open
Arshgill01 wants to merge 23 commits into
mainfrom
release/1.2.0
Open

Arshgill01 wants to merge 23 commits into
mainfrom
release/1.2.0

Conversation

@Arshgill01

Copy link
Copy Markdown
Owner

Exam-season release. Notes: store/RELEASE-NOTES-1.2.0.md.

What's in it

  • GPA calculator (Marks tab → GPA calculator): this semester's subjects with credits and expected grades → SGPA, the CGPA after it, and the SGPA a target CGPA needs. Earlier semesters from CUIMS's Result (read once when asked) or typed. No request while typing; kept in gpaCalc, cleared with the student's other reads.
  • Last Bench, a chalkboard signature theme for everyone (popup, CUIMS, LMS, toolbar icon); Kalam bundled for the popup only (SIL OFL).
  • The unmerged 1 Nov batch (feat/next-batch), rebased: grades from Result, Due tab (LMS deadlines + .ics), Since you last looked / Worth checking, toolbar badge, Medical Leave card, end-term needs, redesign detection, Firefox for Android declared.
  • CI (.github/workflows/ci.yml): unit + real-browser tests (Chrome and Firefox), sync drift, version parity, whitespace, web-ext lint. This PR is its first run.

Checked

  • npm test with real Chrome + Firefox: 439/439, none skipped.
  • web-ext lint 10.8.0: 0 errors, the same 10 warnings as 1.1.0. Sync drift none; both manifests 1.2.0.
  • Screenshots of the GPA pane and Last Bench in Chrome and Firefox; CUIMS Marks View and the LMS directory from fixtures.

Not checked against the live portal

The Result read and the LMS calendar service have not run from the extension against the real portal. Firefox for Android has not been tried on a device. No new permissions.

Arshgill01 and others added 23 commits November 30, 2026 22:55
…eb-ext lint on every PR

Tests only ran when someone remembered to; a Chrome build out of step with the
Firefox source or a lint error could reach a store package unnoticed.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…t as empty

Both worst breakages so far (My Time Table's grdMain, Duty Leave's External
tab) parsed to nothing and showed as no classes or no leave for days. Each
background page now checks for the ids its parser knows; a served page with
none of them is a page-shape failure: the last data is kept, the page retries
on its usual cadence, the popup names the page and what is out of date, and
Copy details / Copy diagnostics carry its skeleton (ids only, no values).

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Both read only what the extension already keeps; no CUIMS request.
- Since you last looked: new classes per subject and how they went, leave
  approved or refused, marks posted or changed, against a small baseline
  saved once the student has seen the latest reads. Got it clears it.
- Worth checking: marks in the class record that disagree with something
  else CUIMS said: absent on an approved leave's day (and time, for
  lecture-based leave), a class marked twice at one time, absent on a
  holiday or break in CU's calendar. Copy list gives a message for the
  teacher or mentor.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ip on today's classes

The icon counts the subjects under the chosen goal (or "!" when only the
overall rule is broken) and names them in its tooltip, from the last read:
no request, no timer, no new permission. A newer version's arrow still wins
while it shows. Settings > Attendance > Toolbar badge turns it off.
Today's chips mark a class still to come in a subject with no skip left.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
CUIMS asks for From and To and never says which days are worth it. The card
lists the recent runs of days absent in every marked class (joined across a
weekend or holiday), leaves out days already on leave, including ones filed
on that page a minute ago, and shows what approval does to the overall
figure. Picking one fills From and To; Proceed, the reason, the doctor's
registration number, the certificate and Save stay with the student. The
popup's Leave card links to it beside File duty leave.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…-term targets

- Result (Regular) is read once when the Marks tab first opens or on Read
  grades (paced like Marks View), and handed over free whenever the student
  opens it on CUIMS: the grades table and CGPA only, never name or photo.
- Grades card: CGPA, each semester's SGPA, and the SGPA this semester needs
  to keep or lift the CGPA, over last semester's credits. CU's letters
  (A+ 10 ... D 4) reproduce every SGPA and the CGPA of a real transcript.
- Each current-session subject says what the end-term exam needs for a
  total of 40/60/75/90, on CU's 40/60 (theory) or 60/40 (practical) split;
  hybrid courses get none. Totals, not grades: CU grades relatively.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Assignments due and quizzes closing across all courses, from Moodle's own
Timeline service (core_calendar_get_action_events_by_timesort), grouped
Overdue / Today / Tomorrow / This week / Later, each linking to its
activity. Read when Due opens (one dashboard page for the session key, one
service call, at most every two minutes) and for free whenever an LMS page
is open (the key handed over, at most every half hour). A signed-out LMS is
said, never signed into from the background. Never touches CUIMS. Add to
calendar exports what is still ahead with reminders a day and two hours
before.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…Skills get no theory split

Every subject's "How it adds up" now names its scheme (theory's internal 40,
practical's experiments 40, hybrid with no published split, skills at each
kind's maximum) and marks any kind CU's scheme does not name as counted at
its maximum. Aptitude and Soft Skills were typed as theory because of their
quizzes and assignments, which gave them a 40/60 end-term figure they do
not have. Every course in the real Marks View fixtures is pinned to a type.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
… tab

Most students use CUIMS on their phones, and Firefox for Android runs
extensions. The Firefox manifest declares gecko_android at desktop's
minimum (142); web-ext lint finds no Android-incompatible API beyond the
Chrome-only update check that was already guarded. Android opens the popup
as a whole tab, so it fills the screen instead of a 440x600 frame. Every
toolbar-icon call already checks that the API exists. Not yet tried on a
real device.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
popup.js had grown past 1,500 lines with this batch. Its two most
self-contained sections move out unchanged: popup-updates.js and
popup-themes.js load before popup.js and only declare, or bind handlers that
run on a click or storage change, so load order cannot bite. popup.js is
back to about 1,270 lines; the new features went into their own modules
(insights, deadlines, notices, badge) rather than into popup.js.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…iew notes

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
… it leaves, and what a target needs

Results come out after the end-terms, and students go looking for an SGPA
calculator elsewhere. The Marks tab now has two halves, Internals and GPA
calculator (remembered). The calculator starts from this session's subjects
(Marks View or the attendance report, whichever names more, minus courses the
Result already graded), takes credits and the expected grade on CU's letters,
and shows the SGPA, the CGPA after it, and the SGPA a typed target CGPA needs.
The semesters before come from CUIMS's Result when read, else are typed as
SGPA and credits. No request is made; what is typed stays in storage.local
(gpaCalc) and is cleared with the student's other reads.

Typing swaps only the figures, so the caret stays; repaint() now also keeps a
text field's caret when a background update redraws the view. The Grades card
moved into the calculator; Internals keeps a one-line CGPA that leads there.
The second theme that changes more than colour, and the first for every
student. The popup is a slate-green board in a dark wooden frame: chalk dust
and eraser smudges, titles and figures in Kalam (Indian Type Foundry, SIL
OFL, a 21 kB Latin subset per weight bundled in fonts/), boxes and
underlines drawn in chalk, meters hatched in, the tab you are on circled in
yellow chalk, and the hero cards on a freshly wiped patch. Body text stays
in the system sans. On CUIMS and the LMS: chalk dust, chalk-underlined
titles and chalk-boxed cards of our own; their text keeps its typeface, so
no font is made web-accessible. The toolbar icon is a framed slate.

The picker gets a New group, ahead of Light and Dark, with a slate preview.
Every chalk rule is scoped to its signature (a test checks each selector).
Checked by eye in Chrome and Firefox: popup, CUIMS Marks View, LMS courses.
Version 1.2.0 in both manifests; a What's new card for 1.2.0; AMO release
notes and reviewer notes (Result read, the LMS calendar service, Medical
Leave, the bundled Kalam font, gecko_android); the Chrome listing
(description, LMS host justification, reviewer steps); both privacy policies
(the GPA calculator's local storage, the bundled font); README features and
history; store/RELEASE-NOTES-1.2.0.md, including what still needs a check
against the live portal.

Also: gpa-view.js parses with DOMParser rather than innerHTML (web-ext lint
back to 1.1.0's 10 warnings), the OFL text loses a trailing space (CI's
whitespace check), and AGENTS.md notes the calculator and signature themes.
…ines verified

work/e2e/live-1.2.0.mjs signs in once in a disposable profile and lets the
popup's own paced reads run: attendance, Marks View, Result (each semester's
SGPA recomputed from its grades matched CUIMS's), the GPA pane, the LMS by
SSO and the Due tab (four deadlines from the Timeline service). My Time
Table's course table has code and title only, so it carries no credits.
Release notes record the run, and the page limit a second sign-in met.
…y Courses page

CUIMS states a course's credits only in its lecture plan, a PDF behind a
postback on My Courses and Lecture Plan (frmMyCourse.aspx). On that page:
- the course list (code, name, section, type) goes to the extension when
  the page opens, with no request;
- a card reads the plans not read yet when the student presses Read: the
  page's own Download PDF postback, one course every eight seconds,
  stopping at the first answer that is not a PDF (an empty-menu answer also
  holds the background's pages, via tabLimitedAt). Each row then shows its
  credits and L-T-P.
lecture-plan.js reads the Reporting Services PDF without a library: Flate
streams through DecompressionStream, the text operators for each cell's
place, and the cells under Credit, Course Category and Assessment Model.
Only credits, L-T-P, types and the assessment model are kept
(attendanceCourseInfo, a STUDENT_KEY, ingested by the daemon).

The calculator now starts from My Courses' list and fills any row with no
credits typed from its plan (dashed, titled), and links to My Courses while
some are missing. Live, 1 Dec: nine plans in 73 s, no refusal; the
calculator filled nine of ten courses' credits.

Also: the Medical Leave browser test clicks the card's current button, as
the card redraws on storage changes (a flake under full-suite load).
A buffer that a Response builds in a Firefox content script belongs to the
page, and slicing it is refused, so every plan failed to read and the card
blamed CUIMS. The reader now copies bytes into its own array. A PDF that
arrives but doesn't read as a plan no longer stops the run or claims Done:
the card names it and asks for its credits to be typed.
The plans on CUIMS's My Courses page list every assessment with its
maximum and weighted marks, named as Marks View names its rows. A course
whose plan adds up to 100 and weighs every posted row now counts each row at
its own weight, and its end-term figure uses the plan's internal/external
split (hybrids and aptitude get one). Otherwise CU's fixed shares, with a
note saying why.

The plan reader now joins a name wrapped onto a second line (it took the
digits in 'Worksheet/Projects 1' as marks) and follows the assessment table
onto the next page. Plans carry the reader's version, so ones read by the
older reader are offered again on My Courses.
…1.2.0 packages

Every lecture plan page has a header (LECTURE PLAN, Printed on) and a
footer (Page n of m, uploader and approver). A table running to the foot of
a page ended at the footer's gap, so 24CSP-304's plan stopped at eight
experiments (76 of 100) and was not used. The reader now leaves the header
and footer out; live, all nine plans add up to 100.
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.

1 participant