-
Notifications
You must be signed in to change notification settings - Fork 1
improved signing experience and fixed annotations logic #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improved signing experience and fixed annotations logic #14
Conversation
- Updated the `normalizeFields` function to accept a `signatureMode` parameter for better handling of signature types. - Introduced a new utility function `textToImageDataUrl` to convert typed signatures into PNG data URLs. - Refactored the App component to utilize the new signature handling logic, including mapping signer fields based on type. - Added unit tests for the `textToImageDataUrl` function to ensure correct functionality. - Improved the demo to include a configuration for signer fields and updated API calls for signing and downloading documents.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
caio-pizzol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The signature handling improvements look solid, but I'm concerned about demo complexity.
We're adding ~100 lines of signature processing logic (SVG cropping, PNG conversion, canvas resizing) to what should be a minimal integration example.
Or... if we really want to build a full end2end demo app - maybe that should live outside of the esign component repo
@caio-pizzol nice comment! fixed |
caio-pizzol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
🎉 This PR is included in version 1.4.0-next.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |


normalizeFieldsfunction to accept asignatureModeparameter for better handling of signature types (annotation - only images, sign - real signature wrapper).textToImageDataUrlto convert typed signatures into PNG data URLs.