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

fix: sdk action events #13755

Merged
merged 12 commits into from
Feb 21, 2024
Merged

fix: sdk action events #13755

merged 12 commits into from
Feb 21, 2024

Conversation

Udit-takkar
Copy link
Contributor

What does this PR do?

Fixes

  • On booking success page sdkActionManager fires 'bookingSuccessful' event in useEffect so event when you click on cancel event 'bookingSuccessful' is fired.

  • Added more events for cancel and reschedule.

https://calcominc.slack.com/archives/C06988PE6CX/p1708099745580649?thread_ts=1708095071.972989&cid=C06988PE6CX

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How to test?

Go to packages/embeds/embed-react and run yarn dev
Try Booking any event type and check the console logs. you should see events like CAL::bookingSuccessful, CAL::bookingCancelled

@graphite-app graphite-app bot requested a review from a team February 19, 2024 13:56
Copy link
Contributor

github-actions bot commented Feb 19, 2024

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

Copy link

graphite-app bot commented Feb 19, 2024

Graphite Automations

A Graphite automation took an action on this PR • (02/19/24)

1 reviewer was added based on Keith Williams's automation, 'Add consumer team as reviewer'

Copy link

deploysentinel bot commented Feb 19, 2024

Current Playwright Test Results Summary

✅ 447 Passing - ⚠️ 13 Flaky

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

(Last updated on 02/21/2024 06:59:30pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: f050508

Started: 02/21/2024 06:49:55pm UTC

⚠️ Flakes

📄   apps/web/playwright/booking/multipleEmailQuestion.e2e.ts • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Multiple Email Question and Each Other Question Booking With Multiple Email Question and checkbox Question Multiple Email required and checkbox required
Retry 1Initial Attempt
0.41% (1) 1 / 244 run
failed over last 7 days
7.38% (18) 18 / 244 runs
flaked over last 7 days
Booking With Multiple Email Question and Each Other Question Booking With Multiple Email Question and Number Question Multiple Email and Number not required
Retry 1Initial Attempt
0% (0) 0 / 242 runs
failed over last 7 days
4.96% (12) 12 / 242 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
prefill -- future logged in
Retry 1Initial Attempt
0% (0) 0 / 244 runs
failed over last 7 days
5.74% (14) 14 / 244 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Phone Question and Each Other Question Booking With Select Question and Phone Question Select required and select required
Retry 2Retry 1Initial Attempt
0% (0) 0 / 258 runs
failed over last 7 days
5.43% (14) 14 / 258 runs
flaked over last 7 days

📄   apps/web/playwright/booking/longTextQuestion.e2e.ts • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Long Text Question and Each Other Question Booking With Long Text Question and Radio group Question Long Text and Radio group required
Retry 1Initial Attempt
0% (0) 0 / 241 runs
failed over last 7 days
6.22% (15) 15 / 241 runs
flaked over last 7 days
Booking With Long Text Question and Each Other Question Booking With Long Text Question and select Question Long Text required and select not required
Retry 1Initial Attempt
0% (0) 0 / 240 runs
failed over last 7 days
6.25% (15) 15 / 240 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Checkbox Group Question and Each Other Question Booking With Checkbox Group Question and Address Question Booking With Checkbox Group Question and Number Question Checkbox Group required and Number required
Retry 1Initial Attempt
0% (0) 0 / 248 runs
failed over last 7 days
4.03% (10) 10 / 248 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Insights should test download button
Retry 1Initial Attempt
0% (0) 0 / 258 runs
failed over last 7 days
4.26% (11) 11 / 258 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/preview.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Preview Preview - embed-core should load
Retry 1Initial Attempt
0% (0) 0 / 264 runs
failed over last 7 days
36.74% (97) 97 / 264 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 Routing Link - Reporting and CSV Download
Retry 1Initial Attempt
0.38% (1) 1 / 261 run
failed over last 7 days
1.53% (4) 4 / 261 runs
flaked over last 7 days

📄   apps/web/playwright/settings/upload-avatar.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
UploadAvatar can upload an image
Retry 1Initial Attempt
1.51% (4) 4 / 265 runs
failed over last 7 days
4.15% (11) 11 / 265 runs
flaked over last 7 days

📄   apps/web/playwright/app-store.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
App Store - Authed -- legacy Installed Apps - Navigation
Retry 1Initial Attempt
0% (0) 0 / 260 runs
failed over last 7 days
0.38% (1) 1 / 260 run
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/inline.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Inline Iframe Inline Iframe - Configured with Dark Theme
Retry 1Initial Attempt
1.14% (3) 3 / 264 runs
failed over last 7 days
41.67% (110) 110 / 264 runs
flaked over last 7 days

View Detailed Build Results


Copy link

vercel bot commented Feb 19, 2024

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 Feb 21, 2024 6:33pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Feb 21, 2024 6:33pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Feb 21, 2024 6:33pm
qa ⬜️ Ignored (Inspect) Visit Preview Feb 21, 2024 6:33pm

Copy link
Contributor

github-actions bot commented Feb 19, 2024

📦 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! 🙌

@Udit-takkar Udit-takkar added this to the v3.9 milestone Feb 19, 2024
@Udit-takkar Udit-takkar marked this pull request as draft February 19, 2024 14:22
@keithwillcode keithwillcode added the Medium priority Created by Linear-GitHub Sync label Feb 19, 2024
@Udit-takkar Udit-takkar marked this pull request as ready for review February 20, 2024 14:57
if (res.status >= 200 && res.status < 300) {
// tested by apps/web/playwright/booking-pages.e2e.ts
sdkActionManager?.fire("bookingCancelled", {
...bookingCancelledEventProps,
booking: bookingWithCancellationReason,
Copy link
Member

Choose a reason for hiding this comment

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

added missing cancellation reason to booking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consumer core area: core, team members only Medium priority Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants