feat: error handling, logging, analytics, OG tags, and sticky sidebar #44

Merged
naomi merged 3 commits from feat/logger into main 2026-03-09 19:54:43 -07:00

3 Commits

Author SHA1 Message Date
hikari d48b53eecd test(api): achieve 100% coverage across all routes, middleware, and services
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m3s
CI / Lint, Build & Test (pull_request) Successful in 1m8s
- Add full test suite for frontend.ts (POST /log and POST /error)
- Add error-path tests to all route handlers to cover catch blocks
  triggered by Prisma rejections
- Add non-Error throw tests to cover the `new Error(String(error))`
  ternary false branch in middleware, services, and route catch handlers
- Suppress unreachable outer catch in about.ts with v8 ignore (fetchReleases
  swallows all errors internally, making the outer catch genuinely dead code)
2026-03-09 19:52:27 -07:00
hikari 2a0a3511b4 feat(web): add analytics, OG tags, Tree-Nation, ads, sticky sidebar
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m1s
CI / Lint, Build & Test (pull_request) Failing after 1m5s
- Add Plausible analytics script to index.html
- Add Open Graph and Twitter Card meta tags using the CDN background image
- Add Tree-Nation widget loader, init script, and badge div in sidebar
- Add Google Ads script
- Make game sidebar sticky with --resource-bar-height offset (3.5rem)
- Reset sidebar sticky properties in mobile responsive override
2026-03-09 19:20:37 -07:00
hikari 66413c5e21 fix: add comprehensive error handling and logging to api and web
Wrap all async API route handlers and services in try/catch blocks,
piping errors to the @nhcarrigan/logger telemetry service. Add a
frontend logError utility, React ErrorBoundary, and overridden console
to forward all unhandled client-side errors to the backend telemetry
endpoint.
2026-03-09 18:57:56 -07:00