Batched signature prompter that captures user gesture once for multiple signatures
This function creates a signature prompter that shows a modal only on the first
signature request, informing the user that multiple signatures are required.
After the user clicks "Continue" on the initial modal, subsequent signature
requests bypass the modal and proceed directly to the wallet.
This solves the poor UX of requiring three separate user gestures for file upload,
which involves three signatures: layout, index, and auth.
The prompter:
On first signature request (layout): Shows a modal explaining three signatures are needed
Waits for user to click "Continue" (this grants the user gesture)
Sets an internal flag to bypass the modal for subsequent signatures
Subsequent signatures (index, auth) proceed directly without showing the modal
Batched signature prompter that captures user gesture once for multiple signatures
This function creates a signature prompter that shows a modal only on the first signature request, informing the user that multiple signatures are required. After the user clicks "Continue" on the initial modal, subsequent signature requests bypass the modal and proceed directly to the wallet.
This solves the poor UX of requiring three separate user gestures for file upload, which involves three signatures: layout, index, and auth.
The prompter: