869 Commits
v1.0 ... v1.4

Author SHA1 Message Date
Peer Richelsen
9831845d27 add zendesk (#2156)
* MVP zendesk provider

* hide zendesk on mobile

* hide zendesk chat bubble on mobile too

* made mobile selector more robust

* made user menu full width

* removed zendesk react and instead use Nextjs Script

* updated NEXT_PUBLIC_ZENDESK_KEY env in example
2022-03-15 22:46:14 +00:00
Bailey Pumfleet
04cd821a57 Remove font weights from Cal Sans text (#2158) 2022-03-15 09:59:04 -07:00
Bailey Pumfleet
7f270649b4 Escape curly braces in Webhooks doc 2022-03-15 16:35:24 +00:00
Bailey Pumfleet
fae714bceb Add a fallback if name is null (#2157) 2022-03-15 15:42:59 +00:00
Joe Au-Yeung
47c2fc3d89 Add contributing to app store doc - V2 (#2118)
* Add contributing to app store docs

* Edit file structure diagram and fix build

* Add doc to meta

* Wrap example variabels in code block

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-03-15 15:17:56 +00:00
Agusti Fernandez
53b202790e Feature: pre-fill name and email if user loggedIn in booking page (#2131)
* feat: pre-fill name and email if user loggedIn in booking page

* feat: add name to next-auth autoMergeIdentiteies response

* fix: Update booking page so if you're in your own booking, it doesn't prefill

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-15 14:39:20 +00:00
Syed Ali Shahbaz
9b1031d009 Added 3 digit hex compatibility for Custom Brand colors (#2152)
* Added 3 digit hex compatibility

* fix for compatibility
2022-03-15 10:45:08 +00:00
Omar López
b25e6c25aa Adds missing required main file for EE (#2146)
* Adds missing required main file

* Lint fixes
2022-03-14 20:39:37 +01:00
milospuac
4083ebd591 Update webhooks.mdx (#2144)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-03-14 13:24:34 +00:00
Bailey Pumfleet
f2e0f00f93 Fix error.svg URL 2022-03-14 11:59:05 +00:00
Bailey Pumfleet
fd6b2c57cb Revert "Bugfix/login failure due email capitalisation (#1884)" (#2143)
This reverts commit 3d685eb4ae.
2022-03-14 11:53:13 +00:00
Jonathan Ng
3d685eb4ae Bugfix/login failure due email capitalisation (#1884)
* convert the email to lowercase

this code will prevent the email check from failing if the user email contain capitalisation.

* Updated Readme to contain warning.

* Revert "Updated Readme to contain warning."

This reverts commit c406587c73c07c613d1c8091bfdd17bd691b00e8.

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-03-14 11:45:22 +00:00
Syed Ali Shahbaz
c9fb82a7e6 added event trigger to discord payload (#2109)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-14 11:27:28 +00:00
Peer Richelsen
eaf19d1d23 Update .kodiak.toml (#2142) 2022-03-14 11:21:16 +00:00
github-actions[bot]
7e6e6b6d6b New Crowdin translations by Github Action (#2140)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-14 11:08:29 +00:00
Alex van Andel
3a5522cf0e Renames 'version' to full package.json import (#2132) 2022-03-14 10:20:40 +00:00
Hariom Balhara
6377377c4d Fix Broken user dropdown (#2138)
* Fix Broken user dropdown

* Add unnecessary removal

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-03-14 10:15:00 +00:00
github-actions[bot]
62be5b561e New Crowdin translations by Github Action (#2126)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-14 10:12:20 +00:00
Leo Giovanetti
424482646f Removing headlessui used in menus (#2127) 2022-03-13 22:09:39 +00:00
sean-brydon
f0b1767b3c Link/In person location (#2104) 2022-03-13 15:56:56 +00:00
github-actions[bot]
3e3e802b28 New Crowdin translations by Github Action (#2124)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-13 12:14:33 +00:00
github-actions[bot]
da9f49341f New Crowdin translations by Github Action (#2123)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-13 10:11:40 +00:00
github-actions[bot]
1ab9728fa0 New Crowdin translations by Github Action (#2121)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-13 09:58:11 +00:00
Peer Richelsen
5b4cebac16 added day, version, plan and self host (sh) or hosted (h) into left sidebar footer (#2111) 2022-03-13 00:07:21 +00:00
Syed Ali Shahbaz
788e2acaff Fix for buffer not considering custom interval slots and event duration for slots when using custom intervals (#2079)
* modified buffer checks

* added custom interval consideration in getSlots fn

* further getslot call fixes

* added check for end of day availability slots

* removed debug remnants

* moved slot filtering into a function

* improved readability of code

* improved readability

* extracted getFilteredTimes outside useSlot

* added a buffer test

* added another buffer test

* edge case fix for eod availability and test fix

* removed unnecessary comments

* verbose comment

* fixed eod logic and updated expected test value

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-12 06:52:27 +00:00
github-actions[bot]
ada3317ba5 New Crowdin translations by Github Action (#2099)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-12 00:18:58 +00:00
Joe Au-Yeung
bb73e30b17 Revert "Add contributing to app store docs (#2113)" (#2115)
This reverts commit 006645b279.
2022-03-12 00:15:36 +00:00
Joe Au-Yeung
006645b279 Add contributing to app store docs (#2113)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-03-11 15:01:25 +00:00
Syed Ali Shahbaz
ec06f645bd added null eventtypeid fix (#2108) 2022-03-11 09:00:25 +00:00
sean-brydon
21bc4f9386 Radix UI Switch (#2075)
* Radix UI Switch

Making all switches consistent - using Raxix UI design instead of headless

* Moving Switch Component to Monorepo

* Update apps/web/components/booking/TimeOptions.tsx

* Fix stripe data import

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Alan <alannnc@gmail.com>
2022-03-11 00:26:42 +00:00
Omar López
45f8d2d230 Type fixes (#2107)
* Update viewer.tsx

* Type fix
2022-03-10 22:29:34 +00:00
Omar López
d98731d50a Update viewer.tsx (#2106) 2022-03-10 15:13:26 -07:00
Joe Au-Yeung
ec97971e7d Fixed API call route (#2105) 2022-03-10 16:15:45 -05:00
Peer Richelsen
0b83133155 added emptyscreen for away mode profile (#2093)
* added emptyscreen for away mode profile

* eplaced shadow with border

* added snooze emoji

* Remove modified yarn.lock file from PR

* space between smiley and text

Co-authored-by: Peer Richelsen <peer@Peers-MacBook-Pro-2.local>
Co-authored-by: Peer Richelsen <peer@hey.com>
2022-03-10 19:21:27 +00:00
Omar López
5625cf226b Stripe to monorepo (#2063)
* downgrade func

* fix security hole lol

* fix query conditions

* - set to trial not free
- auto create stripe customer if missing
- fix production check

* Extracts downgrade logic to script, fixes ts-node conflicts with prisma

* Adds trialEndsAt field to users

* Updates trial/downgrade logic

* Typo

* Legibility fixes

* Update team-billing.ts

* Legibility improvements

* Updates illegal logic

* WIP

* WIP migrating stripe to package

* Update website

* Import fixes

* Import fixes

* Fixes to downgrade script

* Check for premium usernames before downgrading

* Fixed formatting

* Delete deploy-env.sh

* Locks dayjs to 1.10.6

* Type fixes

* Seems like we're stuck with dayjs 1.10.4

* Script fixes

* Adds first name to dump

* Loop fix

Co-authored-by: Jamie <ijamespine@me.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-09 15:56:05 -07:00
Peer Richelsen
adbae64619 fixed tablet view of event-types (#2098)
Co-authored-by: Peer Richelsen <peer@hey.com>
2022-03-09 22:17:46 +00:00
github-actions[bot]
ecf352ce00 New Crowdin translations by Github Action (#2095)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-09 20:46:56 +00:00
Omar López
e53648d218 Linting (#2083)
* Runs yarn format

* Update website

* Web lint is failing

* Formatting

* Adds cache for dependency install

* Adds linting reports for GH

* Fixes artifact upload

* Caching tests

* Merge reports on GH actions

* Linting

* Fix prettier plugin conflicts

* Dep fixes

* Moves tailwind to monorepo package (#2091)

* New Crowdin translations by Github Action (#2077)

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>

* fix redirection to 404 page on login (#2086)

Co-authored-by: Peer Richelsen <peeroke@gmail.com>

* fix: update contributing (#2084)

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>

* Formatting

* Update website

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Louis <48682663+louis-27@users.noreply.github.com>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-03-09 17:52:48 +00:00
github-actions[bot]
9da761b21c New Crowdin translations by Github Action (#2094)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-09 17:06:46 +00:00
Louis
202db9315f fix: update contributing (#2084)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-03-09 14:47:29 +00:00
Hariom Balhara
89f86e2c84 fix redirection to 404 page on login (#2086)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-03-09 14:47:02 +00:00
github-actions[bot]
0f27385c17 New Crowdin translations by Github Action (#2077)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-08 23:34:22 +00:00
Omar López
622d0fd0bc Moves tailwind to monorepo package (#2091) 2022-03-08 15:51:53 -07:00
Omar López
5908e5b14b E2E fixes (#2092) 2022-03-08 15:40:31 -07:00
Agusti Fernandez
4908b6fd01 hotfix: organizer needs to confirm booking, not attendee (#2090)
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
2022-03-08 10:08:35 -07:00
Omar López
b93f87af14 Upgrades prisma to 3.10 (#1978)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-07 18:30:28 +00:00
Mayowa Ojo
71c9a7b931 Feature/send opt in booking email (#2048)
* Added attendee request email template

* send attendee request email

* Added booking_submitted_subject message

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-07 18:18:23 +00:00
Louis Haftmann
b143498393 fix: disregarding already booked spots or blocked calendar times (#2029)
* fix: double booking

* fix: update double-booking error response code

* fix: update double-booking error response code

* test: add test

* fix: check availability before creating booking

* Update apps/web/playwright/booking-pages.test.ts

* Update yarn.lock

* Restored missing fix

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Omar López <zomars@me.com>
2022-03-07 10:55:24 -07:00
Demian Caldelas
322a845a17 Fix prisma setup on e2e tests (#2070)
Co-authored-by: Omar López <zomars@me.com>
2022-03-07 16:35:12 +00:00
sean-brydon
3bcc4b86e5 Back Button Events - [2058] (#2074)
* Back Button Events - [2058]

* Fixing URL

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-03-07 08:48:51 -07:00
Alex van Andel
3a67ae6d1f Added named dialog to replace new=1 (#2076)
(cherry picked from commit d6dee7a2c95e6959c0e59b58371fa43b0fa98212)
2022-03-06 23:06:18 +00:00
Syed Ali Shahbaz
8c4eed2bbc Add "light-brand" and "dark-brand" colors (add a second color picker) (#2028)
* init dark brand color addition

* added dark mode css vars

* added contrast brand colors

* minor fixes

* added dark branding to loader, button

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-05 15:37:46 +00:00
Hariom Balhara
ce0c8347fb [Perf Improvement] Booking Page score should be in green now (#2057)
* Avoid crypto to land in the browser

* Avoid prefetching as it has Crypto code bundled in AvatarGroup

* Use md5 directly if avatar not available

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-03-05 15:28:24 +00:00
sean-brydon
91b732ff1c Fixing Mobile UI - Event Types (#2065)
* Event Types - Mobile Ui

* Removing Daily video from default list

Added this for testing purposes

* Removing ZOD + mt on clock

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-03-05 14:42:43 +00:00
Peer Richelsen
a311f6bf4b sync website (#2062) 2022-03-04 13:28:09 -07:00
github-actions[bot]
04f9b93ceb New Crowdin translations by Github Action (#2061)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-04 19:41:28 +00:00
Omar López
190cc8caf6 Ensures prisma schemas are generated and formatted post-install (#2060) 2022-03-04 10:43:40 -07:00
Omar López
b6a20cc4d7 Fixes upgrade for users without customer id (#2059) 2022-03-04 16:38:42 +00:00
Syed Ali Shahbaz
eeb0cd7e4d Set buffer time before/after event type (#2015)
* before and after buffer added to handleAvailableSlots function

* --WIP

* added migration

* pull buffer data from DB

* cleanup

* added buffer input in form

* removed unused functions in controller field

* improved the buffer time check

* fixed default value and added preceding event afterbuffer consideration

* fixed e2e test issue

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-04 10:19:03 +00:00
Joe Au-Yeung
b77923fc65 Bugfix/opt in booking shown on attendee booking page (#2026) 2022-03-04 10:04:05 +00:00
hariombalhara
6687544e66 Enable Data Fetch logging with log=1 param (#2042) 2022-03-04 10:03:10 +00:00
github-actions[bot]
7384675b6b New Crowdin translations by Github Action (#2055)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-04 10:02:14 +00:00
sean-brydon
87e3c8d4a5 Update Booking Page A11ly (#2053) 2022-03-04 08:50:00 +00:00
github-actions[bot]
e23f9330d3 New Crowdin translations by Github Action (#2049)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-03 20:28:04 +00:00
Peer Richelsen
759bb67077 updated team billing english translation 2022-03-03 20:19:12 +00:00
Omar López
0a8509d721 Admin/team billing downgrader (#2040)
* downgrade func

* fix security hole lol

* fix query conditions

* - set to trial not free
- auto create stripe customer if missing
- fix production check

* Extracts downgrade logic to script, fixes ts-node conflicts with prisma

* Adds trialEndsAt field to users

* Updates trial/downgrade logic

* Typo

* Legibility fixes

* Update team-billing.ts

* Legibility improvements

Co-authored-by: Jamie <ijamespine@me.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-03 19:29:19 +00:00
sean-brydon
f4b6a16a9e Enable Hotreload for packages (#2051)
Co-authored-by: Omar López <zomars@me.com>
2022-03-03 12:19:25 -07:00
Louis Haftmann
6e8fbc280f fix: HTTP 404 with uppercase username (#2045)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-03-03 16:42:30 +00:00
Syed Ali Shahbaz
52e6711d51 Fixes incorrect Webhook Component title (#2047)
* fixed incorrect Webhook Component title

* fixed subtitle

* fixed lint

* lint fix
2022-03-03 14:16:07 +00:00
Syed Ali Shahbaz
0fb44887e3 Fix missing phone data from location after booking (#1968) 2022-03-03 09:57:59 +00:00
Thang Vu
b376ebae25 chore: update correct link for docs (#2030) 2022-03-03 09:55:26 +00:00
Krunal Shah
49ddd6cb59 Update CONTRIBUTING.md (#2036) 2022-03-03 09:54:51 +00:00
Krunal Shah
c437f15868 fix: jitsi email does not contain meeting link (#2004) 2022-03-03 09:54:19 +00:00
alannnc
15052c8b48 fix/booking-first-day-of-next-mont (#2037)
* fix/booking-first-day-of-next-mont

* Change minimum wait time for booking next month first day test

* Change minimum wait time for booking next month first day test

* Change minimum wait time for booking next month first day test

* Added Todo note for future improvement

* Apply same timeout change in others change of month action test
2022-03-02 15:51:46 -07:00
github-actions[bot]
800002222b New Crowdin translations by Github Action (#2034)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-02 21:26:01 +00:00
Omar López
e3283baa0e Update turbo.json (#2039) 2022-03-02 13:28:57 -07:00
Omar López
382d56ab54 Revert "Revert "Webhooks to support event type association"" (#2033)
* Revert "Revert "Webhooks to support event type association (#1889)" (#2032)"

This reverts commit 71e74b8320.

* Fixes turbo DB deploy

* Update turbo.json
2022-03-02 09:24:57 -07:00
github-actions[bot]
c93e8774c9 New Crowdin translations by Github Action (#2031)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-02 16:10:16 +00:00
Omar López
71e74b8320 Revert "Webhooks to support event type association (#1889)" (#2032)
This reverts commit d338504856.
2022-03-02 08:49:35 -07:00
Syed Ali Shahbaz
d338504856 Webhooks to support event type association (#1889)
* --init database and queries

* fixed type check

* added webhook api for event types

* added webhook list in team event

* delete, edit webhook in team event

* updated webhook subtext for event type

* added discord integration to event type webhook

* check fix

* consistency

* minor code improvement

* lint fix

* Adds missing zod schemas

* requested changes pt1 --WIP

* requested changes pt2 --WIP

Co-authored-by: zomars <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-02 08:30:13 -07:00
Krunal Shah
af793e9e81 docs: add contributing guide (#2021)
* docs: add contributing guide

* Update apps/docs/pages/contributing.mdx

* Update apps/docs/pages/contributing.mdx

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-03-01 19:27:36 +00:00
github-actions[bot]
6caf09e3e7 New Crowdin translations by Github Action (#2024)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-01 19:22:58 +00:00
github-actions[bot]
b6742c4c4a New Crowdin translations by Github Action (#2019)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-03-01 19:19:31 +00:00
github-actions[bot]
fcdd2ab81b New Crowdin translations by Github Action (#2017)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-03-01 11:04:36 +00:00
Krunal Shah
8fd976f5c7 fix: docs title showing untitled (#2006)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-03-01 11:03:51 +00:00
github-actions[bot]
521b63e732 New Crowdin translations by Github Action (#2007)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-03-01 09:49:54 +00:00
Peer Richelsen
4890e6b5b9 Update README.md 2022-02-28 23:07:10 +00:00
alannnc
9851c8f526 fix/secret-premade-event-hidden (#1999)
* fix/secret-premade-event-hidden

* fix/secret-premade-event-hidden: change hidden to partial in zod custom

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-02-28 21:23:17 +00:00
Bailey Pumfleet
7826a34b00 Let users set 12/24 hour time format (#2002) 2022-02-28 16:24:47 +00:00
Syed Ali Shahbaz
2559873b2c hotfix ambiguous cancel dialog (#2001) 2022-02-28 10:15:37 +00:00
hariombalhara
cc90cf0b72 [Bugfix] Booking Date Picker - First few dates are rendered fast, but later dates are all rendered in UI at once. (#1989) 2022-02-28 09:16:43 +00:00
github-actions[bot]
8717d96d0a New Crowdin translations by Github Action (#1996)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-27 23:12:35 +00:00
alannnc
c8ba5e1aa1 fix/slots-calculate-hours (#1994)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-27 22:51:41 +00:00
Agusti Fernandez
eb59908c84 Fixes undefined bug by replacing BASE_URL with NEXT_PUBLIC_BASE_URL in Shell and signup. (#1991)
* Replace BASE_URL with NEXT_PUBLIC_BASE_URL in Shell

* Replace BASE_URL with NEXT_PUBLIC_BASE_URL in apps/web/pages/auth/signup

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-27 22:34:08 +00:00
Peer Richelsen
981fb9c5be fixed dialog button on mobile (#1995)
Co-authored-by: Peer Richelsen <peeroke@richelsen.net>
2022-02-27 21:03:56 +00:00
github-actions[bot]
ca29940ea5 New Crowdin translations by Github Action (#1975)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-27 20:18:43 +00:00
hariombalhara
cf186e58bd [Perf Improvement] Event Booking Date Picker (#1980)
* Memoize and remove repeat calls of functions

* Better fn names

* Remove unnecessary code change

* Process dates asyncly

* Avoid waste work

* Add comments

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-27 00:19:50 +00:00
Omar López
3bae13eea8 Website update (#1986) 2022-02-26 12:29:48 -07:00
Agusti Fernandez
5d4cbe37eb Fixes connectionIntegration undefined bug (#1987)
* Fixes connectionIntegration undefined bug

* fixes adding NEXT_PUBLIC_BASE_URL to consts and using that

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
2022-02-26 12:27:52 -07:00
Omar López
48f969eae5 Update vercel.sh (#1983) 2022-02-25 13:13:56 -07:00
Leo Giovanetti
546f627177 Fix missing zero-padding on troubleshoot (#1974)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-24 12:36:02 -07:00
Omar López
c6169607ae Adds script to regulate staging deploys (#1979) 2022-02-24 12:17:49 -07:00
Omar López
795423ae55 Locks Node version to 14 (#1977) 2022-02-24 11:39:01 -07:00
github-actions[bot]
00e3b970d6 New Crowdin translations by Github Action (#1973)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-24 15:07:39 +00:00
Demian Caldelas
9e786b9133 Fix db-studio calling a missing script (#1966)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-02-24 13:58:27 +00:00
Krunal Shah
2941ad334c fix: twitter handle in seo (#1967) 2022-02-24 13:55:34 +00:00
Omar López
cefd0cfb16 Added API private submodule (#1958) 2022-02-24 01:14:37 +00:00
alannnc
f8aa274b07 Fix billing portal for users without stripeCustomerId (#1936) 2022-02-23 22:51:10 +00:00
Omar López
3d2fd28214 Prod fix! (#1964)
* Adds website as a submodule

* Added website to monorepo

* Adds script to depliy submodules on Vercel

* Updates website

* Updates vercel script

* Sets default branch name as main

* Update website

* Cleanup git logs in Vercel

* Update website

* Update website

* Prisma build cache improvements

* Update website
2022-02-23 13:58:38 -07:00
Omar López
fa66448f89 Prisma cache improvements (#1963)
* Adds website as a submodule

* Added website to monorepo

* Adds script to depliy submodules on Vercel

* Updates website

* Updates vercel script

* Sets default branch name as main

* Update website

* Cleanup git logs in Vercel

* Update website

* Update website

* Prisma build cache improvements
2022-02-23 13:44:30 -07:00
Omar López
73cdf5dda5 Migrate website to monorepo (#1962)
* Adds website as a submodule

* Added website to monorepo

* Adds script to depliy submodules on Vercel

* Updates website

* Updates vercel script

* Sets default branch name as main

* Update website

* Cleanup git logs in Vercel

* Update website

* Update website
2022-02-23 20:35:23 +00:00
Demian Caldelas
eac2e4e53e Silence trpc logging by default (#1949)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-23 16:37:41 +00:00
Demian Caldelas
d9d95ba17c Test/get availability from schedule unit test (#1951)
* Fix typo in SetTimesModal

* Remove db dependency to run unit tests

* Add unit test for getAvailabilityFromSchedule
2022-02-23 16:16:04 +00:00
Alex van Andel
3bca9687d0 Delete .vercelignore (#1957)
Poof!
2022-02-23 15:58:08 +00:00
Peer Richelsen
b91dfe7595 Fix/border avatargroup (#1956)
* adding border to avatargroup based on the parent background color

* fixed border

Co-authored-by: Peer Richelsen <peeroke@richelsen.net>
2022-02-23 15:29:40 +00:00
Peer Richelsen
9e89f954e8 adding border to avatargroup based on the parent background color (#1954) 2022-02-23 13:55:59 +00:00
Agusti Fernandez
b860a79d59 Detect users browser locale for time format 12/24 hours (#1900)
* fix: adds new isBrowserLocal24h timeFormat util, uses in BookingPage

* fix: adds new time format locale detector in available times

* fix: removes 24h clock from availabletimes

* chore: move timeFormat to lib util, add to payment page

* chore: remove commented out is24h

* fix: adds timeFormat to success page

* fix: adds timeFormat to cancel page

* fix: adds timeFormat to video meeting ended/not started pages

* fix: removes added typo in success page

* fix: reverts back to use of is24h Switch in available times / time options, renames timeFormat to detectBrowserTimeFormat to avoid collisions

* fix: moves use uf isBrowserLocal24h() to clock util initClock() itself, by calling it only if no localStorage settings are set

* chore: move back timeFormat props to line it was so no change

* chore: remove empty line in timeOptions

* chore: move back timeFormat where it was in TimeOptions props

* chore: add back empty line before selectedTimeZone return

* fix: reverts back to use of is24h in payments page

* feat: adds browser locale as default in payment page in case there's no settings set by the customer

* feat: adds browser locale as default in success page

* fix: deconstruct props so eslint passes

* fix: lint issue for extra empty line in meeting-ended uid page

Co-authored-by: Agusti Fernandez <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-23 12:37:15 +00:00
github-actions[bot]
5eca42bb45 New Crowdin translations by Github Action (#1952)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-23 12:01:55 +00:00
Peer Richelsen
5cf67fdbaa fixed avatar group and tooltip (#1950) 2022-02-23 11:09:22 +00:00
Demian Caldelas
ac0c3bdfb9 Fix dynamic min/max values for schedule form (#1940)
Co-authored-by: Alex van Andel <me@alexvanandel.com>
2022-02-23 00:23:52 +00:00
Alex van Andel
652c2e342f Second go at removing Zod generated classes from our repo (#1946)
* Second go at removing Zod generated classes from our repo

* Directly reference the _EventTypeModel
2022-02-22 23:19:22 +00:00
Agusti Fernandez
ecbdfea818 Adds BASE_URL to connectIntegrations (#1883) 2022-02-22 21:23:55 +00:00
github-actions[bot]
0846d0666b New Crowdin translations by Github Action (#1926)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-22 20:15:56 +00:00
Alex van Andel
a704f1ed0a Always disconnect + remove redundant success message (#1945) 2022-02-22 12:04:55 -07:00
Omar López
97550a39f3 Contributing guide (#1930)
* WIP

* Updates contributing guide

* Update PULL_REQUEST_TEMPLATE.md
2022-02-22 12:33:23 +00:00
Miguel Nieto A
e36428de5d Docs/prisma commands on docs (#1875)
* Update prisma commands

Prisma commands have changed due to the new project structure

* Set the type of code block to have code block style

* Apply required changes

* Update README
2022-02-21 20:47:50 +00:00
Agusti Fernandez
373bc1660c Adds BASE_URL to callbackUrl in signup page and Shell component (#1882)
* add WEBSITE_URL to callbackUrl in signup page and Shell component

* fix: WEBSITE_URL -> BASE_URL, login missing do in another pr maybe

Co-authored-by: Agusti Fernandez <agusti@colony.io>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Agusti Fernandez <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-21 13:09:56 -07:00
alannnc
9863178025 fix/update-days-schedule (#1931)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Omar López <zomars@me.com>
2022-02-21 12:08:36 -07:00
Omar López
50c75da5e0 Build fixes (#1929)
* Build fixes

* Fixes type error
2022-02-21 18:45:35 +00:00
Juan Esteban Nieto Cifuentes
7585e9b32e Fix URL by removing slash and backslash (#1733)
* Fix URl by removing slash and backslash

* Implement slugify

* Add data type

* Fixing folder structure

* Solve zod-utils conflict
2022-02-21 09:53:16 -07:00
Omar López
95b3397e42 Add ui package for reusable components (#1916)
* Add ui package for reusable components

* Add fallback

* Type fixes

* Type fixes

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-21 09:41:25 -07:00
Demian Caldelas
b3ada7c25c Handy shortcut to start Prisma Studio (#1921)
* Add fast access to start Prisma Studio

* Updates docs

* Minor fixes in docs

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-21 16:02:09 +00:00
Peer Richelsen
0142a1502f Update README.md 2022-02-20 16:48:48 +00:00
Demian Caldelas
8996c168ca Refresh the shouldOnboard state in the Shell after onboarding (#1918)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-20 14:07:15 +00:00
github-actions[bot]
4d14809ecf New Crowdin translations by Github Action (#1922)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-20 13:34:22 +00:00
alannnc
6749b887dd fix/bookings-order (#1920) 2022-02-19 18:00:35 -07:00
Lola
08e6059c8d Removing room entry buffer before a Daily.co video call (#1902)
* initial

* scale plan instructions in the readme and removed the buffer for entering a video call

* readme update for Daily Scale Plan users

Co-authored-by: Lola-Ojabowale <lola.ojabowale@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-19 00:39:10 +00:00
buschco
b9dd90b998 include rescheduleUid webhook payload (#1551) (#1584)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-19 00:09:07 +00:00
github-actions[bot]
bced10eab1 New Crowdin translations by Github Action (#1915)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-18 23:59:29 +00:00
Omar López
deeafb21a5 Upgrades prisma to latest version (#1894)
* Upgrades prisma

* Extends Stripe paid booking timeout

* Stripe test fixes

* Disables cache for db-reset

* Disabled cache from db-seed

* Avatar fixes

* Fixes paid booking test once and for all

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-18 15:16:53 -07:00
Peer Richelsen
81b4443fc2 changed text of share button 2022-02-18 20:01:24 +00:00
Syed Ali Shahbaz
4f89205dd4 Adds discord webhook support (#1886)
* --init

* cleanup

* removed extra spacing

* changed onchange handler name

* modified payload

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-18 17:49:39 +00:00
Juan Esteban Nieto Cifuentes
75d19e0e7d Add Web Share in mobile (#1810)
* Add navigator.share in mobile

* Validate navigator.share in useEffect

* Add new Button with navigator.share condition

* Add new Icons

* Solve check types
2022-02-18 10:34:53 -07:00
Bailey Pumfleet
c8ae414ecf Add 500 error page (#1910)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
2022-02-18 10:33:18 -07:00
Omar López
e7dc2d3d7a Upgrade to next 12.1 (#1904)
* Upgrades next to 12.1

* Fixes build

* Updaters e2e test pipelines

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-18 10:32:59 -07:00
Deepak Prabhakara
5b66c1f986 Fix/sso username (#1897)
* username slug should be lowercase

* if logging in via a non-CAL identity provider then show username during onboarding

* type fix

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-02-18 17:32:12 +00:00
github-actions[bot]
0b4f771462 New Crowdin translations by Github Action (#1891)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-18 17:02:15 +00:00
Omar López
944a3c02ce Eslint fixes (#1898)
* Eslint fixes

* Docs build fixes
2022-02-18 16:53:45 +00:00
Peer Richelsen
5185704a38 added swedish (#1911) 2022-02-18 15:51:46 +00:00
Omar López
152bb57bc1 Revert "Tweak/gitignore prisma zod (#1905)" (#1906)
This reverts commit 15bfeb30d7.
2022-02-17 18:11:33 -07:00
Omar López
15bfeb30d7 Tweak/gitignore prisma zod (#1905)
* Extracts ignored createEventTypeBaseInput

* Adds postinstall script
2022-02-17 17:25:19 -07:00
Omar López
0bf3818b30 Revert "Upgrades next to 12.1 (#1895)" (#1903)
This reverts commit ede0e98e1f.
2022-02-17 16:58:16 -07:00
Omar López
ede0e98e1f Upgrades next to 12.1 (#1895)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-17 22:29:54 +00:00
Omar López
d702bcf0a3 Regenerates zod files (#1896) 2022-02-17 11:26:53 -07:00
Demian Caldelas
2194b92fdf Turbo fixes. Run apps (web/docs) scoped instead of concurrently (#1887)
* Improving dx for running apps from turbo

* Assign a fixed port to serve docs

Co-authored-by: Omar López <zomars@me.com>
2022-02-17 08:37:35 -07:00
Peer Richelsen
2c51fd77a0 wip (#1890)
Co-authored-by: Peer Richelsen <peeroke@richelsen.net>
2022-02-17 11:28:49 +00:00
Alex van Andel
f8b908500f Updated attendees to auto-accept and setting reminders to useDefault (#1880) 2022-02-16 18:21:51 -07:00
github-actions[bot]
ac0840c802 New Crowdin translations by Github Action (#1879)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-16 22:42:27 +00:00
Francisco Lourenço
392aac2c6e Replace whatsmybrowser.org with Bird Eats Bug (#1787)
Noticed that you guys are [already suggesting](https://github.com/calcom/cal.com/issues/1562#issuecomment-1022707225) users to provide Bird recordings, so thought it could be useful here as well :)

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-16 22:30:57 +00:00
github-actions[bot]
4236288d32 New Crowdin translations by Github Action (#1874) 2022-02-16 16:18:55 +00:00
hariombalhara
4693cbba4f Feature: Instant Theme Change, without refresh [Booking Pages Only] (#1807)
* Avoid Theme Flicker. Render Server Side

* Add back isReady implementation

* Use shorter syntax for Tag

* Listen to changes in pref-color-scheme and act

* Uglify Theme Applier code

* Resolve conflicts

* Add comments

* Appropriate function name

* Move uglify-js to dependencies

* Remove uglify-js

* Fix commnt

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-16 15:53:26 +00:00
hariombalhara
34c5360a4d Remove intercom from public booking pages (#1835)
* Remove intercom from public pages

* remove from success and cancel pages as well

* remove from Reschedule page as well

* Fix comment

Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-16 08:26:48 -07:00
Syed Ali Shahbaz
228dea1308 Hotfix for success page email input and button (#1854)
* hotfix

* cleanup

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-16 11:33:16 +00:00
Omar López
69dd6fe7d4 Adds testing mail credentials (#1865)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-16 10:47:23 +00:00
Omar López
7a1e250016 Test possible fix for Vercel builds (#1859) 2022-02-16 10:41:17 +00:00
Miguel Nieto A
00d6495752 Fix prisma commands in README file (#1843) 2022-02-16 10:36:37 +00:00
github-actions[bot]
bebc119c13 New Crowdin translations by Github Action (#1873)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-16 10:35:07 +00:00
Frank Greco Jr
717d9a512d hide additional notes in organizer scheduled email if empty (#1870)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-16 10:32:13 +00:00
Bruno Wego
9814914b83 fix(github): wrong config yml file name in issue template (#1867)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-16 10:31:28 +00:00
Maximous Black
693dc6d9ce fix: prisma schema directory in heroku config (#1872) 2022-02-16 10:30:23 +00:00
Edward Fernández
14a9fdf78c add validation for teams in the event type creation (#1866)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-15 14:51:01 -07:00
github-actions[bot]
7c6e394416 New Crowdin translations by Github Action (#1857)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-15 21:04:09 +00:00
Omar López
fe35cf6570 Extract prisma to it's own package (#1823)
* Moved prisma to packages

* Add missing prisma configs

* Extracts common libs and types

* Build and pipeline fixes

* Adds missing package

* Prisma scripts cleanup

* Updates lint staged

* Type fixes

* Sort imports

* Updates yarn lock file

* Fixes for yarn dx

* Revert "Sort imports"

This reverts commit 076109decab9b9ba307fc03696c3b0da5c4896f3.

* Formatting

* Prevent double TS version

* Fix conflict

* Extracted e2e configs
2022-02-15 13:30:52 -07:00
Omar López
fdf7516cdd CI turbo caching troubleshooting (#1862)
# Conflicts:
#	.github/workflows/e2e.yml
2022-02-15 12:18:14 -07:00
Omar López
9733da67ae Fixes/e2e (#1860)
* E2E fixes

* Ensures port 3000 for CI
2022-02-15 11:14:57 -07:00
Omar López
f0eed8ad30 E2E fixes (#1858) 2022-02-15 10:44:30 -07:00
Peer Richelsen
aee2d0dbba temporal redirect cal.com/call to cal.com/video (#1856)
Co-authored-by: Peer Richelsen <peeroke@richelsen.net>
2022-02-15 15:13:27 +00:00
github-actions[bot]
19b3997ccd New Crowdin translations by Github Action (#1853)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-15 12:57:20 +00:00
Peer Richelsen
5044614983 renamed cal.com call to cal.com video, added og image (#1852)
Co-authored-by: Peer Richelsen <peeroke@richelsen.net>
2022-02-15 12:46:27 +00:00
milospuac
b563bac1a7 Added Serbian (#1851)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-15 11:40:06 +00:00
github-actions[bot]
aee5a406b7 New Crowdin translations by Github Action (#1850)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-15 11:33:27 +00:00
Agusti Fernandez
5445ca5944 Fixes callbackUrl issue in login page (#1848)
* fix: remove use of window.location in redirect of callbackUrl in Login Page

* Adds WEBSITE_URL constant to callbackUrl in login page

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-15 10:34:12 +00:00
github-actions[bot]
5f4bd87f0d New Crowdin translations by Github Action (#1842) 2022-02-14 23:59:51 +00:00
Omar López
79f9bf6d5e E2E fix attempt (#1845)
* E2E fix attemp

* Moves playwright config to root

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-14 15:23:33 -07:00
Peer Richelsen
2f892a9ec5 removed preview of location for in-person or third party link events (#1844) 2022-02-14 13:20:10 -07:00
Arthur Denner
691235f874 fix: deployment setup to Heroku (#1834)
* fix: move app.json to root directory

* fix: add heroku-postbuild script

* chore: add description to env variables on app.json

* fix: update postdeploy script on app.json

* fix: add Procfile to override start script

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-14 16:29:48 +00:00
Alex van Andel
b7ad073de9 Revert "Lock Radix UI to 0.1.4 (#1816)" (#1831)
This reverts commit 92aaed5cc5.
2022-02-13 21:15:46 +00:00
Omar López
bcf40bbf26 Lint fixes (#1826)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-11 22:20:10 +00:00
Ankit Sridhar
b8e9275ceb fix smart contract address bug (#1827)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-11 22:15:35 +00:00
Peer Richelsen
01a6652f4d Update README.md 2022-02-11 21:59:14 +00:00
Peer Richelsen
9a94cb386e wip (#1825) 2022-02-11 21:47:22 +00:00
Peer Richelsen
a519206db7 added z-index for dialog (#1824) 2022-02-11 21:33:11 +00:00
Peer Richelsen
90a22eda7d fixed team year message (#1821) 2022-02-11 21:01:06 +00:00
Peer Richelsen
58ef1bbc36 updated license url (#1820) 2022-02-11 20:55:46 +00:00
github-actions[bot]
a7875d071e New Crowdin translations by Github Action (#1812)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-11 20:47:08 +00:00
Demian Caldelas
04314f5e05 Fix prettier importOrderSeparation not working (#1796)
* Fix prettier importOrderSeparation not working

* Solves prettier plugin conflict

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: zomars <zomars@me.com>
2022-02-11 13:24:11 -07:00
Omar López
28d668ff38 Eslint fix to test deploy (#1818)
* Eslint fix to test deploy

* E2E fixes
2022-02-11 13:05:12 -07:00
Bailey Pumfleet
92aaed5cc5 Lock Radix UI to 0.1.4 (#1816) 2022-02-11 19:45:53 +00:00
Omar López
c5444c84fc Migrate docs to mono repo (#1814)
* Initial commit

Created from https://vercel.com/new

* Update config

* Homepage

* Self-hosting

* Integrations

* More docs pages

* Developer docs

* Update billing.mdx

* Update install.mdx

* Fix install guide

* More fixes

* Adding CSS guide

* Fix capitalisation on Microsoft page

* Added delete account update

* Added Zapier integration question

* Added GMeet integration part

* Added Delete Account to Settings

* unnecessary question mark

* Added a link to Settings

* Added stuff in Billing

* Added a link to cal.com/signup

* Capitalization

* Added language change

* Added more stuff in Event Types

* Added how to change email

* Added FAQ page

* Spelling mistake

* Added a title to FAQ

* Added more stuff to Billing

* Availability multi-booking

* Deleted from Availability added to FAQ

* Added to FAQ

* Removed the dot

* Added stuff to FAQ

* Add license warning to adding CSS page

* Update docker.mdx

* Add import instructions

* removed readme until we have our own

* updated favicon, added cal sans

* added new cal sans

* Create README.md

* renamed all github links

* renamed more github links

* Added team's Event Types

* Clarified the Google Meet integration

* Spelling error

* Added primary calendar tutorial

* Removed tutorial

* primary calendar selection

* Moved to subdirectory

* Matching configs

* Shares eslint config between web and docs

* Removes format-schemas

* Updates env file location in turbo

* [docs] updates monorepo intructions

Co-authored-by: baileypumfleet <pumfleet@hey.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: milospuac <97884287+milospuac@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@richelsen.net>
2022-02-11 12:33:35 -07:00
Omar López
63bd9a1202 Updates README (#1811) 2022-02-11 16:15:52 +00:00
hariombalhara
6fe824088a Performance improvements (lazy loading) for booking pages (#1762) 2022-02-11 14:34:12 +00:00
Peer Richelsen
2e5deae7c0 fixed 404 username link (#1808) 2022-02-11 12:44:25 +00:00
github-actions[bot]
ec0ec5d308 New Crowdin translations by Github Action (#1806)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-11 11:21:31 +00:00
Peer Richelsen
86d2444d06 readded common.json for en (#1805) 2022-02-11 11:17:38 +00:00
Peer Richelsen
936378831e Update README.md 2022-02-11 10:58:27 +00:00
Peer Richelsen
ac3e7ff072 Update LICENSE 2022-02-11 10:57:01 +00:00
Peer Richelsen
5a6c6dc385 changed folder structure 2022-02-11 10:56:38 +00:00
depfu[bot]
5f627ad963 Update all Yarn dependencies (2022-02-11) (#1385)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2022-02-11 10:54:35 +00:00
github-actions[bot]
dd656113ab New Crowdin translations by Github Action (#1786)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-11 10:48:42 +00:00
depfu[bot]
e37ba3325b Update superjson to version 1.8.1 (#1794)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-11 10:44:39 +00:00
YM
1d711dde65 Add zh-TW translations (#1789)
* Add zh-TW translations

* Fix typos in zh-TW

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-11 10:41:57 +00:00
Omar López
c75893ce65 🚨🚨🚨 Turbo fixes 🚨🚨🚨 (#1797)
* 🚨🚨🚨 Turbo fixes 🚨🚨🚨

* e2e temp fixes

Co-authored-by: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com>
2022-02-11 10:24:23 +00:00
Omar López
9f506e7635 Unignores .env.example (#1800) 2022-02-10 19:54:55 -07:00
Omar López
6fee04d07c Another one (#1799) 2022-02-10 19:22:33 -07:00
Omar López
abce15ff0d E2E fixes (#1798) 2022-02-10 19:12:57 -07:00
Omar López
8d3f0bf38e Renames calendso to web (#1795) 2022-02-10 16:11:40 -07:00
Omar López
e5ec9357a9 Merge pull request #1792 from calcom/fixes/crowdin
crowdin fixes
2022-02-10 14:32:00 -07:00
zomars
855aa56e77 Removes unused command 2022-02-10 14:22:45 -07:00
zomars
9aa53c1e0a Pipeline fixes 2022-02-10 14:22:45 -07:00
zomars
f98c455915 Pipeline fixes 2022-02-10 14:22:45 -07:00
zomars
e56e83b4a2 Tmp fix for old pipeline 2022-02-10 14:22:45 -07:00
zomars
2234b7d5de Name update 2022-02-10 14:22:45 -07:00
zomars
5d6f94fce7 e2e fixes 2022-02-10 14:22:45 -07:00
zomars
c711c80b8d e2e fixes 2022-02-10 14:22:45 -07:00
zomars
e0e745f1ca Env should be on app (for now) 2022-02-10 14:22:45 -07:00
zomars
0e43766b9c Test fixes 2022-02-10 14:22:45 -07:00
zomars
cee41eabc7 Type fixes 2022-02-10 14:22:45 -07:00
zomars
3d4de9476d e2e fixes 2022-02-10 14:22:45 -07:00
zomars
fb20d24e8d Fixes for lint 2022-02-10 14:22:45 -07:00
zomars
d813b6ae54 Re-adds .nvmrc 2022-02-10 14:22:45 -07:00
zomars
1abb5f1ea5 Config updates 2022-02-10 14:22:45 -07:00
zomars
830f033f9b Fixes type-check 2022-02-10 14:22:45 -07:00
zomars
cb14aaca14 Type check fixes 2022-02-10 14:22:45 -07:00
zomars
20da74b4a6 Workflow updates 2022-02-10 14:22:45 -07:00
zomars
038e8a4b7d Runs prettier 2022-02-10 14:22:45 -07:00
zomars
2c2a97de73 Update lint action 2022-02-10 14:22:45 -07:00
zomars
c9b1f52382 Init turborepo 2022-02-10 14:22:45 -07:00
zomars
0bc511a886 Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
Omar López
d0e047166e Revert "Adds skip check to crowdin commit messages (#1769)" (#1785)
This reverts commit aef6b70d8b.
2022-02-10 08:40:50 -07:00
Demian Caldelas
4c1b7ef03f Add postgres healthcheck to assure is ready (#1767)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-10 12:20:09 +00:00
Peer Richelsen
5c0983ef6c added Link component to see if it fixes the 404 link bug (#1784) 2022-02-10 11:46:35 +00:00
github-actions[bot]
66015cba39 New Crowdin translations by Github Action (#1776)
skip-checks: true

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-10 11:17:23 +00:00
hariombalhara
516ade0af5 Fix/theme flicker (#1758)
* Avoid Theme Flicker. Render Server Side

* Add back isReady implementation

* Use shorter syntax for Tag

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-10 11:07:14 +00:00
Omar López
5d0ba3dafc The road to zero TypeScript errors (#1756)
* Type fixes

* Type fixes

* Type fixes

* Type fixes

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-10 10:44:46 +00:00
Peer Richelsen
798930bf23 hides trial banner on tablet (#1783) 2022-02-10 10:37:17 +00:00
Syed Ali Shahbaz
55f1d727f8 Fixed infinite event-type page loop after onboarding (#1782)
* added await to the promise

* removed logging remnants

* console log removed

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-10 10:31:22 +00:00
Omar López
aef6b70d8b Adds skip check to crowdin commit messages (#1769)
skip-checks: true

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-10 09:49:58 +00:00
Syed Ali Shahbaz
0675ff8762 updated event object to hold rejection reason (#1777)
* updated event object to hold rejection reason

* lint fix

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-02-10 09:45:27 +00:00
Syed Ali Shahbaz
c4862c4b92 adds validation to event type availability (#1778)
* adds validation to event type availability

* lint fix

* general improvement

* prettier fix

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-10 09:37:00 +00:00
Syed Ali Shahbaz
97fdfc5d6b fixes gravatar fallback for team collective events (#1759) 2022-02-09 18:56:02 -07:00
Peer Richelsen
712dceb8cb verified badge margin (#1775)
* wip

* wip
2022-02-10 00:23:14 +00:00
Peer Richelsen
803e5c7f2d fixes event-type location input length (#1772)
* fixed textsm classname bug

* fixed event type location length
2022-02-09 23:10:43 +00:00
github-actions[bot]
889edb8b44 New Crowdin translations by Github Action (#1765)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-09 19:22:02 +00:00
Demian Caldelas
898efbb280 Add vscode prisma extension to recommended list (#1760)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-09 18:53:07 +00:00
Nathaniel
7f5a2363f9 fixed calendso busy query timezone issue (#1360)
* fixed calendso busy query timezone issue

* rename tz to timezone for consistency

* added back missing code

Co-authored-by: Alex van Andel <me@alexvanandel.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-09 18:34:47 +00:00
Syed Ali Shahbaz
a41dd30467 Add reason for rejection (optional) (#1719)
* init --WIP

* added rejection option modal

* migration added

* lint fix

* rejection reason in email added

* moved getRejectedReason function

* lint fix

* --wip

* Prevent undefineds and nulls on email messages

* Cleanup

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: zomars <zomars@me.com>
2022-02-09 18:25:58 +00:00
Nathaniel
b2fb60af31 fixed multiple caldav integration bugs (#1764) 2022-02-09 10:16:44 -07:00
Peer Richelsen
51d553559f tailwind prettier (#1646)
* tailwind prettier

* Minor fixes

* Sorts components and pages

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: zomars <zomars@me.com>
2022-02-09 00:05:13 +00:00
Arthur Denner
1e9234ea67 fix: remove template string to fix interpolation (#1736)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-02-08 22:44:49 +00:00
Philipp Dormann
20d2955e68 Add Jitsi Meet Integration (#1674)
* basic integration structure

* jitsi logo

* add jitsi meet description to event settings page

* add JitsiVideoApiAdapter

ref #1445

* add LocationType.Jitsi to BookingPage

ref #1445

* add LocationType.Jitsi to event-types

ref #1445

* add meet.jit.si/cal/uuid support to BookingPage

ref #1445

* add basic "cal_provide_jitsi_meeting_url" translation strings

ref #1445

* generate meeting id

ref #1445

* implement direct jitsi link in /success page

ref #1445

* cleanup location link duplicate

ref #1445

* full JitsiVideoApiAdapter implementation

ref #1445

* check integration availability in /pages/event-types/[type]

ref #1445

* add video conferencing link as calendar event location

ref #1445

* PR feedback

* Update components/booking/pages/BookingPage.tsx

don't know - wouldn't do this myself for future proofing but fine...

Co-authored-by: Omar López <zomars@me.com>

* Update components/booking/pages/BookingPage.tsx

🤷‍♂️

Co-authored-by: Omar López <zomars@me.com>

* cleanup: props.type === "jitsi_video"

ref #1445

Co-authored-by: zomars <zomars@me.com>
2022-02-08 15:12:28 -07:00
Arthur Denner
38b41f0adb fix: handle prefers-color-scheme correctly (#1740)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-08 19:19:33 +00:00
Demian Caldelas
84f897e330 Remove cypress.json to fully remove cypress (#1751) 2022-02-08 18:35:45 +00:00
wilson gumba
1976aa761c added playwright html reporter (#1715)
* added playwright html reporter

* upload artifacts

* add junit reporter

* upload artifacts

* revert

* upload report as artifact

* upload only report in ci

* remove playwright cache

* revert caching

* upload reporter as artifact

* remove all cache

* revert changes

* Update .github/workflows/e2e.yml

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-08 16:30:21 +00:00
Syed Ali Shahbaz
522875da74 Brand color without correct hex value compatibility (#1737)
* enabled fallback support and og-brand-color fix

* --added react-colorful package

* added colorpicker component and added it to settings/profile

* lint fix

* typo fix in server/viewer

* clean-up

* improved colorpicker component

* added swatch component and integrated with brand color picker

* improved ux for color picker swatch

* added colorname integration

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-08 09:13:42 -07:00
Syed Ali Shahbaz
447def5849 Timeslot selectable times fix for not UTC timezones in Availability (#1721)
* --wip

* fix for event type availability tz mismatch

* cleanup

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-08 09:01:18 -07:00
Omar López
00a79bdaba Ignores e2e test for translation PRs (#1748) 2022-02-08 15:42:05 +00:00
github-actions[bot]
890daffad0 New Crowdin translations by Github Action (#1745)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-08 15:20:40 +00:00
Peer Richelsen
476399abe8 fixed type for stripe (#1746) 2022-02-08 15:18:10 +00:00
Bailey Pumfleet
ce3947ac4c Fetch only CalDAV calendars via TSDav (#1727)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-08 14:56:49 +00:00
github-actions[bot]
2ec0673e3d New Crowdin translations by Github Action (#1743)
* New Crowdin translations by Github Action

* Update common.json

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-08 14:43:18 +00:00
Peer Richelsen
7f8883866a added signup message for 404 (#1734)
* added signup message for 404

* wip

* wip

* Update common.json
2022-02-08 13:38:13 +00:00
Jamie Pine
5567721431 Team Billing (#1552)
* added base logic for team billing

- moved Stripe customer related logic to customer.ts
- implemented unstable logic for team owner upgrading, downgrading and adding/removing seats

* logic improvements

* - improved Alert style
- hide free team members on public team page
- upgraded textarea to ui component TextArea in SAML setup
- added Alert on team settings for hidden members
- hide CreateEventTypeButton if not admin
- fixed missing locale strings in team settings

* remove random import

* - show hidden status on team list
- refactor team pill

* - improved logic (mostly functional)
- added Alerts for members & owners
- added local strings
- created upgrade modal
- added info notice on invite member modal
- fixed router redirect after leaving team

* - improved logic in team-billing
- error display on upgrade modal
- added better launch.json for VSCode debugger
- fixed bug with missing inviteeUserId

* code cleanup

* nit pick fixes i should sleep now

* fixed leave team bug
- quantity would not decrease upon leave or removal

* added stripe billing callback handler

* - better launch.json
- teams empty component

* - fixed error not removing after successful pro upgrade
- fixed silent fail on team create name conflict
- fixed input border radius on member invite modal

* updated local strings

* improved logic for edge cases, such as:
- team owned by member sponsored by another team can smoothly upgrade to pro if kicked from sponsored team
- logic to calculate if owner is specifically missing pro subscription (ownerIsMissingSeat)
- corrected calculation of members missing seats, shouldn't care for proPaidForByTeamId as that only matters for removing member and preserving pro if they pay for it themselves
- added react query devtools
- added missing locale string

* - allow type override for LinkIconButton
- consolidate filter logic for getMembersMissingSeats

* - only activate team billing for hosted cal
- fix prod price keys

* fix requiresUpgrade when not hosted by cal

* added HOSTED_CAL_FEATURES

* fixed failing build

- fixed broken import path
- added support for premium price plan. (will consider premium as a valid seat)
- remove rouge console log

* fix customer id type error

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-07 23:35:26 +00:00
Arthur Denner
c201bfab2d fix: add missing items to app.json (#1732)
* fix: add Postgres addon to app.json

* feat: add BASE_URL env variable to app.json

* fix: add JWT_SECRET env variable to app.json

* fix: add postdeploy script to app.json

* fix: add CALENDSO_ENCRYPTION_KEY env variable to app.json
2022-02-07 22:01:51 +00:00
github-actions[bot]
4a13448595 New Crowdin translations by Github Action (#1723)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-07 19:55:24 +00:00
Peer Richelsen
fb38c062ae added verified badge to profile (#1710)
* added verified badge to profile

* added verified to schema

* made verified optional

* generated missing migration

* add if exists

Co-authored-by: Jamie <ijamespine@me.com>
2022-02-07 17:16:20 +00:00
Peer Richelsen
19d1744138 smaller layout improvements to event-types edit (#1724)
* made event-type full width clickable

* fixed event locaiton dialog buttons on mobile

* some smaller changes on event-types
2022-02-07 16:26:08 +00:00
Miguel Nieto A
d14c7ed5c6 Update project-folder in README (#1726) 2022-02-07 16:19:44 +00:00
Peer Richelsen
5c98eee647 made event-type full width clickable (#1722) 2022-02-07 12:33:15 +00:00
github-actions[bot]
42b1f090b0 New Crowdin translations by Github Action (#1713)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-06 19:34:18 +00:00
Peer Richelsen
df00df5124 increased zindex of bottom nav (#1712) 2022-02-06 18:37:30 +00:00
github-actions[bot]
34a75090c4 New Crowdin translations by Github Action (#1704)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-04 23:37:11 +00:00
Jamie Pine
d0a6d6a6e6 Better 2FA Interface (#1707)
* - added TwoFactor component
- added react-digit-input package
- added SAMLLogin component
- upgraded auth/logic to react-hook-form
- fixed EmailField to match other ___Field components to include Label
- cleaned up login logic

* upgraded error component

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-04 20:30:36 +00:00
Ken Miller
ae5d5e1261 Tandem Video (#1671)
* Tandem Video

* Updating some copy

* adding some instructions for getting client id + secret

* PR Feedback

* removing spurious tsconfig file
2022-02-04 18:30:52 +00:00
Peer Richelsen
dedf001237 Update README.md 2022-02-04 13:18:20 +00:00
github-actions[bot]
3bddb58fc2 New Crowdin translations by Github Action (#1698)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-04 00:01:40 +00:00
Alex van Andel
cd208d29ab Re-implemented smartContractAddress guards (#1703) 2022-02-03 23:23:20 +00:00
Alex van Andel
c0081b971b Works on local, fingers crossed (#1701) 2022-02-03 22:31:22 +00:00
Peer Richelsen
6ea2c47942 removed redirects for web3, needs dialog in booking page (#1700)
* removed redirects, better: ask for verification in follow up pr for event-type pages

* fuck ts honestly

* ignoring type issues lol
2022-02-03 20:08:25 +00:00
Bailey Pumfleet
b202c7b595 Reduce minimum time to 1 minute 2022-02-03 17:04:44 +00:00
Peer Richelsen
656d319cd9 removed web3 from .env.example 2022-02-03 14:29:44 +00:00
Syed Ali Shahbaz
675340cb73 availability: end time should not be lower than start time (#1673)
* added start-end time check

* fixed init value for selected

* added zod validation

* cleanup

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-03 13:23:29 +00:00
Syed Ali Shahbaz
c709f9ed1b fixed attendee language per attendee (#1694)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-03 12:29:41 +00:00
github-actions[bot]
72d029d9f6 New Crowdin translations by Github Action (#1696)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-03 12:25:11 +00:00
Rohan Gupta
64db8d1cd4 Add Huddle01 integration (#1675)
* Add Huddle01 integration

* updated huddle01 locale strings

Co-authored-by: deepso <deeps.o7o8.y@gmail.com>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-02-03 11:59:02 +00:00
Peer Richelsen
acf8b83b1a added cz to dropdown (#1688)
* added cz to dropdown

* Update next-i18next.config.js
2022-02-02 18:53:16 +00:00
github-actions[bot]
6fb67bff20 New Crowdin translations by Github Action (#1690)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-02 18:51:26 +00:00
Deepak Prabhakara
7b65942de2 Feature/sso signup (#1555)
* updated saml-jackson

* if logged in redirect to getting-started page with username in the query param

* fixed issue with mixed up Google login, profile.id is undefined and this is causing the first record to be retrieved instead of the AND query failing

* updated updated saml-jackson

* document PGSSLMODE for Heroku

* tweaks to PGSSLMODE doc

* for self-hosted instance just allow user to signin with any identity (as long as email matches)

* fixed submitting flag

* added username to onboarding flow (if requested during signup)

* added telemetry for google login, saml login, saml config

* check if firstName and lastName are defined

* convert mutation to an async op

* added e2e test to ensure username query param gets picked up during onboarding

* fixed minor typo and added note about configuring Google integration as an Internal app when self-hosting

* cleaned up unnecessary ssr in sso signup routes

* renamed function

* Revert "cleaned up unnecessary ssr in sso signup routes"

This reverts commit 3607ffef79542d8ca4277a64be38d35bd9457960.

* moved client side code to useEffect hook

* - format
- fixed Save button in SAML config component

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-02 18:33:27 +00:00
Bailey Pumfleet
bf74fab0d3 Disable email on profile update 2022-02-02 12:15:23 +00:00
Peer Richelsen
91a73c8105 small darkmode fix for web3 (#1685) 2022-02-02 11:30:37 +00:00
github-actions[bot]
8ede48b1a8 New Crowdin translations by Github Action (#1684)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-02 11:11:56 +00:00
Alex van Andel
f52e277dc4 Web3 hotfixes to latest main (#1681)
* Fixed import of web3 dir

* Invalid way of including the zodResolver, exposed by updating 2.8.3 to 2.8.5 in @hookform/resolvers

* smartContractAddress is added conditionally, so added check to reflect this in the updateMutation
2022-02-02 11:07:13 +00:00
Peer Richelsen
8bb3e9c0be RTL (right-to-left) layout (#1654)
* added rtl to body

* added locale checkker in _document.tsx to check for ar or he locale

* added rtl modifiers for event-types

* added rtl classes

* wip

* wip

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-02-01 22:17:37 +00:00
github-actions[bot]
d9bb8aacfc New Crowdin translations by Github Action (#1680)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-01 22:16:41 +00:00
Peer Richelsen
60426aae74 Fix/web3 hotfixes (#1679)
* wip

* wip
2022-02-01 22:06:43 +00:00
Peer Richelsen
c3da8a852f wip (#1678) 2022-02-01 22:05:31 +00:00
Peer Richelsen
aa28cf0641 using button loading props vs Loader component (#1677) 2022-02-01 21:52:54 +00:00
Edward Fernández
1d10874890 Web3 App (#1603)
* Crypto events (#1390)

* update schemas, functions & ui to allow creating and updating events with a smart contract property

* remove adding sc address in the dialog that first pops-up when creating a new event, since its an advanced option

* add sc to booking ui

* some more ts && error handling

* fetch erc20s and nfts list in event-type page

* some cleanup within time limit

* ts fix 1

* more ts fixes

* added web3 section to integrations

* added web3 wrapper, needs connection to user_settings db

* extract to api

* Update eventType.ts

* Update components/CryptoSection.tsx

Change comment from // to /** as @zomars suggested

Co-authored-by: Omar López <zomars@me.com>

* convert axios to fetch, change scAddress to smartContractAddress, load bloxy from next_public_env

* Fix branch conflict

* add enable/disable btn web3

* fixed away user causing duplicate entries

* Remove web3 validation

* renamed web3 button in integrations

* remove unused variable

* Add metadata column

* added loader and showToast to the web3 btn

* fix: remove smartContractAddress from info sended

* send to user events when the contract is missing

* use window.web3 instead of web3

* use NEXT_PUBLIC_WEB3_AUTH_MSG

* remove web3 auth from .env

* wip

* wip

* Add metamask not installed msg and success redirect

* add redirect when verified

* styled web3 button and added i18n to web3

* fixed redirect after verification

* wip

* wip

* moved crypto section to ee

Co-authored-by: Yuval Drori <53199044+yuvd@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@richelsen.net>
Co-authored-by: Yuval Drori <yuvald29@protonmail.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Edward Fernandez <edward.fernandez@rappi.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-02-01 21:48:40 +00:00
github-actions[bot]
a81bb67cb1 New Crowdin translations by Github Action (#1672)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-02-01 13:03:10 +00:00
Peer Richelsen
de32c0c3ca renamed github (#1667) 2022-02-01 10:19:22 +00:00
github-actions[bot]
b8dc26b9d3 New Crowdin translations by Github Action (#1662)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-31 10:33:31 +00:00
Vladimir Klimontovich
faa295837c Fixed typo in README.md (#1656)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-01-31 10:30:05 +00:00
Bailey Pumfleet
ff3569fdf8 Add instructions for importer 2022-01-31 10:18:12 +00:00
depfu[bot]
12fa906031 Update next to version 12.0.9 (#1643)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
2022-01-29 19:53:25 +00:00
Arnab Tarwani
509e0b0a39 Bugfix/minor email fix (#1644)
* added new line fix, minor email validation

* fix: reorder controls hidden on more than 1 events #1452

Signed-off-by: arnabtarwani <arnab.tarwani@gmail.com>

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2022-01-29 19:22:02 +00:00
github-actions[bot]
811f4351a5 New Crowdin translations by Github Action (#1652)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-29 19:05:31 +00:00
Alex van Andel
9dc45071c5 Fix/accept team invite once signup (#1653)
* Accept team invite once signup

* Add expectations for the team invite

Co-authored-by: Miguel Nieto A <anietom@uninorte.edu.co>
2022-01-29 18:56:40 +00:00
Xavier B
2079199bab Fix browser specific styling on some elements (#1637)
Co-authored-by: Alex van Andel <me@alexvanandel.com>
2022-01-29 18:32:41 +00:00
Peer Richelsen
f2095fb594 Update TrialBanner.tsx 2022-01-29 14:57:16 +00:00
Nathaniel
df0d4654fe implmented brand new getAvailability (#1649) 2022-01-29 14:38:53 +00:00
Peer Richelsen
b616d36fcc minor fixes to billing page and trial banner (#1648) 2022-01-29 13:48:15 +00:00
github-actions[bot]
a8d2cf0b58 New Crowdin translations by Github Action (#1647)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-29 13:35:43 +00:00
github-actions[bot]
77ac5542dd New Crowdin translations by Github Action (#1645)
* New Crowdin translations by Github Action

* Update common.json

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-01-29 13:32:51 +00:00
Omar López
2fbdb93efb Allows for in-app upgrade (#1642) 2022-01-28 17:46:35 -07:00
Nikolay Rademacher
07b75dadbd feat: add option to provide cancellation reason for email (#1587)
* feat: add option to provide cancellation reason for email

* chore: move pos of getCancellationReason method in classes

* fix: only show cancellation reason if given
2022-01-28 10:40:29 -07:00
Syed Ali Shahbaz
8d0861809c stops avatar image flicker on route change (#1638)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-01-28 13:32:54 +00:00
github-actions[bot]
067a48093a New Crowdin translations by Github Action (#1641)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-28 13:25:32 +00:00
Peer Richelsen
1f0efb9aa4 Revert "renamed booking_confirmed to booking_attempted, needs reintroduction of booking_confirmed on API layer when email confirmations are being sent, needs renaming on postgres too (#1639)" (#1640)
This reverts commit e8ecab6456.
2022-01-28 13:16:40 +00:00
Peer Richelsen
e8ecab6456 renamed booking_confirmed to booking_attempted, needs reintroduction of booking_confirmed on API layer when email confirmations are being sent, needs renaming on postgres too (#1639) 2022-01-28 13:10:59 +00:00
Juan Esteban Nieto Cifuentes
2f5e7bcb8b Add minimum value in minutes in new event type (#1624) 2022-01-28 09:54:19 +00:00
Syed Ali Shahbaz
af89de8004 Wrong language in emails (#1541)
* test --wip

* --wip

* --wip

* --wip

* split language into organizer-attendees

* name fix for tAttendees

* --WIP

* added attendee locale migration, --WIP

* --wip

* fixed check types --wip

* updated person language type

* test snapshot updated

* --wip

* --WIP

* --WIP

* --WIP

* test changes revert

* cleanup

* removed extra space from test

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-01-27 13:32:53 -07:00
Omar López
1119d7f558 Upgrades zod-prisma 2022-01-27 12:45:25 -07:00
Alex van Andel
64f39b0d47 Revert "Fixes #1572 (#1622)" (#1630)
This reverts commit 2a77f2c477.
2022-01-27 15:16:38 +00:00
Daniel McGowan
2a77f2c477 Fixes #1572 (#1622) 2022-01-27 14:55:06 +00:00
github-actions[bot]
c720e4e960 New Crowdin translations by Github Action (#1628)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-27 14:12:33 +00:00
Peer Richelsen
1eac8a1aa3 fixed 404 (#1629) 2022-01-27 12:40:10 +00:00
Jamie Pine
e06edadda5 Improved authentication screens (Login/Logout/Forgot Password) (#1627) 2022-01-27 10:16:20 +00:00
Miguel Nieto A
5aaf702e2b Fix NaN values when creating event type 2022-01-26 15:47:49 -07:00
Syed Ali Shahbaz
a9f9822091 Added og-image for event-types (#1618)
* added headseo

* added username to availability page

* fixed type err

* cleanup

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-01-26 17:31:39 +00:00
Miguel Nieto A
73de0c2185 Fix signup query (#1608)
* Remove emailVerified not null from query

* Improve query to find existing user

* Add test suite to Signup from a Team Invite

* Allow importing modules with aliases

* Delete created data after all tests

* Resolve conflicts

* Use teampro instead of pro user and refactor code
2022-01-26 16:56:22 +00:00
buschco
cad77ad237 fix mapping for cancel webhook (#1554) (#1557) (#1556)
Co-authored-by: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-01-26 16:41:18 +00:00
github-actions[bot]
c59dce1284 New Crowdin translations by Github Action (#1620)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-26 16:35:04 +00:00
Peer Richelsen
ba3034fd8d Update LICENSE 2022-01-26 16:24:50 +00:00
Alex van Andel
b4c96c96e6 Explicitly set email variable for readability
Minor code clarity tweak making the comment redundant.
2022-01-26 09:01:43 -07:00
Peer Richelsen
ce4ed40ae0 removed developer.cal.com from 404 (#1617) 2022-01-25 18:23:24 +00:00
github-actions[bot]
c57debe600 New Crowdin translations by Github Action (#1614)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-25 16:44:28 +00:00
Vladimir Klimontovich
8459f6d2b4 Add Jitsu badge to README (#1612) 2022-01-25 16:07:49 +00:00
Peer Richelsen
1bf4913051 added <InfoBadge> component with tooltip (#1609)
* added <InfoBadge> component with tooltip, added to event-types event name

* added title to <InfoBadge> for a12y
2022-01-25 00:31:05 +00:00
Omar López
d7bd1e9957 Fixes for team event creation (#1604) 2022-01-24 17:25:32 +00:00
Peer Richelsen
7baedc2f64 added chinese to i18next config (#1591) 2022-01-24 16:52:53 +00:00
github-actions[bot]
89bfff9a0b New Crowdin translations by Github Action (#1598)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-24 15:09:50 +00:00
Peer Richelsen
8de822500c fixed mismatch of bg color for success page (#1597) 2022-01-24 14:27:56 +00:00
Omar López
8f6f34931b Allow choosing destination calendar per event type (#1514) 2022-01-21 14:35:31 -07:00
buschco
7737164bbf fix mapping for cancel webhook (#1554) (#1557) 2022-01-21 12:06:45 +00:00
Omar López
c91b46c9fb Adds missing locale (#1576) 2022-01-20 18:26:34 +00:00
github-actions[bot]
dabd82d018 New Crowdin translations by Github Action (#1574)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-20 15:50:00 +00:00
Peer Richelsen
9ac2843e9e I18n/new languages (#1575)
* added polish, hebrew, arabic, needs translations

* renamed hebrew iso tag
2022-01-20 15:24:00 +00:00
Peer Richelsen
b21dd3418b added polish, hebrew, arabic, needs translations (#1573) 2022-01-20 13:11:43 +00:00
Syed Ali Shahbaz
24182625bb redirect to cancellation survey (#1570) 2022-01-20 09:32:24 +00:00
Deepak Prabhakara
e0a923979a fixed issue with mixed up Google login, profile.id is undefined and this is causing the first record to be retrieved instead of the AND query failing (#1569)
(cherry picked from commit 4f168616e7b7a0a03b979b434b4aa20c7b612cb0)
2022-01-19 18:24:00 -07:00
Peer Richelsen
745fadab2f added heroku button 2022-01-19 19:57:53 +00:00
Peer Richelsen
c6e60bd706 added telemetry to importer (#1525)
* added telemetry to importer

* wip

* ignore typescript errors in jitsu telemetry
2022-01-19 17:26:44 +00:00
Omar López
118ee6bfb6 Follow up to #1566 (#1567)
* Lazy loads phone input

* Removes duplicate CSS
2022-01-19 09:55:29 -07:00
Peer Richelsen
bfcd583376 added heroku app.json (#1565) 2022-01-19 16:28:08 +00:00
Omar López
116e6d0938 Lazy loads phone input (#1566) 2022-01-19 16:24:01 +00:00
Syed Ali Shahbaz
e52e1e3e23 Survey at account deletion (#1561)
* redirect to /cancellation

* relative path

* base URL check added
2022-01-19 09:03:51 -07:00
Omar López
b75e384a2d Forgot password test troubleshooting (#1538)
* Removes e2e retries and videos

* Forgot password test troubleshooting

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-01-19 15:54:54 +00:00
github-actions[bot]
32dc258077 New Crowdin translations by Github Action (#1559)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-19 10:14:20 +00:00
Peer Richelsen
80ef94fb93 removed broken i18n shield from Readme 2022-01-18 23:27:26 +00:00
Philipp Dormann
f371595ae0 german translation improvements (#1553)
* several typo fixes

* Problemlösungen -> Problembehandlung

* "aktzeptiert" typo -> "akzeptiert"

* "Embed" -> "Einbetten"

* several readability adjustments

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-01-18 23:03:29 +00:00
github-actions[bot]
97f971b8a5 New Crowdin translations by Github Action (#1532)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-18 22:31:11 +00:00
Omar López
038ea3365a Removes e2e retries and videos (#1537) 2022-01-17 20:23:46 +00:00
Manjunath Reddy
2289c68979 Fixes: Get minutes offset from start of the day over days.utc() (#1488)
* Use days start of the day offset minutes over days.utc()

* We do not need to set startOf("day") as day.utc() already starts from the beginning of the day with respective +h value

* do not use startOf if the invite date is already set with utc value, otherwise, it will double the utc +h * 2

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-01-17 20:15:19 +00:00
Omar López
103877737e Sets new users to trial by default and docs improvements (#1536)
* Sets new users to trial by default

* Update README.md

* Update README.md

* Docs improvements

* Adds migration
2022-01-17 19:42:38 +00:00
Yevhen Laichenkov
55f25d9194 fix/playwright test (#1533)
* add: playright-test eslint plugin

* add: missed awaits in playwright tests
2022-01-17 18:15:18 +00:00
Deepak Prabhakara
3e15459c20 Added known configuration for gmail smtp (nodemailer) (#1522)
* added known configuration for gmail smtp (nodemailer)

* Update .env.example

Co-authored-by: Omar López <zomars@me.com>

Co-authored-by: Omar López <zomars@me.com>
2022-01-17 17:37:32 +00:00
Omar López
460dda690d Fix for #1518 (#1521)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-01-17 13:02:42 +00:00
Bailey Pumfleet
33694196e1 Calendly & SavvyCal import (#1512)
* Calendly & SavvyCal import

* added string keys to import

* Update pages/api/import/savvycal.ts

Co-authored-by: Omar López <zomars@me.com>

* Update pages/api/import/savvycal.ts

Co-authored-by: Omar López <zomars@me.com>

* Update pages/getting-started.tsx

Co-authored-by: Omar López <zomars@me.com>

* fixed string

* prettier

Co-authored-by: Peer Richelsen <peeroke@richelsen.net>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-01-15 16:23:42 +00:00
github-actions[bot]
b5569c6b1c New Crowdin translations by Github Action (#1520)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-15 15:35:31 +00:00
Peer Richelsen
4e74c0e27f fixed switching background color (#1519) 2022-01-14 22:01:06 +00:00
Peer Richelsen
5e8a80001d added roadmap link in dropdown (#1510)
* added roadmap link in dropdown

* Update public/static/locales/en/common.json

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-01-14 20:39:17 +00:00
Peer Richelsen
9921b76da0 removes trial banner on tablet and smaller (#1516) 2022-01-14 20:38:47 +00:00
Omar López
73f607f27a Auto-seed when resetting and migrating dev (#1513)
* Auto-seed when resetting and migrating dev

* Fixes db-seed script

* Oauth e2e test fixes
2022-01-14 18:36:53 +00:00
Syed Ali Shahbaz
fac4de1144 Enhancement/cal 708 delete account (#1403)
* --WIP

* --WIP

* --WIP

* added prisma migration and delete cascade for user

* stripe customer removal and other --wip

* --wip

* added stripe user delete

* removed log remnants

* fixed signout import

* cleanup

* Changes requested

* fixed common-json apostrophe

* Simplifies account deletion logic and add e2e tests

* Cleanup

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Omar López <zomars@me.com>
2022-01-14 13:49:15 +00:00
Omar López
e5f8437282 Fixes oauth tests (#1506)
* Fixes oauth tests

* Login page type fixes

* Delegates approval to github UI
2022-01-13 13:45:44 -07:00
Deepak Prabhakara
1a20b0a0c6 Add log in with Google and SAML (#1192)
* Add log in with Google

* Fix merge conflicts

* Merge branch 'main' into feature/copy-add-identity-provider

# Conflicts:
#	pages/api/auth/[...nextauth].tsx
#	pages/api/auth/forgot-password.ts
#	pages/settings/security.tsx
#	prisma/schema.prisma
#	public/static/locales/en/common.json

* WIP: SAML login

* fixed login

* fixed verified_email check for Google

* tweaks to padding

* added BoxyHQ SAML service to local docker-compose

* identityProvider is missing from the select clause

* user may be undefined

* fix for yarn build

* Added SAML configuration to Settings -> Security page

* UI tweaks

* get saml login flag from the server

* UI tweaks

* moved SAMLConfiguration to a component in ee

* updated saml migration date

* fixed merge conflict

* fixed merge conflict

* lint fixes

* check-types fixes

* check-types fixes

* fixed type errors

* updated docker image for SAML Jackson

* added api keys config

* added default values for SAML_TENANT_ID and SAML_PRODUCT_ID

* - move all env vars related to saml into a separate file for easy access
- added SAML_ADMINS comma separated list of emails that will be able to configure the SAML metadata

* cleanup after merging main

* revert mistake during merge

* revert mistake during merge

* set info text to indicate SAML has been configured.

* tweaks to text

* tweaks to text

* i18n text

* i18n text

* tweak

* use a separate db for saml to avoid Prisma schema being out of sync

* use separate docker-compose file for saml

* padding tweak

* Prepare for implementing SAML login for the hosted solution

* WIP: Support for SAML in the hosted solution

* teams view has changed, adjusting saml changes accordingly

* enabled SAML only for PRO plan

* if user was invited and signs in via saml/google then update the user record

* WIP: embed saml lib

* 302 instead of 307

* no separate docker-compose file for saml

* - ogs cleanup
- type fixes

* fixed types for jackson

* cleaned up cors, not needed by the oauth flow

* updated jackson to support encryption at rest

* updated saml-jackson lib

* allow only the required http methods

* fixed issue with latest merge with main

* - Added instructions for deploying SAML support
- Tweaked SAML audience identifier

* fixed check for hosted Cal instance

* Added a new route to initiate Google and SAML login flows

* updated saml-jackson lib (node engine version is now 14.x or above)

* moved SAML instructions from Google Docs to a docs file

* moved randomString to lib

* comment SAML_DATABASE_URL and SAML_ADMINS in .env.example so that default is SAML off.

* fixed path to randomString

* updated @boxyhq/saml-jackson to v0.3.0

* fixed TS errors

* tweaked SAML config UI

* fixed types

* added e2e test for Google login

* setup secrets for Google login test

* test for OAuth login buttons (Google and SAML)

* enabled saml for the test

* added test for SAML config UI

* fixed nextauth import

* use pkce flow

* tweaked NextAuth config for saml

* updated saml-jackson

* added ability to delete SAML configuration

* SAML variables explainers and refactoring

* Prevents constant collision

* Var name changes

* Env explainers

* better validation for email

Co-authored-by: Omar López <zomars@me.com>

* enabled GOOGLE_API_CREDENTIALS in e2e tests (Github Actions secret)

* cleanup (will create an issue to handle forgot password for Google and SAML identities)

Co-authored-by: Chris <76668588+bytesbuffer@users.noreply.github.com>
Co-authored-by: Omar López <zomars@me.com>
2022-01-13 20:05:23 +00:00
github-actions[bot]
ffc0f460a0 New Crowdin translations by Github Action (#1500)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-13 19:53:26 +00:00
Omar López
c9c21e6a67 Github Workflow cleanup (#1504)
* Update lint.yml

* Build and e2e on PRs

* Adds security checks for PRs

* removes build workflow

Is not needed anymore thanks to E2E
2022-01-13 12:51:15 -07:00
Philip Niedertscheider
9c94aadbf7 Fixed Google Calendar custom destination calendar deletion (#1486)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-01-13 19:47:15 +00:00
Omar López
f8c036164c Adds security checks for PRs (#1503)
* Update lint.yml

* Build and e2e on PRs

* Adds security checks for PRs
2022-01-13 12:37:34 -07:00
Omar López
67bcbfd75a Runs lint on all PRs to main (including external contributors) (#1502)
* Update lint.yml

* Build and e2e on PRs
2022-01-13 18:09:37 +00:00
Omar López
54be2a2ec1 Update e2e.yml (#1498) 2022-01-13 16:52:31 +00:00
github-actions[bot]
4608b9d56d New Crowdin translations by Github Action (#1494)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-01-12 22:22:16 +00:00
Manjunath Reddy
8d9c69916b Update instructions to create new user record (#1489) 2022-01-12 22:18:19 +00:00
github-actions[bot]
643e64a0e4 New Crowdin translations by Github Action (#1493) 2022-01-12 22:17:09 +00:00
Peer Richelsen
20404611b0 Fix/remove date selector telementry (#1491) 2022-01-12 22:16:38 +00:00
Bailey Pumfleet
f7fda47534 Add ability to change email (#1492) 2022-01-12 21:54:48 +00:00
Bailey Pumfleet
c48d0d6c34 Fix reorder arrow alignment (#1487) 2022-01-12 13:57:51 +00:00
Bailey Pumfleet
861cfdfed0 Fix the query invalidation 2022-01-12 13:46:24 +00:00
github-actions[bot]
fbc1df9a30 New Crowdin translations by Github Action (#1475)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-12 13:13:24 +00:00
Syed Ali Shahbaz
ac6275b906 hotfix for images hosted elsewhere and link stored in DB (#1480)
* hotfix for images hosted elsewhere and link stored in DB

* improved if else

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-01-12 13:06:39 +00:00
Jamie Pine
d2b9e67424 fix (#1482) 2022-01-12 12:34:50 +00:00
Jamie Pine
70683a89b9 Added "New Event Type" button on Team settings (#1411)
- Moved CreateNewEventButton in pages/event-types/index to dedicated component as this is used in two places now.
- Implemented CreateEventType button on Team settings screen and replaced old markup in on event types page with new component.
- Upgrade vanilla JS inputs to library primitives.
- Created TextArea & TextAreaField components in components/form.
- [Bugfix] Changed back button behavior in Shell to have a specified back path as CreateEventType's modal interfered with the router.goBack behavior.
- Ensure modal data is preserved in URL params for router accuracy and removed on exit.
2022-01-12 01:29:20 -08:00
Peer Richelsen
59d4d92b52 shorten bio for og-image (#1477) 2022-01-11 16:26:45 +00:00
Bailey Pumfleet
8b68263800 Update feature_request.md 2022-01-11 11:38:22 +00:00
Bailey Pumfleet
7739994f4e Add an away mode to disable your booking page (#1418)
* Add away column and status circle

* Add away status toggle

* Show message on booking page when away

* Update common.json

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-01-11 10:32:40 +00:00
Peer Richelsen
a61cb690af temporary fixes daily issue (#1469) 2022-01-11 10:24:37 +00:00
Syed Ali Shahbaz
e24d8889fc Cal 710 turn dataimagejpegbase64 avatar into (#1429)
* --wip

* added next-config custom header path

* added avatar endpoint

* cleanup --wip

* adding gravatar fallback support --wip

* added endpoint rewrite and avatar access

* gravatar support added

* build err fix

* updated HeadSEO with new avatar logic

* --wip

* adds og compat

* added truncated bio

* cleanup

* changed truncate of body from 24 chars to 32 chars

* removed unused, commented code

* removed trailing whitespace

* requested changes

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-01-11 08:54:02 +00:00
github-actions[bot]
f0abf47ecc New Crowdin translations by Github Action (#1465)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-10 23:32:53 +00:00
Alex van Andel
1c0c3c7690 Fix reschedule uid not prepopulating fields (#1416) 2022-01-10 23:25:06 +00:00
Muhammad Redho Ayassa
09c4040ce5 fix missing date in book page (#1430) 2022-01-08 16:54:02 +00:00
github-actions[bot]
57eeb48a8e New Crowdin translations by Github Action (#1433)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-07 22:24:48 +00:00
Omar López
84d75cf693 Upgrades next-auth to v4 (#1185)
* Upgrades next-auth to v4

* Fixes next-auth session types

* Type fixes

* Fixes login issue

* Team page fixes

* Type fixes

* Fixes secret

* Adds test for forgotten password

* Skips if pw secret is undefined

* Prevents error if PW secret is undefined

* Adds PLAYWRIGHT_SECRET explainer

* Adds pending auth TODOs

* Adds missing secret

* Fixed imports

* Fixed imports

* Type fixes

* Test fixes

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-01-07 20:23:37 +00:00
Bailey Pumfleet
bf46038474 Update common.json 2022-01-07 10:23:07 +00:00
Peer Richelsen
e93b7d942a hide slug event-types on mobile (#1426) 2022-01-06 22:13:38 +00:00
Edward Fernández
6e7359ae96 fix code validation when the google calendar integration does not have all permission (#1425)
Co-authored-by: Edward Fernandez <edward.fernandez@rappi.com>
2022-01-06 15:06:31 -07:00
Edward Fernández
bd2a795d7a [CAL-770] add new integration architecture revamp (#1369)
* [CAL-770] add new integration architecture revamp

* Type fixes

* Type fixes

* [CAL-770] Remove tsconfig.tsbuildinfo

* [CAL-770] add integration test

* Improve google calendar test integration

* Remove console.log

* Change response any to void in the deleteEvent method

* Remove unnecesary const

* Add tsconfig.tsbuildinfo to the .gitignore

* Remove process env variables as const

Co-authored-by: Edward Fernández <edwardfernandez@Edwards-Mac-mini.local>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: zomars <zomars@me.com>
Co-authored-by: Edward Fernandez <edward.fernandez@rappi.com>
2022-01-06 12:28:31 -05:00
Peer Richelsen
8a70ea66e9 added url to event-types preview (#1420)
* added url to event-types preview

* wip

* wip
2022-01-06 10:39:16 +00:00
Peer Richelsen
46df4c048e hide order buttons on mobile event types (#1421)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-01-06 10:24:19 +00:00
github-actions[bot]
592dcd36b3 New Crowdin translations by Github Action (#1412)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-06 10:12:35 +00:00
Flemming
3bb76a3a62 Update Readme to create a local .env (#1313) 2022-01-04 17:19:44 +00:00
Flemming
4537117624 [WIP] Create password change test (#1333) 2022-01-04 17:18:49 +00:00
André Ricardo
9b5da1bca3 performance increase for the DatePicker component (#1404)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-01-04 10:06:05 +00:00
github-actions[bot]
80bd7fd89b New Crowdin translations by Github Action (#1407)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2022-01-04 10:05:19 +00:00
Omar López
a66610d9c2 Zomars/cal 777 switching off paid mode bug (#1401)
* Adds Form component

* Disabling price sets it to 0
2022-01-03 23:19:05 +00:00
Omar López
4cd7a4ce5b Adds trial banner and in-app upgrade (#1402)
* WIP trial banner

* Fixes days left count

* Defers stripe loading until needed

* Fixes auth issues

* Checkout fixes

* Allows for signup testing

* Debugging checkout

* Adds tests for trial banner

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-01-03 22:50:59 +00:00
Peer Richelsen
baa7e868bd Fix/bookings mobile (#1405)
* added title for truncated description booking page

* minor changes
2022-01-03 12:01:06 +00:00
Omar López
445faa406a Zomars/cal 798 issue with billing portal (#1392)
* Uses stripeCustomerId from used metadata in billing portal

* Uses stripeCustomerId from used metadata in billing portal

# Conflicts:
#	ee/pages/api/integrations/stripepayment/portal.ts
2021-12-30 11:42:06 -05:00
Syed Ali Shahbaz
4be4a01968 Blank success page in January bookings (#1399)
* added 1 to UTC month conversion to make it 1 to 12

* with as numtype
2021-12-30 09:04:08 -07:00
Alex van Andel
bc46f4fbc4 Fixes day of month start day (#1389) 2021-12-29 08:27:49 +00:00
Omar López
9b583694a3 Adds users metadata column (#1387) 2021-12-28 10:15:52 +01:00
Peer Richelsen
81e2ae1352 fixed mobile layouts for team and team availability (#1382) 2021-12-27 19:54:11 +01:00
depfu[bot]
3e1fe30186 Update all Yarn dependencies (2021-11-29) (#1233)
* Update all Yarn dependencies (2021-11-29)
2021-12-27 16:00:15 +00:00
github-actions[bot]
f91ed7837c New Crowdin translations by Github Action (#1384)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-12-27 15:31:27 +01:00
Adrien La
1567feb75e i18n - Translate booking status when empty screen (#1219)
* i18n translate booking status when empty screen

* i18n - status key added to fr & en

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-12-27 13:29:43 +01:00
github-actions[bot]
43a721dce6 New Crowdin translations by Github Action (#1381)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-12-27 13:11:23 +01:00
albanobattistella
0f82427b1e Update common.json (#1380) 2021-12-27 12:52:24 +01:00
Alex van Andel
3e5987abec For now; entirely disable sharing owner role (#1372) 2021-12-22 18:05:49 -07:00
Nathaniel
3761a75b28 fixed zoom video not creating when credentials are not valid (#1329)
* fixed nextcloud

* fixed nextcloud & fastmail issues

* fixed zoom video not creating when credentials are not valid
also fixed reponse to reflect create failure.

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-12-22 13:38:24 -07:00
Alex van Andel
9d7dc09974 Use the matched user email to send the password reset to (#1366) 2021-12-21 18:31:32 +01:00
Syed Ali Shahbaz
bab72f1514 upgraded prisma to v3.0.2 (#1284)
* upgraded prisma to v3.0.2

* updated queryRaw changes for prisma 3

* queryRaw further changes

* --wip

* --wip

* --WIP

* Preview flag "selectRelationCount" is not needed anymore

* Adds missing migrations

* removed temporary test

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: zomars <zomars@me.com>
2021-12-21 08:32:16 -07:00
github-actions[bot]
fbbd7ea45a New Crowdin translations by Github Action (#1362) 2021-12-21 12:23:40 +00:00
Omar López
7bc7b241ac Zomars/cal 794 normalize emails in db (#1361)
* Email input UX improvements

* Makes email queries case insensitive

* Lowercases all emails

* Type fixes

* Re adds lowercase email to login

* Removes citext dependency

* Updates schema

* Migration fixes

* Added failsafes to team invites

* Team invite improvements

* Deleting the index, lowercasing 

```
calendso=> UPDATE users SET email=LOWER(email);
ERROR:  duplicate key value violates unique constraint "users.email_unique"
DETAIL:  Key (email)=(free@example.com) already exists.
```

vs.

```
calendso=> CREATE UNIQUE INDEX "users.email_unique" ON "users" (email);
ERROR:  could not create unique index "users.email_unique"
DETAIL:  Key (email)=(Free@example.com) is duplicated.
```

I think it'll be easier to rectify for users if they try to run the migrations if the index stays in place.

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-12-21 00:59:06 +00:00
Syed Ali Shahbaz
0dd72888a9 removed team from profile url (#1359) 2021-12-20 17:26:35 +01:00
Nikolay Rademacher
a6382cf07f fix: apostrophe in delete event type text (#1353)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-12-20 15:00:16 +00:00
Alex van Andel
39761c520e Uses Intl to translate weekdays and time related booking i18n (#1354)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-12-20 11:55:49 +00:00
Jamie Pine
c9a8bd369c fixes VSCode auto importing (#1358)
automatic imports resolved to relative (".../../components") instead of respecting tsconfig path ("@components")
2021-12-20 10:38:46 +00:00
Peer Richelsen
d95e26d55c fixes 404 for subpaths, adds prefilled url to sign up form (#1355)
* fixes 404 for subpaths, adds prefilled url to sign up form

* Added tweak to support BASE_URL for self hosted (#1356)

* Added tweak to support BASE_URL for self hosted (without linking to our signup)
* also hides the signup popular page

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-12-20 09:11:39 +00:00
Omar López
3bc659af44 Let email case sensitive (#1357) 2021-12-19 21:01:25 +00:00
Alex van Andel
cbf528c33e Allows setting the event frequency to other than event length (#1349) 2021-12-19 12:11:31 +00:00
Joel Lu
38f762f7b2 fix: refresh UserDropdown after update (#1352)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-12-18 15:06:05 +00:00
Alex van Andel
94a10992d2 Fixes contextual translation error (NL) (#1350)
Currently it translates as "Minimum preparation time" - contextually this could be right but in our case it isn't. Re-translated as "Minimum forward notice" - it's the closest I could come up with and used by booking.nl (Dutch version of Booking.com) - so I reckon that's best.
2021-12-18 10:44:19 +00:00
Omar López
26e1194ef3 Trigger redeploy (#1348) 2021-12-17 20:37:07 +00:00
Omar López
21103580f7 Zomars/cal 748 paid bookings are failing (#1335)
* E2E video adjustments

* Adds test to add Stripe integration

* Type fix

* WIP: Payment troubleshooting

* Paid bookings shouldn't be confirmed by default

* Runs stripe test only if installed

* BookingListItem Adjustments

* Pending paid bookings should be unconfirmed

* Attempt to fix paid bookings

* Type fixes

* Type fixes

* Tests fixes

* Adds paid booking to seeder

* Moves stripe tests to own file

* Matches app locale to Stripe's

* Fixes minimun price for testing

* Stripe test fixes

* Fixes stripe frame test

* Added some Stripe TODOs
2021-12-17 16:58:23 +00:00
Syed Ali Shahbaz
ca405743fb removed brand color from stripe card (#1342) 2021-12-17 13:44:38 +00:00
Peer Richelsen
6b426b5386 Revert "removed empty language files, triyng to debug crowdin (#1341)" (#1344) 2021-12-17 11:32:23 +00:00
Peer Richelsen
c0c4cb53db removed empty language files, triyng to debug crowdin (#1341) 2021-12-17 00:29:08 +00:00
Jamie Pine
c21f0c2d49 Even Better Teams (#1304)
- dropdown improvements
- Improve performance of team availability
- Fix default timezone
- Allow team admins to edit event types
- Change team availability slot input to dropdown select (15,30,60)
- Prevent teams from access if not pro user
2021-12-17 00:16:59 +00:00
Jamie Pine
4ce879e5dc UX improvement to public facing team pages
- Added default member avatars
- Fixed member item spacing
- Added team description (#1305)
2021-12-17 00:12:06 +00:00
Jamie Pine
25372b3c9e - fix border radius (#1339)
- upgrade button / input components
- clean up markup
2021-12-16 17:03:32 -07:00
Alex van Andel
a3bd226347 Bugfix/year change (#1323) 2021-12-16 15:20:38 +00:00
Omar López
e6f71c81bb E2E tests refactoring (#1318)
* Adds test todos

* Can't seem to change locales

* WIP playwright test refactoring

* jest-playwright cleanup

* Test fixes

* Test fixes

* More test fixes

* WIP: Testing fixes

* More test fixes

* Removes unused files

* Installs missing browsers for e2e

* ts-node fixes

* ts-check fixes

* Type fixes

* Fixes e2e

* FFS

* Renamex webhook snapshot

* Fixes webhook cross-platform

* Renamed webhook snapshot

* Apply suggestions from code review

Co-authored-by: Max Schmitt <max@schmitt.mx>

* Removes kont dependency

* Cleanup playwright options

* Next.js cache optimizations on CI

* Uses cache on e2e as well

* Fixme is introducing side-effects

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
Co-authored-by: Max Schmitt <max@schmitt.mx>
2021-12-15 16:25:49 +00:00
Peer Richelsen
972402be2c removed unused roboto.ttf (#1327) 2021-12-15 15:23:03 +00:00
Alex van Andel
5c5d9d3406 Fixes zoom expiry date (#1315)
* Fixes zoom expiry date

* Ensure backwards compatibility with old zoom connections

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-12-15 14:02:39 +00:00
Peer Richelsen
c2a60657d4 removed overflow hidden from dialog to fix dropdowns (#1321)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-12-15 13:47:38 +00:00
Syed Ali Shahbaz
d2965627d0 added brand color to dark mode timepicker (#1307) 2021-12-15 10:26:39 +00:00
Omar López
5deea2c5f6 Fixing items readded to location dropdown issue (#1316)
Co-authored-by: Manoj <yogeshwaranmanoharan@gmail.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-12-14 22:14:35 +00:00
Peer Richelsen
7e6d56ca1f update crowdin.yml 2021-12-14 21:59:39 +00:00
Peer Richelsen
725a7ec0f4 fixed tooltips (#1311) 2021-12-14 12:44:11 +00:00
Alex Johansson
ad8ffd3de4 prevent i18n flickering on pages (#1308)
* prevent i18n flickering on pages

- 404
- `/cancel`
- `/success`

* ssg for 404

* comments

* tweak

* 404

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-12-14 12:31:54 +00:00
Peer Richelsen
8e447ea4b5 fixed border on success (#1310) 2021-12-14 12:29:15 +00:00
Syed Ali Shahbaz
8bbfc0c7f0 Adds complementing text color for various brand colors that the user might choose (#1289)
* added contrast evaluator

* added brandtext --WIP

* further changes and fixes

* fixed type err

* fixed datepicker bug

* changed brandtext to brandcontrast

* further dark mode changes

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-12-14 10:39:32 +00:00
Jamie Pine
2abd7779ac Fix for incorrect <hr /> color as result of Tailwind upgrade (#1303) 2021-12-13 21:14:26 -07:00
Omar López
b6518b9ce1 Fixes cancel booking page (#1301) 2021-12-13 23:10:10 +00:00
Nathaniel
43c939e342 Fixed nextcloud & fastmail events not created (#1300)
* fixed nextcloud

* fixed nextcloud & fastmail issues
2021-12-13 13:58:09 +00:00
Omar López
357e279dd8 Upgrades to tailwindcss v3 (#1294)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-12-13 11:01:33 +00:00
Alex van Andel
8afcba23c8 Commented out minimumBookingNotice, needs fixing (#1297) 2021-12-12 00:09:34 +01:00
Jamie Pine
c359ebe85c fix for this horrific bug (#1295) 2021-12-11 16:32:25 +00:00
Omar López
3587e1ac9c Uses vercel url on integration endpoints for staging (#1293)
* Legibility and base url fixes

* Uses vercel url on integration endpoints for staging

* We validate the user before creating credentials
2021-12-10 21:14:54 +00:00
sec0ndhand
3ff99f7877 Fix timezones being returned from office 365 (#1269)
Per the [api documentation](https://docs.microsoft.com/en-us/graph/api/calendar-list-calendarview?view=graph-rest-1.0&tabs=javascript#query-parameters)
the `Prefer: outlook.timezone` is ignored if a timezone value is passed
in the request.  This forces the dates to be passed in UTC.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-12-10 19:00:03 +00:00
Jamie Pine
c1d90eb438 Improvement/teams (#1285)
* [WIP] checkpoint before pull & merge

- Added teams to sidebar
- Refactored team settings
- Improved team list UI

This code will be partly reverted next commit.

* [WIP]
- Moved team code back to components
- Removed team link from sidebar
- Built new team manager screen based on Event Type designs
- Component-ized frequently reused code (SettingInputContainer, FlatIconButton)

* [WIP]
- Created LinkIconButton as standalone component
- Added functionality to sidebar of team settings
- Fixed type bug on public team page induced by my normalization of members array in team query
- Removed teams-old which was kept as refrence
- Cleaned up loose ends

* [WIP]
- added create team model
- fixed profile missing label due to my removal of default label from component

* [WIP]
- Fixed TeamCreateModal trigger
- removed TeamShell, it didn't make the cut
- added getPlaceHolderAvatar
- renamed TeamCreate to TeamCreateModal
- removed deprecated UsernameInput and replaced uses with suggested TextField

* fix save button

* [WIP]
- Fixed drop down actions on team list
- Cleaned up state updates

* [WIP] converting teams to tRPC

* [WIP] Finished refactor to tRPC

* [WIP] Finishing touches

* [WIP] Team availability beginning

* team availability mvp

* - added validation to change role
- modified layout of team availability
- corrected types

* fix ui issue on team availability screen

* - added virtualization to team availability
- added flexChildrenContainer boolean to Shell to allow for flex on children

* availability style fix

* removed hard coded team type as teams now use inferred type from tRPC

* Removed unneeded vscode settings

* Reverted prisma schema

* Fixed migrations

* Removes unused dayjs plugins

* Reverts type regression

* Type fix

* Type fixes

* Type fixes

* Moves team availability code to ee

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: zomars <zomars@me.com>
2021-12-09 23:51:30 +00:00
Omar López
5902f78fb2 Zomars/calendars UI fixes (#1288)
* Updates yarn.lock

* Primary calendar selector UI fixes

* Update translation string

* Mobile fixes
2021-12-09 19:37:29 +00:00
Omar López
8617b2db65 Adds deploy script (#1286) 2021-12-09 16:19:52 +00:00
Alex Johansson
850497ea80 add select primary calendar (#1133)
* add primary

* fix

* refactor eventmanager to take `CalendarDestination`

* `DestinationCalendar`

* fix

* wip

* wip

* Minor fixes (#1156)

* Followup for #1242

* Updates schema

* Renames fields to destinationCalendar

* Migration fixes

* Updates user destination calendar

* Abstracts convertDate to BaseCalendarApiAdapter

* Type fixes

* Uses abstracted convertDate method

* Abstracts getDuration and getAttendees

* Fixes circular dependecy issue

* Adds notEmpty util

* Reverts empty location string

* Fixes property name

* Removes deprecated code

* WIP

* AppleCal is basically CalDav

* Fixes missing destinationCalendar

* Type fixes

* Select primary calendar on Office and gCal

* Adds pretty basic instructions for destination calendar

* Cleanup

* Type fix

* Test fixes

* Updates test snapshot

* Local test fixes

* Type fixes

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-12-09 15:51:37 +00:00
Nathan
1890d5daf7 Update event.ts (#1280) 2021-12-09 12:25:38 +00:00
Joel Lu
8d4b3c1c2c Fix user dropdown text overflow (#1283) 2021-12-09 11:53:34 +00:00
Bailey Pumfleet
22a6d6ee3b Swap availability and booking icons (#1276) 2021-12-08 19:28:36 +00:00
Alex Johansson
05fa1feab0 Migrate availability schedule for everyone (#1179)
* wip

* tmp mig

* add cron api key to header

* feels safer

* Revert "wip"

This reverts commit 15a8358661c6785ce9eedb93a473a8829f79d760.

* test

* add name

* normalize dates

* maybe works

* test

* fixz

* maybe fix ci

* deprecated

* step 1 -- raw sql

* seems to work

* migration seems to work

* br

* fix comment

* timouet

* disconnect prisma test

* test order

* maybs

* seems to work

* tz

* tweak

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-12-08 12:08:57 +00:00
Bill Gale
bbf96a2e1d fix: team avatar booking option 2 (#1274) 2021-12-08 11:40:48 +00:00
depfu[bot]
3b00bc7508 Update next to version 12.0.7 (#1270)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-12-08 09:36:03 +00:00
Alex van Andel
878c8b8248 Reversed order of custom inputs & notes (#1268) 2021-12-07 21:05:29 +00:00
Bill Gale
23127318dc fix: prevent image uploader converting every image to jpeg (#1262) 2021-12-07 17:05:26 +00:00
Bill Gale
db7711869f fix: add team bio to public page (#1265) 2021-12-07 16:11:43 +00:00
Omar López
ec2acedf34 Zomars/refactor emails followup (#1216) 2021-12-07 15:48:08 +00:00
Mihai C
d76ef4a007 fix: calendar event description (#1266) 2021-12-07 15:32:07 +00:00
Joel Lu
c43e6783a7 Fix: duplicate team name no prompt (#1267)
* Fix: duplicate team name no prompt

* Fix syntax error for error message
2021-12-07 15:04:34 +00:00
Bill Gale
91f2c380c5 fix: event description for teams on mobile (#1261)
* fix: event description for teams on mobile

* fix: replace sm:truncate with overflow-ellipsis overflow-hidden

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-12-07 10:08:25 +00:00
Bill Gale
b11d81fdd2 fix: user bio width when booking a team member (#1264) 2021-12-07 10:02:36 +00:00
Bill Gale
6792e17c80 fix: move pull request template (#1263)
* fix: move pull request template

* fix: rename template
2021-12-07 10:01:45 +00:00
Mihai C
dd446abeec fix: calendar event fixes (#1260)
* fix: calendar event fixes

* update after code review
2021-12-06 19:34:31 +00:00
Rory Hughes
c109ab1e30 Ensure credential objects come oldest first (#1258)
Given the credentials are loaded based on userId, sort is not consistent.
Without this, events are booked on whichever calendar credential is loaded first. 
813eaa83b7/lib/events/EventManager.ts (L240-L244)

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-12-06 13:25:22 +00:00
Rory Hughes
dc13c95644 Favour the user's default calendar notification settings without overriding (#1259)
If people want emails for every event on their calendar, they can set that up.
2021-12-06 13:24:32 +00:00
Joel Lu
c85f0650fe Fix time view not in full length (#1256)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-12-06 11:37:15 +00:00
Alex van Andel
7e6628e3ac Fixes missing locations (#1257) 2021-12-06 11:22:35 +00:00
Peer Richelsen
e8af9110a7 fixed border color of daily video (#1255) 2021-12-06 09:49:56 +00:00
TomBoss
ec9c8bb35d correction of typo (#1251) 2021-12-03 16:50:39 +00:00
Alex van Andel
22aa083883 Adds eventTypeId as a parameter (#1217) 2021-12-03 16:18:31 +00:00
Alex van Andel
8c1b69cc0f Feature/field prefills (#1249)
* Needs more testing, but looks functional

* Add metadata feature to booking create payload

* Forward URL parameters given in link

* Moved stringifying of custom inputs to backend
2021-12-03 10:15:20 +00:00
Peer Richelsen
8d1d3fcc7a fixed subtitle for event-types (#1247) 2021-12-02 22:32:38 +00:00
Mike Casey
dd48749f42 Update README instructions new user record (#1103)
This commit clarifies the minimum required fields that must be set for the new user record in Prisma Studio to avoid the createContext error  when first starting the application on a local development environment

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-12-02 22:15:05 +00:00
Peer Richelsen
bd51316c68 removed imgur from emails, added missing / to footer logo (#1245) 2021-12-02 22:05:58 +00:00
Omar López
2430784142 Followup for #1242 (#1243) 2021-12-02 21:41:09 +00:00
Peer Richelsen
2b51cd9c8d tablet navigation: removed code redundancy & fixed alignment (#1241)
* minor design changes to tablet navigation

* added white icon logo

* reduced code redundancy in tablet view & fixed alignment
2021-12-02 20:52:38 +00:00
Alex Johansson
de3c4aa75a fix zoom leading to integrations:zoom location (#1242) 2021-12-02 17:18:17 +00:00
Peer Richelsen
813eaa83b7 minor design changes to tablet navigation (#1240) 2021-12-02 09:52:59 +00:00
Syed Ali Shahbaz
ec2d0a89ba Bugfix/event types buggy view on tablet (#1238) 2021-12-01 14:56:25 +00:00
Mihai C
80a2b6c068 chore: clean up and fix images (#1224)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-12-01 10:32:08 +00:00
Omar López
7faa9508c4 Removed unused webhook (#1227) 2021-11-30 23:50:49 +00:00
Flemming
5773d064c2 Prevent user form entering negative numbers into event duration (#1231)
* Add Docker Compose as requirement to run the quick start

* Add basic frontend validation/needs for event duration

* Only add min prop to the duration field

* Don't allow negative value for the event buffer time

* Increase min duration of a event type

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-11-30 19:18:28 +00:00
depfu[bot]
0a7233d452 Update all Yarn dependencies (2021-11-26) (#1223)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-11-29 20:53:02 +00:00
Syed Ali Shahbaz
529f3027cd replaced btn-primary, btn-secondary, btn-white with respective Button equivalents (#1218)
* replaced btn primary, secondary, white with Button

* removed unused Link var

* replaced <button> in settings/security

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
Co-authored-by: Peer Richelsen <peeroke@richelsen.net>
2021-11-29 06:37:31 +00:00
Peer Richelsen
20cbab1c15 fixed edit icon for event-type details (#1230) 2021-11-28 08:54:45 +00:00
Flemming
98d3cb1915 Add Docker Compose as requirement to run the quick start (#1225) 2021-11-26 18:36:01 +00:00
Mihai C
8322e5c8d1 Emails Revamp (#1201)
* refactor: emails (WIP)

* wip

* wip

* refactor: calendarClient

* chore: remove comment

* feat: new templates

* feat: more templates (wip)

* feat: email templates wip

* feat: email templates wip

* feat: prepare for testing

* For testing stripe integration

* Uses imported BASE_URL

* Fixes types

* use BASE_URL

Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-11-26 11:03:43 +00:00
Adrien La
36767afbf5 Add full FR language translation from EN (#1202)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-11-25 16:04:13 +00:00
Alex van Andel
396355e350 Call setSelectedTimeZone as we don't want to refactor Scheduler (#1213)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-11-25 16:03:37 +00:00
depfu[bot]
da2c825dad Update all Yarn dependencies (2021-11-24) (#1212)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-11-25 13:51:15 +01:00
depfu[bot]
dab146a313 Update all Yarn dependencies (2021-11-15) (#1176)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-11-24 23:33:25 +00:00
Alex van Andel
712266664e Fixes #1205 - Able to schedule for past times in current date (#1211) 2021-11-24 22:53:41 +00:00
Omar López
f8781e4d5f Create pull_request_template.md (#1204) 2021-11-24 18:40:25 +00:00
Syed Ali Shahbaz
d8b3c42c28 Improvement/cal 639 turn edit location dialog into radix uu (#1055)
* replaced disclosure with collapsible

* added radix radio-group

* removed radix-UI radio group

* more fix

* --WIP

* --WIP

* react-hook-formify --WIP

* radix ui radio replaces headless ui radio

* further fixes --WIP

* --WIP

* form handling and availability wrapping

* minuteField fix

* availability fix

* fixed react-select menu overflow in dialog

* --WIP

* added default value for custom inputs

* fixed locations

* fixed daterangepicker

* fixed team eventType

* basic cleanup --wip

* fixed locations removal bug

* removed old locations state remnants

* some cleanup --wip

* rebase conflict resolution

* removed debug rem and fixed radio text size

* further requested changes

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
Co-authored-by: Omar López <zomars@me.com>
2021-11-24 10:07:49 -07:00
Nathaniel
24e36ad46a upgrade tsdav to v1.1.5 (#993)
* upgrade tsdav to v1.1.1

* upgrade to v1.1.5

* updated lockfile

* updated tsdav

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@richelsen.net>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-11-24 11:52:57 +00:00
Alex Johansson
644b0f1b0e re-enable batching (#1199)
This reverts commit 58f55f84e2. /  #1197
2021-11-24 11:45:09 +00:00
Alex Johansson
deb97fdab0 get rid of circular references in viewer.eventTypes (#1198) 2021-11-24 10:42:55 +00:00
Alex Johansson
58f55f84e2 temporarily disable batching (#1197) 2021-11-24 09:53:03 +00:00
Alex van Andel
5b3dd02747 Webhook tweaks + Support added for "Custom payload templates" / x-www-form-urlencoded / json (#1193)
* Changed styling of webhook test & updated <Form> component

* Implements custom webhook formats

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-11-22 11:37:07 +00:00
Syed Ali Shahbaz
ecc960f0a3 fixed mobile UI (#1195) 2021-11-22 11:07:17 +00:00
Mihai C
dfb1b5602d hotfix: location on approval email (#1186)
* hotfix: location on confirmation email

* fix: build checks
2021-11-18 11:13:38 +00:00
Alex van Andel
d6dd13a9d8 Updated team to also use getWorkingHours (#1188) 2021-11-18 10:20:48 +00:00
Alex van Andel
e0d1b6b5ea Working availability Schedule for every timezone (few things TODO) (#1187) 2021-11-18 03:29:36 +00:00
Alex van Andel
ffdf0b9217 Fixes user availability to be contextual to the user timezone (#1166)
* WIP, WIP, WIP, WIP

* Adds missing types

* Type fixes for useSlots

* Type fixes

* Fixes periodType 500 error when updating

* Adds missing dayjs plugin and type fixes

* An attempt was made to fix tests

* Save work in progress

* Added UTC overflow to days

* Update lib/availability.ts

Co-authored-by: Alex Johansson <alexander@n1s.se>

* No more magic numbers

* Fixed slots.test & added getWorkingHours.test

* Tests pass, simpler logic, profit?

* Timezone shifting!

* Forgot to unskip tests

* Updated the user page

* Added American seed user, some fixes

* tmp fix so to continue testing availability

* Removed timeZone parameter, fix defaultValue auto-scroll

Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Alex Johansson <alexander@n1s.se>
2021-11-18 01:03:19 +00:00
Alex Johansson
f3c95fa3de fix i18n flicker on auth pages (#1183)
* fix flicker on `/auth/login`

* fix flicker on logout

* fix flicker on error

* fix i18n flicker on signup
2021-11-16 18:12:08 +01:00
Lola
669b7798db Enable Recording in Daily Video Calls (#1141)
* ⬆️ Bump tailwindcss from 2.2.14 to 2.2.15

Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 2.2.14 to 2.2.15.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v2.2.14...v2.2.15)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* updating cal will provide a zoom meeting url

* updating cal will provide a zoom meeting url

* modifying how daily emails send

* modifying how daily emails send

* daily table

* migration updates

* rebasing updates

* updating Daily references to a new table

* merge updates, adding Daily references to book/events.ts

* updated video email templates to remove Daily specific references

* updating the events.ts and refactoring in the event manager

* removing the package-lock

* updating some of the internal Daily notes

* removing handle errors raw from the Daily video client

* prettier formatting fixes

* Added the Daily location to calendar events and updated Cal video references to Daily.co video

* updating references to create in event manager to check for Daily video

* adding a daily interface in the event manager

* adding daily to the location labels

* resolving yarn merge conflicts

* removing prettier auto and refactoring integrations: daily in the event manager

* removing changes to estlintrc.json

* updating message when daily video call meeting has not started

* updated modal time buffer

* changed video calls to Cal colors

* removing change to undoing change to lodash/merge on the event manager

* removing change on the event-types to match the main repo

* updating the border color in daily video calls

* updating cal will provide a zoom meeting url

* updating cal will provide a zoom meeting url

* modifying how daily emails send

* modifying how daily emails send

* daily table

* migration updates

* rebasing updates

* updating Daily references to a new table

* merge updates, adding Daily references to book/events.ts

* updated video email templates to remove Daily specific references

* updating the events.ts and refactoring in the event manager

* removing the package-lock

* updating some of the internal Daily notes

* removing handle errors raw from the Daily video client

* prettier formatting fixes

* Added the Daily location to calendar events and updated Cal video references to Daily.co video

* updating references to create in event manager to check for Daily video

* adding a daily interface in the event manager

* adding daily to the location labels

* resolving yarn merge conflicts

* removing prettier auto and refactoring integrations: daily in the event manager

* removing changes to estlintrc.json

* updated modal time buffer

* updates to enable recording

* removed the console log line for debugging int he DailyVideoAdapter

* removed the env copy created here

* updating readme and chaging Daily Scale Plan variable to true

* merge changes

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lola-Ojabowale <lola.ojabowale@gmail.com>
2021-11-16 14:12:10 +00:00
Syed Ali Shahbaz
4e01b13133 Feature/cal 677 brand color in settingsprofile (#1158)
* added CSS variable --brand-color

* added CustomBranding component

* prisma update for brand color

* added brandcolor to user context in viewer.me

* conflict resolution

* added brandColor input and mutation

* custom brand color to availability

* brandColor added to BookingPage

* fixed availability, booking for team and added customBranding to success

* brandColor added to cancel/uid

* requested changes

* lint fix

* further changes

* lint fix
2021-11-16 14:21:46 +05:30
Omar López
11e7779a58 Allows nameless users to Signout and update profile (#1181) 2021-11-15 18:08:04 -07:00
Alex Johansson
7de35dc4e5 set engines version to >=14 (#1178)
* add `16.x` to `engines`

node.16 is LTS now

* Update package.json

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-11-16 00:20:12 +00:00
Alex Johansson
0a34512e3b availability timezone fix (#1180) 2021-11-15 20:32:10 +00:00
Bailey Pumfleet
9fd078c59d Revert "automerge and approve crowdin (#1167)" (#1174) 2021-11-15 18:47:20 +00:00
Alex Johansson
11269229ae add happy path test for booking an event (#1177) 2021-11-15 15:03:04 +00:00
Bailey Pumfleet
6b171a6f87 Manually reorder event types (#1142)
* Add event type reordering

* Add migration for position field

* hack on a hack

* can edit

* fix ordering

* Remove console.log

Co-authored-by: Alex Johansson <alexander@n1s.se>

Co-authored-by: KATT <alexander@n1s.se>
2021-11-15 12:25:49 +00:00
Peer Richelsen
6fa980f801 added cal.crowdin.com/cal to readme 2021-11-13 21:24:22 +00:00
Alex van Andel
fd2adae10f Tweak my-4 to mb-4 (#1164)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-11-13 09:53:01 +00:00
github-actions[bot]
f0ff048f4d New Crowdin translations by Github Action (#1168)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-11-13 09:36:07 +00:00
Alex Johansson
7998b6248d automerge and approve crowdin (#1167)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-11-11 12:05:59 +00:00
github-actions[bot]
6e100a6559 New Crowdin translations by Github Action (#1165)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-11-11 11:32:57 +00:00
Alex Johansson
d4f8030b6b only create event on first calendar integration (#1155)
* only create event on first calendar integration

* fix it

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-11-11 05:50:56 +00:00
Alex van Andel
bf659c0b16 Fixed #1015 - Teams user registration is broken (#1090)
* Fixed #1015 - Teams user registration is broken

* Type fixes for avilability form in onboarding

* Re adds missing strings

* Updates user availability in one query

Tested and working correctly

* Fixes seeder and tests

Co-authored-by: Omar López <zomars@me.com>
2021-11-11 05:44:53 +00:00
Ciarán Hanrahan
16fba702fb typography fixes (#1163) 2021-11-10 23:18:39 +00:00
github-actions[bot]
87b2ecec26 New Crowdin translations by Github Action (#1162)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-11-10 14:24:41 +00:00
github-actions[bot]
990b106c8b New Crowdin translations by Github Action (#1161)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-11-10 14:20:14 +00:00
github-actions[bot]
aaa48372b1 New Crowdin translations by Github Action (#1154)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-11-10 14:02:43 +00:00
Bailey Pumfleet
7c6dd7a73b Change input fields to rounded-sm (#1159) 2021-11-10 11:52:42 +00:00
Alex van Andel
8664d217c9 Feature/availability page revamp (#1032)
* Refactored Schedule component

* Merge branch 'main' into feature/availability-page-revamp

* wip

* Turned value into number, many other TS tweaks

* NodeJS 16x works 100% on my local, but out of scope for this already massive PR

* Fixed TS errors in viewer.tsx and schedule/index.ts

* Reverted next.config.js

* Fixed minor remnant from moving types to @lib/types

* schema comment

* some changes to form handling

* add comments

* Turned ConfigType into number; which seems to be the value preferred by tRPC

* Fixed localized time display during onboarding

* Update components/ui/form/Schedule.tsx

Co-authored-by: Alex Johansson <alexander@n1s.se>

* Added showToast to indicate save success

* Converted number to Date, and also always establish time based on current date

* prevent height flickering of availability

by removing mb-2 of input field

* availabilty: re-added mb-2 but added min-height

* Quite a few bugs discovered, but this seems functional

Co-authored-by: KATT <alexander@n1s.se>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-11-10 11:16:32 +00:00
Mihai C
559ccb8ca7 hotfix: zoom location on emails (#1153)
* fix: zoom location on emails

* test: fix

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-11-09 16:27:33 +00:00
github-actions[bot]
43fa4f6497 New Crowdin translations by Github Action (#1147)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-11-09 15:18:59 +00:00
Peer Richelsen
55a7cc928f removed api docs button from integrations (#1149) 2021-11-09 10:07:02 +00:00
Peer Richelsen
4ce9f9110b fixed darkmode for booking page (#1151) 2021-11-08 23:06:50 +00:00
Peer Richelsen
528c620aa7 fixed dark mode for booking (#1150) 2021-11-08 21:57:32 +00:00
Alex Johansson
df687009bd fix onboarding login glitch (#1118) 2021-11-08 14:10:02 +00:00
Bailey Pumfleet
9befd4abb9 Swap VS Code title bar colours 2021-11-08 13:12:58 +00:00
Syed Ali Shahbaz
a404ca847c updated event title message (#1132)
* updated event title message

* 4 arguments replaced by an object

* translations

* requested changes

* further requested changes

* test fix and other minor changes

* lint fix
2021-11-08 16:34:12 +05:30
Peer Richelsen
0ef6d8b452 added key_strings for /integrations (#1144) 2021-11-07 15:52:48 +00:00
Peer Richelsen
b49553c960 added who string (#1143) 2021-11-06 19:28:30 +00:00
github-actions[bot]
86cb961fa8 New Crowdin translations by Github Action (#1140)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-11-06 12:16:28 +00:00
github-actions[bot]
0e5a7cdd55 New Crowdin translations by Github Action (#1139)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-11-05 20:36:18 +00:00
Alex Johansson
823abfb3da Delete dependabot.yml (#1137)
replacing dependabot with [depfu](depfu.com)
2021-11-05 16:52:35 +00:00
Mihai C
debef8119e Rejected bookings should be displayed in cancelled bookings tab (#1100)
* fix: rejected bookings should be displayed in cancelled bookings tab

* fix: add migration to update status of rejected bookings

* unrelated fix

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-11-04 22:24:15 +00:00
Peer Richelsen
773e9ac57e replaced black color with new brand variable to make styling easier (#1125) 2021-11-04 14:30:37 +00:00
dependabot[bot]
0e9c50a58d ⬆️ Bump tailwindcss from 2.2.16 to 2.2.19 (#1128)
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 2.2.16 to 2.2.19.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v2.2.16...v2.2.19)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-11-04 14:00:42 +00:00
Peer Richelsen
401016772e added missing roboto weights (#1130) 2021-11-04 13:56:02 +00:00
Peer Richelsen
3c5a84b7b4 removed lexend, upgraded cal sans, added roboto from local instead of google fonts (#1121) 2021-11-04 00:25:47 +00:00
Syed Ali Shahbaz
ac3569b78e removed duplicate unconfirmed status on mobile view (#1119) 2021-11-03 20:37:37 +05:30
Alex Johansson
0ee523643d upgrade to next.js 12 (#1111) 2021-11-03 14:02:17 +00:00
dependabot[bot]
b82f2be391 ⬆️ Bump @typescript-eslint/parser from 4.32.0 to 4.33.0 (#1117)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.32.0 to 4.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.33.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-03 13:25:40 +00:00
dependabot[bot]
ae09e220d0 ⬆️ Bump @types/lodash from 4.14.175 to 4.14.176 (#1114)
Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.14.175 to 4.14.176.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

---
updated-dependencies:
- dependency-name: "@types/lodash"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-03 13:17:04 +00:00
dependabot[bot]
aafbe626fc ⬆️ Bump @hookform/resolvers from 2.8.2 to 2.8.3 (#1104)
Bumps [@hookform/resolvers](https://github.com/react-hook-form/resolvers) from 2.8.2 to 2.8.3.
- [Release notes](https://github.com/react-hook-form/resolvers/releases)
- [Commits](https://github.com/react-hook-form/resolvers/compare/v2.8.2...v2.8.3)

---
updated-dependencies:
- dependency-name: "@hookform/resolvers"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-03 10:58:15 +00:00
Alex Johansson
a002b194da Fix onboarding OAuth callback glitch (#1079) 2021-11-03 10:47:52 +00:00
dependabot[bot]
d147772d91 ⬆️ Bump @radix-ui/react-switch from 0.1.0 to 0.1.1 (#1106)
Bumps [@radix-ui/react-switch](https://github.com/radix-ui/primitives) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/radix-ui/primitives/releases)
- [Changelog](https://github.com/radix-ui/primitives/blob/main/release-process.md)
- [Commits](https://github.com/radix-ui/primitives/commits)

---
updated-dependencies:
- dependency-name: "@radix-ui/react-switch"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-02 17:30:33 +00:00
dependabot[bot]
8e669cf21e ⬆️ Bump @heroicons/react from 1.0.4 to 1.0.5 (#1107)
Bumps [@heroicons/react](https://github.com/tailwindlabs/heroicons) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/tailwindlabs/heroicons/releases)
- [Commits](https://github.com/tailwindlabs/heroicons/commits)

---
updated-dependencies:
- dependency-name: "@heroicons/react"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-02 17:24:12 +00:00
dependabot[bot]
1a361283ed ⬆️ Bump @trpc/* from 9.10.1 to 9.12.0 (#1105)
Co-authored-by: KATT <alexander@n1s.se>
2021-11-02 17:18:22 +00:00
Alex Johansson
d4b70162e8 fix locale being empty string (#1112) 2021-11-02 17:09:22 +00:00
Alex Johansson
6318972aa1 temporarily rollback to next.js 11 (#1113) 2021-11-02 18:59:36 +02:00
Alex van Andel
256305eb6b Changed 'jp' to 'ja' (#1110) 2021-11-02 16:15:57 +00:00
Alex Johansson
265c634db9 upgrade to Next.js 12 (#1109) 2021-11-02 14:19:40 +00:00
Alex Johansson
5a25e6daee ignore .js files in type checker (#1108)
makes stuff like #1085 not fail
2021-11-02 16:04:25 +02:00
Alex Johansson
68e062c100 Revert "⬆️ Bump @radix-ui/react-dialog from 0.1.0 to 0.1.1 (#1097)" (#1099)
This reverts commit 15e3b28a23.
2021-11-01 14:43:44 +00:00
dependabot[bot]
15e3b28a23 ⬆️ Bump @radix-ui/react-dialog from 0.1.0 to 0.1.1 (#1097)
Bumps [@radix-ui/react-dialog](https://github.com/radix-ui/primitives) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/radix-ui/primitives/releases)
- [Changelog](https://github.com/radix-ui/primitives/blob/main/release-process.md)
- [Commits](https://github.com/radix-ui/primitives/commits)

---
updated-dependencies:
- dependency-name: "@radix-ui/react-dialog"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-01 14:27:28 +00:00
dependabot[bot]
d7be47ed10 ⬆️ Bump @types/async from 3.2.8 to 3.2.9 (#1095)
Bumps [@types/async](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/async) from 3.2.8 to 3.2.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/async)

---
updated-dependencies:
- dependency-name: "@types/async"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-01 14:13:05 +00:00
dependabot[bot]
c1fb56b4b7 ⬆️ Bump superjson from 1.7.5 to 1.8.0 (#1096)
Bumps [superjson](https://github.com/blitz-js/superjson) from 1.7.5 to 1.8.0.
- [Release notes](https://github.com/blitz-js/superjson/releases)
- [Commits](https://github.com/blitz-js/superjson/compare/v1.7.5...v1.8.0)

---
updated-dependencies:
- dependency-name: superjson
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-01 14:04:21 +00:00
dependabot[bot]
8a87cb4f3b ⬆️ Bump eslint-plugin-react from 7.26.0 to 7.26.1 (#1098)
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.26.0 to 7.26.1.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.26.0...v7.26.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-01 13:58:20 +00:00
dependabot[bot]
6464cee5a1 ⬆️ Bump react-query from 3.24.4 to 3.30.0 (#1084)
Bumps [react-query](https://github.com/tannerlinsley/react-query) from 3.24.4 to 3.30.0.
- [Release notes](https://github.com/tannerlinsley/react-query/releases)
- [Commits](https://github.com/tannerlinsley/react-query/compare/v3.24.4...v3.30.0)

---
updated-dependencies:
- dependency-name: react-query
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-01 10:28:57 +00:00
github-actions[bot]
8cb42c44b7 New Crowdin translations by Github Action (#1094)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-11-01 10:00:40 +00:00
Syed Ali Shahbaz
4f75b94d88 mobile view improvement added (#1093)
* mobile view improvement added

* improved max-w
2021-11-01 14:25:43 +05:30
Peer Richelsen
ad46fc121d added jp (japanese) (#1085) 2021-10-31 21:31:21 +00:00
github-actions[bot]
863fc2e5cc New Crowdin translations by Github Action (#1088)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-10-31 19:12:59 +00:00
Alex van Andel
b7435b5b93 Fixed orphaning team event types (#1086) 2021-10-31 10:41:42 +00:00
Peer Richelsen
307856f8e6 added more weight to lexend fallback (#1087) 2021-10-31 01:09:27 +01:00
dependabot[bot]
6635363521 ⬆️ Bump @types/node from 16.10.2 to 16.11.5 (#1046)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.10.2 to 16.11.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex Johansson <alexander@n1s.se>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-10-30 20:48:05 +00:00
dependabot[bot]
88f10e0586 ⬆️ Bump @hookform/resolvers from 2.8.1 to 2.8.2 (#1083) 2021-10-30 20:58:58 +01:00
dependabot[bot]
9475c5836d ⬆️ Bump playwright from 1.15.2 to 1.16.2 (#1081)
Bumps [playwright](https://github.com/Microsoft/playwright) from 1.15.2 to 1.16.2.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](https://github.com/Microsoft/playwright/compare/v1.15.2...v1.16.2)

---
updated-dependencies:
- dependency-name: playwright
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-30 18:10:00 +00:00
dependabot[bot]
a83717363f ⬆️ Bump @daily-co/daily-js from 0.16.0 to 0.21.0 (#1076) 2021-10-30 16:28:46 +00:00
github-actions[bot]
317e3d2ade New Crowdin translations by Github Action (#1074)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-10-30 17:23:38 +01:00
Alex Johansson
a0c2e57891 suspense follow-up fixes (#1080) 2021-10-30 17:03:49 +01:00
Alex Johansson
1790aeb577 refactor /integrations with <Suspense /> (#1078)
* suspense

* iframe embeds

* calendar list container

* rename things as a container

* use list container on onboarding

* fix

* rm code

* newer alpha

* make it work in react 17

* fix

* fix

* make components handle error state through `QueryCell`

* fix constant

* fix type error

* type error

* type fixes

* fix package.lock

* fix webhook invalidate

* fix mt

* fix typo

* pr comment
2021-10-30 15:54:21 +00:00
Syed Ali Shahbaz
78523f7a57 margin fix (#1077) 2021-10-29 21:27:35 +05:30
Omar López
cc25a772a1 Adds missing webhook user relationship (#1070) 2021-10-29 08:13:51 -06:00
Syed Ali Shahbaz
5291dade42 fixed small screen breaking (#1075)
* fixed small screen breaking

* fixed lint err
2021-10-29 18:29:23 +05:30
Syed Ali Shahbaz
ed4587b3af reduces breakpoint max-w (#1072) 2021-10-29 15:33:37 +05:30
Alex van Andel
eefb829f75 Fixes #1021 - correctly replace integrations:google:meet (#1071) 2021-10-29 08:21:32 +00:00
github-actions[bot]
2feed85a1a New Crowdin translations by Github Action (#1048)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-10-29 09:16:36 +01:00
Alex van Andel
a5eb3fce28 Allow confirming COLLECTIVE types (#1069) 2021-10-29 01:50:52 +01:00
Alex van Andel
91fca7477d Fixed opt-in layout plus some tweaks (#1067) 2021-10-28 23:06:37 +00:00
Mihai C
98829d23d3 fix: type errors and translate ee pages (#1050)
* fix: type errors and translate ee pages

* fix: translation key for composed string

* type fixes

Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-10-28 22:58:26 +00:00
Alex Johansson
dddb494071 rewrite webhooks to trpc (#1065) 2021-10-28 22:52:39 +00:00
Alex van Andel
41382caa6c Fixed invalid types of i18n locales (string[]) (#1068)
* Fixed invalid types of i18n locales (string[])

* Remaining typefixes done
2021-10-28 22:45:58 +00:00
Omar López
265b76083a Fixes integrations api endpoint (#1066) 2021-10-28 22:30:42 +01:00
Alex van Andel
94f3ae1c64 Added Team with 'pro' and 'free' as members (#1063)
* Added Team with 'pro' and 'free' as members

* Teams fundamentally changes event-type behaviour and requires seperate users
2021-10-28 20:36:45 +01:00
Alex Johansson
5af159cf4e fix loading flicker on /bookings (#1062) 2021-10-28 16:12:30 +00:00
Mihai C
f91de82daf feat: add infinite scroll on bookings tabs (#1059)
* feat: add infinite scroll on bookings tabs

* bookings page infinite scroll PR comments (#1060)

* check if `InteractionObserver` is supported

* revert query cell and use bespoke behaviour

* Update pages/bookings/[status].tsx

Co-authored-by: Mihai C <34626017+mihaic195@users.noreply.github.com>

* load more button

* make inview as a callback

Co-authored-by: Mihai C <34626017+mihaic195@users.noreply.github.com>

* mt-6

* fix: translation strings and remove unnecessary stuff

Co-authored-by: Alex Johansson <alexander@n1s.se>
2021-10-28 15:02:22 +00:00
Omar López
e38086b8fe Refactors video integrations (#1037)
* Fixes error types

* Type fixes

* Refactors video meeting handling

* More type fixes

* Type fixes

* More fixes

* Makes language non optional

* Adds missing translations

* Apply suggestions from code review

Co-authored-by: Alex Johansson <alexander@n1s.se>

* Feedback

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Alex Johansson <alexander@n1s.se>
2021-10-26 10:17:24 -06:00
Bailey Pumfleet
eabb096e14 Ensure you can only delete your own credentials 2021-10-26 16:21:08 +01:00
Alex van Andel
605586ea1b Next turned on allowJs again.. (#1049) 2021-10-26 17:33:35 +03:00
github-actions[bot]
b6b307605b New Crowdin translations by Github Action (#986)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-10-26 14:44:34 +01:00
Lola
9879f9910a Add Modals for Daily Video Calls and updates to Video Call colors (#1027)
* ⬆️ Bump tailwindcss from 2.2.14 to 2.2.15

Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 2.2.14 to 2.2.15.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v2.2.14...v2.2.15)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* updating cal will provide a zoom meeting url

* updating cal will provide a zoom meeting url

* modifying how daily emails send

* modifying how daily emails send

* daily table

* migration updates

* rebasing updates

* updating Daily references to a new table

* merge updates, adding Daily references to book/events.ts

* updated video email templates to remove Daily specific references

* updating the events.ts and refactoring in the event manager

* removing the package-lock

* updating some of the internal Daily notes

* removing handle errors raw from the Daily video client

* prettier formatting fixes

* Added the Daily location to calendar events and updated Cal video references to Daily.co video

* updating references to create in event manager to check for Daily video

* adding a daily interface in the event manager

* adding daily to the location labels

* resolving yarn merge conflicts

* removing prettier auto and refactoring integrations: daily in the event manager

* removing changes to estlintrc.json

* updating message when daily video call meeting has not started

* updated modal time buffer

* changed video calls to Cal colors

* removing change to undoing change to lodash/merge on the event manager

* removing change on the event-types to match the main repo

* updating the border color in daily video calls

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lola-Ojabowale <lola.ojabowale@gmail.com>
2021-10-26 14:10:55 +01:00
dependabot[bot]
22682aa54d ⬆️ Bump ts-jest from 27.0.5 to 27.0.7 (#1040)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.0.5 to 27.0.7.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v27.0.5...v27.0.7)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-25 19:09:43 +00:00
Syed Ali Shahbaz
baba307a9f Feature/cal 605 add webhook test check during webhook (#1035)
* starting point

* lint fix

* add mock placeholder

* simplified a bit

* add some placeholder ui

* err handling

* multiple fixes

* post rebase fixes

* removed extra webhook enabled button

* finishing touches

* added translations

* removed debug remnants

* requested changes

Co-authored-by: KATT <alexander@n1s.se>
2021-10-25 21:45:52 +05:30
Alex Johansson
9842aaaf6a cron fix again - missing \ (#1045) 2021-10-25 16:05:36 +00:00
Alex Johansson
9efa429294 fix cron jobs env/secrets (#1043) 2021-10-25 15:42:16 +00:00
Alex Johansson
a9df3b9ad0 Move cron jobs into GitHub actions (#1006) 2021-10-25 18:16:42 +03:00
Mihai C
8d6fec79d3 feat: add translations for emails and type error fixes overall (#994)
* feat: add translations for forgot password email and misc

* fix: type fixes

* feat: translate invitation email

* fix: e2e tests

* fix: lint

* feat: type fixes and i18n for emails

* Merge main

* fix: jest import on server path

* Merge

* fix: playwright tests

* fix: lint

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-10-25 14:05:21 +01:00
Mihai C
356d470e16 fix: lowercase email on signup (#1039) 2021-10-25 09:29:54 +00:00
Mihai C
1043b31cc7 fix: lowercase email when loggin in (#1038) 2021-10-25 14:25:28 +05:30
Peer Richelsen
69a54d10df added docker team link 2021-10-23 14:33:49 +01:00
Alex van Andel
1649d41dd5 Adds useUnknownInCatchVariables and disallows .js in tsconfig (#1033) 2021-10-22 21:08:04 +01:00
dependabot[bot]
d780e39241 ⬆️ Bump typescript from 4.4.3 to 4.4.4 (#1025)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.4.3 to 4.4.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.4.3...v4.4.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-22 02:35:47 +02:00
dependabot[bot]
3eaf48fac2 ⬆️ Bump @radix-ui/react-dropdown-menu from 0.1.0 to 0.1.1 (#1022)
Bumps [@radix-ui/react-dropdown-menu](https://github.com/radix-ui/primitives) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/radix-ui/primitives/releases)
- [Changelog](https://github.com/radix-ui/primitives/blob/main/release-process.md)
- [Commits](https://github.com/radix-ui/primitives/commits)

---
updated-dependencies:
- dependency-name: "@radix-ui/react-dropdown-menu"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-21 16:34:47 +00:00
dependabot[bot]
3f1066e1c3 ⬆️ Bump @trpc/* from 9.9.1 to 9.10.1 (#1023)
Co-authored-by: KATT <alexander@n1s.se>
2021-10-21 16:26:49 +00:00
dependabot[bot]
c42dce2fdb ⬆️ Bump postcss from 8.3.8 to 8.3.11 (#1024)
Bumps [postcss](https://github.com/postcss/postcss) from 8.3.8 to 8.3.11.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.3.8...8.3.11)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-21 18:21:01 +02:00
Peer Richelsen
d6a5d1f3da fixed layout for non-english languages (#1004) 2021-10-20 22:50:32 +00:00
Syed Ali Shahbaz
a6eed6ffcc Enhancement/webhooks redesign (#1005) 2021-10-20 18:23:15 +00:00
Alex Johansson
c28d800aa9 fix i18n flicker on booking pages (#1013) 2021-10-20 16:00:11 +00:00
Alex Johansson
b8e8319b23 await on open change (#1016)
https://github.com/calendso/calendso/pull/988#discussion_r732908578
2021-10-20 15:54:52 +00:00
dependabot[bot]
d63a180bb2 ⬆️ Bump react-timezone-select from 1.1.11 to 1.1.12 (#1010)
Bumps [react-timezone-select](https://github.com/ndom91/react-timezone-select) from 1.1.11 to 1.1.12.
- [Release notes](https://github.com/ndom91/react-timezone-select/releases)
- [Commits](https://github.com/ndom91/react-timezone-select/commits)

---
updated-dependencies:
- dependency-name: react-timezone-select
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-20 15:48:16 +00:00
Omar López
85d7122e43 Fixes Apple Calendar onboarding and type fixes (#988)
* Type fixes

* Type fixes

* Attemp to prevent unknown error in prod

* Type fixes

* Type fixes for onboarding

* Extracts ConnectIntegration

* Extracts IntegrationListItem

* Extracts CalendarsList

* Uses CalendarList on onboarding

* Removes deprecated Alert

* Extracts DisconnectIntegration

* Extracts CalendarSwitch

* Extracts ConnectedCalendarsList

* Extracted connectedCalendar logic for reuse

* Extracted SubHeadingTitleWithConnections

* Type fixes

* Fetched connected calendars in onboarding

* Refreshes data on when adding/removing calendars on onboarding

* Removed testing code

* Type fixes

* Feedback

* Moved integration helpers

* I was sleepy

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-10-20 15:42:40 +00:00
dependabot[bot]
bd99a06765 ⬆️ Bump @radix-ui/react-slider from 0.1.0 to 0.1.1 (#1009)
Bumps [@radix-ui/react-slider](https://github.com/radix-ui/primitives) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/radix-ui/primitives/releases)
- [Changelog](https://github.com/radix-ui/primitives/blob/main/release-process.md)
- [Commits](https://github.com/radix-ui/primitives/commits)

---
updated-dependencies:
- dependency-name: "@radix-ui/react-slider"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-20 15:37:02 +00:00
Alex Johansson
9e16007c05 add e2e test retries (#1011) 2021-10-20 15:18:50 +01:00
dependabot[bot]
02c62c18ef ⬆️ Bump @typescript-eslint/eslint-plugin from 4.32.0 to 4.33.0 (#1008)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.32.0 to 4.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.33.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-20 15:33:08 +02:00
dependabot[bot]
40377215f6 ⬆️ Bump react-hook-form from 7.17.4 to 7.17.5 (#1001)
Bumps [react-hook-form](https://github.com/react-hook-form/react-hook-form) from 7.17.4 to 7.17.5.
- [Release notes](https://github.com/react-hook-form/react-hook-form/releases)
- [Changelog](https://github.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md)
- [Commits](https://github.com/react-hook-form/react-hook-form/compare/v7.17.4...v7.17.5)

---
updated-dependencies:
- dependency-name: react-hook-form
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-20 10:52:20 +00:00
dependabot[bot]
45ecf0c49c ⬆️ Bump babel-plugin-istanbul from 6.0.0 to 6.1.1 (#1002)
Bumps [babel-plugin-istanbul](https://github.com/istanbuljs/babel-plugin-istanbul) from 6.0.0 to 6.1.1.
- [Release notes](https://github.com/istanbuljs/babel-plugin-istanbul/releases)
- [Changelog](https://github.com/istanbuljs/babel-plugin-istanbul/blob/master/CHANGELOG.md)
- [Commits](https://github.com/istanbuljs/babel-plugin-istanbul/compare/v6.0.0...v6.1.1)

---
updated-dependencies:
- dependency-name: babel-plugin-istanbul
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-20 10:47:00 +00:00
Anton Podviaznikov
ade88700fc load @next/bundle-analyzer conditionally if env was set (#999) 2021-10-20 09:08:58 +00:00
Alex Johansson
362e8114a0 Update dependabot.yml (#998)
Allow us to get a few more dependabot options to merge
2021-10-20 09:59:22 +01:00
dependabot[bot]
a9b6b5f066 ⬆️ Bump @tailwindcss/forms from 0.3.3 to 0.3.4 (#997)
Bumps [@tailwindcss/forms](https://github.com/tailwindlabs/tailwindcss-forms) from 0.3.3 to 0.3.4.
- [Release notes](https://github.com/tailwindlabs/tailwindcss-forms/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss-forms/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss-forms/compare/v0.3.3...v0.3.4)

---
updated-dependencies:
- dependency-name: "@tailwindcss/forms"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-20 00:11:35 +00:00
Omar López
06822a2c57 Prevents production build error with bundle analyzer (#996) 2021-10-19 17:51:59 -06:00
Ciarán Hanrahan
1447251c83 changes to bookings and sidebar dropdown (#991) 2021-10-19 12:38:05 +00:00
Bailey Pumfleet
687af03cc3 Improve iframe embed UI (#990) 2021-10-19 11:35:52 +01:00
Alex Johansson
9e69029943 add e2e testing on webhooks and booking happy-path (#936) 2021-10-18 22:07:06 +01:00
Bailey Pumfleet
86d292838c Fix typo in Google font URL 2021-10-18 14:17:48 +01:00
github-actions[bot]
b753d9e5e3 New Crowdin translations by Github Action (#971)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Mihai C <34626017+mihaic195@users.noreply.github.com>
2021-10-18 09:11:41 +00:00
Alex Johansson
d8dac426eb refactor webhooks UI (#982) 2021-10-18 08:02:25 +01:00
Alex van Andel
12f6065d84 Added @types/react-phone-number-input (#983) 2021-10-17 22:10:41 +01:00
Peer Richelsen
415d5fe8bd fix type error in <Shell> Userdropdown (#980)
* removed settings from bottom nav

* truncate bottom nav

* fixed type error in Shell
2021-10-17 13:13:24 +01:00
Peer Richelsen
4d5b5663c0 removing settings from bottom nav for all languages, truncate length (#979)
* removed settings from bottom nav

* truncate bottom nav
2021-10-17 11:36:25 +00:00
Peer Richelsen
656d58b94f moved embed and webhooks from settings into /integrations (#978) 2021-10-17 10:35:25 +01:00
Alex Johansson
c146231b31 speed up e2e tests by reusing cookies (#976) 2021-10-16 17:11:37 -07:00
Alex Johansson
f08a2271fe fix: check-changed-files-job always failing on main (#969) 2021-10-16 09:35:53 -06:00
Alex van Andel
22c4d29db5 Chore: Resolves TS errors related to FileReader/ImageUploader (#965)
* Resolves TS errors related to FileReader/ImageUploader

* Also tackle cropImage errors

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-10-16 10:42:28 +00:00
Alex Johansson
a67813ee77 if you touch it you fix it (#967)
* wip

* add another

* check

* add ci job

* fix ci

* fix

* maybe

* maybs

* attempt

* test

* maybe

* another attempt

* try v2

* align with normal build

* this should break build

* Revert "this should break build"

This reverts commit 1ba44d18a1d8737aa6232db2d9b9081e892e6ca2.

* tweaks

* prevent breaking on main

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-10-16 10:57:21 +01:00
Justin Mitchell
a32e002fd7 Removes Google calendar scope (#871)
Removes https://www.googleapis.com/auth/calendar scope from Google Calendar as Google will not approve the integration with it requested. Cal.com does not currently utilize this permission either as shown in /pages/api/integrations/googlecalendar/add.ts

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-10-15 23:17:56 +01:00
Omar López
3641d5e46e [CAL-493] Implements tRCP on event types (#923)
* Removes unused component

* Refactors useLocale

We don't need to pass the locale prop everywhere

* Event type fixes

* Extracts CreateNewEventDialog

* Implements tRCP for event types
2021-10-15 20:07:00 +01:00
Alex van Andel
c01004b470 Chore: Remove whereAndSelect and fix typescript of main PrismaClient adapter (#966) 2021-10-15 19:31:57 +01:00
github-actions[bot]
78182db99c New Crowdin translations by Github Action (#964)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-10-15 16:24:04 +01:00
Anton Podviaznikov
5ffee8646e use style property for the button in the dialog instead of adding css class manually (#938)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-10-15 15:21:22 +00:00
Alex van Andel
ce8e9c126b I18n's the i18n language dropdown & weekday using Intl (#955)
* I18n's the i18n language dropdown & weekday using Intl

* Some type fixes

* Trigger locale changes instantly (#958)

* Trigger locale changes instantly

* Restored types

* Capitalize languages across the board

Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-10-15 12:32:09 +01:00
github-actions[bot]
b5e176a87e New Crowdin translations by Github Action (#959)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-10-15 11:56:11 +01:00
Mihai C
c4e2b6b458 more strings extractions (#963) 2021-10-15 10:53:42 +00:00
Ciarán Hanrahan
e1f4ba06d8 ui updates to integrations page (#962) 2021-10-15 12:01:49 +02:00
Peer Richelsen
12f72e0283 added meta tags to daily call (#961) 2021-10-15 00:08:14 +01:00
Alex Johansson
59e25ad04e remove unnecessary fetches of api (#960)
* skip repeating fetch of user on session changes
* fix some issues on integrations
2021-10-14 16:00:50 -06:00
Omar López
c2c37b701e Zomars/fixes trpc typo (#957) 2021-10-14 19:22:01 +00:00
Alex Johansson
2ce2bb1ca8 Show loading spinner on <Shell /> until i18n is loaded (#946)
* show loading spinner if i18n isn't loaded

* loading spinner tweaks

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-10-14 19:10:44 +00:00
Mihai C
b74dbdca9f fix: missing static files (#954)
* fix: missing static files

* fix: rename file
2021-10-14 14:44:00 +00:00
github-actions[bot]
60db5823c7 New Crowdin translations by Github Action (#951)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-10-14 14:35:36 +00:00
Mihai C
f955ccdef9 i18n: continued (#949)
* more extractions

* fix: failing build
2021-10-14 14:24:21 +00:00
Peer Richelsen
55d77993af added korean to i18n config (#953) 2021-10-14 14:10:53 +00:00
Peer Richelsen
f1eae5fe77 added translations for navigation (#952) 2021-10-14 13:58:17 +00:00
Mihai C
a711670a70 fix prisma error on event-type update (#950)
* fix prisma error on event-type update

* fix hidden event-type update
2021-10-14 14:40:24 +01:00
github-actions[bot]
f4d2f3b3d1 New Crowdin translations by Github Action (#948)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-10-14 14:02:30 +01:00
github-actions[bot]
109cc51e7a New Crowdin translations by Github Action (#947)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2021-10-14 13:55:34 +01:00
Mihai C
1783dae121 add es-419 (#944) 2021-10-14 12:26:11 +00:00
Peer Richelsen
3b844583c9 added lexend as fallback and new version of cal sans (#850) 2021-10-14 11:21:16 +00:00
github-actions[bot]
a71d97a4ad New Crowdin translations by Github Action (#910) 2021-10-14 11:11:47 +00:00
Omar López
0861d7cc61 Ends the war between tRPC and next-i18next (#939)
* Ends the war between tRPC and next-i18next

* Locale fixes

* Linting

* Linting

* trpc i18n (not working) (#942)

* simplify i18n handler and remove redundant(?) fn check

* split up viewer to a "logged in only" and "public"

* wip -- skip first render

Co-authored-by: Omar López <zomars@me.com>

* Linting

* I18n fixes

* We don't need serverSideTranslations in every page anymore

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Alex Johansson <alexander@n1s.se>
2021-10-14 13:57:49 +03:00
Omar López
26f20e2397 Revert "use base url (incl. app.cal.com) for iframes to support safari (#940)" (#941)
This reverts commit e615347790.
2021-10-14 00:33:43 +01:00
Peer Richelsen
e615347790 use base url (incl. app.cal.com) for iframes to support safari (#940) 2021-10-13 23:10:19 +01:00
Alex van Andel
cf92deb145 Removes Headless UI from the sidenav (#935)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-10-13 14:00:40 +00:00
Alex Johansson
dc4331ed17 rewrite existing cypress tests to playwright (#931) 2021-10-13 14:26:56 +01:00
Anton Podviaznikov
5c4f4bfd90 use toast instea modal for info messages (#932)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-10-13 13:13:00 +01:00
Alex Johansson
ec6b897191 integration page follow ups (#912)
### Internals

- Replace `lodash.*` packages with plain `lodash` & replace `lodash.*` imports with `lodash/` - should have no impact on bundle size and opens up for us to use all of lodash
- Update `viewer.me` to cherry-pick what we actually need on that query to avoid leaking extra context info
- Update `getIntegrations` to never include `.key`-property to avoid leaking 

### Visual

- Update calendars so `primary` is displayed last
- Update connected calendars so they are in ascending order in which you connected them
2021-10-13 13:35:25 +02:00
Mihai C
9e2f8de313 chore: i18n/extract strings (#934) 2021-10-13 11:49:15 +01:00
Mihai C
bee41b242b chore: extract more strings (#933) 2021-10-13 10:34:55 +01:00
Alex van Andel
4ce4b141b4 Fixes Google Meet showing up during Daily or Zoom events (#930) 2021-10-13 10:13:46 +01:00
Anton Podviaznikov
f9e315d10a renamed "paid plan" to "pro" (#921) 2021-10-12 19:51:46 +00:00
Anton Podviaznikov
0871f5edf8 Refactor two modals (#861)
* refactor one modal into dialog. save profile
2021-10-12 20:43:22 +01:00
Omar López
4b05c56a0d Fixes custom input overflow (#920)
* Fixes custom input overflow

* Truncates also placeholder

* Adds title attributes in booking notes and event descriptions
2021-10-12 18:59:52 +00:00
Omar López
64a01d33ba Fixes custom input dialog (#916) 2021-10-12 19:54:37 +01:00
Omar López
9539d26ac7 Fixes location in payment page (#918)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-10-12 14:54:42 +00:00
Alex Johansson
c94231f777 fix db-up / db-nuke command (#917)
`db-nuke` wasn't properly deleting the docker container
2021-10-12 14:21:57 +00:00
Omar López
cfd70172f0 Refactors useLocale (#908)
* Removes unused component

* Refactors useLocale

We don't need to pass the locale prop everywhere

* Fixes syntax error

* Adds warning for missing localeProps

* Simplify i18n utils

* Update components/I18nLanguageHandler.tsx

Co-authored-by: Mihai C <34626017+mihaic195@users.noreply.github.com>

* Type fixes

Co-authored-by: Mihai C <34626017+mihaic195@users.noreply.github.com>
2021-10-12 13:11:33 +00:00
Peer Richelsen
7dd6fdde7a full width list idems on mobile (#915) 2021-10-12 13:50:43 +01:00
Peer Richelsen
6f204ca521 more layout changes to /integrations (#914)
* added truncate to list
2021-10-12 12:06:12 +00:00
Peer Richelsen
392c8e8da4 minor layout changes to /integrations (#913) 2021-10-12 11:39:02 +00:00
Alex van Andel
2fd25acc3c Phasing out prisma db push (#911) 2021-10-12 10:51:59 +00:00
Omar López
a73187d46b Makes fields with default values not null (#903)
* Makes fields with default values non-optional

* Removes PeriodType enum for now

* Adds missing migrations

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-10-12 11:09:39 +01:00
Alex Johansson
c3dc18643e /integrations facelift (#858) 2021-10-12 11:35:44 +02:00
Syed Ali Shahbaz
7dc4a55319 Bugfix CAL-566 guest emails missing (#905)
* removed empty dep from useCallback of bookingHandler

* added guestEmails as the dep instead of no dep

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-10-12 08:29:12 +00:00
Mihai C
f27b0b3cad fix: availability creation and expand/collapse settings (#882)
* fix: availability creation and expand/collapse settings

* additional fixes

* Update pages/api/availability/eventtype.ts

Co-authored-by: Alex Johansson <alexander@n1s.se>

* update branch

* fix: more fixes

Co-authored-by: Alex Johansson <alexander@n1s.se>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
Co-authored-by: Mihai Colceriu <colceriumi@gmail.com>
2021-10-12 08:17:25 +00:00
Alex van Andel
683713e73f Fixes event type deletion (#906) 2021-10-11 20:56:03 +01:00
Bailey Pumfleet
69c808333e Fix URL field in event type page 2021-10-11 15:15:28 +01:00
Bailey Pumfleet
ff5b2b1668 Hotfix for PR #900: Remove unnecessary span tag 2021-10-11 14:53:14 +01:00
Bailey Pumfleet
6f219fc98c Fix for PR #900 where button tag is removed 2021-10-11 14:49:55 +01:00
Tiago Cruz
82f11b5121 Translations (#900)
* Translations

* Variables to Translated Words

* Fix Translations

* Fix Title to Create Events Types

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-10-11 14:42:43 +01:00
Alex Johansson
8cbf880af6 add locale to trpc context (#897) 2021-10-11 12:03:50 +00:00
Peer Richelsen
7488f29dc9 fixed event-type layout (#898)
* fixed event-type layout

* added props.centered to shell for centered layouts
2021-10-11 09:34:43 +00:00
Alex Johansson
0927b86831 Revert "Makes fields with default values non-optional (#892)" (#899)
This reverts commit bcf20914d3.
2021-10-11 10:30:09 +01:00
Peer Richelsen
9ef4815ffb wip 2021-10-11 09:32:58 +01:00
Omar López
bcf20914d3 Makes fields with default values non-optional (#892) 2021-10-10 17:48:21 +00:00
Peer Richelsen
fdd4bd2e14 changed sans font to roboto (#895) 2021-10-10 10:17:49 +00:00
Ciarán Hanrahan
e83980a999 UI updates to event types (#894) 2021-10-10 10:46:20 +01:00
Peer Richelsen
b794469c05 added cal logo to daily call (#888)
* added cal logo to daily call
2021-10-09 15:15:07 +00:00
Alex van Andel
014b74be8c Fixes custom-inputs clearing on save (#890) 2021-10-09 15:48:26 +01:00
Ciarán Hanrahan
f03a2c2a1a onboarding changes (#889) 2021-10-09 14:34:13 +01:00
Mihai C
35dd3f088c fix: move cancelled upcoming booking to cancelled tab (#883)
* fix: move cancelled upcoming booking to cancelled tab

* fix: lint

* Update server/routers/viewer.tsx

Co-authored-by: Mihai Colceriu <colceriumi@gmail.com>

* fix: also for past bookings

Co-authored-by: Alex Johansson <alexander@n1s.se>
2021-10-08 18:58:37 +03:00
Femi Odugbesan
015b7c18af fix #582: send user back to onboarding after adding integration (#635)
* fix #582: send user back to onboarding after adding integration if incomplete

* use more accurate, descriptive typings

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-10-08 14:10:57 +01:00
Mihai C
2c9b301b77 Feat/i18n crowdin (#752)
* feat: add crowdin and supported languages

* fix: main branch name

* feat: test crowdin integration

* feat: add crowdin config skeleton

* feat: update crowdin.yml

* fix: remove ro translation

* test: en translation

* test: en translation

* New Crowdin translations by Github Action (#735)

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>

* test: en translation

* fix: separate upload/download workflows

* wip

* New Crowdin translations by Github Action (#738)

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>

* wip

* wip

* wip

* wip

* wip

* typo

* wip

* wip

* update crowdin config

* update

* chore: support i18n de,es,fr,it,pt,ru,ro,en

* chore: extract i18n strings

* chore: extract booking components strings for i18n

* wip

* extract more strings

* wip

* fallback to getServerSideProps for now

* New Crowdin translations by Github Action (#874)

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>

* fix: minor fixes on the datepicker

* fix: add dutch lang

* fix: linting issues

* fix: string

* fix: update GHA

* cleanup trpc

* fix linting

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-10-08 14:43:48 +03:00
Bailey Pumfleet
33a683d4b0 Add fix for create event type modal (#878)
Co-authored-by: Alex Johansson <alexander@n1s.se>
2021-10-07 22:49:53 +00:00
Alex Johansson
32567c8e80 fix readme heading (#879) 2021-10-07 21:59:56 +01:00
Lola
adee3fd211 Daily video calls (#542)
* ⬆️ Bump tailwindcss from 2.2.14 to 2.2.15

Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 2.2.14 to 2.2.15.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v2.2.14...v2.2.15)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* updating cal will provide a zoom meeting url

* updating cal will provide a zoom meeting url

* modifying how daily emails send

* modifying how daily emails send

* daily table

* migration updates

* daily table

* rebasing updates

* updating Daily references to a new table

* updating internal notes

* merge updates, adding Daily references to book/events.ts

* updated video email templates to remove Daily specific references

* updating the events.ts and refactoring in the event manager

* removing the package-lock

* changing calendso video powered by Daily.co to cal video powered by Daily.co

* updating some of the internal Daily notes

* added a modal for when the call/ link is invalid

* removing handle errors raw from the Daily video client

* prettier formatting fixes

* Added the Daily location to calendar events and updated Cal video references to Daily.co video

* updating references to create in event manager to check for Daily video

* fixing spacing on the cancel booking modal and adding Daily references in the event manager

* formatting fixes

* updating the readme file

* adding a daily interface in the event manager

* adding daily to the location labels

* added a note to cal event parser

* resolving yarn merge conflicts

* updating dailyReturn to DailyReturnType

* removing prettier auto and refactoring integrations: daily in the event manager

* removing changes to estlintrc.json

* updating read me formatting

* indent space for Daily ReadMe section

* resolving the merge conflicts in the yarn file

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lola-Ojabowale <lola.ojabowale@gmail.com>
2021-10-07 17:12:39 +01:00
Omar López
58de920951 Refactors custom input form & dialog (#853) 2021-10-07 15:43:20 +00:00
Omar López
30f97117e8 Revert "Revert "Feature/cal 274 add webhooks (#628)" (#854)" (#876)
This reverts commit 6868474c92.

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-10-07 15:14:47 +00:00
Alex Johansson
a9ee2ef9ae add playwright for e2e testing (#873) 2021-10-07 17:07:57 +02:00
Anton Podviaznikov
c62e1a0eeb Add more typescript types (#867) 2021-10-07 09:47:33 +01:00
Peer Richelsen
effbd44f48 added add to home screen banner for login in screens on mobile (#865) 2021-10-06 15:05:01 +01:00
Heaust Azure
521be467a4 resolved typescript problems for success.tsx, useTheme.tsx and event.ts (#786)
* resolved typescript problems for success.tsx, useTheme.tsx and event.ts

* remove NextRouter inferred type

Co-authored-by: Alex Johansson <alexander@n1s.se>

* remove router query inferred type

Co-authored-by: Alex Johansson <alexander@n1s.se>

* URIcomponent change ternary

Co-authored-by: Alex Johansson <alexander@n1s.se>

* infer types for event type

* completed requested changes

* Update pages/success.tsx | change context type to proper

Co-authored-by: Alex Johansson <alexander@n1s.se>

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Alex Johansson <alexander@n1s.se>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-10-05 23:53:24 +01:00
Omar López
95b49a5995 Several type fixes (#855)
* Several type fixes

* Update ee/lib/stripe/client.ts

Co-authored-by: Alex Johansson <alexander@n1s.se>

* Typo

* Refactors createPaymentLink

* Simplify calendarClietn type

Co-authored-by: Alex Johansson <alexander@n1s.se>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-10-05 16:46:48 -06:00
Anton Podviaznikov
4474e9dd74 Update api docs with /api/me (#862)
* add /api/me route to the docs

* change wording
2021-10-05 23:40:03 +01:00
Anton Podviaznikov
d272f32ee3 add zoom as location only if integration enabled, minor readme change (#860)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-10-05 19:14:11 +00:00
Alex Johansson
5254297944 bump @trpc/* (#859)
```bash
npx npm-check-updates --filter /@trpc/ -u  && yarn && git add .
```
2021-10-05 10:37:06 -06:00
Alex Johansson
d97da42950 make yarn dx work on Windows (#840)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-10-05 10:05:48 +00:00
Omar López
6868474c92 Revert "Feature/cal 274 add webhooks (#628)" (#854)
This reverts commit 4c07faefe7.
2021-10-05 02:30:00 +01:00
Syed Ali Shahbaz
4c07faefe7 Feature/cal 274 add webhooks (#628)
* added prisma models and migration, minor webhook init --WIP

* --WIP

* --WIP

* added radix-checkbox and other webhook additions --WIP

* added API connections and other modifications --WIP

* --WIP

* replaced checkbox with toggle --WIP

* updated to use Dialog instead of modal --WIP

* fixed API and other small fixes -WIP

* created a dummy hook for test --WIP

* replaced static hook with dynamic hooks

* yarn lock conflict quickfix

* added cancel event hook and other minor additions --WIP

* minor improvements --WIP

* added more add-webhook flow items--WIP

* updated migration to have alter table for eventType

* many ui/ux fixes, logic fixes and action fixes --WIP

* bugfix for incorrect webhook filtering

* some more fixes, edit webhook --WIP

* removed redundant checkbox

* more bugfixes and edit-webhook flow --WIP

* more build and lint fixes

* --WIP

* more fixes and added toast notif --WIP

* --updated iconButton

* clean-up

* fixed enabled check in edit webhook

* another fix

* fixed edit webhook bug

* added await to payload lambda

* wrapped payload call in promise

* fixed cancel/uid CTA alignment

* --requested changes --removed eventType relationship

* Adds missing migration

* Fixes missing daysjs plugin and type fixes

* Adds failsafe for webhooks

* Adds missing dayjs utc plugins

* Fixed schema and migrations

* Updates webhooks query

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Omar López <zomars@me.com>
2021-10-04 17:40:52 -06:00
Peer Richelsen
785058558c added disabled email input box to settings, contact help@cal.com (#852) 2021-10-04 22:13:46 +01:00
Alex Johansson
abe4f38a5e <QueryCell /> type inference improvement (#849)
* asserts that `query.data` is never `null` when using `<QueryCell />`
2021-10-04 10:48:40 +01:00
Peer Richelsen
f70d92df7e added edit icon to event-type title input to make editing more obvious (#848) 2021-10-03 13:32:04 +01:00
Alex van Andel
89e5da15df Fixes weekStart & automatic theme adjust checkbox (#847) 2021-10-02 20:16:51 +00:00
Kelvin F. Alfaro
1662c9cf91 Correct License banner instructions. (#846)
* Update common.json

* Banner instructions were incorrect. 

Removed the I from "I Agree". License banner indicates setting NEXT_PUBLIC_LICENSE_CONSENT env var to "I Agree". Env var NEXT_PUBLIC_LICENSE_CONSENT set to only accept "agree"

* Update common.json

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
Co-authored-by: Peer Richelsen <peer@cal.com>
2021-10-02 20:37:10 +01:00
Chris
33273b18d3 Use id to look up user (#843) 2021-10-02 17:53:13 +01:00
Alex Johansson
eb93e778bd simplify /bookings/[status] logic (#845) 2021-10-02 13:29:26 +00:00
Omar López
342ea3e5d2 Adds specfific empty copy by status (#842)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-10-02 12:08:35 +01:00
Alex van Andel
e12c879242 Bugfix/image upload fuzzy (#844) 2021-10-02 12:04:47 +01:00
Alex Johansson
6547ef1e86 make cypress more fail-safe (#836) 2021-10-01 16:37:11 +01:00
Alex Johansson
4879479981 add <QueryCell /> to remove bespoke loading/error/empty/success logic (#835) 2021-10-01 15:12:47 +00:00
Alex Johansson
5bed09218a add some query client defaults (#838) 2021-10-01 15:33:14 +01:00
Alex Johansson
08f83dd85c fix login sometimes having to login twice (#839) 2021-10-01 13:20:28 +01:00
Peer Richelsen
3d3e99272a replaced another location.hostname, deleted DonateBanner (#834)
* replaced another location.hostname, deleted DonateBanner

* wip
2021-10-01 09:44:53 +00:00
Peer Richelsen
860db6c959 added license banner (#833)
* added license banner and NEXT_PUBLIC_LICENSE_CONSENT in .env.example. agree to hide the banner

* minor changes to license banner

* added /ee/ to tailwind purge config

* wip
2021-10-01 00:42:08 +01:00
Alex Johansson
30163f0a78 refactor availability times form using react-hook-form (#824)
* use toast

* use `Button`

* make fn

* rewrite with react-hook-form

* add comment

* fix deps

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-09-30 22:37:52 +01:00
Alex Johansson
60298f6eeb resize image before storing (#831)
* resize image fn

* wip

* simplify transform

* comment

* fix

* rm log

* allow pass-through for non-base-64

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-09-30 21:37:29 +01:00
Peer Richelsen
e33962686e minor changes to booking page and navtabs (#832) 2021-09-30 20:59:34 +01:00
Alex Johansson
c80992aa1c move withTRPC-HOC to _app.tsx (#822) 2021-09-30 06:28:30 -06:00
Peer Richelsen
8ac56fbf4a bring back h-screen in user page (#829) 2021-09-30 11:41:13 +00:00
Peer Richelsen
378cf25521 turned teams page into flex from grid to center it (#828)
* turned teams page into flex from grid to center it, removed h-screen from user page

* new icon button

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-09-30 12:31:04 +01:00
Omar López
dc6841e761 Bookings UI improvements (#826) 2021-09-30 11:46:39 +01:00
Bailey Pumfleet
033c4835f7 Fix: Remove 0s from team page (#827)
* Remove 0s from team page

* damn it
2021-09-30 10:24:02 +01:00
Omar López
a04336ba06 Added booking tabs, type fixing and refactoring (#825)
* More type fixes

* More type fixes

* Type fixes

* Adds inputMode to email fields

* Added booking tabs

* Adds aditional notes to bookings
2021-09-29 22:33:18 +01:00
Syed Ali Shahbaz
5318047794 fixed reload after disband team (#823) 2021-09-29 18:04:47 +01:00
Bailey Pumfleet
079a920c2c CTA on success page (#818) 2021-09-29 15:36:29 +00:00
Alex van Andel
a30381f229 Lowercase username try #3 (#821)
3 times is a charm.. can't believe this took 3 tries.
2021-09-29 15:58:25 +01:00
Omar López
e7314257c3 Adds possibilty to analyze client and server bundle size (#677) 2021-09-29 15:36:58 +01:00
Mihai C
4a07c27da5 fix: alert severity (#814)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-09-29 11:33:40 +00:00
Peer Richelsen
d7df292296 replaced favicons (#817) 2021-09-29 10:57:19 +00:00
dependabot[bot]
3014df61cc ⬆️ Bump tailwindcss from 2.2.15 to 2.2.16 (#796)
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 2.2.15 to 2.2.16.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v2.2.15...v2.2.16)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-29 11:28:27 +01:00
Mihai C
8f6689cfc1 chore: add some dx configs (#650)
* chore: add some dx configs

* fix: update configs

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-09-29 09:41:38 +00:00
Omar López
7a8ad8381e Fixes error when user cancels stripe integration (#813)
* Fixes customer portal return ur

* Attempt to fix portal CSRF issue

* Fixes CSRF issue with Stripe redirect

* Fixes error when user cancels stripe integration
2021-09-28 22:27:06 +01:00
Alex Johansson
f8a4f81991 fix stripe customer.subscription.deleted-webhook (#811) 2021-09-28 19:48:45 +00:00
Alex Johansson
e684824c79 yarn lint --fix (#812) 2021-09-28 20:12:48 +01:00
Malte Delfs
3b71c86b1e prevent cancellation of past events (#568)
Co-authored-by: Alex van Andel <me@alexvanandel.com>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
Co-authored-by: Peer_Rich <peeroke@gmail.com>
2021-09-28 18:23:50 +01:00
Omar López
230c82e316 Zomars/fixes stripe portal redirect (#808) 2021-09-28 17:21:45 +01:00
Peer Richelsen
b8c4dfb9e1 minor style changes to billing page 2021-09-28 15:07:33 +01:00
Alex Johansson
a4fbe7b2b4 downgrade users when trial ends (#767)
* wip

* wip

* wip

* wtf

* should be all the logic

* comment

* fix receiver name

* safeguard a bit more

* downgrade users cron job

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-09-28 14:00:19 +01:00
Bailey Pumfleet
0372289fe6 Unblock / on robots.txt 2021-09-28 13:21:30 +01:00
Bailey Pumfleet
5478c135d1 Set tabIndex for forgot password & add loader (#807) 2021-09-28 10:43:15 +00:00
Bailey Pumfleet
a3abdac33b Update billing tab UI (#806) 2021-09-28 11:27:46 +01:00
Alex Johansson
7779c098dc confirming event gives no visual (#803) 2021-09-28 09:16:02 +00:00
Omar López
dd9f801872 cal 485 prevent users from changing their username to premium ones (#799)
* Makes userRequired middleware

* Prevent users from changing usernames to premium ones

* refactor on zomars' branch (#801)

* rename `profile` -> `mutation`

* `createProtectedRouter()` helper

* move profile mutation to `viewer.`

* simplify checkUsername

* Auto scrolls to error when there is one

* Renames username helpers

* Follows db convention

Co-authored-by: Alex Johansson <alexander@n1s.se>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-09-28 09:57:30 +01:00
Omar López
f23e4f2b9d Fixes customer portal return url (#802) 2021-09-28 09:04:30 +01:00
Alex Johansson
dcea723ea4 confirming event gives no visual feedback (#804) 2021-09-27 18:11:52 -06:00
Peer Richelsen
58dde562a3 switching to stripes customer portal (#772) 2021-09-27 23:57:23 +01:00
Alex Johansson
9f2cfffce4 fix loading spinner flicker (#800) 2021-09-27 23:42:04 +01:00
Alex van Andel
dc7b084bdf Remove Moment dependency by changing implementation of DateRangePicker to something leaner (#798)
* chore: extracted all DateRangePicker logic from event-types/[type].tsx

* Minor alignment fixes + Date.now() instead of 1970.

* Removes react-dates, implements wojtekmaj/react-daterange-picker
2021-09-27 22:12:55 +01:00
Syed Ali Shahbaz
78c78a6981 added relative position to placeholder parent (#797) 2021-09-27 18:59:50 +01:00
dependabot[bot]
35c450d5ef ⬆️ Bump jest from 27.2.1 to 27.2.2 (#785)
Bumps [jest](https://github.com/facebook/jest) from 27.2.1 to 27.2.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.2.1...v27.2.2)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-09-27 17:04:32 +00:00
Alex Johansson
649e79bdc7 statically render profile pages (#615) 2021-09-27 17:09:19 +01:00
Alex Johansson
34300650e4 add tRPC (#614)
* add trpc

* trpc specific

* fix deps

* lint fix

* upgrade prisma

* nativeTypes

* nope, not needed

* fix app propviders

* Revert "upgrade prisma"

This reverts commit e6f2d2542a01ec82c80aa2fe367ae12c68ded1a5.

* rev

* up trpc

* simplify

* wip - bookings page with trpc

* bookings using trpc

* fix `Shell` props

* call it viewerRouter instead

* cleanuop

* ssg helper

* fix lint

* fix types

* skip

* add `useRedirectToLoginIfUnauthenticated`

* exhaustive-deps

* fix callbackUrl

* rewrite `/availability` using trpc

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-09-27 14:47:55 +00:00
Peer Richelsen
0938f6f4b2 added z-index for event types dropdown (#791) 2021-09-27 10:19:11 +00:00
Alex van Andel
c22beb698c Fixes the Radix UI warning for consistent IDs (#774)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-09-26 21:55:27 +00:00
Omar López
7ab49acebe Fixes eventype form (#777)
* Type fixes

* Uses all integrations and session fixes on getting started page

* eventtype form fixes

* Update pages/event-types/[type].tsx

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-09-26 21:49:16 +00:00
Alex Johansson
b23c032a4c Update .kodiak.toml (#782)
maybe this can stop @PeerRich & @baileypumfleet to use the force squash? 

everything you open will be automatically approved so you can use "Auto-merge" at least when you yolo stuff

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-09-26 22:45:08 +01:00
Alex Johansson
22b050b9e7 yarn lint --fix (#783) 2021-09-26 14:08:40 +00:00
Peer Richelsen
6d2f89fc32 Cale to Cal 2021-09-26 15:04:01 +01:00
Peer Richelsen
ee5cc32936 renamed PoweredByCalendso 2021-09-25 17:03:08 +01:00
Peer Richelsen
b125ece57b gave powered by absolute path 2021-09-25 16:55:13 +01:00
Chris
97cb7bdc83 Show raw secret during two-factor setup (#775) 2021-09-25 16:53:12 +01:00
Alex van Andel
515c548acd Fixes theme flickering on booking & availability select page (#771) 2021-09-24 23:11:30 +01:00
Eduardo M
727793af02 Fix link ignoring app url on even-type (#773) 2021-09-24 23:09:30 +01:00
Omar López
9e7cb2c0b8 CAL-469 Adds intercom dynamically (#762)
* Adds react-use-intercom

* Adds intercom env var

* Loads intercom dynamically if env is set

* CAL-473 Fixes client-side routing for authed pages

* Moves intercom code to ee

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-09-24 21:02:03 +01:00
Peer Richelsen
889b3f36ae fixed mobile booking layout for long descriptions 2021-09-24 18:03:09 +01:00
Omar López
50367c236a Prevents a 404 page for payments (#770) 2021-09-24 17:45:35 +01:00
Peer Richelsen
63930c1817 Fix/event type button alignment (#765)
* fixed event-type buttons on mobile, added more font-cal classes

* remove 1-on-1 on mobile event types

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-09-24 15:11:15 +00:00
Alex Johansson
6a4d6c7eba remove npm-run-all (#768) 2021-09-24 15:07:31 +00:00
Peer Richelsen
a8ec6e7060 replaced window.location with NEXT_PUBLIC_APP_URL (#769)
* replaced window.location with process.env.NEXT_PUBLIC_APP_URL, removed empty classNames

* wip
2021-09-24 09:03:28 -06:00
Alex Johansson
f709972f86 ui bug: alert looking funky (#766)
* tweak alert text to be growing
* fix alert looking funky
* get rid of `typeof window` dirt
2021-09-24 06:52:00 -06:00
Peer Richelsen
bb1da8150f fixed event-type buttons on mobile, added more font-cal classes (#764) 2021-09-24 11:28:57 +00:00
Peer Richelsen
c152e43b82 minor changes to event type edit input 2021-09-24 12:23:06 +01:00
Peer Richelsen
521bb4069a Merge branch 'main' of github.com:calendso/calendso 2021-09-24 11:38:18 +01:00
Alex van Andel
2b2fde179a Fixes #701: User's page shows Team events with broken links (#761) 2021-09-24 10:23:08 +00:00
Omar López
420daec147 CAL-473 Fixes client-side routing for authed pages (#763) 2021-09-24 11:16:46 +01:00
Peer Richelsen
f5a7ed2e36 minor changes to powered by badge 2021-09-23 23:56:13 +01:00
Peer Richelsen
d3d6778c60 Merge branch 'main' of github.com:calendso/calendso 2021-09-23 23:53:04 +01:00
Peer Richelsen
8ad685653c new apple calendar and stripe icon 2021-09-23 23:50:18 +01:00
Bailey Pumfleet
9e785c01fd The tiniest linting fix ever 2021-09-23 23:31:16 +01:00
Alex van Andel
ad3a06384f Fixes a crash caused by too many redraws (#759) 2021-09-23 23:30:09 +01:00
Peer Richelsen
b741559dbc added more font-cal classes 2021-09-23 21:48:27 +01:00
Peer Richelsen
235e74440c hotfix for powered by badge (#758)
* minor fix to powered by

* fixed powered by logo
2021-09-23 21:19:11 +01:00
Peer Richelsen
6dfd3f4aba minor fix to powered by (#757) 2021-09-23 21:05:24 +01:00
Omar López
2c50781084 Makes every day available for events that don't have availability set (#756)
* Abstracts MinutesField

* Adds missing Minimum booking notice

* Refactoring

* Fixes int field sent as string

* Sorts slots by time

* Fixes availability page

* Fixes available days

* Type fixes

* More availability bugfixes

* Makes every day available for events that don't have availability set

* Type fixes
2021-09-23 12:03:07 -06:00
Omar López
bcacc1d166 More availability fixes (#755)
* Abstracts MinutesField

* Adds missing Minimum booking notice

* Refactoring

* Fixes int field sent as string

* Sorts slots by time

* Fixes availability page

* Fixes available days

* Type fixes

* More availability bugfixes
2021-09-23 18:18:29 +01:00
Alex Johansson
790ed3e6b1 fix: branding is always disabled for pro (#754)
* add jwt secret

* fix `isBrandingHidden`

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-09-23 15:25:34 +00:00
Mihai C
7574c322c4 Revert "GHA for crowdin (WIP) (#731)" (#751)
This reverts commit 168db02e1f.
2021-09-23 15:28:50 +01:00
Mihai C
168db02e1f GHA for crowdin (WIP) (#731)
* feat: add crowdin and supported languages

* fix: main branch name

* feat: test crowdin integration
2021-09-23 14:22:49 +00:00
Omar López
cb4a1e031e Fixes user event availability page (#749)
* Abstracts MinutesField

* Adds missing Minimum booking notice

* Refactoring

* Fixes int field sent as string

* Sorts slots by time

* Fixes availability page

* Fixes available days
2021-09-23 15:08:44 +01:00
Alex Johansson
4d2e556d7d fix CI e2e tests (#748) 2021-09-23 14:11:58 +01:00
Nico
2bc4678ef0 Fixed bug that old credentials were used to create a zoom booking (#729)
Co-authored-by: nicolas <privat@nicolasjessen.de>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-09-23 10:35:39 +01:00
Bailey Pumfleet
bb3362f2ef Add JWT secret to next-auth.js (#730) 2021-09-23 10:02:53 +01:00
Mihai C
82e7e51fca Setup i18n and locale detection (#712)
* feat: setup translations

* feat: i18n setup

* Update pages/settings/profile.tsx

Co-authored-by: Alex Johansson <alexander@n1s.se>

* fix: abstract locale hook

* fix: set default locale if preferred locale is not supported

* Revert "fix: set default locale if preferred locale is not supported"

This reverts commit e2a3d81371ee02a033520058a1d7d61cffeffc94.

* fix: set default locale if preferred locale is not supported

* fix: use 1 namespace and remove unnecessary logs

* fix: yarn.lock

* fix: linting errors

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Alex Johansson <alexander@n1s.se>
2021-09-23 09:49:17 +01:00
Nico
3764a9d462 Bugfix/include zoom location (#715)
* Store video data in event location; fixed several types

* fixed malformed id

* Insert Zoom data when updating as well

* Add columns to store (video) meetings

* Store meeting data

* fixed type

* Use stored videoCallData

* Store location in field as well

* Use meta field for booking reference

* Introduced meta field in code

* Revert "Introduced meta field in code"

This reverts commit 535baccee3d87e3e793e84c4b91f8cad0e09063f.

* Revert "Use meta field for booking reference"

This reverts commit 174c252f672bcc3e461c8b3b975ac7541066d6a8.

* Linting fixes

Co-authored-by: nicolas <privat@nicolasjessen.de>
Co-authored-by: Peer_Rich <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-09-22 23:43:10 +01:00
Peer Richelsen
4f964533cf closes #726 (#728) 2021-09-22 21:38:20 +00:00
Peer Richelsen
51752bd2bd added Cal Sans (#709)
* added Cal Sans

* Delete EmptyScreen.tsx
2021-09-22 21:23:19 +00:00
Omar López
d194878bb2 Suggestion: let prettier sort imports order (#673)
* Suggestion: let prettier sort imports order

# Conflicts:
#	yarn.lock

* AUTO SORT ALL THE IMPORTS

* Linting

* Fixes test
2021-09-22 13:52:38 -06:00
Omar López
3add84a279 Adds Stripe integration (#717)
* Adds Stripe integration

* Moves Stripe instrucctions to ee

* Adds NEXT_PUBLIC_APP_URL variable

* Adds fallback for NEXT_PUBLIC_APP_URL

* Throws error objects instead

* Improved error handling

* Removes deprecated method

* Bug fixing

* Payment refactoring

* PaymentPage fixes

* Fixes preview links

* More preview link fixes

* Fixes client links

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2021-09-22 19:36:13 +01:00
Peer Richelsen
43563bc8d5 made it easier to see if there are more times available to scroll (#722)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-09-22 14:44:38 +00:00
Peer Richelsen
81a3d82ce7 readme: added gif demo of product vs screenshot 2021-09-22 15:36:19 +01:00
Peer Richelsen
0b74ef35d2 updated README shields 2021-09-22 15:25:42 +01:00
Peer Richelsen
a280739f01 MIT to AGPLv3 2021-09-22 15:22:36 +01:00
Omar López
e1f1386332 Feat disable guests for events (#719)
* Abstracts CheckboxField

* Allows disabling the guests field while booking

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-09-22 12:04:32 +01:00
Chris
1c2998fc13 Ensure users cannot delete teams they don’t own (#720)
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-09-22 11:43:32 +01:00
Heaust Azure
8eb3a31af4 Default to slug when Full Name isn't set (#721)
When Full Name isn't set and a new team is created,
The part of the now drop-down add new event type (previously button)
that's supposed to be personal or non-team
appears as an empty div.
This commit makes it default to slug / username in such a case.
2021-09-22 11:43:08 +01:00
Femi Odugbesan
a047177e72 Fix/duplicate events on onboarding (#716) 2021-09-22 08:25:33 +01:00
Omar López
d4f29464f2 Fixes deployed previews (#714) 2021-09-21 21:18:41 +01:00
Omar López
48bc4c64f4 [CAL-463] Validates required checkboxes (#713) 2021-09-21 20:42:44 +01:00
Peer Richelsen
3c089af58a new EmptyScreen component, using it in /bookings (#708)
* new EmptyScreen component, using it in /bookings

* Linting fixes

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2021-09-21 11:36:29 +01:00
908 changed files with 84780 additions and 21348 deletions

View File

@@ -1,3 +0,0 @@
{
"presets": ["next/babel"]
}

View File

@@ -1,42 +1,2 @@
# DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>/<db-name>'
DATABASE_URL="postgresql://postgres:@localhost:5432/calendso?schema=public"
GOOGLE_API_CREDENTIALS='secret'
BASE_URL='http://localhost:3000'
# @see: https://github.com/calendso/calendso/issues/263
# Required for Vercel hosting - set NEXTAUTH_URL to equal your BASE_URL
# NEXTAUTH_URL='http://localhost:3000'
# Remove this var if you don't want Cal to collect anonymous usage
NEXT_PUBLIC_TELEMETRY_KEY=js.2pvs2bbpqq1zxna97wcml.oi2jzirnbj1ev4tc57c5r
# Used for the Office 365 / Outlook.com Calendar integration
MS_GRAPH_CLIENT_ID=
MS_GRAPH_CLIENT_SECRET=
# Used for the Zoom integration
ZOOM_CLIENT_ID=
ZOOM_CLIENT_SECRET=
# E-mail settings
# Cal uses nodemailer (@see https://nodemailer.com/about/) to provide email sending. As such we are trying to
# allow access to the nodemailer transports from the .env file. E-mail templates are accessible within lib/emails/
# Configures the global From: header whilst sending emails.
EMAIL_FROM='notifications@yourselfhostedcal.com'
# Configure SMTP settings (@see https://nodemailer.com/smtp/).
# Note: The below configuration for Office 365 has been verified to work.
EMAIL_SERVER_HOST='smtp.office365.com'
EMAIL_SERVER_PORT=587
EMAIL_SERVER_USER='<office365_emailAddress>'
# Keep in mind that if you have 2FA enabled, you will need to provision an App Password.
EMAIL_SERVER_PASSWORD='<office365_password>'
# ApiKey for cronjobs
CRON_API_KEY='0cc0e6c35519bba620c9360cfe3e68d0'
# Application Key for symmetric encryption and decryption
# must be 32 bytes for AES256 encryption algorithm
CALENDSO_ENCRYPTION_KEY=
# It now lives at `apps/web/.env.example`
# DATABASE_URL got moved to `packages/prisma/.env.example`

2
.eslintignore Normal file
View File

@@ -0,0 +1,2 @@
node_modules
packages/prisma/zod

1
.eslintrc.js Normal file
View File

@@ -0,0 +1 @@
module.exports = require("./packages/config/eslint-preset");

View File

@@ -1,45 +0,0 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"modules": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"plugins": ["@typescript-eslint", "prettier", "react", "react-hooks"],
"rules": {
"prettier/prettier": ["error"],
"@typescript-eslint/no-unused-vars": "error",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
},
"overrides": [
{
"files": ["cypress/**/*.js"],
"rules": {
"no-undef": "off"
}
}
],
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"settings": {
"react": {
"version": "detect"
}
}
}

View File

@@ -1,18 +1,19 @@
---
name: Bug report
about: Report any issues with the platform
title: ''
title: ""
labels: bug
assignees: ''
assignees: ""
---
Found a bug? Please fill out the sections below. 👍
### Issue Summary
A summary of the issue. This needs to be a clear detailed-rich summary.
A summary of the issue. This needs to be a clear detailed-rich summary.
### Steps to Reproduce
1. (for example) Went to ...
2. Clicked on...
3. ...
@@ -20,6 +21,7 @@ A summary of the issue. This needs to be a clear detailed-rich summary.
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
### Technical details
* Browser version: You can use https://www.whatsmybrowser.org/ to find this out.
* Node.js version
* Anything else that you think could be an issue.
- Browser version, screen recording, console logs, network requests: You can make a recording with [Bird Eats Bug](https://birdeatsbug.com/).
- Node.js version
- Anything else that you think could be an issue.

View File

@@ -2,4 +2,4 @@ blank_issues_enabled: false
contact_links:
- name: Questions
url: https://cal.com/slack
about: Ask a general question about the project on our Slack workspace
about: Ask a general question about the project on our Slack workspace

View File

@@ -1,36 +1,41 @@
---
name: Feature request
about: Suggest a feature or idea
title: ''
labels: enhancement
assignees: ''
title: ""
labels: feature
assignees: ""
---
> Please check if your Feature Request has not been already raised in the [Discussions Tab](https://github.com/calendso/calendso/discussions), as we would like to reduce duplicates. If it has been already raised, simply upvote it 🔼.
### Is your proposal related to a problem?
<!--
Provide a clear and concise description of what the problem is.
For example, "I'm always frustrated when..."
-->
(Write your answer here.)
### Describe the solution you'd like
<!--
Provide a clear and concise description of what you want to happen.
-->
(Describe your proposed solution here.)
### Describe alternatives you've considered
<!--
Let us know about other solutions you've tried or researched.
-->
(Write your answer here.)
### Additional context
<!--
Is there anything else you can add about the proposal?
You might want to link to related issues here, if you haven't already.
-->
(Write your answer here.)

34
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,34 @@
## What does this PR do?
<!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. -->
Fixes # (issue)
## Type of change
<!-- Please delete options that are not relevant. -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] 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?
<!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration -->
- [ ] Test A
- [ ] Test B
## Checklist
<!-- Please remove all the irrelevant bullets to your PR -->
- I haven't read the [contributing guide](https://github.com/calcom/cal.com/blob/main/CONTRIBUTING.md)
- My code doesn't follow the style guidelines of this project
- I haven't performed a self-review of my own code and corrected any misspellings
- I haven't commented my code, particularly in hard-to-understand areas
- I haven't checked if my PR needs changes to the documentation
- I haven't checked if my changes generate no new warnings
- I haven't added tests that prove my fix is effective or that my feature works
- I haven't checked if new and existing unit tests pass locally with my changes

View File

@@ -1,9 +0,0 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
commit-message:
prefix: "⬆️"
open-pull-requests-limit: 1

View File

@@ -1,32 +0,0 @@
name: Build
on: [push]
jobs:
build:
name: Build on Node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ["14.x"]
os: [ubuntu-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install deps
uses: bahmutov/npm-install@v1
- name: Next.js cache
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs
- run: yarn test
- run: yarn build

27
.github/workflows/check-types.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Check types
on:
pull_request:
branches:
- main
jobs:
types:
name: Check types
strategy:
matrix:
node: ["14.x"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: yarn
- run: yarn type-check

View File

@@ -0,0 +1,23 @@
name: Cron - bookingReminder
on:
# "Scheduled workflows run on the latest commit on the default or base branch."
# — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule
schedule:
# Runs “At minute 0, 15, 30, and 45.” (see https://crontab.guru)
- cron: "0,15,30,45 * * * *"
jobs:
cron:
env:
APP_URL: ${{ secrets.APP_URL }}
CRON_API_KEY: ${{ secrets.CRON_API_KEY }}
runs-on: ubuntu-latest
steps:
- name: cURL request
if: ${{ env.APP_URL && env.CRON_API_KEY }}
run: |
curl ${{ secrets.APP_URL }}/api/cron/bookingReminder \
-X POST \
-H 'content-type: application/json' \
-H 'authorization: ${{ secrets.CRON_API_KEY }}' \
--fail

View File

@@ -0,0 +1,23 @@
name: Cron - downgradeUsers
on:
# "Scheduled workflows run on the latest commit on the default or base branch."
# — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule
schedule:
# Runs “At minute 0, 15, 30, and 45.” (see https://crontab.guru)
- cron: "0,15,30,45 * * * *"
jobs:
cron:
env:
APP_URL: ${{ secrets.APP_URL }}
CRON_API_KEY: ${{ secrets.CRON_API_KEY }}
runs-on: ubuntu-latest
steps:
- name: cURL request
if: ${{ env.APP_URL && env.CRON_API_KEY }}
run: |
curl ${{ secrets.APP_URL }}/api/cron/downgradeUsers \
-X POST \
-H 'content-type: application/json' \
-H 'authorization: ${{ secrets.CRON_API_KEY }}' \
--fail

25
.github/workflows/crowdin.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Crowdin Action
on:
push:
branches:
- main
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: crowdin action
uses: crowdin/github-action@1.4.2
with:
upload_translations: true
download_translations: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

View File

@@ -1,22 +1,37 @@
name: E2E test
on: [push]
on:
pull_request_target:
branches:
- main
paths-ignore:
- public/static/locales/**
jobs:
test:
timeout-minutes: 10
name: ${{ matrix.node }} and ${{ matrix.os }}
name: Testing ${{ matrix.node }} and ${{ matrix.os }}
env:
DATABASE_URL: postgresql://postgres:@localhost:5432/calendso
NODE_ENV: test
BASE_URL: http://localhost:3000
# GOOGLE_API_CREDENTIALS: ${{ secrets.CI_GOOGLE_API_CREDENTIALS }}
JWT_SECRET: secret
PLAYWRIGHT_SECRET: ${{ secrets.CI_PLAYWRIGHT_SECRET }}
GOOGLE_API_CREDENTIALS: ${{ secrets.CI_GOOGLE_API_CREDENTIALS }}
GOOGLE_LOGIN_ENABLED: true
# CRON_API_KEY: xxx
# CALENDSO_ENCRYPTION_KEY: xxx
CALENDSO_ENCRYPTION_KEY: ${{ secrets.CI_CALENDSO_ENCRYPTION_KEY }}
NEXT_PUBLIC_STRIPE_PUBLIC_KEY: ${{ secrets.CI_NEXT_PUBLIC_STRIPE_PUBLIC_KEY }}
STRIPE_PRIVATE_KEY: ${{ secrets.CI_STRIPE_PRIVATE_KEY }}
STRIPE_CLIENT_ID: ${{ secrets.CI_STRIPE_CLIENT_ID }}
STRIPE_WEBHOOK_SECRET: ${{ secrets.CI_STRIPE_WEBHOOK_SECRET }}
PAYMENT_FEE_PERCENTAGE: 0.005
PAYMENT_FEE_FIXED: 10
SAML_DATABASE_URL: postgresql://postgres:@localhost:5432/calendso
SAML_ADMINS: pro@example.com
# NEXTAUTH_URL: xxx
# EMAIL_FROM: xxx
# EMAIL_SERVER_HOST: xxx
# EMAIL_SERVER_PORT: xxx
# EMAIL_SERVER_USER: xxx
EMAIL_FROM: e2e@cal.com
EMAIL_SERVER_HOST: ${{ secrets.CI_EMAIL_SERVER_HOST }}
EMAIL_SERVER_PORT: ${{ secrets.CI_EMAIL_SERVER_PORT }}
EMAIL_SERVER_USER: ${{ secrets.CI_EMAIL_SERVER_USER }}
EMAIL_SERVER_PASSWORD: ${{ secrets.CI_EMAIL_SERVER_PASSWORD }}
# MS_GRAPH_CLIENT_ID: xxx
# MS_GRAPH_CLIENT_SECRET: xxx
# ZOOM_CLIENT_ID: xxx
@@ -38,26 +53,40 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 2
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
cache: "yarn"
cache-dependency-path: yarn.lock
node-version: ${{ matrix.node }}
- name: Install deps
uses: bahmutov/npm-install@v1
- name: Next.js cache
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs
path: .turbo
key: turbo-${{ github.job }}-${{ github.event.pull_request.head.ref }}-${{ github.event.pull_request.head.sha }}
restore-keys: |
turbo-${{ github.job }}-${{ github.event.pull_request.head.ref }}-
- run: yarn
- name: Cache playwright binaries
uses: actions/cache@v2
id: playwright-cache
with:
path: |
~/Library/Caches/ms-playwright
~/.cache/ms-playwright
**/node_modules/playwright
key: cache-playwright-${{ hashFiles('**/yarn.lock') }}
- run: yarn build
- run: yarn prisma migrate deploy
- run: yarn db-seed
- run: yarn start &
- run: npx wait-port 3000 --timeout 10000
- run: yarn cypress run
- name: Install playwright deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: yarn playwright install --with-deps
- run: yarn test-e2e
- name: Upload videos
if: ${{ always() }}
@@ -65,5 +94,8 @@ jobs:
with:
name: videos
path: |
cypress/videos
cypress/screenshots
test-results
playwright/screenshots
playwright/videos
playwright/results
playwright/reports

View File

@@ -1,5 +1,8 @@
name: Lint
on: [push]
on:
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
@@ -10,12 +13,32 @@ jobs:
fetch-depth: 0
- name: Use Node.js 14.x
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
version: 14.x
node-version: 14.x
cache: "yarn"
cache-dependency-path: yarn.lock
- name: Install deps
uses: bahmutov/npm-install@v1
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn
- name: Lint
run: yarn lint
run: yarn lint:report
continue-on-error: true
- name: Merge lint reports
run: jq -s '[.[]]|flatten' lint-results/*.json &> lint-results/eslint_report.json
- name: Annotate Code Linting Results
uses: ataylorme/eslint-annotate-action@1.2.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: "lint-results/eslint_report.json"
- name: Upload ESLint report
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: lint-results
path: lint-results

39
.gitignore vendored
View File

@@ -4,20 +4,23 @@
.env
# dependencies
/node_modules
/.pnp
node_modules
.pnp
.pnp.js
/.yarn
# testing
/coverage
coverage
/test-results/
playwright/videos
playwright/screenshots
playwright/artifacts
playwright/results
playwright/reports/*
# next.js
/.next/
/out/
# production
/build
.next/
out/
build
# misc
.DS_Store
@@ -27,12 +30,15 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
.env.*
!.env.example
# vercel
.vercel
@@ -51,6 +57,17 @@ yarn-error.log*
# Local History for Visual Studio Code
.history/
# Typescript
tsconfig.tsbuildinfo
cypress/videos
cypress/screenshots
# turbo
.turbo
# Prisma-Zod
packages/prisma/zod/*.ts
# Builds
dist
# Linting
lint-results

6
.gitmodules vendored Normal file
View File

@@ -0,0 +1,6 @@
[submodule "apps/api"]
path = apps/api
url = git@github.com:calcom/api.git
[submodule "apps/website"]
path = apps/website
url = git@github.com:calcom/website.git

6
.husky/post-receive Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
echo "Updating submodules recursively"
pwd
git submodule update --init --recursive

View File

@@ -5,3 +5,4 @@ autoupdate_label = "♻️ autoupdate"
[approve]
auto_approve_usernames = ["dependabot"]

2
.npmrc Normal file
View File

@@ -0,0 +1,2 @@
# used in tandem with package.json engine to only enable yarn
engine-strict=true

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
14.17

View File

@@ -3,4 +3,14 @@ node_modules
public
**/**/node_modules
**/**/.next
**/**/public
**/**/public
*.lock
*.log
.gitignore
.npmignore
.prettierignore
.DS_Store
.eslintignore
packages/prisma/zod

View File

@@ -1,10 +1 @@
module.exports = {
bracketSpacing: true,
bracketSameLine: true,
singleQuote: false,
jsxSingleQuote: false,
trailingComma: "es5",
semi: true,
printWidth: 110,
arrowParens: "always",
};
module.exports = require("./packages/config/prettier-preset");

View File

@@ -1,9 +1,12 @@
{
"recommendations": [
"DavidAnson.vscode-markdownlint", // markdown linting
"yzhang.markdown-all-in-one", // nicer markdown support
"esbenp.prettier-vscode", // prettier plugin
"dbaeumer.vscode-eslint", // eslint plugin
"bradlc.vscode-tailwindcss", // hinting / autocompletion for tailwind
"heybourn.headwind" // automatically sort tailwind classes in predictable order, kinda like "prettier for tailwind"
"ban.spellright", // Spell check for docs
"stripe.vscode-stripe", // stripe VSCode extension
"Prisma.prisma" // syntax|format|completion for prisma
]
}

39
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,39 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: Server",
"type": "node-terminal",
"request": "launch",
"command": "npm run dev",
"skipFiles": ["<node_internals>/**"],
"outFiles": [
"${workspaceFolder}/**/*.js",
"!**/node_modules/**"
],
"sourceMaps": true,
"resolveSourceMapLocations": [
"${workspaceFolder}/**",
"!**/node_modules/**"
]
},
{
"name": "Next.js: Client",
"type": "pwa-chrome",
"request": "launch",
"url": "http://localhost:3000"
},
{
"name": "Next.js: Full Stack",
"type": "node-terminal",
"request": "launch",
"command": "npm run dev",
"console": "integratedTerminal",
"serverReadyAction": {
"pattern": "started server on .+, url: (https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
}
}
]
}

View File

@@ -5,5 +5,8 @@
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.run": "onSave"
"eslint.run": "onSave",
"typescript.preferences.importModuleSpecifier": "non-relative",
"spellright.language": ["en"],
"spellright.documentTypes": ["markdown"]
}

79
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,79 @@
# Contributing to Cal.com
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.
- Before jumping into a PR be sure to search [existing PRs](https://github.com/calcom/cal.com/pulls) or [issues](https://github.com/calcom/cal.com/issues) for an open or closed item that relates to your submission.
## Developing
The development branch is `main`. This is the branch that all pull
requests should be made against. The changes on the `main`
branch are tagged into a release monthly.
To develop locally:
1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your
own GitHub account and then
[clone](https://help.github.com/articles/cloning-a-repository/) it to your local device.
2. Create a new branch:
```sh
git checkout -b MY_BRANCH_NAME
```
3. Install yarn:
```sh
npm install -g yarn
```
4. Install the dependencies with:
```sh
yarn
```
5. Start developing and watch for code changes:
```sh
yarn dev
```
## Building
You can build the project with:
```bash
yarn build
```
Please be sure that you can make a full production build before pushing code.
## Testing
More info on how to add new tests coming soon.
### Running tests
This will run and test all flows in multiple Chromium windows to verify that no critical flow breaks:
```sh
yarn test-e2e
```
## Linting
To check the formatting of your code:
```sh
yarn lint
```
If you get errors, be sure to fix them before committing.
## Making a Pull Request
- Be sure to [check the "Allow edits from maintainers" option](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork) while creating you PR.
- If your PR refers to or fixes an issue, be sure to add `refs #XXX` or `fixes #XXX` to the PR description. Replacing `XXX` with the respective issue number. Se more about [Linking a pull request to an issue
](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue).
- Be sure to fill the PR Template accordingly.

View File

@@ -2,7 +2,7 @@ Copyright (c) 2020-present Cal.com, Inc.
Portions of this software are licensed as follows:
* All content that resides under "ee/" directory of this repository (Enterprise Edition) is licensed under the license defined in "ee/LICENSE".
* All content that resides under "apps/web/ee/" (https://github.com/calcom/cal.com/tree/main/apps/web/ee) directory of this repository (Enterprise Edition) is licensed under the license defined in "ee/LICENSE".
* All third party components incorporated into the Cal.com Software are licensed under the original license provided by the owner of the applicable component.
* Content outside of the above mentioned directories or restrictions above is available under the "AGPLv3" license as defined below.
@@ -666,4 +666,4 @@ specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.

1
Procfile Normal file
View File

@@ -0,0 +1 @@
web: npx turbo run @calcom/web#start

204
README.md
View File

@@ -1,8 +1,8 @@
<!-- PROJECT LOGO -->
<p align="center">
<a href="https://github.com/calendso/calendso">
<a href="https://github.com/calcom/cal.com">
<img src="https://user-images.githubusercontent.com/8019099/133430653-24422d2a-3c8d-4052-9ad6-0580597151ee.png" alt="Logo">
</a>
<h3 align="center">Cal.com (formerly Calendso)</h3>
@@ -13,32 +13,36 @@
<a href="https://cal.com"><strong>Learn more »</strong></a>
<br />
<br />
<a href="https://join.slack.com/t/calendso/shared_invite/zt-mem978vn-RgOEELhA5bcnoGONxDCiHw">Slack</a>
<a href="https://cal.com/slack">Slack</a>
·
<a href="https://cal.com">Website</a>
·
<a href="https://github.com/calendso/calendso/issues">Issues</a>
<a href="https://github.com/calcom/cal.com/issues">Issues</a>
</p>
</p>
<p align="center">
<a href="https://cal.com/slack"><img src="https://img.shields.io/badge/Slack-calendso.slack.com-%234A154B" alt="Join Cal.com Slack"></a>
<a href="https://www.producthunt.com/posts/calendso"><img src="https://img.shields.io/badge/Product%20Hunt-%231%20Product%20of%20the%20Month-%23DA552E" alt="Product Hunt"></a>
<a href="https://github.com/calendso/calendso/stargazers"><img src="https://img.shields.io/github/stars/calendso/calendso" alt="Github Stars"></a>
<a href="https://github.com/calcom/cal.com/stargazers"><img src="https://img.shields.io/github/stars/calcom/cal.com" alt="Github Stars"></a>
<a href="https://news.ycombinator.com/item?id=26817795"><img src="https://img.shields.io/badge/Hacker%20News-311-%23FF6600" alt="Hacker News"></a>
<img src="https://img.shields.io/github/license/calendso/calendso" alt="License">
<img src="https://img.shields.io/github/package-json/v/calendso/calendso">
<a href="https://github.com/calendso/calendso/pulse"><img src="https://img.shields.io/github/commit-activity/m/calendso/calendso" alt="Commits-per-month"></a>
<a href="https://cal.com/pricing"><img src="https://img.shields.io/badge/Pricing-%2412%2Fmonth-brightgreen" alt="Pricing"></a>
<a href="https://github.com/calcom/cal.com/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-AGPLv3-purple" alt="License"></a>
<a href="https://github.com/calcom/cal.com/pulse"><img src="https://img.shields.io/github/commit-activity/m/calcom/cal.com" alt="Commits-per-month"></a>
<a href="https://cal.com/pricing"><img src="https://img.shields.io/badge/Pricing-%2412%2Fmonth-brightgreen" alt="Pricing"></a>
<a href="https://jitsu.com?utm_source=github/calcom/cal.com"><img src="https://img.shields.io/badge/Metrics_tracked_by-JITSU-AA00FF?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACKSURBVHgBrZDRCYAwDEQv6gCOoKO4hOCXI9QVnEZwiY5iF5GaVClaBNtioCSUvCR3tMJaxIfZgW4AGUoEPVwgPZoS0Dmgg3NBVDFNbMIsmYCak3J1jDk9iCQvsKJvkzr71N81Gj6vDT/LU2P6RhY63jcafk3YJEbgeZpiFyc/5HJKv8Ef273NSfABGbQfUZhnOSAAAAAASUVORK5CYII=" alt="Jitsu Tracked"></a>
<a href="https://hub.docker.com/r/calendso/calendso"><img src="https://img.shields.io/docker/pulls/calendso/calendso"></a>
<a href="https://twitter.com/calcom"><img src="https://img.shields.io/twitter/follow/calcom?style=social"></a>
<a href="https://calendso.slack.com/archives/C02BY67GMMW"><img src="https://img.shields.io/badge/translations-contribute-brightgreen" /></a>
</p>
<!-- ABOUT THE PROJECT -->
## About The Project
<img width="100%" alt="booking-screen" src="https://user-images.githubusercontent.com/8019099/133429837-69ac8554-4c9c-43f9-90dd-c3337002d8ff.png">
<img width="100%" alt="booking-screen" src="https://user-images.githubusercontent.com/8019099/134363898-4b29e18f-3e61-42b7-95bc-10891056249d.gif">
# Scheduling infrastructure for absolutely everyone.
# Scheduling infrastructure for absolutely everyone
The open source Calendly alternative. You are in charge
of your own data, workflow and appearance.
@@ -47,7 +51,7 @@ Calendly and other scheduling tools are awesome. It made our lives massively eas
That's where Cal.com comes in. Self-hosted or hosted by us. White-label by design. API-driven and ready to be deployed on your own domain. Full control of your events and data.
### Product of the Month: April
## Product of the Month: April
#### Support us on [Product Hunt](https://www.producthunt.com/posts/calendso?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-calendso)
@@ -64,7 +68,7 @@ That's where Cal.com comes in. Self-hosted or hosted by us. White-label by desig
Cal officially launched as v.1.0 on 15th of September, however a lot of new features are coming. Watch **releases** of this repository to be notified for future updates:
![cal-star-github](https://user-images.githubusercontent.com/8019099/116010176-5d9c9900-a615-11eb-92d0-aa0e892f7056.gif)
![cal-star-github](https://user-images.githubusercontent.com/8019099/154853944-a9e3c999-3da3-4048-b149-b4f73893c6fb.gif)
<!-- GETTING STARTED -->
@@ -80,42 +84,64 @@ Here is what you need to be able to run Cal.
- PostgreSQL
- Yarn _(recommended)_
You will also need Google API credentials. You can get this from the [Google API Console](https://console.cloud.google.com/apis/dashboard). More details on this can be found below under the [Obtaining the Google API Credentials section](#Obtaining-the-Google-API-Credentials).
> If you want to enable any of the available integrations, you may want to obtain additional credentials for each one. More details on this can be found below under the [integrations section](#integrations).
### Development Setup
## Development
### Setup
1. Clone the repo
```sh
git clone https://github.com/calcom/cal.com.git
```
1. Go to the project folder
```sh
cd cal.com
```
1. Copy `apps/web/.env.example` to `apps/web/.env`
```sh
cp apps/web/.env.example apps/web/.env
cp packages/prisma/.env.example packages/prisma/.env
```
1. Install packages with yarn
```sh
yarn
```
#### Quick start with `yarn dx`
> - **Requires Docker to be installed**
> - **Requires Docker and Docker Compose to be installed**
> - Will start a local Postgres instance with a few test users - the credentials will be logged in the console
```bash
git clone git@github.com:calendso/calendso.git
cd calendso
yarn
```sh
yarn dx
```
#### Manual
#### Development tip
1. Clone the repo
```sh
git clone https://github.com/calendso/calendso.git
```
2. Install packages with yarn
```sh
yarn install
```
3. Copy `.env.example` to `.env`
4. Configure environment variables in the .env file. Replace `<user>`, `<pass>`, `<db-host>`, `<db-port>` with their applicable values
> Add `NEXT_PUBLIC_DEBUG=1` anywhere in your `apps/web/.env` to get logging information for all the queries and mutations driven by **trpc**.
```sh
echo 'NEXT_PUBLIC_DEBUG=1' >> apps/web/.env
```
#### Manual setup
1. Configure environment variables in the .env file. Replace `<user>`, `<pass>`, `<db-host>`, `<db-port>` with their applicable values
```
DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>'
GOOGLE_API_CREDENTIALS='secret'
```
<details>
<summary>If you don't know how to configure the DATABASE_URL, then follow the steps here</summary>
<summary>If you don't know how to configure the DATABASE_URL, then follow the steps here to create a quick DB using Heroku</summary>
1. Create a free account with [Heroku](https://www.heroku.com/).
@@ -141,43 +167,66 @@ yarn dx
8. To view your DB, once you add new data in Prisma, you can use [Heroku Data Explorer](https://heroku-data-explorer.herokuapp.com/).
</details>
5. Set up the database using the Prisma schema (found in `prisma/schema.prisma`)
1. Set a 32 character random string in your .env file for the `CALENDSO_ENCRYPTION_KEY` (You can use a command like `openssl rand -base64 24` to generate one).
1. Set up the database using the Prisma schema (found in `apps/web/prisma/schema.prisma`)
```sh
npx prisma db push
yarn workspace @calcom/prisma db-deploy
```
6. Run (in development mode)
1. Run (in development mode)
```sh
yarn dev
```
7. Open [Prisma Studio](https://www.prisma.io/studio) to look at or modify the database content:
#### Setting up your first user
1. Open [Prisma Studio](https://www.prisma.io/studio) to look at or modify the database content:
```sh
yarn db-studio
```
npx prisma studio
```
8. Click on the `User` model to add a new user record.
9. Fill out the fields (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
10. Open a browser to [http://localhost:3000](http://localhost:3000) and login with your just created, first user.
11. Set a 32 character random string in your .env file for the CALENDSO_ENCRYPTION_KEY.
1. Click on the `User` model to add a new user record.
1. Fill out the fields `email`, `username`, `password`, and set `metadata` to empty `{}` (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
> New users are set on a `TRIAL` plan by default. You might want to adjust this behavior to your needs in the `apps/web/prisma/schema.prisma` file.
1. Open a browser to [http://localhost:3000](http://localhost:3000) and login with your just created, first user.
### E2E-Testing
```sh
# In first terminal
yarn dx
# In second terminal
yarn workspace @calcom/web test-e2e
# To open last HTML report run:
yarn workspace @calcom/web playwright-report
```
### Upgrading from earlier versions
1. Pull the current version:
```
```sh
git pull
```
2. Apply database migrations by running <b>one of</b> the following commands:
In a development environment, run:
```
npx prisma migrate dev
```sh
yarn workspace @calcom/prisma db-migrate
```
(this can clear your development database in some cases)
In a production environment, run:
```
npx prisma migrate deploy
```sh
yarn workspace @calcom/prisma db-deploy
```
3. Check the `.env.example` and compare it to your current `.env` file. In case there are any fields not present
@@ -190,14 +239,18 @@ yarn dx
```
4. Start the server. In a development environment, just do:
```
```sh
yarn dev
```
For a production build, run for example:
```
```sh
yarn build
yarn start
```
5. Enjoy the new version.
<!-- DEPLOYMENT -->
@@ -207,7 +260,15 @@ yarn dx
The Docker configuration for Cal is an effort powered by people within the community. Cal.com, Inc. does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
The Docker configuration can be found [in our docker repository](https://github.com/calendso/docker).
If you want to contribute to the Docker repository, [reply here](https://github.com/calcom/docker/discussions/32).
The Docker configuration can be found [in our docker repository](https://github.com/calcom/docker).
### Heroku
<a href="https://heroku.com/deploy?template=https://github.com/calcom/cal.com">
<img width="185px" height="auto" src="https://www.herokucdn.com/deploy/button.svg" alt="Deploy">
</a>
### Railway
@@ -219,28 +280,27 @@ You can deploy Cal on [Railway](https://railway.app/) using the button above. Th
## Roadmap
See the [open issues](https://github.com/calendso/calendso/issues) for a list of proposed features (and known issues).
See the [roadmap project](https://github.com/orgs/calcom/projects/1) for a list of proposed features (and known issues). You can change the view to see planned tagged releases.
<!-- CONTRIBUTING -->
## Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.
Please see our [contributing guide](/CONTRIBUTING.md).
1. Fork the project
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Make your changes
4. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
5. Push to the branch (`git push origin feature/AmazingFeature`)
6. Open a pull request
### Good First Issues
## Obtaining the Google API Credentials
We have a list of [good first issues](https://github.com/calcom/cal.com/labels/✅%20good%20first%20issue) that contain bugs which have a relatively limited scope. This is a great place to get started, gain experience, and get familiar with our contribution process.
## Integrations
### Obtaining the Google API Credentials
1. Open [Google API Console](https://console.cloud.google.com/apis/dashboard). If you don't have a project in your Google Cloud subscription, you'll need to create one before proceeding further. Under Dashboard pane, select Enable APIS and Services.
2. In the search box, type calendar and select the Google Calendar API search result.
3. Enable the selected API.
4. Next, go to the [OAuth consent screen](https://console.cloud.google.com/apis/credentials/consent) from the side pane. Select the app type (Internal or External) and enter the basic app details on the first page.
5. In the second page on Scopes, select Add or Remove Scopes. Search for Calendar.event and select the scope with scope value `.../auth/calendar.events`, `.../auth/calendar.readonly`, `.../auth/calendar` and select Update.
5. In the second page on Scopes, select Add or Remove Scopes. Search for Calendar.event and select the scope with scope value `.../auth/calendar.events`, `.../auth/calendar.readonly` and select Update.
6. In the third page (Test Users), add the Google account(s) you'll using. Make sure the details are correct on the last page of the wizard and your consent screen will be configured.
7. Now select [Credentials](https://console.cloud.google.com/apis/credentials) from the side pane and then select Create Credentials. Select the OAuth Client ID option.
8. Select Web Application as the Application Type.
@@ -248,16 +308,16 @@ Contributions are what make the open source community such an amazing place to b
10. The key will be created and you will be redirected back to the Credentials page. Select the newly generated client ID under OAuth 2.0 Client IDs.
11. Select Download JSON. Copy the contents of this file and paste the entire JSON string in the .env file as the value for GOOGLE_API_CREDENTIALS key.
## Obtaining Microsoft Graph Client ID and Secret
### Obtaining Microsoft Graph Client ID and Secret
1. Open [Azure App Registration](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps) and select New registration
2. Name your application
3. Set **Who can use this application or access this API?** to **Accounts in any organizational directory (Any Azure AD directory - Multitenant)**
4. Set the **Web** redirect URI to `<Cal.com URL>/api/integrations/office365calendar/callback` replacing Cal.com URL with the URI at which your application runs.
5. Use **Application (client) ID** as the **MS_GRAPH_CLIENT_ID** attribute value in .env
6. Click **Certificates & secrets** create a new client secret and use the value as the **MS_GRAPH_CLIENT_SECRET** attriubte
6. Click **Certificates & secrets** create a new client secret and use the value as the **MS_GRAPH_CLIENT_SECRET** attribute
## Obtaining Zoom Client ID and Secret
### Obtaining Zoom Client ID and Secret
1. Open [Zoom Marketplace](https://marketplace.zoom.us/) and sign in with your Zoom account.
2. On the upper right, click "Develop" => "Build App".
@@ -268,16 +328,24 @@ Contributions are what make the open source community such an amazing place to b
7. Click "Create".
8. Now copy the Client ID and Client Secret to your .env file into the `ZOOM_CLIENT_ID` and `ZOOM_CLIENT_SECRET` fields.
9. Set the Redirect URL for OAuth `<Cal.com URL>/api/integrations/zoomvideo/callback` replacing Cal.com URL with the URI at which your application runs.
10. Also add the redirect URL given above as a whitelist URL and enable "Subdomain check". Make sure, it says "saved" below the form.
10. Also add the redirect URL given above as a allow list URL and enable "Subdomain check". Make sure, it says "saved" below the form.
11. You don't need to provide basic information about your app. Instead click at "Scopes" and then at "+ Add Scopes". On the left, click the category "Meeting" and check the scope `meeting:write`.
12. Click "Done".
13. You're good to go. Now you can easily add your Zoom integration in the Cal.com settings.
### Obtaining Daily API Credentials
1. Open [Daily](https://www.daily.co/) and sign into your account.
2. From within your dashboard, go to the [developers](https://dashboard.daily.co/developers) tab.
3. Copy your API key.
4. Now paste the API key to your .env file into the `DAILY_API_KEY` field in your .env file.
5. If you have the [Daily Scale Plan](https://www.daily.co/pricing) set the `DAILY_SCALE_PLAN` variable to `true` in order to use features like video recording.
<!-- LICENSE -->
## License
Distributed under the MIT License. See `LICENSE` for more information.
Distributed under the AGPLv3 License. See `LICENSE` for more information.
<!-- ACKNOWLEDGEMENTS -->
@@ -292,3 +360,7 @@ Special thanks to these amazing projects which help power Cal.com:
- [Day.js](https://day.js.org/)
- [Tailwind CSS](https://tailwindcss.com/)
- [Prisma](https://prisma.io/)
[<img src="https://jitsu.com/img/powered-by-jitsu.png?gh=true">](https://jitsu.com/?utm_source=cal.com-gihub)
Cal.com is an [open startup](https://jitsu.com) and [Jitsu](https://github.com/jitsucom/jitsu) (an open-source Segment alternative) helps us to track most of the usage metrics.

26
app.json Normal file
View File

@@ -0,0 +1,26 @@
{
"name": "Cal.com",
"description": "Open Source Scheduling",
"repository": "https://github.com/calcom/cal.com",
"logo": "https://cal.com/android-chrome-512x512.png",
"keywords": ["react", "typescript", "node", "nextjs", "prisma", "postgres", "trpc"],
"addons": [
{
"plan": "heroku-postgresql:hobby-dev"
}
],
"env": {
"BASE_URL": {
"description": "Replace HEROKU_APP_NAME with the name given to your app",
"value": "https://HEROKU_APP_NAME.herokuapp.com"
},
"CALENDSO_ENCRYPTION_KEY": {
"description": "Application Key for symmetric encryption and decryption. Must be 32 bytes for AES256 encryption algorithm.",
"value": "secret"
},
"JWT_SECRET": "secret"
},
"scripts": {
"postdeploy": "cd packages/prisma && npx prisma migrate deploy"
}
}

1
apps/api Submodule

Submodule apps/api added at 378cbf8f3a

7
apps/docs/.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
node_modules
.next
.DS_Store
yarn-error.log
dist
examples
packages

1
apps/docs/.nvmrc Normal file
View File

@@ -0,0 +1 @@
14.17

View File

@@ -0,0 +1,2 @@
.next
node_modules

21
apps/docs/LICENSE Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 Shu Ding
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

81
apps/docs/README.md Normal file
View File

@@ -0,0 +1,81 @@
<!-- PROJECT LOGO -->
<div align="right">
<a href="https://github.com/calcom/cal.com">
<img src="https://user-images.githubusercontent.com/8019099/133430653-24422d2a-3c8d-4052-9ad6-0580597151ee.png" alt="Logo">
</a>
<a href="https://cal.com">Website</a>
·
<a href="https://github.com/calcom/docs/issues">Community Support</a>
</div>
# Cal.com Documentation
The official product, support and developer documentation, containing information and guides about using the product as well as support for self-hosted installations. This documentation site runs on [Nextra](https://nextra.vercel.app), so you may refer to their documentation should you need information on anything that isn't covered here.
## Prerequisites
- Git
- Node.js & npm
- Yarn
## Installation
Firstly, clone the repository using Git:
```console
git clone https://github.com/calcom/docs.git
```
Now, you can install the dependencies with yarn:
```console
yarn install
```
## Editing
To create, edit and delete documentation pages, you can simply create markdown (.mdx) files in the `pages/` folder. You can edit Markdown with any text editor, but VS Code and WebStorm have side-by-side previews so you can see your formatted content whilst writing markdown.
You will also need to add it as an entry to the `meta.json` file found in whichever directory that the .mdx file is in.
## Local Development
```console
yarn dev
```
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
## Build
```console
yarn build
```
This command generates static content into the `build` directory and can be served using any static content hosting service.
## How to easily contribute
## Existing Page
1. From the documentation's GitHub repository, head to the folder called 'pages' and open it.
2. From here you can view all current pages on the documentation site. Select the page you would like to contribute to.
3. You should now be able to view the page you have selected. Located at the top right of the page will be a pencil icon. Pressing this will bring you up an editor to edit and make changes. You can add formatting using the buttons at the top, which will automatically insert the relevant markdown content needed to style the text.
4. From here make the changes you wish to make.
5. At the bottom of the screen will be a 'Propose Changes' box, fill in all the relevant details such as title and description then press the green 'Propose Changes' button.
6. Your changes have been saved, to submit them for review, located on your screen, press the green 'Create Pull Request' button.
7. Fill in all the relevant details such as title and description and after finalize the submission.
You have now successfully edited and submitted changes to our documentation site.
## Creating a New Page
1. From the documentation's GitHub repository, head to the folder called 'pages' and open it.
2. From here you can view all current pages on the documentation site. At the top of your screen press the 'New file' button.
3. You should now be able to view the page you have created. Remember when renaming the document to put .mdx at the end of the file name.
4. From here make the changes you wish to make. Such as creating a title, sub-title and body text.
5. At the bottom of the screen will be a 'Propose Changes' box, fill in all the relevant details such as title and description then press the green 'Propose Changes' button.
6. Your changes have been saved, to submit them for review, located on your screen, press the greem 'Create Pull Request' button.
7. Fill in all the relevant details such as title and description and after finalize the submission.
You have now successfully created and submitted changes to our documentation site.

View File

@@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited

6
apps/docs/next.config.js Normal file
View File

@@ -0,0 +1,6 @@
const withNextra = require("nextra")({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.js",
unstable_staticImage: true,
});
module.exports = withNextra();

27
apps/docs/package.json Normal file
View File

@@ -0,0 +1,27 @@
{
"name": "@calcom/docs",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next",
"dev": "PORT=4000 next",
"lint": "next lint",
"lint:report": "eslint . --format json --output-file ../../lint-results/docs.json",
"start": "PORT=4000 next start",
"build": "next build"
},
"author": "Cal.com, Inc.",
"license": "MIT",
"dependencies": {
"next": "^12.1.0",
"nextra": "^1.1.0",
"nextra-theme-docs": "^1.2.2",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"@calcom/config": "*",
"eslint": "^8.10.0"
}
}

7
apps/docs/pages/_app.tsx Normal file
View File

@@ -0,0 +1,7 @@
import "nextra-theme-docs/style.css";
import "./style.css";
export default function Nextra({ Component, pageProps }) {
return <Component {...pageProps} />;
}

View File

@@ -0,0 +1,27 @@
---
title: Availability
---
# Availability
## Setting your availability
1. Go to [Your Availability](https://app.cal.com/availability) page within your cal.com account.
2. On the availability page you can manage your availability to suit your working day accordingly.
You can also troubleshoot your availability if your calendar does not look like it is blocking out the correct times.
## Troubleshooting availability
This will tell you when your calendar shows you as busy, so you can understand why Cal is blocking certain times.
## How to troubleshoot availability
1. Go to [Your Availability](https://app.cal.com/availability).
2. To the right of your screen a box saying 'Something doesn't look right?' will appear. Press the button 'Launch Troubleshooter'.
3. After pressing this, your availability will appear according to your calendar and inform you of the times booked up for that day!
By doing this you will know understand why certain times are available and others are blocked.
## In team settings availability set to only Mondays but the calendar shows availability on other days as well
Its showing as available on days other than Monday because only you have set your availability to only Mondays, whereas the rest of the team haven't made that setting.

View File

@@ -0,0 +1,37 @@
---
title: Billing
---
# Billing
## How the trial works
You are given FREE access for 14 days of our PRO subscription, you can use this to test and try out our product and see if it works for you. No credit card is required to sign up and you decide if you want to upgrade to a PRO subscription afterwards.
## How to cancel the trial
If you are looking to cancel the trial and want to downgrade to the free option you can contact our support team where we will be happy to help you make that change!
## How to upgrade
If you are looking at upgrading from our FREE subscription to our PRO subscription, head over to cal.com/upgrade where you can easily upgrade hassle free.
## How to downgrade
1. Go to your [Billing Settings](https://app.cal.com/settings/billing).
2. From here you can press the button called `Go to the billing Portal`. That will take you to the page where you can upgrade/downgrade your plan.
## How to delete your account
You can delete your account from within the [Settings](https://app.cal.com/settings/profile) option. Just scroll all the way down and click on `Delete Account`.
## Purchasing a premium username
We've reserved a ton of premium usernames, such as short handles or first names to prevent name squatters. To find out if your username is premium, head over to [cal.com/signup](https://cal.com/signup) and choose your desired username. From here you will be taken straight to checkout and after proceeding your Cal.com account will be created with your desired username.
## Manage your subscription
1. Go to your [Billing Settings](https://app.cal.com/settings/billing).
2. From here you can press the button called `Go to the billing Portal`.
3. This will take you to an external site provided by Stripe as they deal with all our payments.
Some users may not be able to access Billing as their billing email is different to their account email. If this is the case, you can change the email associated with your account in [Profile Settings](https://app.cal.com/settings/profile).
## Subscription for each team member
If your team requires multiple event types then each team member has to be subscribed to our paid plan. If that is something that isnt necessary for your team, you can proceed with your FREE plan.
## Discount for non-profits and students
We offer 50% for non-profit organizations and students. Just raise a ticket with our support team and submit the necessary proof of status.

View File

@@ -0,0 +1,29 @@
---
title: Bookings
---
# Bookings
## What can you do on the bookings page?
On the bookings page you are able to see upcoming and past events booked through your event type links. This page also lets you cancel or reschedule upcoming events users have scheduled.
## How to view bookings
1. Go to [your upcoming and past bookings](https://app.cal.com/bookings/upcoming).
2. On this page you can see upcoming and past events booked through your event type links.
## Reschedule bookings
1. Go to [your rescheduled bookings](https://app.cal.com/bookings/upcoming).
2. Hovering over the event you want to reschedule, click the button saying 'Reschedule'
3. Clicking 'Reschedule' will bring you to your Cal booking page. Select a new Time and Date.
4. After selecting this you can go ahead and click that 'Reschedule' Button!
5. After, you and your attendee will receive a new confirmation email of your new date and time.
## Cancel bookings
1. Go to [your cancelled](https://app.cal.com/bookings/cancelled).
2. Hovering over the event you want to cancel, click the button saying 'Cancel'
3. Once done, you will receive a confirmation message saying 'Really cancel your booking?'. After confirming you can go ahead and click the red 'Cancel' button at the bottom of your screen.
4. After, you and your attendee will receive a new confirmation email of your event being cancelled.

View File

@@ -0,0 +1,83 @@
---
title: Contributing
---
# Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.
- Before jumping into a PR be sure to search [existing PRs](https://github.com/calcom/cal.com/pulls) or [issues](https://github.com/calcom/cal.com/issues) for an open or closed item that relates to your submission.
## Developing
The development branch is `main`. This is the branch that all pull
requests should be made against. The changes on the `main`
branch are tagged into a release monthly.
To develop locally:
1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your
own GitHub account and then
[clone](https://help.github.com/articles/cloning-a-repository/) it to your local device.
2. Create a new branch:
```sh
git checkout -b MY_BRANCH_NAME
```
3. Install yarn:
```sh
npm install -g yarn
```
4. Install the dependencies with:
```sh
yarn
```
5. Start developing and watch for code changes:
```sh
yarn dev
```
## Building
You can build the project with:
```bash
yarn build
```
Please be sure that you can make a full production build before pushing code.
## Testing
More info on how to add new tests coming soon.
### Running tests
This will run and test all flows in multiple Chromium windows to verify that no critical flow breaks:
```sh
yarn test-e2e
```
## Linting
To check the formatting of your code:
```sh
yarn lint
```
If you get errors, be sure to fix them before comitting.
## Making a Pull Request
- Be sure to [check the "Allow edits from maintainers" option](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork) while creating you PR.
- If your PR refers to or fixes an issue, be sure to add `refs #XXX` or `fixes #XXX` to the PR description. Replacing `XXX` with the respective issue number. Se more about [Linking a pull request to an issue
](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue).
- Be sure to fill the PR Template accordingly.

View File

@@ -0,0 +1,37 @@
---
title: Adding CSS
---
import Callout from "nextra-theme-docs/callout";
# Adding CSS
<Callout>
Adding or modifying CSS counts as changing the code, so as per [our license](https://github.com/calcom/cal.com/blob/main/LICENSE) you must either open-source your modified version or purchase an enterprise license.
</Callout>
Cal.com uses [TailwindCSS](https://tailwindcss.com) as a replacement for traditional CSS styling within the application, but some people prefer to add CSS styles themselves.
CSS files should be stored in the `styles` directory within the codebase.
Within the `styles` directory, you will find two CSS files, `fonts.css` and `global.css`. We suggest not to add to these files, and instead create new CSS files and import them into the application. This helps reduce conflicts when pulling in changes that we've made to either of the existing CSS files.
## Adding new stylesheets
Firstly, create the CSS file inside the `styles` directory.
Then, open the `pages/_app.tsx` file, and you will see the following two lines:
```javascript
import "../styles/fonts.css";
import "../styles/globals.css";
```
Duplicate one of these import statements and change the path to link to your new CSS stylesheet, like so:
```javascript
import "../styles/your-new-stylesheet.css";
```
<Callout type="warning" emoji="⚠️">
These styles will apply to all pages and components in your application.
</Callout>
Due to the global nature of stylesheets, and to avoid conflicts, you may **only import them inside `pages/_app.tsx`**.

View File

@@ -0,0 +1,45 @@
---
title: Contributing to App Store
---
# Contributing to the App Store
Since Cal.com is open source we encourage developers to create new apps for others to use. This guide is to help you get started.
## Structure
All apps can be found under `packages/app-store`. In this folder is `_example` which shows the general structure of an app.
```sh
├──_example
| ├──index.ts
| ├──package.json
| ├──.env.example
|
| ├──api
| | ├──example.ts
| | ├──index.ts
|
| ├──lib
| | ├──adaptor.ts
| | ├──index.ts
|
| ├──static
| | ├──icon.svg
```
## Getting Started
In the `package.json` name your package appropriately and list the dependencies needed for the package.
Next in the `.env.example` specify the environmental variables (ex. auth token, API secrets) that your app will need. In a comment add a link to instructions on how to obtain the credentials. Create a `.env` with your the filled in environmental variables.
In `index.js` fill out the meta data that will be rendered on the app page. Under `packages/app-store/index.ts`, import your app and add it under `appStore`. Your app should now appear in the app store.
Under the `/api` folder, this is where any API calls that are associated with your app will be handled. Since cal.com uses Next.js we use dynamic API routes. In this example if we want to hit `/api/example.ts` the route would be `{BASE_URL}/api/integrations/_example/example`. Export your endpoints in an `index.ts` file under `/api` folder and import them in your main `index.ts` file.
The `/lib` folder is where the functions of your app live. For example, when creating a booking with a MS Teams link the function to make the call to grab the link lives in the `/lib` folder. Export your endpoints in an `index.ts` file under `/lib` folder and import them in your main `index.ts` file.
The `/static` folder is where your assets live.
If you need any help feel free to join us on [Slack](https://cal.com/slack)

View File

@@ -0,0 +1,19 @@
---
title: Code styling
---
# Code Styling
Keeping our code styles consistent is key to making the repository easy to read and work with.
We use a number of style guides written by other amazing companies, simply because they are widely used and because we like working with them.
We don't expect you to study every single rule of each style guide, but these are great reference points as to how your code should be styled. We may reject a pull request if your code style significantly differs from these style guides however.
## ESLint & Prettier
Calendso uses the ESLint and Prettier formatting tools, and the repository comes with defined rules for each tool. We recommend setting up both tools and using these to help automatically style your code to our guidelines.
## JavaScript/TypeScript
We use the [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript) for all JavaScript and Typescript code.
## HTML & CSS
We use the [Google HTML/CSS Style Guide](https://google.github.io/styleguide/htmlcssguide.html) for any HTML and CSS markup. However, exceptions to the HTML guide apply where JSX differentiates from standard HTML.

View File

@@ -0,0 +1,9 @@
{
"migrations": "Migrations",
"pre-fill": "Pre-fill fields",
"code-styling": "Code styling",
"project-structure": "Project structure",
"pull-requests": "Pull requests",
"adding-css": "Adding CSS",
"app-store": "Contributing to App Store"
}

View File

@@ -0,0 +1,41 @@
---
title: Migrations
---
# Database Migrations
As described in the [upgrade guide](https://docs.cal.com/self-hosting/upgrade), you should use the `yarn workspace @calcom/prisma db-migrate` or `yarn workspace @calcom/prisma db-deploy` command to update the database.
We use database migrations in order to handle changes to the database schema in a more secure and stable way. This is actually very common. The thing is that when just changing the schema in `schema.prisma` without creating migrations, the update to the newer database schema can damage or delete all data in production mode, since the system sometimes doesn't know how to transform the data from A to B. Using migrations, each step is reproducable, transparent and can be undone in a simple way.
## Creating migrations
If you are modifying the codebase and make a change to the `schema.prisma` file, you must create a migration.
To create a migration for your previously changed `schema.prisma`, simply run the following:
```sh
yarn workspace @calcom/prisma db-migrate
```
Now, you must create a short name for your migration to describe what changed (for example, "user_add_email_verified"). Then just add and commit it with the corresponding code that uses your new database schema.
:::caution
Always keep an eye on what migrations Prisma is generating. Prisma often happily will drop entire columns of data because it can't figure out what to do.
:::
## Error: The database schema is not empty
Prisma uses a database called `_prisma_migrations` to keep track of which migrations have been applied and which haven't. If your local migrations database doesn't match up with what's in the actual database, then Prisma will throw the following error:
```text
Error: P3005
The database schema for `localhost:5432` is not empty. Read more about how to baseline an existing production database: https://pris.ly/d/migrate-baseline
```
In order to fix this, we need to tell Prisma which migrations have already been applied.
This can be done by running the following command, replacing `migration_name` with each migration that you have already applied:
```sh
yarn prisma migrate resolve --applied migration_name
```
You will need to run the command for each migration that you want to mark as applied.

View File

@@ -0,0 +1,24 @@
---
title: Pre-fill fields
---
# Pre-fill fields
You can pre-fill a number of fields on the booking form by using their corresponding URL parameters. This can include the users name, email, or guests to be added to the booking.
Usually when they go to the link, all that is needed will be the time of the booking, and the form will be pre-filled with the information given.
Pre-filling booking fields can save a lot of time and speed up processes with filling out these forms, and assist with a smooth integration with your existing website or app.
You can pre-fill a users name and email address like so:
```text
cal.com/rick/quick-chat/?email=attendee@example.com&name=John
```
The data is persisted through the 3 booking pages; and is used to prefill the booking form.
Guests can also be added to the link, there is also no limit to the amount of guests you wish to add.
These should be added to your link like this:
```text
guest=guest1@example.com&guest=guest2@example.com
```

View File

@@ -0,0 +1,50 @@
---
title: Project structure
---
# Project Structure
This page gives an overview of how the codebase is structured so you can easily dive into the Cal.com code.
Cal.com is written in Next.js, so you will find that we follow Next.js best practices for structure and layouts.
## Basic folder structure
The project comprises of the following folder structure:
```text
.github/ - GitHub configuration files
ISSUE_TEMPLATE/
workflows/
.husky/ - Git hooks
.vscode/ - VS Code editor configuration
components/ - Application components
booking/
dialog/
team/
ui/
lib/ - Reusable code
emails/
events/
forgot-password/messaging/
integrations/CalDav/
teams/
pages/ - Most of the project lives here
[user]/ - Booking pages
api/ - The backend API
auth/ - Next-Auth.js and other authentication routes
availability/
bookings/
cancel/
event-types/
integrations/
reschedule/
settings/
team/
prisma/ - The database schema and migrations
migrations/
public/ - Images and static files
integrations/
styles/
test/lib/
```

View File

@@ -0,0 +1,37 @@
---
title: Pull requests
---
# Pull Requests
## Requirements
We have a number of requirements for PRs to ensure they are as easy to review as possible and to ensure that they are up to standard with the code.
### Title & Content
Start by providing a short and concise title. Dont put something generic (e.g. bug fixes), and instead mention more specifically what your PR achieves, for instance “Fixes dropdown not expanding on settings page”.
For the PR description, you should go into much greater detail about what your PR adds or fixes. Firstly, the description should include a link to any relevant issues or discussions surrounding the feature or bug that your PR addresses.
#### Feature PRs
Give a functional overview of how your feature works, including how the user can use the feature. Then, share any technical details in an overview of how the PR works (e.g. “Once the user enters their password, the password is hashed using BCrypt and stored in the Users database field”).
#### Bug Fix PRs
Give an overview of how your PR fixes the bug both as a high-level overview and a technical explanation of what caused the issue and how your PR resolves this.
Feel free to add a short video or screenshots of what your PR achieves. Loom is a great way of sharing short videos.
### Code Quality & Styling
All submitted code must match our [code styling](/docs/code-styling) standards. We will reject pull requests that differ significantly from our standardised code styles.
All code is automatically checked by Codacy and our linting process, and will notify you if there are any issues with the code that you submit. We require that code passes these quality checks before merging.
## PR review process
At least two members of the Calendso team should review and approve any PR before it is merged.
Once two members of the team have approved this, someone from the team will merge the PR. If you are part of the Calendso team, you should merge your own PRs once you have received both approvals.

View File

@@ -0,0 +1,43 @@
---
title: Event Types
---
# Event Types
Event types allow you to create different events for different occasions when booking a time with you in your calendar. These can be named differently, have different time durations and the choice of platform can change.
## Creating an event type
1. Go to [Your Event Types](https://app.cal.com/event-types).
2. Click the button at the top right of your screen saying '+ New Event Type'.
3. Create the title of your new event.
4. Confirm the auto-generated event type URL.
5. Create a description on what your event will be used for.
6. Decide on the amount of minutes you wish for this event to last for.
7. Press 'Continue'
8. Your event has now been created!
## Editing event types
1. Go to [Your Event Types](https://app.cal.com/event-types).
2. Click anywhere within the box of the event you would like to edit.
(From here you can edit the basic settings of your event)
3. To get the advanced options, at the bottom of your event setting click 'Show Advanced Settings'
4. After you have finished editing the event type, scroll to the bottom of your page and select 'Update'
5. Your event type has now been updated.
## Deleting event types
1. Go to [Your Event Types](https://app.cal.com/event-types).
2. Click anywhere within the box of the event, just like you would if you were editing the event.
3. From this page, just to the right, a button saying 'delete' will appear. Click this and your event will be deleted!
## How to block a time slot before/after a meeting
You can block out a time frame in your calendar only after the meeting. You can do this by selecting `Show advanced settings` of your Event Type. The setting is labeled `Time-slot intervals`.
## Setting up specific availability for each type of Event
Head to `Show advanced settings` of your event. At the bottom you can set up specific availability for different Event Types.
## Availability not showing on a certain day in your calendar
Head over to your event and once you click on `Show advanced settings`, make sure your time zones are correct. Also, check if you have any calendar events scheduled that could overlap with your availability.
## People can't book me even though there is still a couple of hours left on my availability for today
Head over to your event and once you click on `Show advanced settings`, have a look at the `Minimum booking notice`. It probably overlaps with your availability so make sure that notice fits your desired time frame for meetings. For example, if someone wants to book a meeting with you at 16:15 and its already 15:30, your 90 minutes minimum booking notice doesnt allow that meeting to be booked.

17
apps/docs/pages/faq.mdx Normal file
View File

@@ -0,0 +1,17 @@
---
title: FAQs
---
# Frequently asked questions
## Does Cal.com support a custom domain?
This is possible with our self-hosted option.
## Is there a possibility of multi-bookings for events where more people can book at the same time?
As it stands this is currently not possible. We always keep an eye on the limitations like these that our users point to us. Weve had requests in the past for the multi-booking feature and this is on our priority list.
## How to quickly block further bookings?
1. Click on the lower left corner of your dashboard where your username is displayed.
2. That initates a dropdown menu. Click on `Set youself as away`.
This is a method to disable your Cal.com account which won't allow any bookings once initiated. However, bookings made before turning on *away mode* will still be booked.

View File

@@ -0,0 +1,34 @@
---
title: Import
---
import Callout from "nextra-theme-docs/callout";
# Import data from other scheduling tools
When setting up your Cal.com account via the onboarding process, you can import data from other scheduling tools, such as Calendly or SavvyCal. All that you need to import your data is an access token, which you can retrieve from your Calendly/SavvyCal account.
Once you've pasted your access token, we import your account data in less than a second.
Naturally, we take security very seriously when it comes to importing your data from other accounts, so that's why we never store your access token, and use it once to query the Calendly/SavvyCal APIs, populate your account with the data it returns, and then your key is destroyed from memory. All of the importer code can be [freely viewed on GitHub](https://github.com/calcom/cal.com/tree/main/pages/api/import), so you can be assured we're not using your data for malicious purposes.
## Calendly
The following steps will help you retrieve your Calendly access token, which you will need to present at the import screen of the onboarding process.
1. Go to the Calendly website and click on **My Account** in the top right
2. Now click on **Integrations** in the top right
3. Scroll to the bottom and click on **API & Webhooks**
4. Click the blue **Generate new token** button and type in anything you'd like as the app name
5. Press **Copy token** and then paste it into the Cal.com importer
<Callout>
Even though we don't store your access token, you can press **Revoke** to destroy the access token from the **API & Webhooks** page once the import is complete.
</Callout>
## SavvyCal
The following steps will help you retrieve your SavvyCal access token, which you will need to present at the import screen of the onboarding process.
1. Head to the SavvyCal website and click **Settings** in the sidebar
2. Click the **Developers** tab, and under **Personal access tokens**, click the blue **Create a token** link
3. Give the token any name you'd like, and then confirm
4. Click to copy the token, and then paste the token into the Cal.com importer
<Callout>
Even though we don't store your access token, you can press the trash icon to revoke the access token from the **Developers** tab once the import is complete.
</Callout>

17
apps/docs/pages/index.mdx Normal file
View File

@@ -0,0 +1,17 @@
---
title: Home
---
import Bleed from "nextra-theme-docs/bleed";
# Cal.com Documentation
Welcome to our product documentation, where you can explore advice and explanations for all of our features, as well as discover new tips and tricks to get the most out of your subscription.
This is also the home of our design system documentation and developer docs.
If you don't already know what Cal.com is about, please head over to [our website](https://cal.com), where you can learn more about the product before venturing into the documentation.
Want to help make these docs even better? This site is fully open source, and the source code is available on [GitHub](https://github.com/calcom/docs). You can also click the edit button at the bottom of any page to start editing the source code and start a pull request.
<Bleed>![Telemedicine Example](https://cal.com/telemedicine-example.svg)</Bleed>

View File

@@ -0,0 +1,40 @@
---
title: Google
---
# Google Calendar
The Google Calendar integration checks for availability in your Google Calendars and creates bookings for you.
## Removing Permissions for Cal to access your Google Account
1. Go to your [Google Account](https://myaccount.google.com/).
2. On the left, click Data & privacy.
3. Scroll to "Data from apps and services you use."
4. Under "Download or delete your data," click Delete a Google service. You may need to sign in again.
5. Next to the product you want to remove, click Delete.
6. Follow the steps on the screen.
To remove a product from your account that isn't listed in your Google Account, visit [Google Support](https://support.google.com) for more info on a specific product.
## Obtaining the Google API Credentials
1. Open [Google API Console](https://console.cloud.google.com/apis/dashboard). If you don't have a project in your Google Cloud subscription, you'll need to create one before proceeding further. Under Dashboard pane, select Enable APIS and Services.
2. In the search box, type calendar and select the Google Calendar API search result.
3. Enable the selected API.
4. Next, go to the [OAuth consent screen](https://console.cloud.google.com/apis/credentials/consent) from the side pane. Select the app type (Internal or External) and enter the basic app details on the first page.
5. In the second page on Scopes, select Add or Remove Scopes. Search for Calendar.event and select the scope with scope value `.../auth/calendar.events`, `.../auth/calendar.readonly`, `.../auth/calendar` and select Update.
6. In the third page (Test Users), add the Google account(s) you'll using. Make sure the details are correct on the last page of the wizard and your consent screen will be configured.
7. Now select [Credentials](https://console.cloud.google.com/apis/credentials) from the side pane and then select Create Credentials. Select the OAuth Client ID option.
8. Select Web Application as the Application Type.
9. Under Authorized redirect URI's, select Add URI and then add the URI `<CALENDSO URL>/api/integrations/googlecalendar/callback` replacing CALENDSO URL with the URI at which your application runs.
10. The key will be created and you will be redirected back to the Credentials page. Select the newly generated client ID under OAuth 2.0 Client IDs.
11. Select Download JSON. Copy the contents of this file and paste the entire JSON string in the .env file as the value for GOOGLE_API_CREDENTIALS key.
## Where to find the Google Meet integration?
Google Meet is a part of the Google Calendar integration and it should be available once you've added your Google Calendar. Just select Google Meet as location for your Event Type:
1. Go to your `Event Types`.
2. Click on the `Location` drop-down menu.
3. Select Google Meet as the location of your meeting.
Once your Event Type slot is booked, it will automatically generate the Google Meet link for the meeting.

View File

@@ -0,0 +1,21 @@
---
title: Introduction
---
# Integrations
## Connecting new calendars
1. Go to the [Cal App Store](https://app.cal.com/integrations).
2. Located at the top right of the screen, press the button saying '+ Connect A New App'
3. Choose the account your calendar is connected too by clicking 'Add'. (e.g. Google, Office 365, Zoom)
4. You will be redirected to the log in page of the chosen account.
5. Allow Cal access to view and edit your calendars.
6. You will be sent back to the [Cal App Store](https://app.cal.com/integrations). From here you will now be able to see your connected calendar!
## How to choose the primary Calendar?
If you have two or more integrated calendars and you want your events to show in only one, you can define a primary calendar like this:
1. Go to your [Integrations](https://app.cal.com/integrations) page.
2. Next to your `Calendars` you will see a dropdown that says `Create events on:`.
3. Select your primary calendar.

View File

@@ -0,0 +1,9 @@
{
"introduction": "Introduction",
"google": "Google",
"microsoft": "Microsoft",
"zoom": "Zoom",
"stripe": "Stripe",
"zapier": "Zapier"
}

View File

@@ -0,0 +1,24 @@
---
title: Microsoft
---
# Outlook/Microsoft 365
The Outlook integration enables you to use your outlook.com or Microsoft 365 account to use for conflict checking and event bookings.
## Obtaining Microsoft Graph Client ID and Secret
1. Open [Azure App Registration](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps) and select New registration
2. Name your application
3. Set **Who can use this application or access this API?** to **Accounts in any organizational directory (Any Azure AD directory - Multitenant)**
4. Set the **Web** redirect URI to `<CALENDSO URL>/api/integrations/office365calendar/callback` replacing CALENDSO URL with the URI at which your application runs.
5. Use **Application (client) ID** as the **MS_GRAPH_CLIENT_ID** attribute value in .env
6. Click **Certificates & secrets** create a new client secret and use the value as the **MS_GRAPH_CLIENT_SECRET** attribute
## Removing Permissions for Cal to access your Microsoft Workplace Account
Hover over Cal.com in the my apps portal, then select `manage your application`.
The top part of permissions window shows what you personally consented to. Examples of apps permissions include the ability to access your calendar, contacts, or camera.
You can revoke any of the permissions you consented to by selecting `Revoke Permissions`, however removing a permission may break some of the apps functionality. If you have problems after you remove permissions or accounts, contact your organization's Helpdesk for additional assistance.
If you require more help, head over the Microsoft Documentation Page about [Managing Applications](https://docs.microsoft.com/en-us/azure/active-directory/user-help/my-applications-portal-permissions-saved-accounts)

View File

@@ -0,0 +1,23 @@
---
title: Stripe
---
# Stripe Payments
The Stripe integration allows users to add payments to their bookings.
## Adding the stripe integration
1. Go to the [Cal App Store](https://app.cal.com/integrations).
2. Located near the top of this page will be the integration 'Stripe' and located to the right will be a button called 'Connect', press this.
3. You will be redirected to Stripe requesting for Cal.com to be authorized access. Press 'Accept'.
This stripe integration has now successfully been added.
## Removing the stripe integration
1. Go to the [Cal App Store](https://app.cal.com/integrations).
2. Located near the top of this page will be the integration 'Stripe' and located to the right will be a button called 'Disconnect', press this.
3. A confirmation pop up box will appear, to confirm press the button saying 'Yes, disconnect integration'.
This stripe integration has now successfully been disconnected.

View File

@@ -0,0 +1,7 @@
---
title: Zapier
---
## Do you have a Zapier integration?
We are currently working on it, but it isnt live just yet. Until then, you can use our Webhooks integration and use Zapier's “Webhooks by Zapier”.

View File

@@ -0,0 +1,46 @@
---
title: Zoom
sidebar_position: 3
---
# Zoom
The Zoom integration automatically creates Zoom meetings for your bookings.
## Connecting your Zoom account
1. Go to the App Store page, and click the 'Add new integration' button.
2. Next to Zoom, go ahead and click the 'Add' button.
3. You will now be taken to Zoom to sign into your account and authorize Cal.
## Disconnecting your Zoom account
1. Go to the App Store page, and click on your Zoom integration in the list.
2. On the right hand side, click the Delete App button.
This will remove the integration from Cal. Cal will not perform any actions on your account once the integration is removed. However, if you want to revoke Cal's permissions from your Zoom account, perform the following steps:
1. Log into your Zoom account and navigate to the App Marketplace
2. Click Manage > Installed Apps or search for the Cal app
3. Click on the Cal app
4. Click Uninstall
## How we interact with your Zoom account
We only need the ability to create meetings, so when somebody books an event with you, Cal can communicate with Zoom and create the corresponding meeting.
## Setting up Zoom on your self-hosted instance
1. Open [Zoom Marketplace](https://marketplace.zoom.us/) and sign in with your Zoom account.
2. On the upper right, click "Develop" => "Build App".
3. On "OAuth", select "Create".
4. Name your App.
5. Choose "User-managed app" as the app type.
6. De-select the option to publish the app on the Zoom App Marketplace.
7. Click "Create".
8. Now copy the Client ID and Client Secret to your .env file into the `ZOOM_CLIENT_ID` and `ZOOM_CLIENT_SECRET` fields.
9. Set the Redirect URL for OAuth `<CALENDSO URL>/api/integrations/zoomvideo/callback` replacing CALENDSO URL with the URI at which your application runs.
10. Also add the redirect URL given above as an allowlist URL and enable "Subdomain check". Make sure it says "saved" below the form.
11. You don't need to provide basic information about your app. Instead click at "Scopes" and then at "+ Add Scopes". On the left, click the category "Meeting" and check the scope `meeting:write`.
12. Click "Done".
13. You're good to go. Now you can easily add your Zoom integration in the Cal settings.

16
apps/docs/pages/meta.json Normal file
View File

@@ -0,0 +1,16 @@
{
"index": "Home",
"self-hosting": "Self-hosting",
"availability": "Availability",
"bookings": "Bookings",
"event-types": "Event Types",
"teams": "Teams",
"integrations": "Integrations",
"webhooks": "Webhooks",
"settings": "Settings",
"import": "Import",
"billing": "Billing",
"developer": "Developer",
"contributing": "Contributing",
"faq": "FAQs"
}

View File

@@ -0,0 +1,49 @@
---
title: Docker
---
# Docker
The Docker configuration for Cal is an effort powered by people within the community. Cal does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
The Docker configuration can be found [in our docker repository](https://github.com/calcom/docker).
## Requirements
Make sure you have `docker` & `docker-compose` installed on the server / system.
## Getting Started
### Option #1: Docker Hub
```bash
docker pull calendso/calendso
```
or
### Option #2: Cloning
1. Clone calendso-docker
```bash
git clone git@github.com:calendso/calendso-docker.git --recursive
```
2. Update `.env` if needed
3. Build and start calendso
```bash
docker-compose up --build
```
4. Start prisma studio
```bash
docker-compose exec calendso -- npx prisma studio
```
5. Open a browser to [port 5555](http://localhost:5555) on your localhost to look at or modify the database content.
6. Click on the `User` model to add a new user record.
7. Fill out the fields (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
8. Open a browser to [port 3000](http://localhost:3000) on your localhost and login with your just created, first user.

View File

@@ -0,0 +1,129 @@
---
title: Installation
---
# Installation
To get a local copy up and running, please follow these simple steps.
## Prerequisites
Here is what you need to be able to run Cal.
- Node.js
- PostgreSQL
- Yarn _(recommended)_
> If you want to enable any of the available integrations, you may want to obtain additional credentials for each one. More details on this can be found below under the integrations category.
## Setup
1. Clone the repo
```sh
git clone https://github.com/calcom/cal.com.git
```
1. Go to the project folder
```sh
cd cal.com
```
1. Copy `.env.example` to `.env`
```sh
cp apps/web/.env.example apps/web/.env
cp packages/prisma/.env.example packages/prisma/.env
```
1. Install packages with yarn
```sh
yarn
```
### Quick start with `yarn dx`
> - **Requires Docker and Docker Compose to be installed**
> - Will start a local Postgres instance with a few test users - the credentials will be logged in the console
```sh
yarn dx
```
### Manual setup
1. Configure database in the `packages/prisma/.env` file. Replace `<user>`, `<pass>`, `<db-host>`, `<db-port>` with their applicable values
```text
DATABASE_URL='postgresql://<user>:<pass>@<db-host>:<db-port>'
```
<details>
<summary>
If you don't know how to configure the DATABASE_URL, then follow the steps here to create a quick DB
using Heroku
</summary>
1. Create a free account with [Heroku](https://www.heroku.com/).
2. Create a new app.
<img
width="306"
alt="Create an App"
src="https://user-images.githubusercontent.com/16905768/115322780-b3d58c00-a17e-11eb-8a52-b758fb0ea942.png"
/>
3. In your new app, go to `Overview` and next to `Installed add-ons`, click `Configure Add-ons`. We need this to set up our database.
![image](https://user-images.githubusercontent.com/16905768/115323232-a53ba480-a17f-11eb-98db-58e2f8c52426.png)
4. Once you clicked on `Configure Add-ons`, click on `Find more add-ons` and search for `postgres`. One of the options will be `Heroku Postgres` - click on that option.
![image](https://user-images.githubusercontent.com/16905768/115323126-5beb5500-a17f-11eb-8030-7380310807a9.png)
5. Once the pop-up appears, click `Submit Order Form` - plan name should be `Hobby Dev - Free`.
<img
width="512"
alt="Submit Order Form"
src="https://user-images.githubusercontent.com/16905768/115323265-b4baed80-a17f-11eb-99f0-d67f019aa6df.png"
/>
6. Once you completed the above steps, click on your newly created `Heroku Postgres` and go to its `Settings`.
![image](https://user-images.githubusercontent.com/16905768/115323367-e92ea980-a17f-11eb-9ff4-dec95f2ec349.png)
7. In `Settings`, copy your URI to your Cal.com .env file and replace the `postgresql://<user>:<pass>@<db-host>:<db-port>` with it.
![image](https://user-images.githubusercontent.com/16905768/115323556-4591c900-a180-11eb-9808-2f55d2aa3995.png)
![image](https://user-images.githubusercontent.com/16905768/115323697-7a9e1b80-a180-11eb-9f08-a742b1037f90.png)
8. To view your DB, once you add new data in Prisma, you can use [Heroku Data Explorer](https://heroku-data-explorer.herokuapp.com/).
</details>
1. Set a 32 character random string in your `apps/web/.env` file for the `CALENDSO_ENCRYPTION_KEY` (You can use a command like `openssl rand -base64 24` to generate one).
1. Set up the database using the Prisma schema (found in `packages/prisma/schema.prisma`)
```sh
yarn workspace @calcom/prisma db-deploy
```
1. Run (in development mode)
```sh
yarn dev
```
### Setting up your first user
1. Open [Prisma Studio](https://www.prisma.io/studio) to look at or modify the database content:
```sh
yarn db-studio
```
1. Click on the `User` model to add a new user record.
1. Fill out the fields `email`, `username`, `password`, and set `metadata` to empty `{}` (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
> New users are set on a `TRIAL` plan by default. You might want to adjust this behavior to your needs in the `prisma/schema.prisma` file.
1. Open a browser to [port 3000](http://localhost:3000) and login with your just created, first user.

View File

@@ -0,0 +1,6 @@
{
"install": "Installation",
"upgrade": "Upgrade",
"docker": "Docker",
"vercel": "Vercel"
}

View File

@@ -0,0 +1,47 @@
---
title: Upgrade
---
# Upgrading
**Warning**: When performing database migrations, you may lose data if the migration is not done properly.
1. Pull the current version:
```sh
git pull
```
2. Apply database migrations by running <b>one of</b> the following commands:
In a development environment, run:
```sh
yarn workspace @calcom/prisma db-migrate
```
(this can clear your development database in some cases)
In a production environment, run:
```sh
yarn workspace @calcom/prisma db-deploy
```
3. Check the `.env.example` and compare it to your current `.env` file. In case there are any fields not present
in your current `.env`, add them there.
For the current version, especially check if the variable `BASE_URL` is present and properly set in your environment, for example:
```text
BASE_URL='https://yourdomain.com'
```
4. Start the server. In a development environment, just do:
```sh
yarn dev
```
For a production build, run for example:
```sh
yarn build
yarn start
```
5. Enjoy the new version.

View File

@@ -0,0 +1,50 @@
---
title: Vercel
---
# Vercel
## Requirements
You need a PostgresDB database hosted somewhere. [Heroku](https://www.heroku.com) and [Supabase](https://supabase.com/) offer great free options.
## Getting Started
### Local settings
1. Fork and clone the repository
```bash
git clone https://github.com/<your-fork>/cal.com.git
```
2. Copy the `.env.example` file in `apps/web`, rename it to `.env` and fill it with your settings ([See manual setup](https://github.com/calcom/cal.com#manual) and [Obtaining the Google API Credentials](https://github.com/calcom/cal.com#obtaining-the-google-api-credentials))
3. Install packages with `yarn`
```bash
yarn install
```
4. Set up the database using the Prisma schema (found in `packages/prisma/schema.prisma`)
```sh
yarn workspace @calcom/prisma db-deploy
```
5. Open [Prisma Studio](https://www.prisma.io/studio) to look at or modify the database content:
```
yarn db-studio
```
6. Click on the `User` model to add a new user record.
7. Fill out the fields (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
8. Open a browser to [port 3000](http://localhost:3000) on your localhost and login with your just created, first user.
### Deployment
1. Create a new project on Vercel
1. Import from your forked repository
1. Set the Environment Variables
1. Set the root directory to `apps/web`
1. Override the build command to `cd ../.. && yarn build`
1. Hit Deploy

View File

@@ -0,0 +1,56 @@
---
title: Settings
---
# Settings
## Setting up or making changes to your Profile
1. Go to your [Profile Settings](https://app.cal.com/settings/profile).
2. From this page you are able to edit the following:
- Your URL Username
- Your Display Name
- Your About Information
- Change your Profile Picture
- Your Local Time Zone
- Your Chosen 'First Day Of The Week'
- Light or Dark Mode for your Booking Page
- Enabling or Disabling cal.com Branding on your Booking Page
3. Once you have completed all your changes, press that 'save' button located at the bottom right of your page.
## Reset your password
1. Go to [your account security settings](https://app.cal.com/settings/security).
2. Located at the top of your screen, you will see two boxes.
3. Enter your Old Password and New Password.
4. Click the button 'Save' located to the bottom right of your new password.
5. You have now successfully changed your password!
## Change your email
Go to [Profile Settings](https://app.cal.com/settings/profile). There, you will see the email associated with your account which you can then update. Youd just need to log out and back in to see the change take effect.
## Enable 2FA
1. Go to [Your Account Security Settings](https://app.cal.com/settings/security).
2. Located at the bottom of your screen, click on the tab labeled 'Enable Two-Factor Authentication'.
3. Enter your Password.
4. In your authenticator app, scan the QR Code presented on your screen.
5. Once Scanned, press 'Next' and then enter the code presented within your Authentication App
6. Press 'Enabled'
You have now successfully enabled Two-Factor Authentication
## Disable 2FA
1. Go to [Your Account Security Settings](https://app.cal.com/settings/security).
2. Located at the bottom of your screen, click on the tab labeled 'Disable Two-Factor Authentication'.
3. Enter your Password.
You have now successfully disabled Two-Factor Authentication
## How to delete my account
You can delete your account from within the [Settings](https://app.cal.com/settings/profile) option. Just scroll all the way down and click on `Delete Account`.
## How to change the language
Go to your [Profile Settings](https://app.cal.com/settings/profile). Under `Language` you will see the dropdown menu and you can use it to select your desired language.

15
apps/docs/pages/style.css Normal file
View File

@@ -0,0 +1,15 @@
@font-face {
font-family: 'Cal Sans';
src: url("https://cal.com/cal.ttf");
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Cal Sans';
font-weight: normal;
letter-spacing: normal;
}

57
apps/docs/pages/teams.mdx Normal file
View File

@@ -0,0 +1,57 @@
---
title: Teams
---
# Teams
## How do I create a new team?
1. Go to [Your Teams Settings](https://app.cal.com/settings/teams).
2. Press the button displayed on your screen called '+ New Team'
3. Enter the name you wish to call your team.
4. After entering the name press the 'Create Team' button located just under your new team name.
5. You have now created your new team.
Creating a team will allow you to create new event types for the team, invite team members and much more!
## How do I change my teams URL?
1. Go to [Your Teams Settings](https://app.cal.com/settings/teams) and select the team you wish to edit.
2. Located at the top of your teams settings will be a team-url bar, from here you can input your requested teams url.
3. Once complete make sure you press 'save' at the bottom of the page.
## How do I change my teams name?
1. Go to [Your Teams Settings](https://app.cal.com/settings/teams) and select the team you wish to edit.
2. Located in the 2nd row of your teams settings will be a Team Name bar, from here you can input your requested team name.
3. Once complete make sure you press 'save' at the bottom of the page.
## How do I add and remove a description of my team?
1. Go to [Your Teams Settings](https://app.cal.com/settings/teams) and select the team you wish to edit.
2. Located below your team name entry box is a large text box labeled 'About',
## How do I upload my team logo?
1. Go to [Your Teams Settings](https://app.cal.com/settings/teams) and select the team you wish to edit.
2. Located under your teams subscription will be a box that says 'Upload a logo', press this box.
3. Press 'choose a file' and locate a file from your machine you wish to use as your team logo.
4. Once complete make sure you press 'save' at the bottom of the page.
## How do I manage team members?
1. Go to [Your Teams Settings](https://app.cal.com/settings/teams) and select the team you wish to edit.
2. Located at the bottom of your page is your team members, from here you can choose to add or remove team members and even change their role which could be Member, Admin or Owner.
## How do I delete my team I created?
1. Go to [Your Teams Settings](https://app.cal.com/settings/teams).
2. From here you will be able to see a list of teams you have created or apart of, located to the right of the team you wish to delete you can find three dots (...)
3. Press the 3 dots (...) then 'Disband Team'
4. This will brin gup a prompt confirming if you wish to disband your team, if your are sure you can press the button labeled 'Yes, disband team'
Your team has now successfully been deleted.
## Where can I find my team's Event Types?
Once you open `Event Types` on your dashboard, you will find your team's Event Types below your individual ones.

View File

@@ -0,0 +1,98 @@
---
title: Webhooks
---
# Webhooks
## Create a new Webhook
1. Go to [Your Integrations](https://app.cal.com/integrations).
2. Scrolling down to the bottom of the page you will see a button called New Webhook. Press this button to open up the box which will ask for details on creating the new webhooks.
3. Select whatever event this triggers, this may be Create, Cancelled or Reschedule.
4. Once this is completed, insert the Subscriber URL then click 'Save' located at the bottom right of the box.
## Edit an existing Webhook
1. Go to [Your Integrations](https://app.cal.com/integrations).
2. Scrolling down to the bottom of the page you will see an icon to the right of your webhook, this will be labeled edit webhook.
3. Press the button and from here you can change any of the webhook settings. This could be changing the event that is triggered and this may be Create, Cancelled or Reschedule. Or you can change the Subscriber URL.
## Delete an existing Webhook
1. Go to [Your Integrations](https://app.cal.com/integrations).
2. Scrolling down to the bottom of the page you will see an icon to the right of your webhook, this will be labeled delete webhook.
3. Press the button and from here your webhook will no longer work and be deleted.
## Webhook metadata
Metadata is a way to pass extra information to Cal.com about a booking that is returned through a webhook.
### Example
The best way to explain this is with an example. Let's say you're a bank, and people register an account on your website, but you want them to book an onboarding call with your team to get set up. You could send them to your Cal.com booking link as part of your onboarding process, but when the webhook is returned, it may be difficult to match up which user booked a meeting with the user's account in your own database. Hence, you can pass a `user_id` value for instance as a URL parameter, which makes no difference to the booking process, but when the webhook is returned, you will receive the metadata as part of the webhook payload.
Metadata is passed as a URL parameter on top of your booking link and follows the following syntax:
```text
metadata[key_name]=value
```
For example, if your booking link is `cal.com/rick/quick-chat`, you can pass a user ID of 123 like so:
```text
cal.com/rick/quick-chat?metadata[user_id]=123
```
As a result, the webhook will be returned in this format:
```text
\{ <other event details>, metadata: \{ user_id: 123 \} \}
```
## Custom Webhooks template variable list
Customizable webhooks are a great way reduce the development effort and in many cases remove the need for a developer to build an additional integration service. Using a custom template you can easily decide what data you receive in your webhook endpoint, manage the payload and setup related workflows accordingly. Heres a breakdown of the payload that you would receive via an incoming webhook.
### Webhook structure
| Variable | Type | Description |
| ------------------- | -------- | -------------------------------------------------------------------------------------- |
| triggerEvent | String | The name of the trigger event [BOOKING_CREATED, BOOKING_RESHEDULED, BOOKING_CANCELLED] |
| createdAt | String | The time of the webhook trigger |
| type | String | The event-type slug |
| title | String | The event-type name |
| startTime | String | The event's start time |
| endTime | String | The event's end time |
| description? | String | The event's description as described in the event type |
| location? | String | Location of the event |
| organizer | Person | The organizer of the event |
| attendees | Person[] | The event booker & any guests |
| uid? | String | The UID of the booking |
| resheduleUid? | String | The UID for the rescheduling |
| cancellationReason? | String | Reason for cancellation |
| rejectionReason? | String | Reason for rejection |
| team?.name | String | Name of the team booked |
| team?.members | String[] | Members of the team booked |
### Person structure
| Variable | Type | Description |
| --------------- | ------ | --------------------------------------------------------------------- |
| name | String | Name of the individual |
| email | String | Email of the individual |
| timeZone | String | Timezone of the individual ("America/New_York", "Asia/Kolkata", etc.) |
| language.locale | String | Locale of the individual ("en", "fr", etc.) |
### Example usage of variables for custom template:
```sh
\{
"content": "A new event has been scheduled",
"type": "\{\{type\}\}",
"name": "\{\{title\}\}",
"organizer": "\{\{organizer.name\}\}",
"booker": "\{\{attendees.0.name\}\}"
\}
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#292929</TileColor>
</tile>
</msapplication>
</browserconfig>

BIN
apps/docs/public/cal.ttf Normal file

Binary file not shown.

BIN
apps/docs/public/demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="700.000000pt" height="700.000000pt" viewBox="0 0 700.000000 700.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.14, written by Peter Selinger 2001-2017
</metadata>
<g transform="translate(0.000000,700.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M5288 4751 c-3 -14 -2 -2406 1 -2451 1 -14 30 -16 224 -16 l224 0 -1
1241 -1 1240 -222 1 c-193 0 -222 -2 -225 -15z"/>
<path d="M2099 4706 c-2 -2 -35 -7 -72 -11 -38 -3 -114 -20 -170 -36 -519
-153 -856 -609 -860 -1164 -2 -237 33 -398 128 -587 175 -349 490 -583 880
-652 81 -15 385 -15 450 -1 257 55 387 120 533 266 45 45 82 85 82 89 0 4 -30
35 -67 67 -185 164 -254 223 -261 223 -4 -1 -32 -23 -62 -51 -59 -55 -200
-128 -285 -149 -75 -19 -241 -20 -331 -4 -260 49 -479 262 -548 534 -78 306
-4 638 184 829 132 134 286 199 486 205 199 7 389 -62 515 -187 l35 -36 30 26
c16 13 49 41 73 61 238 197 232 191 216 215 -24 36 -156 160 -209 195 -86 58
-227 121 -306 136 -14 3 -50 10 -80 16 -54 11 -352 25 -361 16z"/>
<path d="M3870 4079 c-368 -44 -652 -323 -745 -729 -15 -67 -16 -327 -1 -380
4 -14 9 -36 12 -49 12 -57 48 -151 86 -221 155 -291 433 -463 748 -463 233 -1
402 79 505 236 20 31 38 57 39 57 1 0 2 -54 1 -120 -1 -114 0 -121 20 -125 11
-3 112 -4 225 -2 l205 2 1 883 0 882 -226 0 -226 0 1 -130 c1 -71 0 -130 -1
-130 -1 0 -13 17 -25 38 -70 114 -193 201 -334 237 -69 17 -204 24 -285 14z
m305 -430 c295 -79 439 -430 299 -726 -93 -196 -324 -307 -534 -257 -19 4 -37
8 -40 9 -18 2 -81 33 -115 56 -143 97 -216 243 -216 434 -1 298 218 515 501
498 36 -2 83 -9 105 -14z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1,19 @@
{
"name": "Cal.com",
"short_name": "Cal.com",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#292929",
"background_color": "#292929",
"display": "standalone"
}

45
apps/docs/theme.config.js Normal file
View File

@@ -0,0 +1,45 @@
const themeConfig = {
github: "https://github.com/calcom/cal.com",
docsRepositoryBase: "https://github.com/calcom/cal.com/blob/main/apps/docs/pages",
titleSuffix: " | Cal.com",
logo: <h4 className="m-0">Cal.com</h4>,
head: (
<>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="theme-color" content="#ffffff" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<meta
name="description"
content="Explore advice and explanations for all of our features, and discover new tips and tricks to get the most out of your subscription."
/>
<meta
name="og:description"
content="Explore advice and explanations for all of our features, and discover new tips and tricks to get the most out of your subscription."
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://cal.com/og-image.png" />
<meta name="twitter:site:domain" content="docs.cal.com" />
<meta name="twitter:url" content="https://docs.cal.com" />
<meta name="og:title" content="Cal.com Documentation" />
<meta name="og:image" content="https://cal.com/og-image.png" />
<meta name="apple-mobile-web-app-title" content="Cal.com Docs" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#000000" />
<meta name="msapplication-TileColor" content="#ff0000" />
<meta name="theme-color" content="#ffffff" />
</>
),
search: true,
prevLinks: true,
nextLinks: true,
footer: true,
footerEditLink: "Edit this page on GitHub",
footerText: <>© {new Date().getFullYear()} Cal.com, Inc. All rights reserved.</>,
};
export default themeConfig;

5
apps/docs/tsconfig.json Normal file
View File

@@ -0,0 +1,5 @@
{
"extends": "@calcom/tsconfig/nextjs.json",
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}

3623
apps/docs/yarn.lock Normal file

File diff suppressed because it is too large Load Diff

104
apps/web/.env.example Normal file
View File

@@ -0,0 +1,104 @@
# Set this value to 'agree' to accept our license:
# LICENSE: https://github.com/calendso/calendso/blob/main/LICENSE
#
# Summary of terms:
# - The codebase has to stay open source, whether it was modified or not
# - You can not repackage or sell the codebase
# - Acquire a commercial license to remove these terms by visiting: cal.com/sales
NEXT_PUBLIC_LICENSE_CONSENT=''
# ⚠️ ⚠️ ⚠️ DATABASE_URL got moved to `packages/prisma/.env.example` ⚠️ ⚠️ ⚠️
# Needed to enable Google Calendar integration and Login with Google
# @see https://github.com/calendso/calendso#obtaining-the-google-api-credentials
GOOGLE_API_CREDENTIALS='{}'
# To enable Login with Google you need to:
# 1. Set `GOOGLE_API_CREDENTIALS` above
# 2. Set `GOOGLE_LOGIN_ENABLED` to `true`
# When self-hosting please ensure you configure the Google integration as an Internal app so no one else can login to your instance
# @see https://support.google.com/cloud/answer/6158849#public-and-internal&zippy=%2Cpublic-and-internal-applications
GOOGLE_LOGIN_ENABLED=false
BASE_URL='http://localhost:3000'
NEXT_PUBLIC_APP_URL='http://localhost:3000'
JWT_SECRET='secret'
# This is used so we can bypass emails in auth flows for E2E testing
PLAYWRIGHT_SECRET=
# To enable SAML login, set both these variables
# @see https://github.com/calendso/calendso/tree/main/ee#setting-up-saml-login
# SAML_DATABASE_URL="postgresql://postgres:@localhost:5450/cal-saml"
# SAML_ADMINS='pro@example.com'
# If you use Heroku to deploy Postgres (or use self-signed certs for Postgres) then uncomment the follow line.
# @see https://devcenter.heroku.com/articles/connecting-heroku-postgres#connecting-in-node-js
##PGSSLMODE='no-verify'
# @see: https://github.com/calendso/calendso/issues/263
# Required for Vercel hosting - set NEXTAUTH_URL to equal your BASE_URL
# NEXTAUTH_URL='http://localhost:3000'
# Remove this var if you don't want Cal to collect anonymous usage
NEXT_PUBLIC_TELEMETRY_KEY=js.2pvs2bbpqq1zxna97wcml.oi2jzirnbj1ev4tc57c5r
# Used for the Office 365 / Outlook.com Calendar integration
MS_GRAPH_CLIENT_ID=
MS_GRAPH_CLIENT_SECRET=
# Used for the Zoom integration
ZOOM_CLIENT_ID=
ZOOM_CLIENT_SECRET=
#Used for the Daily integration
DAILY_API_KEY=
DAILY_SCALE_PLAN=''
# Used for the Tandem integration -- contact support@tandem.chat to for API access.
TANDEM_CLIENT_ID=""
TANDEM_CLIENT_SECRET=""
TANDEM_BASE_URL="https://tandem.chat"
# E-mail settings
# Cal uses nodemailer (@see https://nodemailer.com/about/) to provide email sending. As such we are trying to
# allow access to the nodemailer transports from the .env file. E-mail templates are accessible within lib/emails/
# Configures the global From: header whilst sending emails.
EMAIL_FROM='notifications@yourselfhostedcal.com'
# Configure SMTP settings (@see https://nodemailer.com/smtp/).
# Note: The below configuration for Office 365 has been verified to work.
EMAIL_SERVER_HOST='smtp.office365.com'
EMAIL_SERVER_PORT=587
EMAIL_SERVER_USER='<office365_emailAddress>'
# Keep in mind that if you have 2FA enabled, you will need to provision an App Password.
EMAIL_SERVER_PASSWORD='<office365_password>'
# The following configuration for Gmail has been verified to work.
# EMAIL_SERVER_HOST='smtp.gmail.com'
# EMAIL_SERVER_PORT=465
# EMAIL_SERVER_USER='<gmail_emailAddress>'
## You will need to provision an App Password.
## @see https://support.google.com/accounts/answer/185833
# EMAIL_SERVER_PASSWORD='<gmail_app_password>'
# ApiKey for cronjobs
CRON_API_KEY='0cc0e6c35519bba620c9360cfe3e68d0'
# Stripe Config
NEXT_PUBLIC_STRIPE_PUBLIC_KEY= # pk_test_...
STRIPE_PRIVATE_KEY= # sk_test_...
STRIPE_CLIENT_ID= # ca_...
STRIPE_WEBHOOK_SECRET= # whsec_...
PAYMENT_FEE_PERCENTAGE=0.005 # Take 0.5% commission
PAYMENT_FEE_FIXED=10 # Take 10 additional cents commission
# Application Key for symmetric encryption and decryption
# must be 32 bytes for AES256 encryption algorithm
CALENDSO_ENCRYPTION_KEY=
# Intercom Config
NEXT_PUBLIC_INTERCOM_APP_ID=
# Zendesk Config
NEXT_PUBLIC_ZENDESK_KEY=

2
apps/web/.eslintignore Normal file
View File

@@ -0,0 +1,2 @@
node_modules
prisma/zod

63
apps/web/.gitignore vendored Normal file
View File

@@ -0,0 +1,63 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# .env file
.env
# dependencies
/node_modules
/.pnp
.pnp.js
/.yarn
# testing
/coverage
.nyc_output
playwright/videos
playwright/screenshots
playwright/artifacts
playwright/results
playwright/reports/*
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
.env.*
!.env.example
# vercel
.vercel
# Webstorm
.idea
### VisualStudioCode template
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
# Local History for Visual Studio Code
.history/
# Typescript
tsconfig.tsbuildinfo

Some files were not shown because too many files have changed in this diff Show More