Skip to content

Commit b1439be

Browse files
remove checkbox from sign up form (#6269)
## Summary Removes the checkbox from the sign up form to simplify the user experience. The "By clicking 'Next' or 'Sign Up'..." notice at the bottom already covers terms and privacy. ## Changes - Removed checkbox field from sign up schema - Updated `SignUpForm.vue` component - Removed unused `Checkbox` import ## Before/After **Before:** Sign up form included a checkbox that users had to check before submitting **After:** Sign up form is cleaner without the checkbox. The existing notice text covers the same information: > "By clicking 'Next' or 'Sign Up', you agree to our Terms of Use and Privacy Policy." This notice appears on both sign in and sign up modals. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6269-remove-checkbox-from-sign-up-form-2976d73d3650819ab480e4db6685baee) by [Unito](https://www.unito.io)
1 parent 81fc65e commit b1439be

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

src/components/dialog/content/signin/SignUpForm.vue

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,6 @@
2727

2828
<PasswordFields />
2929

30-
<!-- Personal Data Consent Checkbox -->
31-
<FormField
32-
v-slot="$field"
33-
name="personalDataConsent"
34-
class="flex items-center gap-2"
35-
>
36-
<Checkbox
37-
input-id="comfy-org-sign-up-personal-data-consent"
38-
:binary="true"
39-
:invalid="$field.invalid"
40-
/>
41-
<label
42-
for="comfy-org-sign-up-personal-data-consent"
43-
class="text-base font-medium opacity-80"
44-
>
45-
{{ t('auth.signup.personalDataConsentLabel') }}
46-
</label>
47-
<small v-if="$field.error" class="-mt-4 text-red-500">{{
48-
$field.error.message
49-
}}</small>
50-
</FormField>
51-
5230
<!-- Submit Button -->
5331
<Button
5432
type="submit"
@@ -63,7 +41,6 @@ import type { FormSubmitEvent } from '@primevue/forms'
6341
import { Form, FormField } from '@primevue/forms'
6442
import { zodResolver } from '@primevue/forms/resolvers/zod'
6543
import Button from 'primevue/button'
66-
import Checkbox from 'primevue/checkbox'
6744
import InputText from 'primevue/inputtext'
6845
import { useI18n } from 'vue-i18n'
6946

src/schemas/signInSchema.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,11 @@ export const signUpSchema = passwordSchema
4545
email: z
4646
.string()
4747
.email(t('validation.invalidEmail'))
48-
.min(1, t('validation.required')),
49-
personalDataConsent: z.boolean()
48+
.min(1, t('validation.required'))
5049
})
5150
.refine((data) => data.password === data.confirmPassword, {
5251
message: t('validation.password.match'),
5352
path: ['confirmPassword']
5453
})
55-
.refine((data) => data.personalDataConsent === true, {
56-
message: t('validation.personalDataConsentRequired'),
57-
path: ['personalDataConsent']
58-
})
5954

6055
export type SignUpData = z.infer<typeof signUpSchema>

0 commit comments

Comments
 (0)