Skip to content

Commit 3f2cf3d

Browse files
Merge pull request #1458 from OpenSignLabs/uncompatible_pdf
feat: send email notification to document owner when signer sign document
2 parents 66323f9 + 5a53a70 commit 3f2cf3d

File tree

24 files changed

+2183
-1050
lines changed

24 files changed

+2183
-1050
lines changed

apps/OpenSign/package-lock.json

Lines changed: 1148 additions & 335 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/OpenSign/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"@formkit/auto-animate": "^0.8.2",
77
"@lottiefiles/dotlottie-react": "^0.9.3",
88
"@pdf-lib/fontkit": "^1.1.1",
9-
"@radix-ui/themes": "^3.1.4",
9+
"@radix-ui/themes": "^3.1.6",
1010
"@react-pdf/renderer": "^4.0.0",
1111
"@reduxjs/toolkit": "^2.3.0",
1212
"axios": "^1.7.7",
@@ -34,13 +34,13 @@
3434
"react-dom": "^18.2.0",
3535
"react-gtm-module": "^2.0.11",
3636
"react-helmet": "^6.1.0",
37-
"react-i18next": "^15.0.3",
37+
"react-i18next": "^15.1.1",
3838
"react-konva": "^18.2.10",
3939
"react-pdf": "^9.1.1",
4040
"react-quill-new": "^3.3.3",
4141
"react-redux": "^9.1.2",
4242
"react-rnd": "^10.4.13",
43-
"react-router-dom": "^6.27.0",
43+
"react-router-dom": "^6.28.0",
4444
"react-scripts": "5.0.1",
4545
"react-scrollbars-custom": "^4.1.1",
4646
"react-select": "^5.8.3",
@@ -54,7 +54,7 @@
5454
"regex-parser": "^2.3.0",
5555
"serve": "^14.2.4",
5656
"styled-components": "^5.3.0",
57-
"web-vitals": "^4.2.3",
57+
"web-vitals": "^4.2.4",
5858
"ws": "^8.18.0"
5959
},
6060
"scripts": {
@@ -103,17 +103,17 @@
103103
"babel-loader": "^9.2.1",
104104
"clean-webpack-plugin": "^4.0.0",
105105
"commitizen": "^4.3.1",
106-
"concurrently": "^9.0.1",
106+
"concurrently": "^9.1.0",
107107
"css-loader": "^7.1.2",
108108
"daisyui": "^4.12.14",
109109
"dotenv": "^16.4.5",
110110
"dotenv-webpack": "^8.1.0",
111-
"eslint": "^9.13.0",
111+
"eslint": "^9.14.0",
112112
"eslint-plugin-prettier": "^5.2.1",
113-
"eslint-plugin-react": "^7.37.1",
113+
"eslint-plugin-react": "^7.37.2",
114114
"lint-staged": "^15.2.10",
115-
"mini-css-extract-plugin": "^2.9.1",
116-
"postcss": "^8.4.48",
115+
"mini-css-extract-plugin": "^2.9.2",
116+
"postcss": "^8.4.49",
117117
"prettier": "^3.3.3",
118118
"pretty-quick": "^4.0.0",
119119
"tailwindcss": "^3.4.14",

apps/OpenSign/public/locales/en/translation.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -674,14 +674,14 @@
674674
"document-logs":"Document logs",
675675
"server-down": "Unable to connect to the OpenSign server. If you are self-hosting OpenSign, please ensure that all the steps in the documentation have been followed correctly. If you're running OpenSign locally, you might be accessing it through an incorrect port number.",
676676
"admin-exists": "Admin already exists. Please login to the application using admin credentials in order to manage users.",
677-
"enable-tour":"Enable Tour",
678-
"istourenabled-help":{
677+
"enable-tour":"Enable Tour",
678+
"istourenabled-help":{
679679
"p1":"This will enable a guided tour for signers, providing instructions during the signing process.",
680680
"p2":"This will disable the guided tour, ensuring a faster, uninterrupted signing experience.",
681681
"p3":"Tip: If your signers are familiar with OpenSign and frequently use it, you may want to disable the guided tour for a more seamless experience. Choose the option that best fits your document signing needs."
682682
},
683-
"form-title-1":"Document Flow Setting",
684-
"form-title-2":"Security Settings",
683+
"form-title-1":"Document Flow Setting",
684+
"form-title-2":"Security Settings",
685685
"public-tour-message":"The template needs to be public before you can generate a shareable link.",
686686
"add-user-template": "You need to add a role before you can add fields for it.",
687687
"pdf-uncompatible": "This pdf is not compatible with opensign, please contact <[email protected]>",
@@ -697,5 +697,10 @@
697697
"l2": "Enter your name and choose from various font styles to create a signature.",
698698
"l3": "Upload an existing digital version of your signature.",
699699
"l4": "Use a pre-set signature style saved under 'My Signature' in your settings."
700+
},
701+
"notify-on-signatures": "Notify on signatures",
702+
"notify-on-signatures-help": {
703+
"p1": "The document creator will receive an email notification whenever a signer signs the document.",
704+
"note": "Note: Notification email will not be sent for the last signer, as the document creator will receive a completion email instead."
700705
}
701706
}

