Skip to content

Conversation

@andrii-harbour
Copy link
Collaborator

@andrii-harbour andrii-harbour commented Dec 31, 2025

  • Updated the normalizeFields function to accept a signatureMode parameter for better handling of signature types (annotation - only images, sign - real signature wrapper).
  • 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.
  • Trimming whitespace around actual signature for better location.
  • Fixed cursor position on the signature pad.

- 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.
@linear
Copy link

linear bot commented Dec 31, 2025

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a 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".

Copy link
Contributor

@caio-pizzol caio-pizzol left a 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
Copy link
Contributor

Let's make sure the Document Fields panel is mobile responsive (move it below editor)

image

@andrii-harbour
Copy link
Collaborator Author

Let's make sure the Document Fields panel is mobile responsive (move it below editor)

image

@caio-pizzol nice comment! fixed

@caio-pizzol caio-pizzol self-requested a review January 6, 2026 12:08
Copy link
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@caio-pizzol caio-pizzol merged commit dd20f37 into main Jan 6, 2026
1 check passed
@caio-pizzol caio-pizzol deleted the andrii/sd-1304-feedback-fix-e-sign-demo-signature-moments branch January 6, 2026 12:09
@superdoc-bot
Copy link

superdoc-bot bot commented Jan 6, 2026

🎉 This PR is included in version 1.4.0-next.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants