fix: prevent accidental signatures (#1515)

![CleanShot 2024-12-06 at 03 30
39](https://github.com/user-attachments/assets/d47dc820-f19d-43b7-a60d-914fc9ab24b8)

![CleanShot 2024-12-06 at 03 32
34](https://github.com/user-attachments/assets/0db98735-8c91-469b-873c-adb19d0fff7b)
This commit is contained in:
Ephraim Duncan
2024-12-08 03:17:58 +00:00
committed by GitHub
parent a88ae1cc1e
commit dd162205fa
23 changed files with 443 additions and 292 deletions

View File

@ -506,7 +506,7 @@ msgstr "Ocurrió un error mientras se eliminaba el campo."
#: apps/web/src/app/(signing)/sign/[token]/name-field.tsx:148
#: apps/web/src/app/(signing)/sign/[token]/number-field.tsx:195
#: apps/web/src/app/(signing)/sign/[token]/radio-field.tsx:129
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:190
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:194
msgid "An error occurred while removing the signature."
msgstr "Ocurrió un error al eliminar la firma."
@ -530,7 +530,7 @@ msgstr "Ocurrió un error al enviar tu correo electrónico de confirmación"
#: apps/web/src/app/(signing)/sign/[token]/name-field.tsx:122
#: apps/web/src/app/(signing)/sign/[token]/number-field.tsx:150
#: apps/web/src/app/(signing)/sign/[token]/radio-field.tsx:102
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:164
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:168
#: apps/web/src/app/(signing)/sign/[token]/text-field.tsx:168
msgid "An error occurred while signing the document."
msgstr "Ocurrió un error al firmar el documento."
@ -626,7 +626,7 @@ msgstr "Versión de la Aplicación"
msgid "Approve"
msgstr "Aprobar"
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:129
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:136
msgid "Approve Document"
msgstr "Aprobar Documento"
@ -689,7 +689,7 @@ msgstr "Avatar actualizado"
msgid "Awaiting email confirmation"
msgstr "Esperando confirmación de correo electrónico"
#: apps/web/src/app/(recipient)/d/[token]/sign-direct-template.tsx:369
#: apps/web/src/app/(recipient)/d/[token]/sign-direct-template.tsx:373
#: apps/web/src/components/(dashboard)/settings/layout/activity-back.tsx:20
#: apps/web/src/components/forms/v2/signup.tsx:512
msgid "Back"
@ -787,13 +787,13 @@ msgstr "Al utilizar la función de firma electrónica, usted está consintiendo
#: apps/web/src/app/(signing)/sign/[token]/document-action-auth-account.tsx:71
#: apps/web/src/app/(signing)/sign/[token]/document-action-auth-passkey.tsx:164
#: apps/web/src/app/(signing)/sign/[token]/document-action-auth-passkey.tsx:189
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:151
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:220
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:158
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:240
#: apps/web/src/app/(signing)/sign/[token]/name-field.tsx:215
#: apps/web/src/app/(signing)/sign/[token]/number-field.tsx:328
#: apps/web/src/app/(signing)/sign/[token]/reject-document-dialog.tsx:153
#: apps/web/src/app/(signing)/sign/[token]/sign-dialog.tsx:130
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:305
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:320
#: apps/web/src/app/(signing)/sign/[token]/text-field.tsx:335
#: apps/web/src/app/(teams)/t/[teamUrl]/settings/team-transfer-status.tsx:121
#: apps/web/src/components/(dashboard)/settings/token/delete-token-dialog.tsx:176
@ -880,10 +880,10 @@ msgstr "Haga clic aquí para subir"
msgid "Click to copy signing link for sending to recipient"
msgstr "Haga clic para copiar el enlace de firma para enviar al destinatario"
#: apps/web/src/app/(recipient)/d/[token]/sign-direct-template.tsx:175
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:115
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:456
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:335
#: apps/web/src/app/(recipient)/d/[token]/sign-direct-template.tsx:179
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:122
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:481
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:360
msgid "Click to insert field"
msgstr "Haga clic para insertar campo"
@ -901,8 +901,8 @@ msgid "Close"
msgstr "Cerrar"
#: apps/web/src/app/(signing)/sign/[token]/sign-dialog.tsx:60
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:446
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:325
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:471
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:350
#: apps/web/src/components/forms/v2/signup.tsx:537
msgid "Complete"
msgstr "Completo"
@ -1662,8 +1662,8 @@ msgstr "Divulgación de Firma Electrónica"
#: apps/web/src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx:129
#: apps/web/src/app/(recipient)/d/[token]/configure-direct-template.tsx:118
#: apps/web/src/app/(signing)/sign/[token]/email-field.tsx:126
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:393
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:273
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:407
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:287
#: apps/web/src/components/(teams)/dialogs/add-team-email-dialog.tsx:169
#: apps/web/src/components/(teams)/dialogs/update-team-email-dialog.tsx:153
#: apps/web/src/components/forms/forgot-password.tsx:81
@ -1798,9 +1798,9 @@ msgstr "Ingresa tu texto aquí"
#: apps/web/src/app/(signing)/sign/[token]/number-field.tsx:194
#: apps/web/src/app/(signing)/sign/[token]/radio-field.tsx:101
#: apps/web/src/app/(signing)/sign/[token]/radio-field.tsx:128
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:129
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:163
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:189
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:133
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:167
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:193
#: apps/web/src/app/(signing)/sign/[token]/text-field.tsx:167
#: apps/web/src/app/(signing)/sign/[token]/text-field.tsx:195
#: apps/web/src/components/(dashboard)/layout/verify-email-banner.tsx:54
@ -1863,11 +1863,11 @@ msgstr "Si tiene alguna pregunta sobre esta divulgación, firmas electrónicas o
msgid "Forgot your password?"
msgstr "¿Olvidaste tu contraseña?"
#: apps/web/src/app/(recipient)/d/[token]/sign-direct-template.tsx:326
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:178
#: apps/web/src/app/(recipient)/d/[token]/sign-direct-template.tsx:330
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:185
#: apps/web/src/app/(signing)/sign/[token]/name-field.tsx:193
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:378
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:258
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:392
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:272
#: apps/web/src/components/forms/profile.tsx:110
#: apps/web/src/components/forms/v2/signup.tsx:315
msgid "Full Name"
@ -2384,8 +2384,8 @@ msgstr "Nuevo propietario del equipo"
msgid "New Template"
msgstr "Nueva plantilla"
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:437
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:316
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:462
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:341
#: apps/web/src/components/forms/v2/signup.tsx:524
msgid "Next"
msgstr "Siguiente"
@ -2694,7 +2694,7 @@ msgstr "Por favor, ingresa un nombre significativo para tu token. Esto te ayudar
msgid "Please enter a valid name."
msgstr ""
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:135
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:142
msgid "Please mark as viewed to complete"
msgstr "Por favor, marca como visto para completar"
@ -2738,7 +2738,7 @@ msgstr "Por favor, proporciona un token del autenticador o un código de respald
msgid "Please provide a token from your authenticator, or a backup code."
msgstr "Por favor, proporciona un token de tu autenticador, o un código de respaldo."
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:169
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:176
msgid "Please review the document before signing."
msgstr "Por favor, revise el documento antes de firmar."
@ -3200,13 +3200,13 @@ msgstr "Mostrar plantillas en el perfil público de tu equipo para que tu audien
#: apps/web/src/app/(signing)/sign/[token]/document-action-auth-2fa.tsx:182
#: apps/web/src/app/(signing)/sign/[token]/name-field.tsx:224
#: apps/web/src/app/(signing)/sign/[token]/sign-dialog.tsx:141
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:313
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:328
#: apps/web/src/components/ui/user-profile-skeleton.tsx:75
#: apps/web/src/components/ui/user-profile-timur.tsx:81
msgid "Sign"
msgstr "Firmar"
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:274
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:278
msgid "Sign as {0} <0>({1})</0>"
msgstr "Firmar como {0} <0>({1})</0>"
@ -3214,12 +3214,12 @@ msgstr "Firmar como {0} <0>({1})</0>"
msgid "Sign as<0>{0} <1>({1})</1></0>"
msgstr "Firmar como<0>{0} <1>({1})</1></0>"
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:346
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:226
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:360
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:240
msgid "Sign document"
msgstr "Firmar documento"
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:128
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:135
msgid "Sign Document"
msgstr "Firmar Documento"
@ -3247,8 +3247,8 @@ msgstr "Inicia sesión en tu cuenta"
msgid "Sign Out"
msgstr "Cerrar sesión"
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:367
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:247
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:381
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:261
msgid "Sign the document to complete the process."
msgstr "Firma el documento para completar el proceso."
@ -3272,12 +3272,12 @@ msgstr "Regístrate con OIDC"
#: apps/web/src/app/(dashboard)/admin/documents/[id]/recipient-item.tsx:88
#: apps/web/src/app/(internal)/%5F%5Fhtmltopdf/certificate/page.tsx:177
#: apps/web/src/app/(recipient)/d/[token]/sign-direct-template.tsx:338
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:192
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:247
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:282
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:408
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:287
#: apps/web/src/app/(recipient)/d/[token]/sign-direct-template.tsx:342
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:199
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:251
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:286
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:422
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:301
#: apps/web/src/components/forms/profile.tsx:132
msgid "Signature"
msgstr "Firma"
@ -3286,6 +3286,13 @@ msgstr "Firma"
msgid "Signature ID"
msgstr "ID de Firma"
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:223
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:303
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:448
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:327
msgid "Signature is too small. Please provide a more complete signature."
msgstr ""
#: apps/web/src/app/(dashboard)/admin/stats/page.tsx:123
msgid "Signatures Collected"
msgstr "Firmas recolectadas"
@ -3381,8 +3388,8 @@ msgstr "Configuraciones del sitio"
#: apps/web/src/app/(teams)/t/[teamUrl]/settings/preferences/branding-preferences.tsx:107
#: apps/web/src/app/(teams)/t/[teamUrl]/settings/team-email-dropdown.tsx:39
#: apps/web/src/app/(unauthenticated)/verify-email/[token]/page.tsx:61
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:248
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:130
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:262
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:144
#: apps/web/src/components/(teams)/dialogs/create-team-checkout-dialog.tsx:50
#: apps/web/src/components/(teams)/dialogs/create-team-checkout-dialog.tsx:99
#: apps/web/src/components/(teams)/dialogs/invite-team-member-dialog.tsx:210
@ -4120,7 +4127,7 @@ msgstr "Tipo"
msgid "Type a command or search..."
msgstr "Escribe un comando o busca..."
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:130
#: apps/web/src/app/(signing)/sign/[token]/signature-field.tsx:134
msgid "Typed signatures are not allowed. Please draw your signature."
msgstr ""
@ -4440,7 +4447,7 @@ msgstr "Ver toda la actividad de seguridad relacionada con tu cuenta."
msgid "View Codes"
msgstr "Ver Códigos"
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:127
#: apps/web/src/app/(signing)/sign/[token]/form.tsx:134
msgid "View Document"
msgstr "Ver Documento"
@ -4676,8 +4683,8 @@ msgid "We were unable to setup two-factor authentication for your account. Pleas
msgstr "No pudimos configurar la autenticación de dos factores para tu cuenta. Asegúrate de haber ingresado correctamente tu código e inténtalo de nuevo."
#: apps/web/src/app/(recipient)/d/[token]/direct-template.tsx:120
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:250
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:132
#: apps/web/src/app/embed/direct/[[...url]]/client.tsx:264
#: apps/web/src/app/embed/sign/[[...url]]/client.tsx:146
msgid "We were unable to submit this document at this time. Please try again later."
msgstr "No pudimos enviar este documento en este momento. Por favor, inténtalo de nuevo más tarde."