whisper-money/resources/js/components/onboarding
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
..
step-account-types.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
step-button.tsx User Onboarding Flow (#23) 2025-12-12 13:06:08 +01:00
step-category-types.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
step-complete.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
step-create-account.tsx Remove encryption from bank account names (#104) 2026-02-09 14:15:26 +01:00
step-customize-categories.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
step-header.tsx User Onboarding Flow (#23) 2025-12-12 13:06:08 +01:00
step-import-balances.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
step-import-transactions.tsx fix: Onboarding, account not shown on the import drawer (#121) 2026-02-13 11:09:55 +01:00
step-more-accounts.tsx feat: Decrypt encrypted transactions on key unlock (#123) 2026-02-16 10:37:43 +01:00
step-smart-rules.tsx Replace E2E encryption mentions with privacy-first messaging (#124) 2026-02-14 16:59:50 +01:00
step-welcome.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00