whisper-money/resources/js
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
..
components feat: Decrypt encrypted transactions on key unlock (#123) 2026-02-16 10:37:43 +01:00
contexts feat: Decrypt encrypted transactions on key unlock (#123) 2026-02-16 10:37:43 +01:00
hooks feat: Decrypt encrypted transactions on key unlock (#123) 2026-02-16 10:37:43 +01:00
layouts feat: Decrypt encrypted transactions on key unlock (#123) 2026-02-16 10:37:43 +01:00
lib Fix: Use locale to disambiguate date format during CSV import (#107) 2026-02-12 09:08:52 +01:00
pages Redesign landing page with real feature screenshots (#125) 2026-02-16 09:24:07 +01:00
providers Remove budgets feature flag (#108) 2026-02-12 09:58:01 +01:00
services feat: Decrypt encrypted transactions on key unlock (#123) 2026-02-16 10:37:43 +01:00
types feat: Decrypt encrypted transactions on key unlock (#123) 2026-02-16 10:37:43 +01:00
utils feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
app.tsx feat: Decrypt encrypted transactions on key unlock (#123) 2026-02-16 10:37:43 +01:00
ssr.tsx Remove plaintext-transactions feature flag & E2E references (#116) 2026-02-13 11:10:21 +01:00