import { Download, ShieldAlert, ShieldCheck } from 'lucide-react' import { useAdverseImpact } from '../lib/queries' import { api } from '../lib/api' import { Badge, Panel } from '../components/ui' import { flagRatio } from '../lib/format' import type { AnalysisSection, ImpactRow } from '../lib/types' export function Compliance() { const report = useAdverseImpact() async function downloadExport() { const text = await api.adverseImpactExport() const url = URL.createObjectURL(new Blob([text], { type: 'text/plain' })) const a = document.createElement('a') a.href = url a.download = 'adverse_impact_report.txt' a.click() URL.revokeObjectURL(url) } return (
Four fifths analysis over recorded decisions. The platform supplies this data for an independent audit run by the deploying employer.
Loading the report.
The adverse impact report is unavailable. It is read only by the compliance role and requires the compliance database connection. Detail: {(report.error as Error).message}
No data.
) : (| Group | Selected | Rate | Impact ratio | Status |
|---|---|---|---|---|
| {r.group} | {r.selected} of {r.considered} | {r.rate} | {r.impact_ratio} |
{r.flagged ? (
|