
hamedandClaude Opus 4.8
f028d6841a
feat: port wallet charge/withdraw modal from tauri to patient admin page
Add manual wallet withdrawal (debit) endpoint mirroring the offline app's
balance guard, and rebuild the patient کیف پول tab around a single
charge/withdraw toggle modal (quick amounts, تومان→ریال conversion,
transaction filters).
Backend:
- POST /api/v1/patient/{uuid}/wallet/withdraw — creates a debit
WalletTransaction; 422 ERR_WALLET_INSUFFICIENT when amount exceeds balance.
- ErrorCodes: ERR_WALLET_INSUFFICIENT ('موجودی کیف پول کافی نیست').
- docs/api/patient.md updated.
Frontend:
- usePatientWallet hook (balance + charge/withdraw mutations).
- WalletTransactionModal (toggle, quick amounts, UI-only payment fields).
- WalletTab: charge button, همه/واریزی/برداشت filters.
Tests: backend withdraw success/insufficient/non-positive/ownership;
frontend modal + wallet tab interactions.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-16 11:56:39 +03:30
..
2026-07-10 09:48:45 +03:30
2026-07-16 10:41:15 +03:30
2026-06-28 21:21:03 +03:30
2026-07-13 14:16:21 +03:30
2026-07-14 19:00:17 +03:30
2026-07-08 12:19:06 +03:30
2026-07-13 13:28:51 +03:30
2026-07-14 13:54:50 +03:30
2026-06-28 21:03:54 +03:30
2026-07-11 19:56:58 +03:30
2026-06-28 16:53:40 +03:30
2026-07-15 13:23:38 +03:30
2026-07-15 14:32:29 +03:30
2026-07-16 11:56:39 +03:30
2026-07-02 15:10:15 +03:30
2026-07-15 11:39:32 +03:30
2026-06-28 20:36:41 +03:30
2026-07-09 08:07:41 +03:30
2026-07-15 12:23:17 +03:30
2026-06-28 20:36:41 +03:30
2026-07-16 00:25:21 +03:30
2026-06-28 20:28:24 +03:30
2026-07-08 09:51:30 +03:30
2026-07-14 15:39:45 +03:30
2026-06-28 21:57:42 +03:30
2026-06-09 22:00:34 +03:30
2026-06-28 17:17:46 +03:30