feat: QR pairing for wallet import (backend + website)

- Backend: nullable wallet_number on wallet_share_requests (migration 0029);
  createPairingRequest + POST /api/patients/wallet/pair; applyShareResponse
  binds the authenticated wallet on QR (pairing) requests
- Frontend: Import dialog gains a "Show QR" mode rendering a temetro-pair QR
  (react-qr-code) the patient scans; requestWalletPairing helper; i18n keys

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Khalid Abdi
2026-06-21 21:31:51 +03:00
parent 2d47abcc42
commit 7a359d4911
11 changed files with 4529 additions and 24 deletions
+1
View File
@@ -0,0 +1 @@
ALTER TABLE "wallet_share_requests" ALTER COLUMN "wallet_number" DROP NOT NULL;
File diff suppressed because it is too large Load Diff
+7
View File
@@ -204,6 +204,13 @@
"when": 1782052852524,
"tag": "0028_military_cyclops",
"breakpoints": true
},
{
"idx": 29,
"version": "7",
"when": 1782057030557,
"tag": "0029_tiny_starhawk",
"breakpoints": true
}
]
}