Repository navigation
feat(esign): sign a document yourself in the same step as creating it - #114
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe e-sign request flow can include the current user as a signer. When the viewer signs first, the page creates the request and starts CIE signing. The signing component supports preparing documents at startup and reports when signing stops. ChangesCreator-first e-sign requests
Sequence Diagram(s)sequenceDiagram
participant NewEsignRequestPage
participant SignWithCie
participant CIESigningDialog
NewEsignRequestPage->>SignWithCie: Provide request through prepare callback
SignWithCie->>NewEsignRequestPage: Invoke prepare callback
NewEsignRequestPage-->>SignWithCie: Return created request
SignWithCie->>CIESigningDialog: Start signature
CIESigningDialog-->>SignWithCie: Close signing dialog
SignWithCie-->>NewEsignRequestPage: Call onStopped
NewEsignRequestPage->>NewEsignRequestPage: Navigate to request
Priority: ⬇️ Low Change: Feature Merge Risk: ⚪ Minimal · up to
|
When the creator signs first (or alone), the composer's button becomes "Create and sign" / "Sign with CIE": it creates the request and opens the eSign agent in the same click, so the browser doesn't block the popup. If signing stops or fails, the request stays and the creator lands on its page to sign later. To sign offers "Sign a document", which starts with the creator as first signer, and the signer picker lists the creator first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bce6c14 to
95e31ae
Compare
…#114) When the creator signs first (or alone), the composer's button becomes "Create and sign" / "Sign with CIE": it creates the request and opens the eSign agent in the same click, so the browser doesn't block the popup. If signing stops or fails, the request stays and the creator lands on its page to sign later. To sign offers "Sign a document", which starts with the creator as first signer, and the signer picker lists the creator first. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Summary
SignWithCiegains apreparecallback that creates the request)./dashboard/esign/new?self=true), starting with the creator as first signer; the picker lists the creator first, marked "(you)".No backend change: the backend already skips emailing the creator.
Depends on
Follows #113 (merged). Works with PoliNetworkOrg/backend#79: the creator appears in the signer list when they have
esign:signand may sign the selected drives' documents, and creating the request keeps their existing signing identity.Verification
pnpm check,pnpm typecheck,pnpm test,pnpm buildon the combined branch.🤖 Generated with Claude Code