E11-F5: Violation Monitoring Report¶
Epic: E11: Blacklist & Security
Size: S (Small)
Problem / Outcome¶
Track and report blocked purchase attempts.
Scope¶
In-Scope:
- Report of blocked attempts: date, name, OIB, event, IP, user account
- Filters by date range, individual, event
- CSV export
- Pattern alerts of the last 24 hours on the report and as a count in the sidebar: more than 3 attempts by one person, and one IP address for 3 or more blacklisted people (flow)
Out-of-Scope:
- Alerts sent outside the portal (e-mail, push)
Acceptance Criteria¶
- AC1: Report lists all blocked purchase attempts with details
- AC2: Filterable by date range, individual, event
- AC3: Export to CSV available
- AC4: The two pattern alerts show on the report with their count in the sidebar
Data Model Impact¶
No new tables required.
Report query from ViolationLog:
- blocked_at (TIMESTAMP)
- name (from Blacklist join)
- oib (VARCHAR)
- match_name (from Match join)
- ip_address (VARCHAR)
- user_account (from User join if available)
- action_type (ENUM)
Filters:
- date_from, date_to
- oib
- match_id
- user_id
Permissions/Roles¶
- Admin (BLACKADMIN)
How to Verify¶
npm test -- --grep "violation report"
Expected: Report generates with correct data.
Dependencies¶
Implementation Tasks¶
See E11: Blacklist ## Doc References Security Tasks
Doc References¶
Last Updated: January 2026