whisper-money/.github/copilot/skills
Víctor Falcón 6abec95d0e
feat: Decrypt encrypted transactions on key unlock (#123)
## Summary

- Add `GET /api/transactions?encrypted=true` endpoint for paginated
listing of encrypted transactions
- Add `PATCH /api/transactions/bulk` endpoint for batch-updating
decrypted transaction data (max 50 per request, bypasses model events)
- Add `useDecryptTransactions` hook that mirrors the existing account
name decryption flow: fetches encrypted transactions page-by-page,
decrypts `description`/`notes` client-side via Web Crypto API, sends
plaintext back and clears IVs
- Wire the hook into `AppSidebarLayout` so decryption runs automatically
when the user unlocks their encryption key
- Once all transactions (and accounts) are decrypted, the encryption key
button in the header disappears automatically

## Test plan

- [x] 11 Pest tests covering encrypted/plaintext filtering, pagination,
user scoping, bulk update, authorization, validation, nullable notes,
guest access, and no-model-events behavior
- [x] Manual: create encrypted transactions, unlock encryption key,
verify transactions get decrypted and the key button disappears
2026-02-16 10:37:43 +01:00
..
inertia-react-development feat: Decrypt encrypted transactions on key unlock (#123) 2026-02-16 10:37:43 +01:00
pennant-development feat: Decrypt encrypted transactions on key unlock (#123) 2026-02-16 10:37:43 +01:00
pest-testing feat: Decrypt encrypted transactions on key unlock (#123) 2026-02-16 10:37:43 +01:00
tailwindcss-development feat: Decrypt encrypted transactions on key unlock (#123) 2026-02-16 10:37:43 +01:00
wayfinder-development feat: Decrypt encrypted transactions on key unlock (#123) 2026-02-16 10:37:43 +01:00