Naalya Handbook
School featuresNotifications

Where a notification opens

Where a Hub bell click goes for each notification type, and who receives each notice.

Channels per type are on Channels. This page covers where a bell click goes and who receives each notice. Read in the code; no notification was sent.

A bell click gets a route only from notificationLink in the Hub; any stored URL is ignored. When a branch needs an id it doesn't have, or the type has no branch, the function returns null: the row still shows in the bell but clicking it goes nowhere.

Destinations

TypesOpensMissing data
SCHEME_GROUP_INVITEStaff schemes of work for campusId, label View invitationNo campus id
CLASS_TEACHER_ASSIGNEDThat class, label Open classNo campus id or no class id
RECORD_OF_WORK_APPROVED, RECORD_OF_WORK_RETURNEDThat record, label Open recordNo campus id or no record id
PAYMENT_AWAITING_APPROVALThat bursary account, label Review paymentNo campus id or no account user id
SCHOOL_PAY_UNMATCHEDThat campus SchoolPay inbox, label Open inboxNo campus id
TIMETABLE_RELEASED, TIMETABLE_CHANGEDThat campus timetable, label Open timetableNo campus id
TERM_REPORTS_RELEASED/guardian/hub, label View gradesNever null. Students are sent there too
YEAR_ENROLMENT_OPENED, GUARDIAN_WELCOME/guardian/hubUnused: these types aren't sent in-app, so no bell row exists
Five library typesStudents: /student/library. Staff: the campus library. Label Collect your book (hold ready) or Open libraryA guardian, or staff with no campus id
NOTICE_BOARD_PUBLISHEDStudents: /student/notice-board. Everyone else, staff included: /guardian/notice-board. Both open ?notice={noticeId}. Label Read noticeNo notice id

Every other type returns null: scheme and lesson-plan approval, both academic-report types, SCHOOL_REPORT_READY (despite carrying campusId), admissions, enquiry replies, and the fee and payment types other than the two bursary rows above.

Who is told

In every case below a failed notice is logged and does not undo the write that triggered it, unless noted.

FeatureRecipientsSkipped whenCode
Record of work returned or approvedThe submitter (forceApprove: the open revision's submitter, else the creator). The return carries reasonNo school, no user id, or the recipient is the person actingrecord-of-work-approval.service.ts
Ledger notices: charges raised, payment reversed, charge adjusted, due and overdue remindersThe account holder; for a student, their verified guardians if anyA single charge with a resourceId sends no CHARGES_RAISED. Admission-fee reminders go to the account user onlyledger-notice.notifier.ts
Payment failed, rejected or awaiting verificationThe payerledger-notice.notifier.ts
Payment awaiting approvalThe payer, plus staff who can approve or manage the ledger on that campusThe recorder is left out; no campus means no staff noticeledger-notice.notifier.ts
Unmatched SchoolPay paymentStaff who can create or manage the ledgerNo such staffledger-notice.notifier.ts
Payment receivedThe payerPaymentReceivedNotifier
Library hold ready or lapsed, renewal, due soon, overdueThe borrowerA reservation that is not promoted. The sweep uses commit, which throws so it retrieslibrary-notifier.service.ts
Scheme group inviteTeachers of the subject on each invited stream, one notice per streamNo school or no user id, per streamscheme-group.service.ts
Scheme returnedThe submitterThe submitter is the returnerscheme-approval.service.ts
Scheme approvedThe approver and, if different, the submitter (forceApprove: the creator)forceApprove marks an open revision returned (Superseded by administrative approval) but sends no returned noticescheme-approval.service.ts
Lesson plan approvedThe approver and, if different, the authorlesson-plan.service.ts
Class teacher assignedThe assigned staff userClassTeacherService
Enquiry replyenquiry.userIdWhatsApp is skipped when someone is already watchingEnquiryService
Admission letters (received, approved, offer, rejected, enrolled) and ADMISSION_STARTEDapplication.userIdnotify: false, or no school. Email links go to /guardian/letters for a guardian, else /guest/lettersadmission-letter.service.ts, admission-application.service.ts
Guardian welcomeguardian.userIdGuestService
Notice board publishedActive students and verified guardians of active students matching the notice's roles, campus and level, class or stream targets (none means the whole campus, or school)An expired notice, or no recipients (count stored as zero). A failure clears the claim so the next run retriespublish-notices.sweep.ts, notice-audience.service.ts
Academic report approvedThe approver and, if different, report.submittedByreport-card.service.ts
Academic report releasedGuardians of the studentsreport-card.service.ts
Year enrolment openedVerified guardians of students with an active or pending enrolment in the campus's current yearOnly the run that opens the year; a manual open only while the year is open and unlockedopen-year-enrolment.sweep.ts
School report readyActive users who can list or manage school_report (or all). School-wide holders get one notice; campus holders one per campus documentAlready covered by the school-wide notice; no holdersschool-report-notifier.service.ts

On this page