Skip to content

Conversation

nxglabs
Copy link
Collaborator

@nxglabs nxglabs commented Jul 25, 2025

fix: remove agreement checkbox and remove agreement checkbox tour

fix: remove agreement checkbox and remove agreement checkbox tour
@Copilot Copilot AI review requested due to automatic review settings July 25, 2025 15:38
Copy link

vercel bot commented Jul 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
open-sign ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2025 3:39pm

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the agreement checkbox functionality and associated tour features from the document signing flow. The changes simplify the signing process by eliminating the requirement for users to check an agreement box before interacting with widgets.

  • Removes checkbox and tour functionality for agreement confirmation
  • Simplifies the agreement modal to only display terms with a direct agree button
  • Adds improved error handling for login with specific error code 1001
  • Updates translation files with new error message for domain restrictions

Reviewed Changes

Copilot reviewed 15 out of 28 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
apps/OpenSignServer/cloud/parsefunction/usersignup.js Moves user creation inside try-catch block for better error handling
apps/OpenSign/src/pages/PdfRequestFiles.jsx Removes agreement tour state and related functionality
apps/OpenSign/src/pages/Login.jsx Adds specific error handling for code 1001 with domain restriction message
apps/OpenSign/src/components/pdf/RenderPdf.jsx Removes agreement-related props from component
apps/OpenSign/src/components/pdf/Placeholder.jsx Simplifies widget click handler by removing agreement check
apps/OpenSign/src/components/pdf/DefaultSignature.jsx Removes agreement validation from signature confirmation
apps/OpenSign/src/components/pdf/AgreementSign.jsx Removes checkbox UI and simplifies to direct agreement button
apps/OpenSign/src/components/pdf/AgreementContent.jsx Removes tour-related prop handling
apps/OpenSign/src/components/Header.jsx Adds admin role check logic
Translation files Adds "action-prohibited" message in multiple languages

const defaultSignImg = useSelector((state) => state.widget.defaultSignImg);
const myInitial = useSelector((state) => state.widget.myInitial)
const defaultSignImg = useSelector((state) => state.widget.defaultSignImg);
const myInitial = useSelector((state) => state.widget.myInitial);
Copy link
Preview

Copilot AI Jul 25, 2025

Choose a reason for hiding this comment

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

Missing semicolon in the variable declaration on the previous line. The removed line had a semicolon, but the replacement line is missing one.

Copilot uses AI. Check for mistakes.

}
};
//function to get first widget and page number to assign currect signer and tour message
//function to get first widget id and page number to assign correct signer and show tour message
Copy link
Preview

Copilot AI Jul 25, 2025

Choose a reason for hiding this comment

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

Typo in the comment: 'currect' should be 'correct'.

Copilot uses AI. Check for mistakes.

props.setIsAgreeTour(true);
}
props.setIsAgree(true);
props.showFirstWidget()
Copy link
Preview

Copilot AI Jul 25, 2025

Choose a reason for hiding this comment

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

Missing semicolon at the end of the function call.

Suggested change
props.showFirstWidget()
props.showFirstWidget();

Copilot uses AI. Check for mistakes.

@prafull-opensignlabs prafull-opensignlabs changed the title Merge pull request #1044 from nxglabs/raktima-patch-main-2 fix: remove checkbox from sign agreement screen Jul 25, 2025
@prafull-opensignlabs prafull-opensignlabs changed the title fix: remove checkbox from sign agreement screen remove checkbox from sign agreement screen Jul 25, 2025
@prafull-opensignlabs prafull-opensignlabs merged commit 47cc0ef into staging Jul 25, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants