Skip to content

fix: sync esign with recent version updates#1943

Merged
harbournick merged 2 commits intomainfrom
andrii/sd-1802-bug-sync-legacy-esign-to-superdoc-package
Feb 4, 2026
Merged

fix: sync esign with recent version updates#1943
harbournick merged 2 commits intomainfrom
andrii/sd-1802-bug-sync-legacy-esign-to-superdoc-package

Conversation

@andrii-harbour
Copy link
Copy Markdown
Contributor

No description provided.

@linear
Copy link
Copy Markdown

linear Bot commented Feb 4, 2026

Copy link
Copy Markdown

@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.

Reviewed commit: 4c469bfa43

ℹ️ 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".

Comment on lines +357 to +360
setIsSubmitting(true);
addAuditEvent({ type: 'submit' });

return (
<DownloadButton
onClick={handleDownload}
fileName={download?.fileName}
isDisabled={isDisabled}
isDownloading={isDownloading}
/>
);
const nextAuditTrail = addAuditEvent({ type: 'submit' });
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid double-recording submit audit events

The submit handler now calls addAuditEvent({ type: 'submit' }) twice back-to-back, so every submission emits two submit entries. This means auditTrail and the global audit mock will both contain duplicate submit events for a single user action, which can miscount submissions or break downstream audit validation that expects a single submit event. This happens on any successful submit.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@andrii-harbour worth double checking this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@harbournick this PR is to sync monorepo with already deployed version from legacy repo. I'll create a ticket for this comment separately now

Comment on lines +68 to +72
if (rowCount > 1) {
let tr = editor.state.tr;

// Delete from bottom to top to ensure position mapping works correctly
for (let i = rowCount - 1; i >= 1; i--) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Table updates always leave the original first row intact

For table fields, the update logic deletes rows 1..N but preserves row 0 and then appends all rows from field.value. If field.value is meant to represent the full table contents (not “rows after a header”), this leaves the original first row untouched and shifts all provided rows down by one, resulting in stale or duplicated data. This will show up whenever a structured-content table is used without a dedicated header/template row.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator

@harbournick harbournick left a comment

Choose a reason for hiding this comment

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

Other than the codex comments, LGTM

@andrii-harbour
Copy link
Copy Markdown
Contributor Author

Other than the codex comments, LGTM

answered on the first comment. Second from codex is irrelevant (it didn't get the logic right)

@harbournick harbournick merged commit 94c3ed1 into main Feb 4, 2026
2 checks passed
@harbournick harbournick deleted the andrii/sd-1802-bug-sync-legacy-esign-to-superdoc-package branch February 4, 2026 21:43
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Feb 4, 2026

🎉 This PR is included in esign v2.1.0-next.3

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Feb 5, 2026

🎉 This PR is included in superdoc v1.11.0-next.18

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Feb 6, 2026

🎉 This PR is included in superdoc v1.12.0-next.1

The release is available on GitHub release

superdoc-bot Bot pushed a commit that referenced this pull request Mar 18, 2026
# [2.1.0](esign-v2.0.0...esign-v2.1.0) (2026-03-18)

### Bug Fixes

* **esign:** add jsdoc comment ([9e57883](9e57883))
* **esign:** add jsdoc to FieldReference interface ([#1927](#1927)) ([22ebbe5](22ebbe5))
* mount Vue on wrapper element to prevent host framework conflicts (SD-1832) ([#1971](#1971)) ([0c4bdda](0c4bdda))
* sync esign with recent version updates ([#1943](#1943)) ([94c3ed1](94c3ed1))
* use correct template syntax for GitHub release URL in PR comments ([9d1bca2](9d1bca2))

### Features

* (esign) introduce viewOptions for document layout and deprecate layoutMode and layoutMargins ([#1957](#1957)) ([93e1b69](93e1b69))
* add support for PDF [eSign] ([#2111](#2111)) ([296a0a5](296a0a5))
* add telemetry and license key support to SuperDocESign component ([#2120](#2120)) ([6c679c6](6c679c6))
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 18, 2026

🎉 This PR is included in esign v2.1.0

The release is available on GitHub release

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.

2 participants