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

feat: SMS/Whatsapp to attendee for teams #14648

Merged
merged 35 commits into from
Apr 23, 2024

Conversation

CarinaWolli
Copy link
Member

@CarinaWolli CarinaWolli commented Apr 17, 2024

What does this PR do?

Before SMS/Whatsapp to attendee was only available for Orgs, now it will be available for all teams. It adds rate limit to sending SMS + an Admin view (localhost:3000/settings/admin/lockedSMS) to lock users and teams to send SMS.

Fixes #13897

Copy link
Contributor

github-actions bot commented Apr 17, 2024

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

@github-actions github-actions bot added the ❗️ migrations contains migration files label Apr 17, 2024
@keithwillcode keithwillcode added consumer core area: core, team members only labels Apr 17, 2024
Copy link

vercel bot commented Apr 17, 2024

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

Name Status Preview Comments Updated (UTC)
platform-starter-kit ❌ Failed (Inspect) Apr 23, 2024 7:33pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview Apr 23, 2024 7:33pm
cal ⬜️ Ignored (Inspect) Visit Preview Apr 23, 2024 7:33pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Apr 23, 2024 7:33pm

Copy link
Contributor

github-actions bot commented Apr 17, 2024

📦 Next.js Bundle Analysis for @calcom/web

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

New Pages Added

The following pages were added to the bundle from the code in this PR:

Page Size (compressed) First Load % of Budget (350 KB)
/settings/admin/lockedSMS 281.67 KB 510.08 KB 145.74%
/settings/admin/lockedSMS/UsersTable 78.73 KB 307.14 KB 87.75%
/settings/admin/lockedSMS/lockedSMSView 118.39 KB 346.8 KB 99.09%

