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

Bug - link not showing #2333

Merged
merged 5 commits into from
Mar 31, 2022
Merged

Bug - link not showing #2333

merged 5 commits into from
Mar 31, 2022

Conversation

sean-brydon
Copy link
Member

@sean-brydon sean-brydon commented Mar 31, 2022

What does this PR do?

Fixes meeting link not showing up in the location field on emails and calendar

Fixes # (issue)
#2332

Type of change

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

How should this be tested?

  • Create an email with a link type
  • Link will now show in confrimation emails/calendar

Checklist

  • I haven't added tests that prove my fix is effective or that my feature works

@vercel
Copy link

vercel bot commented Mar 31, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

docs – ./apps/docs

🔍 Inspect: https://vercel.com/cal/docs/HwqyNzaMmtzo3gD4W6nF8vwYwskb
✅ Preview: Canceled

[Deployment for f0d1bb1 canceled]

calendso – ./apps/web

🔍 Inspect: https://vercel.com/cal/calendso/2z3nBLZrZsGhUVmyYY7Lt7ZbStUQ
✅ Preview: https://calendso-git-bug-notes-email-link-cal.vercel.app

Copy link
Contributor

@alannnc alannnc left a comment

Choose a reason for hiding this comment

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

Code looks good but haven’t tested it

@sean-brydon sean-brydon requested a review from zomars March 31, 2022 19:05
@vercel vercel bot temporarily deployed to Preview – docs March 31, 2022 19:16 Inactive
@vercel vercel bot temporarily deployed to Preview – calendso March 31, 2022 19:16 Inactive
Copy link
Contributor

@alannnc alannnc left a comment

Choose a reason for hiding this comment

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

I updated the PR, as to me link was missing on organiser and attendee emails.
Take a look at my fix and if it doesn't break anything else.
@sean-brydon
e3c1cd5

@vercel vercel bot temporarily deployed to Preview – docs March 31, 2022 19:43 Inactive
@vercel vercel bot temporarily deployed to Preview – calendso March 31, 2022 19:43 Inactive
// If location its a url, probably we should be validating it with a custom library
if (
this.calEvent.location &&
(this.calEvent.location.includes("https://") || this.calEvent.location.includes("http://"))
Copy link
Member

Choose a reason for hiding this comment

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

This will return true for URLs like: notanUrlButHashttps://intheMiddle

@vercel vercel bot temporarily deployed to Preview – docs March 31, 2022 19:46 Inactive
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.

Fixed some minor details, nice work @sean-brydon 🙏🏽

@vercel vercel bot temporarily deployed to Preview – docs March 31, 2022 19:47 Inactive
@zomars zomars enabled auto-merge (squash) March 31, 2022 19:47
@vercel vercel bot temporarily deployed to Preview – calendso March 31, 2022 19:52 Inactive
@zomars zomars merged commit f293f8b into main Mar 31, 2022
@zomars zomars deleted the bug/notes-email-link branch March 31, 2022 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants