Skip to content

feat: executive security reporting dashboard (#157) - #158

Merged
mijinummi merged 2 commits into
MD-Creative-Production:mainfrom
oluwaseyi1996-netizen:feat/executive-security-reporting-dashboard-157
Jun 17, 2026
Merged

feat: executive security reporting dashboard (#157)#158
mijinummi merged 2 commits into
MD-Creative-Production:mainfrom
oluwaseyi1996-netizen:feat/executive-security-reporting-dashboard-157

Conversation

@oluwaseyi1996-netizen

Copy link
Copy Markdown
Contributor

Summary

Closes #157 — Executive Security Reporting Dashboard

Backend

  • ReportingModule — NestJS module wired into AppModule
  • ReportingService — aggregates alert metrics into a SecurityReport (total alerts, severity breakdown, top chains by volume, resolved/unresolved/critical counts)
  • ReportingController — exposes GET /reporting/security?days=30

Frontend

  • SecurityReportingDashboard React component — shows 4 KPI cards, severity breakdown with progress bars, and a top-chains chart; accepts a SecurityReport prop with built-in default data

Tests

  • 9 backend unit tests for ReportingService (Jest + @nestjs/testing)
  • 9 frontend component tests for SecurityReportingDashboard (Jest + React Testing Library)
  • All 18 tests pass ✅

Other

  • Jest configs (jest.backend.config.js, jest.dashboard.config.js) added
  • npm test script wired up
  • TypeScript build passes (npm run build:backend)
  • Pre-existing prettier issues fixed in app.controller.ts, main.ts, database.module.ts, discord.provider.ts

What was tested

  • npm test — 18/18 passing
  • npm run build:backend — clean TypeScript compile
  • eslint apps/backend/src/ — no errors

…ion#157)

- Add ReportingModule (service, controller, interfaces) with GET /reporting/security endpoint
- Add SecurityReportingDashboard React component with KPIs, severity breakdown, and top-chains chart
- Set up Jest for backend (Node) and dashboard (jsdom) with 18 passing tests
- Wire ReportingModule into AppModule
- Fix pre-existing prettier formatting in app.controller, main, database.module, discord.provider
@oluwaseyi1996-netizen

Copy link
Copy Markdown
Contributor Author

please can you approve the workflow
thank you

@mijinummi

mijinummi commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

@oluwaseyi1996-netizen Thank you for your contribution, please kindly fix lint, build and test.

- Remove stray 'kiroplease' token from app.controller.ts
- Fix missing closing brace in Prisma Watchlist model
- Update .eslintrc.js to include dashboard tsconfig and override for out-of-project files
- Fix prettier formatting across dashboard, observability, prisma, and config files

@oluwaseyi1996-netizen oluwaseyi1996-netizen left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please i have done what you asked
if there is anything else please let me know sir
thank you

@mijinummi
mijinummi merged commit 3641533 into MD-Creative-Production:main Jun 17, 2026
8 of 11 checks passed
@mijinummi

Copy link
Copy Markdown
Collaborator

LGTM

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.

📋 Create Executive Security Reporting Dashboard

2 participants