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
Contributor

No description provided.

@linear
Copy link

linear bot commented Feb 4, 2026

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.

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' });

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
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
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--) {

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

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

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

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

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