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: signup redirect query param after onboarding #13761

Merged
merged 4 commits into from
Feb 21, 2024

Conversation

sean-brydon
Copy link
Member

@sean-brydon sean-brydon commented Feb 19, 2024

Loom: https://www.loom.com/share/6fc8126dcac1402fba236a45a64c08ff

fixes: CAL-3054 #13460

Following the merge of this PR: https://github.com/calcom/website/pull/684 should also be merged to update pricing URL in website.

Copy link

linear bot commented Feb 19, 2024

@graphite-app graphite-app bot requested a review from a team February 19, 2024 17:18
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.

@keithwillcode keithwillcode added consumer core area: core, team members only labels Feb 19, 2024
}
await utils.viewer.me.refetch();
const redirectUrl = localStorage.getItem("onBoardingRedirect");
localStorage.removeItem("onBoardingRedirect");
Copy link
Member Author

Choose a reason for hiding this comment

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

Remove from storage so this doesnt happen if the user onboards again for whatever reason.

Comment on lines +30 to +37
const redirectUrlData = z
.string()
.refine((value) => value.startsWith(WEBAPP_URL), {
params: (value: string) => ({ value }),
message: "Redirect URL must start with 'cal.com'",
})
.optional()
.safeParse(ctx.query.redirect);
Copy link
Member Author

Choose a reason for hiding this comment

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

Ensure this URL is only to WEBAPP

.optional()
.safeParse(ctx.query.redirect);

const redirectUrl = redirectUrlData.success ? redirectUrlData.data : undefined;
Copy link
Member Author

Choose a reason for hiding this comment

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

If this fails - use undefined and don't throw error

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

Copy link

deploysentinel bot commented Feb 19, 2024

Current Playwright Test Results Summary

✅ 447 Passing - ⚠️ 25 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 02:11:22pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 899ad35

Started: 02/21/2024 02:01:11pm UTC

⚠️ Flakes

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

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 Radio group Question Booking With Multiple Email Question and Short text question Multiple Email and Short text not required
Retry 1Initial Attempt
0% (0) 0 / 222 runs
failed over last 7 days
4.95% (11) 11 / 222 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 Checkbox Group Question Long Text and Checkbox Group required
Retry 1Initial Attempt
0.45% (1) 1 / 223 run
failed over last 7 days
3.14% (7) 7 / 223 runs
flaked over last 7 days
Booking With Long Text Question and Each Other Question Booking With Long Text Question and multiselect Question Long Text and multiselect text required
Retry 1Initial Attempt
0% (0) 0 / 223 runs
failed over last 7 days
4.93% (11) 11 / 223 runs
flaked over last 7 days

📄   apps/web/playwright/booking/checkboxGroupQuestion.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 Checkbox Group Question and Each Other Question Booking With Checkbox Group Question and Address Question Booking With Checkbox Group Question and Phone Question Checkbox Group required and Phone required
Retry 1Initial Attempt
0.43% (1) 1 / 232 run
failed over last 7 days
5.60% (13) 13 / 232 runs
flaked over last 7 days
Booking With Checkbox Group Question and Each Other Question Booking With Checkbox Group Question and Address Question Booking With Checkbox Group Question and Short text question Checkbox Group and Short Text not required
Retry 1Initial Attempt
0.89% (2) 2 / 225 runs
failed over last 7 days
6.22% (14) 14 / 225 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
user can login & logout succesfully -- future login flow user & logout using dashboard
Retry 1Initial Attempt
0.42% (1) 1 / 236 run
failed over last 7 days
42.80% (101) 101 / 236 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Radio Question and Each Other Question Booking With Radio Question and Address Question Booking With Radio Question and Number Question Radio required and Number required
Retry 1Initial Attempt
0% (0) 0 / 243 runs
failed over last 7 days
4.53% (11) 11 / 243 runs
flaked over last 7 days

📄   apps/web/playwright/booking/phoneQuestion.e2e.ts • 3 Flakes

Top 1 Common Error Messages

null

