Skip to content

feat: add reports module and WebSocket notifications gateway#1057

Open
walexjnr wants to merge 1 commit into
DistinctCodes:mainfrom
walexjnr:feat/reports-websocket-924-925-927-928
Open

feat: add reports module and WebSocket notifications gateway#1057
walexjnr wants to merge 1 commit into
DistinctCodes:mainfrom
walexjnr:feat/reports-websocket-924-925-927-928

Conversation

@walexjnr

Copy link
Copy Markdown

Summary

  • Add ReportsModule with asset summary, warranty-expiring, maintenance costs, depreciation, and asset utilisation report endpoints
  • Add ReportSchedule entity and schedule CRUD endpoints (GET/POST/DELETE /reports/schedules) for scheduled report delivery
  • Add NotificationsModule with Notification entity, REST endpoints (GET /notifications, PATCH /notifications/:id/read), and a Socket.IO WebSocket gateway at namespace /notifications with JWT authentication

Test plan

  • GET /reports/summary — returns asset counts, status breakdown, total value
  • GET /reports/warranty-expiring?days=30 — returns assets with warranty expiring soon
  • GET /reports/depreciation — returns depreciated value per asset
  • POST /reports/schedules — creates a report schedule
  • WebSocket connect to /notifications with JWT token — joins user room
  • GET /notifications — lists user notifications
  • CI lint and build pass

closes #924
closes #925
closes #927
closes #928

- Add ReportsModule with asset summary, warranty, maintenance costs, depreciation, utilisation endpoints (DistinctCodes#924, DistinctCodes#925)
- Add ReportSchedule entity with scheduled report delivery support (DistinctCodes#927)
- Add NotificationsModule with WebSocket gateway, notification entity, service, and REST controller (DistinctCodes#928)
- Fix broken app.module.ts imports array syntax
- Fix pre-existing TypeScript and lint errors across codebase

closes DistinctCodes#924
closes DistinctCodes#925
closes DistinctCodes#927
closes DistinctCodes#928
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@yusuftomilola

Copy link
Copy Markdown
Collaborator

@walexjnr Kindly resolve all conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment