Commit graph

2 commits

Author SHA1 Message Date
Felipe Domingues
1175ae7ff0 feat: implement rule management (US3) + dashboard (US4)
US3 - Rule Management:
- Backend: CRUD API + activate/deactivate + test against 90d history
- Frontend: RuleList sidebar, RuleForm (create/edit), RuleTestResults
- Weight/threshold sliders, condition type selector, audit logging

US4 - Dashboard:
- Backend: GET /dashboard/metrics (24h/7d/30d/90d), CSV export
- Frontend: MetricCards, alerts-by-hour bar chart, status pie chart,
  top rules horizontal bar chart via Recharts

Stack: 20 API routes total. Frontend tsc clean, vite build passes.
2026-05-12 19:14:44 -03:00
Felipe Domingues
989202648d feat: implement FraudShield MVP — backend API + frontend alerts
Backend (Python 3.12/FastAPI):
- 5 models: Transaction, DetectionRule, FraudAlert, AuditLog, RuleSnapshot
- Rule engine: 4 rule types (amount, location, time, pattern)
- 11 API routes: health, auth, transactions, alerts
- Sync ingestion pipeline with explanation generation
- JWT auth with 3 roles (analyst, admin, senior)
- Seed script with 5 default rules + 50 synthetic transactions

Frontend (React 19/TypeScript/Tailwind):
- Auth: login page, JWT token management, role-based routing
- Alerts: queue with filters, detail panel, decision workflow
- Layout: responsive sidebar, top bar, protected routes
- Full TypeScript, zero ts-ignore, Tailwind CSS

Build: Backend imports clean, Frontend tsc --noEmit passes,
vite build produces 296KB production bundle.
2026-05-12 16:54:03 -03:00