Add UK Compliance Reports section to RetailShield dashboard#84
Open
TFT444 wants to merge 1 commit into
Open
Conversation
Implements live compliance report cards that automatically appear when the SIMULATE ATTACK flow fires CRITICAL severity incidents. Each card shows live 24h NCSC and 72h ICO countdown timers, a 7-section pre-filled UK draft notification report, download-as-text, and direct links to the ICO and NCSC submission portals. Closes #83
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 #83
Adds a UK Compliance Reports section to
frontend/src/RetailShield.jsx. When SIMULATE ATTACK fires a CRITICAL incident, compliance report cards are automatically generated with live countdown timers and a pre-filled 7-section UK draft notification.What's new
getComplianceContext(mitre)— maps MITRE technique (T1566, T1110, T1486, T1048) to incident-specific nature/affected-data/consequences text for the draft reportComplianceReportCardcomponent — collapsible card with countdown timers, action buttons, 7-section draft, and disclaimercomplianceReportsstate — array populated byrunAttackSimulationfor each CRITICAL eventrunAttackSimulation— resets reports on each new simulation, then appends a report entry for everyseverity === 'critical'event as it fires (staggered 800 ms)ComplianceReportCardper critical incidentPer card features
[REVIEWER]placeholders.txtfile viaURL.createObjectURLhttps://ico.org.uk/for-organisations/report-a-breach/in new tabhttps://www.ncsc.gov.uk/section/about-this-website/incident-managementin new tabDesign matches existing dark theme — C tokens only, no new dependencies.
How to test
cd frontend && npm run dev— open the dashboard in a browser[REVIEWER]placeholders and the "ACTION REQUIRED" badgeDateahead by 23h to test the red NCSC warning).txtfile downloads containing the full 7-section reportGenerated by Claude Code