Join our community: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
useReveal.ts backs the PII reveal flow paired with frontend/src/app/api/recipients/[id]/reveal/route.ts, a security sensitive path, but there is no hooks test file for it despite sibling hooks like useApi and useSSE having dedicated tests.
Acceptance criteria
Files to touch
- frontend/src/app/hooks/useReveal.ts
- frontend/src/app/hooks/useReveal.test.ts
Out of scope
Changing the reveal API contract.
Why this matters
useReveal.ts backs the PII reveal flow paired with frontend/src/app/api/recipients/[id]/reveal/route.ts, a security sensitive path, but there is no hooks test file for it despite sibling hooks like useApi and useSSE having dedicated tests.
Acceptance criteria
Files to touch
Out of scope
Changing the reveal API contract.