apps/OpenSign/public/locales/es/translation.json

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -678,24 +678,29 @@
678678
"add-user-template": "Es necesario agregar un rol antes de poder agregarle campos.",
679679
"pdf-uncompatible": "Este pdf no es compatible con opensign, comuníquese con <[email protected]>",
680680
"enable-tour": "Habilitar recorrido",
681-
"istourenabled-help":{
682-
"p1": "Esto permitirá realizar una visita guiada para los firmantes, brindando instrucciones durante el proceso de firma.",
683-
"p2": "Esto desactivará la visita guiada, lo que garantizará una experiencia de firma más rápida e ininterrumpida.",
684-
"p3": "Consejo: si sus firmantes están familiarizados con OpenSign y lo utilizan con frecuencia, es posible que desee desactivar la visita guiada para disfrutar de una experiencia más fluida. Elija la opción que mejor se adapte a sus necesidades de firma de documentos"
681+
"istourenabled-help":{
682+
"p1": "Esto permitirá realizar una visita guiada para los firmantes, brindando instrucciones durante el proceso de firma.",
683+
"p2": "Esto desactivará la visita guiada, lo que garantizará una experiencia de firma más rápida e ininterrumpida.",
684+
"p3": "Consejo: si sus firmantes están familiarizados con OpenSign y lo utilizan con frecuencia, es posible que desee desactivar la visita guiada para disfrutar de una experiencia más fluida. Elija la opción que mejor se adapte a sus necesidades de firma de documentos"
685685
},
686-
"form-title-1": "Configuración del flujo de documentos",
687-
"form-title-2": "Configuración de seguridad",
688-
"text-field-tour":"Los campos de tipo 'Texto' deben completarse con anticipación antes de enviar el documento. Si necesita que los firmantes proporcionen información, utilice el campo 'Entrada de texto'",
689-
"attach-signer-tour" :"Debe adjuntar un firmante a cada función. Puede hacerlo haciendo clic en este icono. Una vez que seleccione un Firmante, se adjuntará a todos los campos asociados con ese rol que aparecen en el mismo color.",
690-
"allowed-signature-types": "Tipos de firma permitidos",
691-
"at-least-one-signature-type": "Se debe habilitar al menos un tipo de firma.",
692-
"expect-default-one-signature-type": "Habilite un tipo de firma adicional aparte del predeterminado.",
693-
"add-signer-note": "Nota - Este contacto se agregará a su lista de contactos",
694-
"allowed-signature-types-help": {
686+
"form-title-1": "Configuración del flujo de documentos",
687+
"form-title-2": "Configuración de seguridad",
688+
"text-field-tour":"Los campos de tipo 'Texto' deben completarse con anticipación antes de enviar el documento. Si necesita que los firmantes proporcionen información, utilice el campo 'Entrada de texto'",
689+
"attach-signer-tour" :"Debe adjuntar un firmante a cada función. Puede hacerlo haciendo clic en este icono. Una vez que seleccione un Firmante, se adjuntará a todos los campos asociados con ese rol que aparecen en el mismo color.",
690+
"allowed-signature-types": "Tipos de firma permitidos",
691+
"at-least-one-signature-type": "Se debe habilitar al menos un tipo de firma.",
692+
"expect-default-one-signature-type": "Habilite un tipo de firma adicional aparte del predeterminado.",
693+
"add-signer-note": "Nota - Este contacto se agregará a su lista de contactos",
694+
"allowed-signature-types-help": {
695695
"p1": "Esta preferencia de firma controla qué opciones de firma están disponibles para sus firmantes. Solo los tipos de firma que seleccione aparecerán en el widget de firma cuando se firme un documento. Por ejemplo, si elige sólo la opción 'Draw' en las preferencias, su firmante verá sólo la opción 'Draw' en el widget de firma, mientras que las otras tres opciones no estarán disponibles.",
696696
"l1": "Cree una firma manuscrita directamente en la pantalla usando su dedo o un lápiz.",
697697
"l2": "Ingrese su nombre y elija entre varios estilos de fuente para crear una firma.",
698698
"l3": "Cargue una versión digital existente de su firma.",
699699
"l4": "Utilice un estilo de firma preestablecido guardado en 'Mi firma' en su configuración."
700+
},
701+
"notify-on-signatures": "Notificar sobre firmas",
702+
"notify-on-signatures-help": {
703+
"p1": "El creador del documento recibirá una notificación por correo electrónico cada vez que un firmante firme el documento.",
704+
"note": "Nota: No se enviará un correo electrónico de notificación al último firmante, ya que el creador del documento recibirá un correo electrónico de finalización."
700705
}
701706
}

apps/OpenSign/public/locales/fr/translation.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,5 +696,10 @@
696696
"l2": "Entrez votre nom et choisissez parmi différents styles de police pour créer une signature.",
697697
"l3": "Téléchargez une version numérique existante de votre signature.",
698698
"l4": "Utilisez un style de signature prédéfini enregistré sous 'Ma signature' ​​dans vos paramètres."
699+
},
700+
"notify-on-signatures": "Notifier les signatures",
701+
"notify-on-signatures-help": {
702+
"p1": "Le créateur du document recevra une notification par e-mail chaque fois qu'un signataire signera le document.",
703+
"note": "Remarque : L'e-mail de notification ne sera pas envoyé pour le dernier signataire, car le créateur du document recevra à la place un e-mail de fin."
699704
}
700705
}

apps/OpenSign/src/components/Header.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ const Header = ({ showSidebar, setIsMenu }) => {
6464
const extUser = await Parse.Cloud.run("getUserDetails");
6565
const MonthlyFreeEmails = extUser?.get("MonthlyFreeEmails") || 0;
6666
setEmailUsed(MonthlyFreeEmails);
67+
if (extUser) {
68+
const _extUser = JSON.parse(JSON.stringify(extUser));
69+
localStorage.setItem("Extand_Class", JSON.stringify([_extUser]));
70+
}
6771
} catch (err) {
6872
console.log("err in while fetching monthlyfreeEmails", err);
6973
}

0 commit comments

Comments
 (0)