feat: executive security reporting dashboard (#157) - #158
Merged
Conversation
…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
Contributor
Author
|
please can you approve the workflow |
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
left a comment
Contributor
Author
There was a problem hiding this comment.
please i have done what you asked
if there is anything else please let me know sir
thank you
3 tasks
Collaborator
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #157 — Executive Security Reporting Dashboard
Backend
ReportingModule— NestJS module wired intoAppModuleReportingService— aggregates alert metrics into aSecurityReport(total alerts, severity breakdown, top chains by volume, resolved/unresolved/critical counts)ReportingController— exposesGET /reporting/security?days=30Frontend
SecurityReportingDashboardReact component — shows 4 KPI cards, severity breakdown with progress bars, and a top-chains chart; accepts aSecurityReportprop with built-in default dataTests
ReportingService(Jest +@nestjs/testing)SecurityReportingDashboard(Jest + React Testing Library)Other
jest.backend.config.js,jest.dashboard.config.js) addednpm testscript wired upnpm run build:backend)app.controller.ts,main.ts,database.module.ts,discord.provider.tsWhat was tested
npm test— 18/18 passingnpm run build:backend— clean TypeScript compileeslint apps/backend/src/— no errors