JavaScript client-telemetry lib + eventual JS SDK (onerror handlers → campus.audit)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 18/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- javascript, python
- Domain
- observability
Research direction
This is a design record, so the first step is the post-mortem trail: read classroom#123 and PR classroom#125 for the console-only failure, then campus.audit.middleware in flask-campus as the server-side pattern to mirror, alongside #941 (event_type client.error), #831 (rate-gate) and #805 (keyed redaction). Work through the four open questions — repo location, ingest shape, SDK scope, PII discipline — and record a decision. Done means those questions are answered on the issue and a concrete implementation issue can be opened; no code is expected here.
Written by the indexing model from the issue text.
Description
Follow-up from the classroom#123 post-mortem (2026-11-18, triaged with the user). The #123 incident ("Create Assignment does nothing") produced exactly one signal anywhere in the stack: a single Chrome console line ("An invalid form control ... is not focusable"). No server request, no log, no trace — campus.audit structurally cannot see client-side failures, because it only sees requests that reach a server.
Direction agreed: client-side error telemetry, done in a disciplined way — a custom JavaScript lib that registers window.onerror / unhandledrejection handlers (plus a form.addEventListener('invalid', ...) capture, which would have named the exact blocked field in #123) and reports to a campus ingest endpoint so client failures land in campus.audit as first-class traces.
This issue is a design record, not an implementation order — implementation waits for the JavaScript SDK decision below.
Open questions to settle before building
- Where does the lib live? Options: (a) a new dedicated repo (tiny, dependency-free ES module, e.g.
campus-telemetry-js); (b) inside campus-classroom's static assets to start, promoted later; (c) folded into the eventual JS SDK. Lean (a) or (b) now, (c) long-term. - Ingest shape. A browser beacon endpoint (likely on each consumer app, same-origin to avoid CORS: e.g.
POST /api/v1/client-events, forwarded intocampus.auditas an audit-event trace (#941 event_type:client.error) with{message, source, lineno, stack (truncated), url, user_agent, session hint}). Rate-limit + payload caps are mandatory — an error storm must not become an ingest storm (cf. the #831 rate-gate work). - JS SDK repo. A campus JavaScript SDK (client for campus APIs + telemetry + journey labeling) is a whole other repo — worth it once a second consumer app needs browser-side integration. Don't create it for this alone.
- PII/secrets discipline. Error messages can carry user data; apply the same keyed-redaction rules as the Python side (#805) client-side where feasible, server-side regardless.
Context
- Python-side equivalent already exists: flask-campus
campus.audit.middlewarecaptures server spans opt-in per app. - Server-side enrichment of the same incident class: flask-campus middleware issue (static assets + warning capture) filed separately.
- Post-mortem driver: classroom#123 + PR classroom#125.
- Dominant language
- Python
- Stars
- 0
- Forks
- 2
- Avg merge
- 39m
- Merged PRs (30d)
- 235
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nyjc-computing/campus
-
enhancement for-collaborators for-contributors
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nyjc-computing/campus#451 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
nyjc-computing/campus#1320 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 25/100
nyjc-computing/campus#1309 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 18/100
nyjc-computing/campus#1300 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 5/100
nyjc-computing/campus#1295 · 4 comments ·
Maintainers usually reply within 1 day
All issues in nyjc-computing/campus
Similar issues
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/ai-inequality#64 ·
Maintainers usually reply within 1 day
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timePossibly taken @PabloRoque claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pymc-devs/pymc-extras#839 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day