Seven Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/auth/setup 149.15 KB 377.56 KB 107.87% (🟡 +0.15%)
/settings/admin/oAuth 272.77 KB 501.18 KB 143.20% (🟡 +0.25%)
/settings/admin/oAuth/oAuthView 94.93 KB 323.34 KB 92.38% (🟡 +0.23%)
/settings/admin/orgMigrations/moveTeamToOrg 298.62 KB 527.03 KB 150.58% (🟡 +0.19%)
/settings/admin/orgMigrations/moveUserToOrg 317.93 KB 546.34 KB 156.10% (🟡 +0.20%)
/settings/admin/orgMigrations/removeTeamFromOrg 298.37 KB 526.78 KB 150.51% (🟡 +0.18%)
/settings/admin/orgMigrations/removeUserFromOrg 298.38 KB 526.79 KB 150.51% (🟡 +0.18%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

Copy link

deploysentinel bot commented Apr 17, 2024

Current Playwright Test Results Summary

✅ 314 Passing - ⚠️ 18 Flaky

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

(Last updated on 04/23/2024 07:47:51pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 3ae9a07

Started: 04/23/2024 07:45:00pm UTC

⚠️ Flakes

📄   apps/web/playwright/booking-seats.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Reschedule for booking with seats If rescheduled/cancelled booking with seats it should display the correct number of seats
Retry 1Initial Attempt
0% (0) 0 / 220 runs
failed over last 7 days
3.18% (7) 7 / 220 runs
flaked over last 7 days

📄   apps/web/playwright/profile.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Update Profile Can update a users email (verification enabled)
Retry 1Initial Attempt
7.89% (18) 18 / 228 runs
failed over last 7 days
29.39% (67) 67 / 228 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 -- future user Different Locations Tests can add Attendee Phone Number location and book with it
Retry 1Initial Attempt
0% (0) 0 / 262 runs
failed over last 7 days
8.40% (22) 22 / 262 runs
flaked over last 7 days

📄   apps/web/playwright/hash-my-url.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
hash my url generate url hash
Retry 1Initial Attempt
4.88% (2) 2 / 41 runs
failed over last 7 days
24.39% (10) 10 / 41 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/namespacing.e2e.ts • 4 Flakes

Top 1 Common Error Messages

null

4 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Namespacing Inline Embed Double install Embed Snippet with inline embed using a namespace
Retry 1Initial Attempt
0% (0) 0 / 142 runs
failed over last 7 days
47.89% (68) 68 / 142 runs
flaked over last 7 days
Namespacing Inline Embed Add inline embed using a namespace without reload
Retry 1Initial Attempt
0.70% (1) 1 / 142 run
failed over last 7 days
47.18% (67) 67 / 142 runs
flaked over last 7 days
Namespacing Different namespaces can have different init configs
Retry 1Initial Attempt
0% (0) 0 / 140 runs
failed over last 7 days
47.86% (67) 67 / 140 runs
flaked over last 7 days
Namespacing Inline Embed Double install Embed Snippet with inline embed without a namespace(i.e. default namespace)
Retry 1Initial Attempt
0% (0) 0 / 142 runs
failed over last 7 days
48.59% (69) 69 / 142 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 8 Flakes

Top 1 Common Error Messages

null

8 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should open embed iframe on click - Configured with light theme
Retry 1Initial Attempt
14.34% (37) 37 / 258 runs
failed over last 7 days
51.94% (134) 134 / 258 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 1Initial Attempt
-154.02% (-134) -134 / 87 runs
failed over last 7 days
154.02% (134) 134 / 87 runs
flaked over last 7 days
Popup Tests should open Routing Forms embed on click
Retry 1Initial Attempt
-152.87% (-133) -133 / 87 runs
failed over last 7 days
152.87% (133) 133 / 87 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe according to system theme when no theme is configured through Embed API
Retry 1Initial Attempt
-150.57% (-131) -131 / 87 runs
failed over last 7 days
151.72% (132) 132 / 87 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe according to system theme when configured with 'auto' theme using Embed API
Retry 1Initial Attempt
-153.49% (-132) -132 / 86 runs
failed over last 7 days
153.49% (132) 132 / 86 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe(Booker Profile Page) with dark theme when configured with dark theme using Embed API
Retry 1Initial Attempt
-153.49% (-132) -132 / 86 runs
failed over last 7 days
153.49% (132) 132 / 86 runs
flaked over last 7 days
Popup Tests prendered embed should be loaded and apply the config given to it
Retry 1Initial Attempt
-153.49% (-132) -132 / 86 runs
failed over last 7 days
153.49% (132) 132 / 86 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe(Event Booking Page) with dark theme when configured with dark theme using Embed API
Retry 1Initial Attempt
-153.49% (-132) -132 / 86 runs
failed over last 7 days
153.49% (132) 132 / 86 runs
flaked over last 7 days

📄   packages/app-store/routing-forms/playwright/tests/basic.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Routing Forms Seeded Routing Form Router URL should work
Retry 1Initial Attempt
0.77% (2) 2 / 261 runs
failed over last 7 days
8.43% (22) 22 / 261 runs
flaked over last 7 days

📄   apps/web/playwright/organization/booking.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Bookings Team Event Can create a booking for Round Robin EventType
Retry 1Initial Attempt
16.24% (44) 44 / 271 runs
failed over last 7 days
24.35% (66) 66 / 271 runs
flaked over last 7 days

View Detailed Build Results


@CarinaWolli
Copy link
Member Author

can you also block orgs teams?

orgs can't be blocked. also not their users and teams

};

function UsersTable({ setSMSLockState }: Props) {
const { data: usersAndTeams } = trpc.viewer.admin.getSMSLockStateTeamsUsers.useQuery();
Copy link
Contributor

Choose a reason for hiding this comment

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

Not urgent: use infinite query here. we can probably use it later

Copy link
Contributor

@Udit-takkar Udit-takkar left a comment

Choose a reason for hiding this comment

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

LGTM. works fine for me. will wait for @joeauyeung re review before merging

Copy link
Contributor

@joeauyeung joeauyeung left a comment

Choose a reason for hiding this comment

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

No big changes since my last approval. Approving again.

@CarinaWolli CarinaWolli enabled auto-merge (squash) April 23, 2024 19:36
@CarinaWolli CarinaWolli merged commit 883d745 into main Apr 23, 2024
36 of 39 checks passed
@CarinaWolli CarinaWolli deleted the feat/bring-back-sms-to-attendee branch April 23, 2024 19:48
@keithwillcode
Copy link
Contributor

@CarinaWolli @joeauyeung @Udit-takkar why was this PR merged with 0 tests added to verify SMS locking logic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin bookings area: bookings, availability, timezones, double booking consumer core area: core, team members only ✨ feature New feature or request High priority Created by Linear-GitHub Sync ❗️ migrations contains migration files teams area: teams, round robin, collective, managed event-types workflows area: workflows, automations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-3430] [CAL-3233] Bring back SMS reminders for teams
4 participants