3 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Phone Question and Each Other Question Booking With Phone Question and Address Question Booking With Phone Question and Multi email Question Phone and Multi email required
Retry 1Initial Attempt
0% (0) 0 / 245 runs
failed over last 7 days
5.71% (14) 14 / 245 runs
flaked over last 7 days
Booking With Phone Question and Each Other Question Booking With Phone Question and Address Question Booking With Phone Question and multiselect Question Phone and multiselect text required
Retry 1Initial Attempt
0% (0) 0 / 245 runs
failed over last 7 days
3.67% (9) 9 / 245 runs
flaked over last 7 days
Booking With Phone Question and Each Other Question Booking With Phone Question and Address Question Booking With Phone Question and Radio group Question Phone and Radio group required
Retry 2Retry 1Initial Attempt
0% (0) 0 / 245 runs
failed over last 7 days
4.49% (11) 11 / 245 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With All Questions Selecting and filling all questions as optional
Retry 1Initial Attempt
0% (0) 0 / 232 runs
failed over last 7 days
5.17% (12) 12 / 232 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Availablity tests Can manage single schedule
Retry 2Retry 1Initial Attempt
0.83% (2) 2 / 240 runs
failed over last 7 days
7.08% (17) 17 / 240 runs
flaked over last 7 days

📄   apps/web/playwright/event-types.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
Event Types tests -- future user can add multiple organizer address
Retry 1Initial Attempt
0% (0) 0 / 243 runs
failed over last 7 days
20.16% (49) 49 / 243 runs
flaked over last 7 days
Event Types tests -- legacy user can add multiple organizer address
Retry 1Initial Attempt
0% (0) 0 / 242 runs
failed over last 7 days
4.13% (10) 10 / 242 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 / 241 runs
failed over last 7 days
4.15% (10) 10 / 241 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Address Question and Each Other Question Booking With Address Question and Phone Question Address required and Phone required
Retry 1Initial Attempt
0% (0) 0 / 234 runs
failed over last 7 days
8.12% (19) 19 / 234 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
-4.15% (-10) -10 / 241 runs
failed over last 7 days
59.34% (143) 143 / 241 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 1Initial Attempt
-115.74% (-125) -125 / 108 runs
failed over last 7 days
119.44% (129) 129 / 108 runs
flaked over last 7 days
Popup Tests should open Routing Forms embed on click
Retry 1Initial Attempt
-124.04% (-129) -129 / 104 runs
failed over last 7 days
124.04% (129) 129 / 104 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
-124.04% (-129) -129 / 104 runs
failed over last 7 days
124.04% (129) 129 / 104 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
-124.04% (-129) -129 / 104 runs
failed over last 7 days
124.04% (129) 129 / 104 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
-124.04% (-129) -129 / 104 runs
failed over last 7 days
124.04% (129) 129 / 104 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
-124.04% (-129) -129 / 104 runs
failed over last 7 days
124.04% (129) 129 / 104 runs
flaked over last 7 days
Popup Tests prendered embed should be loaded and apply the config given to it
Retry 1Initial Attempt
-124.04% (-129) -129 / 104 runs
failed over last 7 days
124.04% (129) 129 / 104 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
16.60% (42) 42 / 253 runs
failed over last 7 days
48.62% (123) 123 / 253 runs
flaked over last 7 days

View Detailed Build Results


Copy link

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

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.

@sean-brydon callbackUrl also does the same thing No it doesn't

@sean-brydon
Copy link
Member Author

@sean-brydon callbackUrl also does the same thing

o.o

@sean-brydon
Copy link
Member Author

@sean-brydon callbackUrl also does the same thing No it doesn't

As discussed in DMs - will update here for history sake:

callbackUrl happens straight after the user has signed up and this solution happens after onboarding. Me and Udit discussed in DMs that callbackUrl should probably do anyway - I will look at this

@PeerRich PeerRich added the Medium priority Created by Linear-GitHub Sync label Feb 21, 2024
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

@PeerRich PeerRich merged commit 92286e2 into main Feb 21, 2024
39 checks passed
@PeerRich PeerRich deleted the feat/signup-redirect-link branch February 21, 2024 15:23
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.

4 participants