Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improve invitation form validation #12594

Merged
merged 4 commits into from
Nov 29, 2023

Conversation

ThyMinimalDev
Copy link
Contributor

@ThyMinimalDev ThyMinimalDev commented Nov 29, 2023

What does this PR do?

improve form validation of the team/org invitation form

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How should this be tested?

send invitations to members for teams / orgs

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

Copy link

vercel bot commented Nov 29, 2023

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

Name Status Preview Comments Updated (UTC)
ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2023 7:21pm
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2023 7:21pm
cal 🔄 Building (Inspect) Visit Preview 💬 Add feedback Nov 29, 2023 7:21pm
cal-demo 🔄 Building (Inspect) Visit Preview 💬 Add feedback Nov 29, 2023 7:21pm
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2023 7:21pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
qa ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2023 7:21pm
ui ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2023 7:21pm

Copy link
Contributor

github-actions bot commented Nov 29, 2023

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link to collect XP and win prizes!

@ThyMinimalDev ThyMinimalDev added the Low priority Created by Linear-GitHub Sync label Nov 29, 2023
@zomars zomars added admin core area: core, team members only devops labels Nov 29, 2023
@@ -213,8 +218,10 @@ export default function MemberInvitationModal(props: MemberInvitationModalProps)
name="emailOrUsername"
control={newMemberFormMethods.control}
rules={{
required: t("enter_email_or_username"),
required: isOrg ? t("enter_email") : t("enter_email_or_username"),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

org can only invite by email

@@ -241,7 +247,14 @@ export default function MemberInvitationModal(props: MemberInvitationModalProps)
name="emailOrUsername"
control={newMemberFormMethods.control}
rules={{
required: t("enter_email_or_username"),
required: t("enter_email"),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bulk invite only by email

Copy link
Contributor

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link

deploysentinel bot commented Nov 29, 2023

Current Playwright Test Results Summary

✅ 74 Passing - ⚠️ 3 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 11/29/2023 07:31:57pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 2617b6a

Started: 11/29/2023 07:27:27pm UTC

⚠️ Flakes

📄   apps/web/playwright/login.2fa.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
2FA Tests should allow a user to enable 2FA and login using 2FA
Retry 2Retry 1Initial Attempt
0.33% (1) 1 / 304 run
failed over last 7 days
25.66% (78) 78 / 304 runs
flaked over last 7 days

📄   apps/web/playwright/integrations-stripe.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Stripe integration When event is paid and confirmed Paid and confirmed booking should be able to be rescheduled
Retry 1Initial Attempt
0% (0) 0 / 304 runs
failed over last 7 days
2.30% (7) 7 / 304 runs
flaked over last 7 days

📄   apps/web/playwright/event-types.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Event Types tests user -- legacy Different Locations Tests can add Attendee Phone Number location and book with it
Retry 1Initial Attempt
0.38% (1) 1 / 261 run
failed over last 7 days
3.07% (8) 8 / 261 runs
flaked over last 7 days

View Detailed Build Results


Copy link
Member

@zomars zomars left a comment

Choose a reason for hiding this comment

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

LGTM

@zomars zomars merged commit a65e18d into main Nov 29, 2023
35 of 36 checks passed
@zomars zomars deleted the improve-invitation-form-validation branch November 29, 2023 19:44
jakazzy pushed a commit to jakazzy/cal.com that referenced this pull request Dec 5, 2023
* chore: improve invitation form validation

* fixup! chore: improve invitation form validation

* fixup! fixup! chore: improve invitation form validation
hbjORbj pushed a commit to codemod-com/cal.com-demo that referenced this pull request Dec 21, 2023
* chore: improve invitation form validation

* fixup! chore: improve invitation form validation

* fixup! fixup! chore: improve invitation form validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core area: core, team members only Low priority Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants