Omar López
2bdf65ce8c
fix: billing webhook secret ( #17005 )
...
* fix: billing webhook secret
* Update __handler.test.ts
2024-10-08 21:26:39 +00:00
+12
a4a3eb5ea9
refactor: Billing service ( #15366 )
...
* WIP: Billing service
* WIP
* Update __handler.ts
* Update index.ts
* WIP
* WIP
Signed-off-by: zomars <[email protected] >
* WIP
Signed-off-by: zomars <[email protected] >
* Update delete.handler.ts
* Update delete.handler.ts
* Update internal-team-billing.ts
* WIP
* Type fixes
Signed-off-by: zomars <[email protected] >
* WIP
Signed-off-by: zomars <[email protected] >
* Discard changes to apps/api/v2/src/ee/event-types/event-types_2024_04_15/controllers/event-types.controller.ts
* Discard changes to packages/app-store/skype/config.json
* style: update text area (#15934 )
* chore: update text-editor input
* chore: update text-editor input
* final update
* Update Editor.tsx
---------
Co-authored-by: unknown <[email protected] >
Co-authored-by: Anik Dhabal Babu <[email protected] >
* fix : #15697 Assignment warning modal poping up ,even when hosts are added . (#15699 )
* removed reduntand check on assignedusers
* update for managed eventtype
* formatted
* comments
* Updated comments
* extracted checkForEmptyAssignment and added tests
* updated comments
* updated to show dialog also when not yet saved
* update translations
* updated comments
* updated translation
* updated types
* chore: update naming and comments
* Delete apps/web/lib/checkForEmptyAssignment.ts
deleted since file was renamed
* Delete apps/web/test/lib/checkForEmptyAssignment.test.ts
deleted as the file is renamed to be more descriptive
* update to do teamcheck before
* chore: revert name to CheckForEmptyAssignment
* updated check conditions
* updated useEffect dependencies
---------
Co-authored-by: Anik Dhabal Babu <[email protected] >
* fix: getting an error when a team member tries to leave (#15925 )
a team
Co-authored-by: Somay Chauhan <[email protected] >
Co-authored-by: Amit Sharma <[email protected] >
* feat: add transitions to more components (#15916 )
* add transitions to more components
* chore: Remove duplicate class
* fix: Change minimum number of teams required for org self-serve (#15955 )
* fix: Change minimum number of teams required for org self-serve
Signed-off-by: Souptik Datta <[email protected] >
* refactor: Use a new constant for displaying org helper text dialogue
Signed-off-by: Souptik Datta <[email protected] >
* Update packages/lib/constants.ts
* Update turbo.json
---------
Signed-off-by: Souptik Datta <[email protected] >
Co-authored-by: Keith Williams <[email protected] >
* feat: pwa ready and add shortcut for quick access (#15957 )
* chore: Update site.webmanifest with additional display properties
* chore: Update site.webmanifest with additional display properties
* Update apps/web/public/site.webmanifest
---------
Co-authored-by: Keith Williams <[email protected] >
* i18n: update translations for "by proceeding, ..." (#15921 )
* feat: Add title attribute to iframe in embed.ts (#15944 )
* feat: Add title attribute to iframe in embed.ts
* Update packages/embeds/embed-core/src/embed.ts
---------
Co-authored-by: Hariom Balhara <[email protected] >
* fix: Assignment reminder modal appears when deleting a team event type (#15544 )
* fix: Assignment reminder modal appears when deleting a team event type
* update
* Update EventTypeSingleLayout.tsx
* Update event-types-single-view.tsx
* update
* Early return https://handbook.cal.com/engineering/best-practices/prefer-early-returns
---------
Co-authored-by: Keith Williams <[email protected] >
Co-authored-by: Hariom <[email protected] >
* fix: Add CORP and COEP headers to embedded pages (#15275 )
* Add CORP headers
* Improve test
* Add unit tests as well
---------
Co-authored-by: Keith Williams <[email protected] >
* feat: No-show bookings - do not count towards a member's round robin assignment (#15323 )
* feat: No-show bookings - do not count towards a member's round robin assignment
* filter no show organizer
* remove logs
* fix: filter bookings where host attendee is no show
* fix: use not condition for noShow
* chore: test
* add default false for noShowHost
* Revert "chore: test"
This reverts commit c914a8fc4a14ca9c7d8c4a08ff8b0f463789171c.
* chore: integration test
* fix: noShowHost not working for null
* Update packages/lib/server/getLuckyUser.ts
* chore: update test description
---------
Co-authored-by: Joe Au-Yeung <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
Co-authored-by: gh0st91848 <[email protected] >
Co-authored-by: Hariom Balhara <[email protected] >
* refactor: v1 orgs unlimited teams (#15908 )
* refactor: v1 orgs unlimited teams
* fix: response message ownerId
---------
Co-authored-by: Keith Williams <[email protected] >
* fix: refresh connect atoms on token change (#15933 )
* added dropdown
* change comment
* fix: added types
---------
Co-authored-by: Morgan <[email protected] >
Co-authored-by: Keith Williams <[email protected] >
* fix: Next.js bundle analysis (#15903 )
* fix: Next.js bundle analysis
* Added the main checkout back
* fix: type in webhook payload (#15912 )
Co-authored-by: CarinaWolli <[email protected] >
* fix: auto accept (#15975 )
* fix: auto accept
* Update packages/lib/server/repository/organization.ts
Co-authored-by: Hariom Balhara <[email protected] >
---------
Co-authored-by: Hariom Balhara <[email protected] >
* fix: Broken GitHub workflows (#15979 )
* test: Delete credential endpoint (#15322 )
* Init
* Add mock trpc context
* Intro mockDatabaseClient
* Introduce mockDatabaseClient class
* Add delete video app test
* Add calendar test
* Remove unused func from bookingScenario
* Remove console.log
* Add app repository
* Add createMany method to event type repository
* Remove instance of MockDatabaseClient from video test
* Add destination calendar repository
* Remove instances of MockDatabaseClient
* abstract logic to own handler
* Remove dev dependency
* Clean up
* Type fix
* Pull yarn.lock from main
---------
Co-authored-by: Anik Dhabal Babu <[email protected] >
* fix : #15967 Show better error when wrong variable is used in custom event name (#15974 )
* update to show exact err msg with custom event name
* updated tests for validateCustomEventName
---------
Co-authored-by: Keith Williams <[email protected] >
Co-authored-by: Anik Dhabal Babu <[email protected] >
* WIP
Signed-off-by: zomars <[email protected] >
* Update yarn.lock
* Update publish.handler.ts
* Update internal-team-billing.test.ts
* rename create to init
* remove sync services
* wip tests for delete team
* wip tets
* wip tests
* tests/internal-test
* remove return that is inaccessable
* remove team calls to use repository
* remove redudant file
* update team repo
* add stripe mocks and test
* fix constants
* tests to main stripe handler
* remove logs
* fix constants
* Update packages/features/ee/billing/api/webhook/_customer.subscription.deleted.team-plan.ts
Co-authored-by: Omar López <[email protected] >
* move workflow logic to a service
* use static method > creating new class
* fix: remove http code deep in repo + tests
* Feedback
* Update index.ts
* Type fix
* Lazy load fixes
---------
Signed-off-by: zomars <[email protected] >
Signed-off-by: Souptik Datta <[email protected] >
Co-authored-by: Rohan Advani <[email protected] >
Co-authored-by: unknown <[email protected] >
Co-authored-by: Anik Dhabal Babu <[email protected] >
Co-authored-by: Vijay <[email protected] >
Co-authored-by: Somay Chauhan <[email protected] >
Co-authored-by: Amit Sharma <[email protected] >
Co-authored-by: Hichem Fantar <[email protected] >
Co-authored-by: Souptik Datta <[email protected] >
Co-authored-by: Keith Williams <[email protected] >
Co-authored-by: Johannes Maendle <[email protected] >
Co-authored-by: Hariom Balhara <[email protected] >
Co-authored-by: Joe Au-Yeung <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
Co-authored-by: gh0st91848 <[email protected] >
Co-authored-by: Lauris Skraucis <[email protected] >
Co-authored-by: Morgan <[email protected] >
Co-authored-by: Carina Wollendorfer <[email protected] >
Co-authored-by: CarinaWolli <[email protected] >
Co-authored-by: sean-brydon <[email protected] >
Co-authored-by: sean-brydon <[email protected] >
Co-authored-by: sean <[email protected] >
2024-10-04 13:44:50 -07:00
Benny Joo
b283f1f8cd
fix: theme is not configured in app router ( #16889 )
...
* fix: theme is not configured in app router
* fix type error
* remove logs
* use testBothFutureAndLegacyRoutes
* add APP_ROUTER_SETTINGS_MY_ACCOUNT_ENABLED
2024-10-01 04:39:37 -04:00
Benny Joo
74a46e8ba3
chore: (1) settings/security - remove pages router and use app router ( #16795 )
...
* remove pages router and use app router
* add settings layout
* remove env vars
2024-09-30 23:27:58 +01:00
Udit Takkar and Syed Ali Shahbaz
ac300ff670
refactor: enable infinite scrolling for all ( #16463 )
...
* refactor: enable infinite scrolling for all
* chore: remove unused code
* fix: tests
* chore: type err
* chore: update email embed test
* chore: update tests
* chore: update tests
* chore: fix horizontal tabitem
* chore
* fix: conflicts
* chore: conflict
* fix: E2E tests
* chore: remove idle
* fix test
---------
Co-authored-by: Syed Ali Shahbaz <[email protected] >
2024-09-30 10:44:04 +01:00
Benny Joo
4921cd7ecb
add env vars ( #16791 )
2024-09-24 16:32:43 +00:00
Syed Ali Shahbaz
c4a1382982
chore: add granular logging to the logger ( #16734 )
...
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update turbo.json
* Update trpc-provider.tsx
* Update logger.ts
* update prisma index
* Update trpc.ts
* Update trpc-provider.tsx
* Update trpc.ts
* Update .env.example
* Update logger.ts
2024-09-20 09:06:37 +00:00
Benny Joo
019ef6de2a
chore: App router migration - (/bookings, /booking) Move getServerSideProps/getStaticProps to /lib ( #16458 )
...
* booking: Move getServerSideProps to /lib
* remove duplicate
* bookings: Move getStaticProps to /lib
* fix type check
* replace setHeader with a server action call in withEmbedSSR
* Add env variables for booking
2024-09-18 19:09:57 -04:00
cf16cd3ed2
feat: Implement Dub.co for conversion tracking ( #16165 )
...
* FEAT: Implement Dub.co for conversion tracking
* add link creation, @vercel/functions
* use refer.cal.com/:username instead of go.cal.com/r/:username
* sale conversion tracking
* add copy referral link
* limit to IS_CALCOM only
* Update yarn.lock
* fix DubAnalytics
* use workaround for isNewUser
* pass req to getOptions
* Update next-auth-options.ts
* fix ts errors
* only show DubAnalytics outside EU
* add Dub Analytics to /signup
* use WEBSITE_URL instead
* on-demand generate links
* add migration
* add check for existing link + change fetch method to poast
* remove refer.cal.com from PoweredByCal
* limit DubAnalytics to /signup only
* simplify generate-referral-link
* restore yarn.lock
* add yarn with dub sdk in
* add yarn with dub sdk in
* yarn
* Update yarn.lock
---------
Co-authored-by: sean <[email protected] >
Co-authored-by: Peer Richelsen <[email protected] >
2024-09-12 12:33:10 -07:00
Benny Joo and Keith Williams
9ed1624111
chore: App router migration - settings/platform/**/*, settings/organizations/new and settings/organizations/[id]/* ( #16334 )
...
* remove WizardLayoutAppDir
* refactor organizations/new and add platform/new
* refactor organizations/[id]/*
* add APP_ROUTER_SETTINGS_ORG_ENABLED
* fix type error
* fix organizations/new page
* remove code not needed and fix type errors
* Fix Metadata utils
* remove unnecessary code
* remove unneeded code
* wip
* do not remove buildWrappedOnboardTeamMembersPage
* fix type error
* do not introduce changes to yarn.lock
* fix wrong route name
* fix onboard members
* fix platform pages
* fix settings/platform main view
* add requiresLicense to WithLayout
* refactor
* add requiresLicense to platform/new
* Add LicenseRequired back to platform/new
* add env variable
* fix onboard-members
---------
Co-authored-by: Keith Williams <[email protected] >
2024-09-09 17:19:44 -07:00
Benny Joo
d4b0516235
chore: App router migration - (/more, /maintenance, /connect-and-join, /upgrade) finish migration ( #16497 )
...
* more: extract client component into /modules folder
* maintenance: extract client component into /modules folder
* upgrade: extract client component into /modules folder
* improve WithLayout wrapper
* connect-and-join: extract client component into /modules folder
* add env vars
2024-09-06 17:22:05 +00:00
Benny Joo
963d22648b
chore: App-router-migration(/availability) add pages / extract components into /module ( #16404 )
...
* migrate availability/[schedule]
* add use client directive
* migrate main availability page
* migrate availability/troubleshoot page
* add env var
* extract AvailabilitySettingsWebWrapper into /modules
* fix build
* add missing default
* add missing export
* fix troubleshoot
* use params, not searchParams in generateMetadata
* fix schedule page in app router
2024-09-05 12:37:18 +00:00
Benny Joo
7d77554696
chore: App router migration - Add env variables for auth/forgot-password/*, auth/login, auth/logout, auth/new, `auth/saml-idp ( #16488 )
...
* Add env variables for auth/forgot-password, auth/login, auth/logout
* Add env variables for auth/new, auth/saml-idp
2024-09-04 15:20:40 +00:00
779eb19e7a
feat: browser push notifications ( #14888 )
...
* feat: web push notifications feature
* Revert yarn.lock changes
* added new env variables requirement in .env.example
* moved useNotifications hook in packages/lib/hooks
* fix: bug
* use i18n
* chore: move to new file
* chore: add yarn.lock
* Update .env.example
Co-authored-by: Amit Sharma <[email protected] >
* chore: add instruction for brave browser
* fix: tooltip
* chore: use enum
* chore
* small update
---------
Co-authored-by: Peer Richelsen <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
Co-authored-by: Peer Richelsen <[email protected] >
Co-authored-by: Amit Sharma <[email protected] >
Co-authored-by: Carina Wollendorfer <[email protected] >
Co-authored-by: unknown <[email protected] >
Co-authored-by: Anik Dhabal Babu <[email protected] >
2024-09-02 14:39:51 +00:00
Hariom Balhara
36ecece181
fix: Add version to embed.js and preview.js ( #16182 )
2024-08-29 20:54:41 +00:00
CodeShakingSheep
7a57f57e99
chore: Make URLs for terms and privacy policy customizable via .env vars ( #16350 )
2024-08-26 10:34:07 +02:00
Alex van Andel
fd50728169
Revert "fix: uncaught types errors in invite members team handler ( #16109 )" ( #16322 )
...
This reverts commit a091c60618 .
2024-08-23 05:40:30 +00:00
Omar López
a091c60618
fix: uncaught types errors in invite members team handler ( #16109 )
2024-08-19 20:27:37 +00:00
sean-brydon
d429f0ee04
fix: use organization default fixedPrice if self-serve/default price is passed in ( #15966 )
...
* Use fixed price if default (selfserve) is used
* fix conditional
* use .env instead of hard coded values
* feedback
2024-08-07 09:36:29 +00:00
Alex van Andel
c46905e9a7
fix: next.js console warning due to output:standalone ( #16087 )
2024-08-06 11:38:24 +00:00
Dolev Hadar and zomars
e7816cfb0c
perf: improve typescript perf by pre-generating the router types ( #15929 )
...
Co-authored-by: zomars <[email protected] >
2024-08-05 16:49:19 -07:00
45db5c0d5e
refactor: event types infinite scroll ( #15949 )
...
* chore
* chore
* feat: paginated event types
* fix: event types page
* fix: k bar
* fix: event type order
* fix: type error
* chore: remove commented code
* chore: type err
* chore: type err and feedback
* feat: add old component
* chore: missing import
* fix: add isInfiniteScrollEnabled prop
* chore: type err
* chore: type error
* feat: auto fetch next page when button is in view
* Update packages/lib/server/repository/eventType.ts
* Update packages/lib/server/repository/eventType.ts
* chore: feedback
* fix: managed event types
* fix: Review fixes for event-types-infinite-scroll (#16047 )
* Review fixes
* chore: missing import
---------
Co-authored-by: Udit Takkar <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
* chore: type error
* chore
* fix: delete event type
* fix: create event dialog
* fix: create and duplicate dialog
* chore: simplify return type
* fix: type
* chore: invalidate query
* chore: remove query
* fix duplicated event not showing.
---------
Co-authored-by: Peer Richelsen <[email protected] >
Co-authored-by: Hariom Balhara <[email protected] >
2024-08-05 16:01:03 +04:00
Richard Poelderl
769ca9002e
fix(website): fix sitemap by adding prisma env var ( #15827 )
...
* update docs for `yarn.lock` management
* fix(website): Add `DATABASE_URL` as required environment variable to `website`
2024-07-19 11:56:37 +00:00
3e10e2db36
feat: adds env variable for email sender name ( #15598 )
...
* feat: adds env variable for email sender name
* update env declaration file
---------
Co-authored-by: unknown <[email protected] >
Co-authored-by: Keith Williams <[email protected] >
2024-06-27 18:25:13 -03:00
Alex van Andel
1e0f7f433f
chore: Upgrade Sentry in v1, v2 & web ( #15396 )
...
* chore: Upgrade Sentry in v1, v2 & web
* fix: Keep ./instrument to be the first line
* Remove eslint-plugin-import (fixed in prettier)
* Optimistic removal pending some feedback
* Simplified and fixed sentry wrapper
* Create instrumentation.ts also in APIv1
* sentry key in main nextConfig is deprecated
2024-06-13 14:00:27 +00:00
sean-brydon and Peer Richelsen
2a41cd0770
feat: license creation admin PR ( #15024 )
...
* WIP: UI created to see if it matches RFC idea
* Remove schema as we validate on the backend with old+new key schemas
* Add comment about proxy URL request when on older versions
* feat: create custom axios instance to use signature middleware
* fix: update form to respect new schema
* Add cal signature token to trubo env
* use backend mutation for creating license keys
* add loading state to creation button
* update form to have a success state
* fix type error for console.warning :')
* use api version v1
* restore checkLicense from main
* Add env vars to example
* nit: rename page export
* use US spelling
---------
Co-authored-by: Peer Richelsen <[email protected] >
2024-06-06 18:34:32 +00:00
Keith Williams and Udit Takkar
3b1de34451
chore: Add guest email blacklist ( #15255 )
...
* chore: Add guest email blacklist
* types
* Added check to only log when we've removed one
* feat: add verification logic
* chore: use base exftract email
* Added toLowerCase for guest email checks
---------
Co-authored-by: Udit Takkar <[email protected] >
2024-05-30 17:13:34 +00:00
c478f73327
feat: orgs trigger alert when loading a calendar and no availability is ( #14796 )
...
* Install upstash redis again - base of noficationSender
* Setup email handler etc and use tasker
* Remove logs
* Sending emails and correct format and spacing in emails
* Update email styles
* Update email styles
* add switch to enable feature
* fix: reset tasker types - will fix in new PR
* WIP: test suite
* WIP: test suite
* Add redis service and add WIP mock test
* Add tests for redis service and fix lpush
* More working tests
* More working tests
* fix: type error + typo
* update export to match i18n next mock
* (debug) push for debug
* Fix: fixed hosting in mocks
* Add common.json i18n
* add better test descriptions
* reset mocks after each test to allow concurancy
* Remove redundant RedisService.test.ts
* Rename and remove redundant isAdmin check
* Rename to .d.ts
* Add key versioning to constructRedisKey
* Update packages/trpc/server/routers/viewer/slots/handleNotificationWhenNoSlots.ts
Co-authored-by: Hariom Balhara <[email protected] >
* Update packages/trpc/server/routers/viewer/slots/handleNotificationWhenNoSlots.ts
Co-authored-by: Hariom Balhara <[email protected] >
* Add try/catch
* fix breaking when option === undefined
* Add missing await to Promise.all
* Rename data stored in redis to save space
* Include thrown error in logs
---------
Co-authored-by: Hariom Balhara <[email protected] >
Co-authored-by: Joe Au-Yeung <[email protected] >
2024-05-03 13:48:04 +00:00
5695ba7c13
feat: Tasker ( #14180 )
...
Co-authored-by: Alex van Andel <[email protected] >
Co-authored-by: Joe Au-Yeung <[email protected] >
2024-04-18 11:56:25 -07:00
b9ac22d4ed
feat: AI Transcribe ( #14140 )
...
* chore: transcribe
* chore: provider
* chore: use daily provider
* chore: rebase
* chore: remove types file
* chore: remove recoil
* chore: progress
* chore: add recoil
* chore: save progress
* chore: save progress
* fix: type err
* fix: err
* fix: save progress
* feat: finish emails
* chore: add new env variable
* chore: fix type err
* chore: turbo
* chore: improvements
---------
Co-authored-by: Udit Takkar <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
Co-authored-by: Joe Au-Yeung <[email protected] >
Co-authored-by: Peer Richelsen <[email protected] >
Co-authored-by: Carina Wollendorfer <[email protected] >
2024-04-17 11:09:11 -04:00
89fe383c9f
feat: implement turnstile on signup ( #13913 )
...
* wip
* feat: turnstile + removal of trpcState
* fix: use react-turnstile
* fix: i18n hydration errors
* wip: server side validation for cf token
* fix: hide in e2e tests
* feat:throw on error of token
* fix: set correct form values onVerify
* fix: use getIp for remoteIp and use correct header for token input
* chore: update .env.example
* fix: Update .env.example
* Update apps/web/pages/signup.tsx
* chore: fix typo
* fix: typo
* feat: hide until error
* feat: appearance interaction only
* remove cloudflare from e2e
* fix: legacyBehavior
* fix links + wait for load
* fix: signup tests
* test: wait for load state
---------
Co-authored-by: Keith Williams <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
2024-04-04 10:21:06 -03:00
d30fb213d2
fix: Add adminReview option to allow impersonating org members ( #14275 )
...
* added layouts for moving teams step
* added admin section for org creation step
* extended org creation to also move existing teams
* wip
* wip
* wip
* further changes
* Add checkout for org in onboarding
* Fix ts errors
* Self review feedback
* Self review addressed
* Fix unit tests
* Fix ts error
* Seans feedback addressed
* feat: fix correct accounts pending
* fix: unit tests for new invite member permissions
* tests: org admin onboarding tests for existing user
* tests: Inital user self serve flow
* chore: update teamAndUserFixture to create X amount of teams
* chore: add testId to card actionButton
* test: add test-Id to continue or checkout button
* tests: add tests for migrating existing teams
* feat: match new designs
* fix: isAdminCheck
* chore: fix pricing copy
* fix: flacky tests
* Fix tests?
* More test fixes
* Check all checkboxes
* Fix type error
* Fix failing test and typescript issues
* Fix unpaid org allowing auto-add users
* Add self-serve flag
* Skip tests
* Add adminReview option
* Fixes
* Add server checks for impersonation
* Improved error
* feat: extract - and disalow updating from org uset list if not reviewed
---------
Co-authored-by: Peer Richelsen <[email protected] >
Co-authored-by: Alex van Andel <[email protected] >
Co-authored-by: Peer Richelsen <[email protected] >
Co-authored-by: sean-brydon <[email protected] >
Co-authored-by: Joe Au-Yeung <[email protected] >
Co-authored-by: Joe Au-Yeung <[email protected] >
2024-04-04 04:48:41 +00:00
b3f4cfab32
feat: new org onboarding wizard ( #13139 )
...
* added layouts for moving teams step
* added admin section for org creation step
* extended org creation to also move existing teams
* wip
* wip
* wip
* further changes
* Add checkout for org in onboarding
* Fix ts errors
* Self review feedback
* Self review addressed
* Fix unit tests
* Fix ts error
* Seans feedback addressed
* feat: fix correct accounts pending
* fix: unit tests for new invite member permissions
* tests: org admin onboarding tests for existing user
* tests: Inital user self serve flow
* chore: update teamAndUserFixture to create X amount of teams
* chore: add testId to card actionButton
* test: add test-Id to continue or checkout button
* tests: add tests for migrating existing teams
* feat: match new designs
* fix: isAdminCheck
* chore: fix pricing copy
* fix: flacky tests
* Fix tests?
* More test fixes
* Check all checkboxes
* Fix type error
* Fix failing test and typescript issues
* Fix unpaid org allowing auto-add users
* Add self-serve flag
* Skip tests
---------
Co-authored-by: Alex van Andel <[email protected] >
Co-authored-by: Hariom <[email protected] >
Co-authored-by: sean-brydon <[email protected] >
Co-authored-by: Joe Au-Yeung <[email protected] >
Co-authored-by: Joe Au-Yeung <[email protected] >
Co-authored-by: Omar López <[email protected] >
2024-04-03 18:53:02 +05:30
Morgan and Alex van Andel
f8cbf8b1c4
chore: rewrite api.cal.com/v2 to api v2 ( #14285 )
...
* chore: rewrite api.cal.com/v2 to api v2
* fixup! chore: rewrite api.cal.com/v2 to api v2
* fixup! fixup! chore: rewrite api.cal.com/v2 to api v2
---------
Co-authored-by: Alex van Andel <[email protected] >
2024-04-02 13:23:04 +01:00
1025238eee
feat: cal.ai enterprise phone calls ( #14100 )
...
* added empty layout
* init
* yarn lock due to package changes
* added retell ai to .env
* removed ton of glue code
* nit
* Discard changes to package.json
* Upgrades lucide-react
* minor UI fixes
* nit
* nit
* feat: save progress
* feat: v1
* fix: type error
* feat: change schema
* fix: type error and testr
* chore: update agent
* chore: change default prompt
* feat: feedback and improvements
* fix: type error
* fix: type error
* hidden for now while in trial
* added i18n and removed some comments
* feat: add cal api key
* fix: type error
---------
Co-authored-by: Omar López <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
Co-authored-by: Joe Au-Yeung <[email protected] >
2024-03-28 13:59:01 +00:00
Peer Richelsen
2bced59b47
chore: added vercel env to turbo repo ( #14238 )
2024-03-27 11:26:05 -07:00
Richard Poelderl
e9554604e7
chore(ci): Add nextjs framework env vors to @calcom/website in turbo.json ( #14231 )
2024-03-27 14:04:27 +00:00
Andreas Thomas and sean-brydon
091d3cdd17
feat: use unkey for global ratelimiting and identifier overrides ( #14173 )
...
* feat: use unkey for global ratelimiting and identifier overrides
fixes #13672
* revert: make test pass
* chore: push timeout incase unkey ever dies
* chore: push timeout incase unkey ever dies
---------
Co-authored-by: sean-brydon <[email protected] >
2024-03-26 15:52:00 +00:00
+24
0a15483c46
feat: platform atoms + api v2 ( #14106 )
...
* add connect to cal atom
* add connect to cal to atoms package index
* shadcn setup
* update packages
* button component from shadcn
* dumb button component
* replace button with dumb button component
* update commenst and change url param
* chore: setting up monorepo packages for platforms (#12572 )
* chore: init platform folders strucutre and api proxy
* fixup! chore: init platform folders strucutre and api proxy
* chore: init database oAuth platform client schema
* fixup! chore: init database oAuth platform client schema
* fix config path after move to folder /v1
* feat: scaffold v2 API (#12554 )
* init nest project
* add kysely as a separate package
* add ee folder with license
* prettier: format v2 api same as mono repo
* migrate over Eriks nestjs poc
* schema generation script
* ee license file
* nest poc eslint file
* remove prisma-kysely from v2 api
* prepare for mergin platform: remove prisma-kysely because incorrect checksum
* add prisma-kysely to packages/prisma
* move to apps/api/v2
* rename v2 package
* readme update
* Update apps/api/v2/env.example
* env typo
* env typo
---------
Co-authored-by: Erik <[email protected] >
Co-authored-by: Morgan Vernay <[email protected] >
* chore: init platform packages (#12603 )
* chore: init platform packages
* fixup! chore: init platform packages
* fixup! fixup! chore: init platform packages
* fix: type in package.json
* fixup! fixup! fixup! chore: init platform packages
* fixup! fixup! fixup! fixup! chore: init platform packages
* fixup! fixup! fixup! fixup! fixup! chore: init platform packages
* fixup! fixup! fixup! fixup! fixup! fixup! chore: init platform packages
---------
Co-authored-by: Lauris Skraucis <[email protected] >
* chore: platform more permissions utils and tests (#12613 )
* chore: more permisions utils and tests
* chore: tests
* feat: validate `CalProvider` api keys (#12672 )
* fix: signup nit (#12585 )
* Disable submit on empty form
* Fix submit
---------
Co-authored-by: Peer Richelsen <[email protected] >
* New Crowdin translations by Github Action
* fix: Signup options are not disabled (#12610 )
* fix: Signup options are not disabled
* fixes/signup disabling suggested changes done
* chore: signup and login improvements
---------
Co-authored-by: Udit Takkar <[email protected] >
* fix: typo in @calcom/emails readme (#12615 )
* fix: handle reschedule request for dynamic meetings (#12275 )
* chore: [app-router-migration-1] migrate the pages in `settings/admin` to the app directory (#12561 )
Co-authored-by: Dmytro Hryshyn <[email protected] >
Co-authored-by: DmytroHryshyn <[email protected] >
Co-authored-by: zomars <[email protected] >
* chore: added cursor-pointer to img upload (#12624 )
* added cursor-pointer to img upload
* nit
* feat: add clear filters option in bookings page (#12629 )
* add clear filters option
* fix vscode settings.json
* use removeAllQueryParams()
* fix yarn lock
* remove toggleoption
* feat: display long durations in hours on booking (#12631 )
Co-authored-by: Udit Takkar <[email protected] >
* New Crowdin translations by Github Action
* fix: workaround for future app dir routes
* feat: Allow only first slot to be booked (#12636 )
Co-authored-by: Morgan Vernay <[email protected] >
* New Crowdin translations by Github Action
* feat: add matomo analytics app (#12646 )
* chore: Sentry Wrapper with Performance and Error Tracing (#12642 )
* add wrapper for sentry and update functions in 'getUserAvailability'. Update tracesSampleRate to 1.0
* Make Sentry Wrapper utilize parent transaction, if it exists.
* Update wrapper for functions to inherit parameters from the child function
* add comment of when to use the wrapper
* check for sentry before wrapping, if not call unwrapped function
* refactored wrapper to have async and sync separate functions that utilize helpers for common behaviour
* update type of args to unknown
* fixed types of returns from wrapped functions
---------
Co-authored-by: Morgan <[email protected] >
* validate api keys to set error and key states for api keys
* organize error messages into one place
* set error messages from errors file instead of hardcoding value
* fix incorrect constant name
---------
Co-authored-by: sean-brydon <[email protected] >
Co-authored-by: Peer Richelsen <[email protected] >
Co-authored-by: Crowdin Bot <[email protected] >
Co-authored-by: Pratik Kumar <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
Co-authored-by: Samyabrata Maji <[email protected] >
Co-authored-by: Manpreet Singh <[email protected] >
Co-authored-by: Benny Joo <[email protected] >
Co-authored-by: Dmytro Hryshyn <[email protected] >
Co-authored-by: DmytroHryshyn <[email protected] >
Co-authored-by: zomars <[email protected] >
Co-authored-by: Varun Prahlad Balani <[email protected] >
Co-authored-by: Mike Zhou <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
Co-authored-by: Haran Rajkumar <[email protected] >
Co-authored-by: Morgan Vernay <[email protected] >
Co-authored-by: Harshith Pabbati <[email protected] >
Co-authored-by: Brendan Woodward <[email protected] >
Co-authored-by: Morgan <[email protected] >
* fix: storybook atom import
* feat: oauth clients management (#12604 )
* feat: oAuth create and update dtos
* feat: WIP oAuth repository
* feat: oAuth controller and module
* refactor: rename cal oAuth to simply oauth
* fix: controller update client
* add oAuth client module to endpoints module
* refactor: OAuthClientRepository
* refactor
* status codes for controller
* oauth create return
* fix: oAuth client only for v2 API
* remove repository as provider from its module
* fix: oAuth module, have repository in providers
* fix: make endpoints run
* comment out oauth prisma schema code: coming next
* refactor: remove api-key authguard (#12675 )
* chore: Prisma exception filters (#12679 )
* fix: get prisma schema from package @calcom/prisma (#12692 )
* fix: get prisma schema from package @calcom/prisma
* fixup! fix: get prisma schema from package @calcom/prisma
* fixup! fixup! fix: get prisma schema from package @calcom/prisma
* fix: prettier config
* fixup! fix: prettier config
* chore: create authenticated user guard (#12677 )
* chore: wip next-auth-guard for apiv2
* refactor: use NextAuthGuard on all OAuthClientController routes
* refactor: use passport to get next user
* exclude password from prisma read service
* Revert "exclude password from prisma read service"
This reverts commit 24b1f8ed59f6d99f0ecc589c691efb0ac1f2ac3b.
* fix: userRepo sanitize password
* refactor: function order in UserRepository
* implement user repository service
* refactor: strict null checks for TS
* refactor: fix strict null checks
* delete res locals type
* refactor: switch from zod to class-validator for oAuth client
* refactor: switch from zod to class-validator for booking
* refactor: rename dtos folder to input folder
* fix: create migration for prisma schema oauth clients table
* feature: post oAuth client
* refactor: rename oAuth client_secret to secret
* stricter ts config + oauth secret
* remove migrations
* fix: improve response type
* improve error code types
* fix: prettier by removing eslint as its not needed
* refactor: eslint fix files
* wip organization oauth_lcient
* fix import types
* fix team schema platformOAuthClient name
* fix: import packages transpiled
* feat: roles guard
* refactor: use organisationId instead of userId
* fix: jwt secret signing not having jwt_secret
* fix: stop importing input DTOs as types
* fix: jwt sign expecting plain object
* add sentry, routes logger, generic response type
* fix test config
* fixup! fix test config
* refactor: dont await async function return
* feat: fallback value for getEnv
* feat: add helmet for security
* feat: organization guard
* refactor: check if user set in RolesGuard
* refactor: remove roles requirement for oauth read
* chore: add exceptions filters
* fix: api key strategy throws errors
* chore: set e2e tests
* chore: centralize api type in package
* feat: user repository relations
* feat: user repository relations
* Revert "feat: user repository relations"
This reverts commit 1802b256b5a6e5c9b6a62138c8cb1b6f75ed401b.
* Revert "feat: user repository relations"
This reverts commit 4a8f52583d95ff15b6254694c976d8ec9ce0e546.
* test: mock next auth
* fixup! test: mock next auth
* test:oAuth authed user but no org
* refactor: remove unused type
* refactor: organisation guard based on Membership table
* refactor: folder and file structure
* fix: small changes exception filters
* refactor: merge organization and roles guards into one guard
* fix: remove old export
* fix: org roles guard
---------
Co-authored-by: supalarry <[email protected] >
* chore: OAuth clients tests and fixes (#12762 )
* chore: add tests and fixes
* fixup! chore: add tests and fixes
* fixup! fixup! chore: add tests and fixes
* fixup! fixup! fixup! chore: add tests and fixes
* fixup! fixup! fixup! fixup! chore: add tests and fixes
* fixup! fixup! fixup! fixup! fixup! chore: add tests and fixes
* fixup! fixup! fixup! fixup! fixup! fixup! chore: add tests and fixes
* fix: remove unused imports
* chore: move repos to feature folder (#12769 )
* chore: rename repositories
* fix yarn.lock
* feat: oauth client guard (#12814 )
* feat: oAuth client guard
* refactor test
* refactor: move oauth-client guard to oauth module
* refactor: separate jest config from package.json
* fix: resolving paths in jest tests
* fix: tests
* jest setup file
* fix: jest test warnings about .js platform constants imports
* refactor: test repository fixtures
* remove allowjs
* ignore js files in ts-jest
* make oauth client module global
* make oauth client module global
* feat: platform oAuth clients frontend (#12867 )
* add oauth client to settings
* fix imports
* add react and axios
* oauth client form and card components
* hooks for oauth clients data
* index page for oauth clients
* oauth client list component
* oauth client form page
* shift atoms into platform
* init platform folder
* refactor handleSubmit functioin
* platform
* platform
* platform parts
* revert tsconfig constant platform
* fix: useOauthClients
* feat: create oauth client with api
* fix: add prettier to platform type package
* fixup! fix: add prettier to platform type package
* chore: class-validator types in platform package
* add types for delete oauth client iput
* add onSuccess and onError methods
* update oauth client card view with client id and secret
* cleanup comments
* split oauth persisit hook into create and delete hooks
* fix: oauth client creation / deletion / listing
* fixup! fix: oauth client creation / deletion / listing
* fix: comment logo for now
* fix: layout setting org keys
* cleanup comments
* minor style fixes, add logic for client permissions
* show toast after deleting client
* not passing clint logo at the moment
---------
Co-authored-by: Morgan Vernay <[email protected] >
* chore(platform): OAuth Flow (#12798 )
* fixup! chore(platform): OAuth Flow (#12798 )
* feat: CRUD for oAuth users (#12853 )
* user controller with oauth guard
* crud repository and controller operations
* add user controller to user module
* refactor: oauth guard
* connect user with oauth client upon creation
* fix: test
* wip: e2e test
* refactor: findUniqueOrThrow -> findUnique user
* test: POST user request
* feat: permissions guard
* e2e tests
* e2e
* e2e refactor
* e2e refactor
* reflector decorator check refactor
* refactor oauth guard
* remov unused imports
* log message
* delete permissions decorator and guard
* remove delete user endpoint
* remove delete user endpoint
* refactor: route structure
* remove get oauth client decorator
* delete unecessary e2e config changes
* remove set header in post test
* fix: oauth guard test on empty db
* revert: add previously removed constant to fulfill merge platform
* fix: import to satisfy platform branch merge
* use real implementation of access token guard
* generate access & refresh tokens and fix e2e
* fix: oauth client e2e test
* refactor: variable naming
* refactor
* rename test file
* remove oauth client from request
* refactor: v2 API (#12913 )
* Use Boolean only instead of git add src/modules/auth/guard/organization-roles/organization-roles.guard.ts
* move tests next to files they test
* replace .. in import paths with absolute path
* camelCase instead of snake_case for access and refresh token variables
* user sanitize function Typescript friendly
* restructure oAuth clients folder: example for other folders
* restructure bookings module
* organize modules in auth, endpoints, repositories, services
* organize auth module
* organize repositories
* organize inputs
* rename OAuthClientGuard to OAuthClientCredentialsGuard
* add error messages
* add error messages
* clientId as param in oauth-flow & schema mapping
* camelCase instead of snake_case for clientId and clientSecret
* access token guard as passport strategy
* folder structure as features
* get rid of index files
* feat: endpoint for deleting oAuth users & oAuth users returned data (#12912 )
* feat: delete oAuth users
* check if access token matches userId in parameter
* driveby: return only user id and email in oauth users endpoints
* refactor: access token errors (#12932 )
* change error messages
* error message if access token does not exist in our database
* token expired 498
* access token expired message as constant
* store 498 status code as const
* fix: access token error less information given
* chore: invalid access token const
---------
Co-authored-by: Morgan Vernay <[email protected] >
* feat: external gcal (#12954 )
* wip connect gcal
* feat: add external google calendar
* fixup! feat: add external google calendar
* fix: google calendar oauth check invalid
* google cal check tests
* use zod
* fix: await validate access token service
* chore: e2e tests for oAuth flow (#13005 )
* fix: accessing length of undefined
* refactor: GetUser throw error if no user provided
* fix: cascade delete PlatformAuthorizationToken if owner or client deleted
* test: POST /authorize
* refactor oauth-flow controller
* refactor oauth-flow controller
* new function to get authorization token by client user ids
* refactor token service
* fix: re-created access and refresh tokens having not unique secret
* oauth flow tests
* oauth flow tests
* feat: abstracted jwt service (#13016 )
* remove unused JwtModule from the auth module
* feat: create abstracted jwt service
* refactor: tokens module and service use new jwt service
* refactor: oauth-client module and repository use new jwt service
* implement Morgans requests
* Basic atoms in barebone example platform apps (#13006 )
* example app
* example app
* dev move
* fix: more entry points
* fixup! fix: more entry points
* refactor: v2 API (#12913 )
* Use Boolean only instead of git add src/modules/auth/guard/organization-roles/organization-roles.guard.ts
* move tests next to files they test
* replace .. in import paths with absolute path
* camelCase instead of snake_case for access and refresh token variables
* user sanitize function Typescript friendly
* restructure oAuth clients folder: example for other folders
* restructure bookings module
* organize modules in auth, endpoints, repositories, services
* organize auth module
* organize repositories
* organize inputs
* rename OAuthClientGuard to OAuthClientCredentialsGuard
* add error messages
* add error messages
* clientId as param in oauth-flow & schema mapping
* camelCase instead of snake_case for clientId and clientSecret
* access token guard as passport strategy
* folder structure as features
* get rid of index files
* feat: endpoint for deleting oAuth users & oAuth users returned data (#12912 )
* feat: delete oAuth users
* check if access token matches userId in parameter
* driveby: return only user id and email in oauth users endpoints
* Connect CalProvider and GCal
* Connect CalProvider and GCal
* return response interceptor to handle failed requests
* handle failed requests using axios intercepter
* cal provider refresh tokens, external gcal
* external gcal
* cal provider refresh and retries
* remove console.log
* refactor
* ignore built atoms css
* remove change to token repo
* refactor
* refactor
* downdgrade vite of unrelated packages
* move gcal endpoints to platform
* gcal service
* refactor: use atoms provider
---------
Co-authored-by: Lauris Skraucis <[email protected] >
Co-authored-by: Ryukemeister <[email protected] >
* feat: user schedule management (#13053 )
* platform-constants package: list of accepted schedule timezones
* feat: schedules endpoint to create schedule with default availability
* refactor: rename function
* refactor: store userId for availabilities
* feat: createSchedule endpoint
* feat: get schedules/default
* feat: getSchedule by id
* feat: get all schedules
* feat: delete schedule
* feat: update schedule
* check user owns schedule
* empty test
* define returned data on controller level not repository
* define returned data on controller level not repository
* Revert "define returned data on controller level not repository"
This reverts commit 4c292a0f0762f58bdcad0707ad8eef7408390800.
* use luxton
* put availabilities out of ee
* use guard on controller level
* refactor
* e2e test schedule creation
* remove log
* test
* default schedule get test
* update schedule test
* delete schedule test
* fix update test
* different email for schedules e2e
* driveby: fix yarn test
* schedule inputs availabilities as array
* re-use BaseStrategy class
* feat: me endpoint v2 api (#13274 )
* feat: me endpoint v2 api
* simplify
* chore: NestJS throttling (#13011 )
* fix: v2 throttling setup (#13402 )
* fix: v2 throttling
* fix: setup redis locally
* move sentry files to api v1
* chore: calcom platform libraries (#13444 )
* fixup! chore: calcom platform libraries (#13444 )
* fix: fix managed users
* feat: user timezone management in `CalProvider` (#13361 )
* hooks to fetch and update user timezone
* add react query package
* add logic to check for change in user timezone and update it
* hook to handle timezone changes
* shift timezone handling logic into separate custom hook
* rename variables
* rename hook to get a user
* call useTimezone hook inside of cal provider
* minor refactors
* add variables for api endpoints
* use URL constructor for creating endpoints
* key prop not needed
* use URL constructor for creating endpoints
* chore: package json scripts
* fix(atoms): fix import path of useUpdateUserTimezone
* fix(atoms): build constants and fix ENDPOINTS const
* feat: v2 api event type endpoints (#13449 )
* build platform-libraries
* make getEventTypeById compatible with default PrismaClient
* feat: fetch event type endpoint
* handle event type not found
* e2e test for GET
* test
* determine is user org admin for getEventTypeId correctly
* prisma type like before
* add negative test
* POST event-type and return event-type for api and atom
* POST event-type and return event-type for api and atom
* feat: create default user event types when creating managed user
* feat: v2 api me PUT endpoint (#13486 )
* add timeZone to me endpoint
* feat: me endpoint PUT
* reset package.json
* standardize creation and updating of user
* user creation: capitalize timezones and week start
* default event type constants in const file
* refactor: defaultTimezone Europe/London in response schema
* refactor: validators
* refactor: default schedule in schedules endpoints
* refactor: patch instead of put
* fix: getEventTypeById organizationId (#13554 )
* chore: transpile more libraries functions
* feat: overlay calendar busy dates events (#13581 )
* feat: overlay calendar busy times events
* fixup! feat: overlay calendar busy times events
* fixup! fixup! feat: overlay calendar busy times events
* fixup! fixup! fixup! feat: overlay calendar busy times events
* refactor: schedules for atom (#13585 )
* schedules get.handler transformers as util functions
* export schedule transformers from platform-libraries package
* schedules for atom
* refactor: schedules response service format response
* remove unused injected dependency
* fix: prevent duplicate calendar account linking (#13310 )
* fix: prevent signing up multiple times from same account
* revert: lark calendar changes
* credential clean up if duplicate
* fix code duplication and check before credential creation
* feat: useRouterQuery allow unset queryParam
* feat: showToast on account duplication attempt
* Small tweak to copy
* Updated other calendars not to use checkDuplicateCalendar
* Add account already linked to apps/installed/calendar
---------
Co-authored-by: Keith Williams <[email protected] >
Co-authored-by: Alex van Andel <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
* Revert event-type profile based querying (#13588 )
* test: Bookings: Add more automated tests for organization (#13576 )
* Avoid selecting unused props
* Add automated tests
* Add existing user invite and booking
---------
Co-authored-by: Joe Au-Yeung <[email protected] >
* fix: organization user shouldn't be asked for payment for a premium username (#13535 )
Co-authored-by: Joe Au-Yeung <[email protected] >
* chore: refactor handle new reccuring booking (#13597 )
* chore: refactor handle new reccuring booking
* fixup! chore: refactor handle new reccuring booking
* fixup! fixup! chore: refactor handle new reccuring booking
* test: Create unit tests for the questions (teste2e-multiSelectQuestion) (#11569 )
* Remove unnecessary changes
* add changes
* Requested changes
* Requested changes
* FIx failing tests
* FIx failing tests
* Update regularBookings.ts
* FIx failing tests
* Refactor
* add unit tests for all questions
---------
Co-authored-by: gitstart-calcom <[email protected] >
Co-authored-by: GitStart-Cal.com <[email protected] >
Co-authored-by: gitstart-calcom <[email protected] >
Co-authored-by: Morgan <[email protected] >
Co-authored-by: Joe Au-Yeung <[email protected] >
* fix: update valid_for_secs (#13604 )
* fix: Fixes teams UI load issue (#13593 )
* fixes teams uiload issue
* revert: yarn.lock
---------
Co-authored-by: Udit Takkar <[email protected] >
* chore: upgrades boxyhq jackson (#13477 )
* chore: upgrades boxyhq jackson
* Update jackson.ts
reduces bundle size
* Update yarn.lock
* Update apps/web/next.config.js
* Upgrades again
---------
Co-authored-by: Keith Williams <[email protected] >
* upgrades copycat
* feat: PLA-47 Reserve Slots Handler (#13607 )
* PLA-44 feat: Platform getPublicEvent (#13596 )
* chore: getPublicEvent
* chore: fix
* feat: booker atom bookings platform endpoints (#13613 )
* feat: handle new booking
* wip
* feat: handle recurring and instant booking
* fixup! feat: handle recurring and instant booking
---------
Co-authored-by: Peer Richelsen <[email protected] >
* fix: v2 not running (#13636 )
* fix: import from platform-libraries instead of lib
* fix: typescript error
* fix: provide EventTypesRepository to SlotsService
* fix: small change
* Merge branch 'main' into platform
* fix: make v2 run after user model changes (#13653 )
* feat: event type atom user connected and destination calendars endpoint (#13559 )
* extract connected calendars logic in re-usable platform-libraries function
* extract connected calendars logic in re-usable platform-libraries function
* extract connected calendars logic in re-usable platform-libraries function
* calendars endpoints
* enable calendars endpoint
* calendars type form platform-libraries instead of lib
* finish merging platform branch
* fix dbWrite
* fix: issue after merge platform
* fix: new abstracted function export
* change ee/overlay-calendars to ee/calendars endpoint
* refactor: merge overlay service with calendars service
* ts fix
* body -> query
* chore: Platform get schedule (#13696 )
* chore: get available slots
* chore: infer event type isTeam
* chore: nit
* chore: Delete selected slot (#13692 )
Co-authored-by: Morgan Vernay <[email protected] >
* feat: v2 endpoint for availability atom timezones (#13687 )
* refactor: move cityTimezones handler to lib
* test: incorrect timezone when creating oauth user
* refactor: standardize time zone validation
* feat: schedules/time-zones endpoint returning possible time zones
* refactor: @IsValidTimezone load allowed timezones dynamically
* chore: split timezones to its own trpc router
---------
Co-authored-by: Morgan Vernay <[email protected] >
* fix after merge main
* feat: platform useGetPublicEvent (#13752 )
* feat: platform useGetPublicEvent
* chore: move public event type to libraries
* chore: use const for query key
* fixup CalendarBusyTimesInput optional params
* feat: platform use get available slots (#13756 )
* feat: platform use get available slots
* fixup! feat: platform use get available slots
* feat: platform use get connected calendars (#13757 )
* chore: platform enable cors (#13774 )
* chore: enable cors
* fixup! chore: enable cors
* feat: platform use get calendars busy times (#13759 )
* fixup! feat: platform use get calendars busy times (#13759 )
* feat: platform use slots hooks (#13785 )
* feat: platform use slots hooks
* fixup! feat: platform use slots hooks
* fixup! fixup! feat: platform use slots hooks
* fixup! fixup! fixup! feat: platform use slots hooks
* fixup! fixup! fixup! fixup! feat: platform use slots hooks
* fixup! feat: platform use slots hooks (#13785 )
* feat: platform use create boookings hooks (#13797 )
* feat: `Availability Settings` atom (#13762 )
* styling and updating the examples app
* add custom hooks for availability settings atom
* update default exports
* minor updates
* update cal provider to use react query
* availability settings atom
* dialog from shadcn
* navbar for examples app
* add select skeleton loader in calcom ui packages
* refactors
* define rtl for cal provider
* fox trpc call to avoid merge conflicts
* fix issues caused by merges
* revert changes for rtl
* hook to fetch every city timezones
* implement useGetCityTimezones into timezone component
* minor fix
* update hooks
* add props and intergrate into avaialibility component
* add missing await
* remove logs
* add comments
* invalidate queries after settled
* toaster from shadcn
* add toaster into cal provider
* implement toast on event handlers
* add classnames prop to accept custom styles
* passing custom styles
* update packages
* remove comments
* fix: styling
* fix: useUpdateSchedule
* fixup! fix: useUpdateSchedule
* wip
* feat: availability setting atom
* fixup! feat: availability setting atom
* fixup! fixup! feat: availability setting atom
* fixup! fixup! fixup! feat: availability setting atom
* fixup! fixup! fixup! fixup! feat: availability setting atom
---------
Co-authored-by: Morgan Vernay <[email protected] >
* fix: atoms import
* chore: lock
* fix: types
* fixup! fix: types
* refactor: v2 user timezones (#13944 )
* fix: OAuth client form improvements (#13837 )
* rename app to apps
* fix type errors, validate redirect url and other fixes
* enable user to add multiple redirect uris
* add id to input to make labels clickable
* translations for oauth form
* improve styles, add translations and add select all button for permissions
* add permissions for profile read and write
* fixes
* nit
* use `useFieldArray` for dynamic fields
---------
Co-authored-by: Morgan <[email protected] >
* refactor: check organizationId primarily on user profile (#13969 )
* refactor: attach movedToProfile to user
* refactor: check organizationId primarily on user profile
* fix: resolve TS errors to build v2 for prod (#13858 )
* feat: atoms typescript build (#13864 )
* fix: atoms typescript build
* refactor: dayjs
* refactor: meticulous
* refactor: use vite for type generation
* tsconfig
* feat: given user timezone update update default schedule timezone (#13981 )
* refactor: standardize schedules api response
* fix: schedules e2e tests
* refactor: use IsTimeZone class-validator instead of custom built one
* feat: validate managed user timezone
* feat: update default schedule when me schedule updated
* refactor: standardize v2 api returned data (#13984 )
* feat: V2 api swagger (#13804 )
* feat: v2 API swagger docs
* fix: query param not showing up in docs
* latest swagger.json
* refactor: remove scaffolded sample endpoint
* separate internal endpoints
* oauth-clients and oauth flow docs only in dev
* oauth-clients and oauth flow docs only in dev
* create oauth client response doc
* responses for oauth-clients
* document development only endpoints
* chore: consume auth token on exchange (#13993 )
* feat: docker build for v2 (#13918 )
* fix: resolve TS errors to build v2 for prod
* WIP: api v2 docker
* arg env dockerfile
* wip
* Revert "wip"
This reverts commit 232adf5b969ef004ae907f3e85b12c2715d9b6bc.
* wip
* wip
* fix docker
* fix docker
* fix docker
* docker
* docker
* expose port 80
* feat: oauth client permissions guard (#14020 )
* feat: Permissions guard
* feat: Permissions guard
* tests
* feat: use permissions guard for event types
* extra permissions test
* fix tests
* bokings, gcal, me and schedules permissions
* chore: use availability settings atom and fix useTimezone platform hook (#13934 )
* replace availabiilty settings with atom component
* add more props for custom styles
* replace intl with dayjs
* review feedback fixes
* fix: v2 api typescript errors (#14059 )
* fix: start:prod script
* fix: v2 me module dependencies (#14073 )
* feat: check v2 request origin (#14074 )
* feat: check v2 request origin
* drive by: remove console log in test
---------
Co-authored-by: Lauris <[email protected] >
* fix date overrides typing issues (#14091 )
Co-authored-by: Morgan <[email protected] >
* fix: v2 e2e tests (#14088 )
* fix: v2 e2e tests
* fix: yarn e2e tests run 1 after another
* fix gcal test
---------
Co-authored-by: Lauris <[email protected] >
* fix: availability atom and access token origin strategy
* fix: availability atom get error from unknown
* feat: booker atom platform wrapper (#14036 )
* feat: booker atom, fix hooks
* wip
* feat: booker atom platform wrapper
* fix conflicts
* fix: build v2 internal dependencies upon v2 build
* fix typing of useDeleteOAuth
* fix: isplatform timezone select improt booker event meta
* fixup! Merge branch 'platform' into feat-booker-atom-platform
* refactor
* add video call event types
* disable email and set managed user names
---------
Co-authored-by: supalarry <[email protected] >
* update yarn.lock
* Update .prettierignore
* update post install
* fix: post install
* fix yarn lock
* fix: post install
* fix: types
* feat: enable user control over timezone changes and helpers for query params (#14049 )
* helpers to get and set value of a query paramater
* add event handlers and props to figure out the timezone preference of a user
* make onTimeZoneChange handler optional
* fixup
* fix merge conflicts
* fixup
* revert changes
* fixup
* fixup
---------
Co-authored-by: Alex van Andel <[email protected] >
* fix: usetimezone import
* fix: prisma client import
* fix: prisma client import
* fix: prisma client import
* remove post install using vite
* ts fix attempt: pin prisma to same version
* Revert "ts fix attempt: pin prisma to same version"
This reverts commit 2c309f52e3a881e2dbda4185f45e77967bef6925.
* resolve v2 prisma to calcom prisma
* sync v2 and typescript deps
* sync atoms package
* lock file updat
* fix: platform web components move out of pages folder
* ui: allow experimental decorators to fix ts ci error
* app-store: allow experimental decorators to fix ts ci error
* web: allow experimental decorators to fix ts ci error
* fix: github actions v2 api secrets
* add license
* mock useIsPlatform for tests
* fix timezone select tests
* mock useLocale
* fix tests
* fix tests
* fix tests
* fix github actions
* chore: temporarily disable redis (#14142 )
* fix: only one migration file for platform
* fix api v1 files location
* fix: disable apiv2 test in ci
---------
Co-authored-by: Ryukemeister <[email protected] >
Co-authored-by: Lauris Skraucis <[email protected] >
Co-authored-by: Erik <[email protected] >
Co-authored-by: sean-brydon <[email protected] >
Co-authored-by: Peer Richelsen <[email protected] >
Co-authored-by: Crowdin Bot <[email protected] >
Co-authored-by: Pratik Kumar <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
Co-authored-by: Samyabrata Maji <[email protected] >
Co-authored-by: Manpreet Singh <[email protected] >
Co-authored-by: Benny Joo <[email protected] >
Co-authored-by: Dmytro Hryshyn <[email protected] >
Co-authored-by: DmytroHryshyn <[email protected] >
Co-authored-by: zomars <[email protected] >
Co-authored-by: Varun Prahlad Balani <[email protected] >
Co-authored-by: Mike Zhou <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
Co-authored-by: Haran Rajkumar <[email protected] >
Co-authored-by: Harshith Pabbati <[email protected] >
Co-authored-by: Brendan Woodward <[email protected] >
Co-authored-by: Amit Sharma <[email protected] >
Co-authored-by: Keith Williams <[email protected] >
Co-authored-by: Alex van Andel <[email protected] >
Co-authored-by: Hariom Balhara <[email protected] >
Co-authored-by: Joe Au-Yeung <[email protected] >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
Co-authored-by: gitstart-calcom <[email protected] >
Co-authored-by: GitStart-Cal.com <[email protected] >
Co-authored-by: gitstart-calcom <[email protected] >
Co-authored-by: Anant Jain <[email protected] >
Co-authored-by: Lauris <[email protected] >
Co-authored-by: supalarry <[email protected] >
2024-03-20 13:23:19 +02:00
Joe Au-Yeung
7a790aaabe
refactor: Moving credential syncing to API ( #13963 )
...
* Implement credential sync secret
* Create auth middleware for credential syncing
* Create GET endpoint
* Update swagger comment
* Add verifyCredentialSyncEnabled middleware
* Fix middleware input
* Fix APP_CREDENTIAL_SHARING_ENABLED to return boolean
* Add check for admin API key
* Add GET method
* Middleware require credential sync secret
* Return only the credentialId
* Update default CALCOM_CREDENTIAL_SYNC_HEADER_NAME value
* Add post endpoint
* Return credential object for get endpoint
* Require a userId in the param
* POST add keys to body
* Add PATCH endpoint
* Add DELETE endpoint
* Fix minimumTokenResponseSchema
* Add encrypted key
* Remove prototype
* Add swagger doc comments
* Fix parsing and error handling
* Add create selectedCalendar and destinationCalendar params
2024-03-15 16:03:49 +00:00
502a3241e4
chore: run migrations conditionally ( #13925 )
...
Co-authored-by: Keith Williams <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
2024-03-13 19:52:27 +00:00
sean-brydon and Peer Richelsen
30e4d769e3
feat: gtm push signup event ( #14031 )
...
* feat: gtm push signup event
* chore: fire only if gtm id is defined
---------
Co-authored-by: Peer Richelsen <[email protected] >
2024-03-08 15:13:29 +00:00
Peer Richelsen and Alex van Andel
cc1c3b210a
chore: added new .env for script tags ( #13765 )
...
* added new .env for script tags
* Update turbo.json
* removed meticulous
* added body script .env
* nit
* fixed injection
* Update apps/web/app/layout.tsx
Co-authored-by: Alex van Andel <[email protected] >
* Ensure NEXT_PUBLIC_BODY_SCRIPTS is casted to bool
---------
Co-authored-by: Alex van Andel <[email protected] >
2024-03-06 12:00:19 +00:00
Joe Au-Yeung and Keith Williams
1f845944ac
chore: Add credential sync secret when requesting a token ( #13907 )
...
* Rename .env variables
* Remove instances of old variable names
* Add credential sync secret to request for new token
* Update invalid secret message
Co-authored-by: Keith Williams <[email protected] >
---------
Co-authored-by: Keith Williams <[email protected] >
2024-03-04 19:02:48 +00:00
8469c91973
feat: integrate formbricks for team disband action ( #13362 )
...
* feat: integrate formmbricks for team disband action
* fix: attribute typing & duplicate action
* fix: track action uniformly across repo
* fix: move action tracking on success of team disband mutation
* fix: yarn lock file
* feat: bump formbricks/js to latest version
---------
Co-authored-by: Keith Williams <[email protected] >
Co-authored-by: Udit Takkar <[email protected] >
2024-02-07 04:14:26 -03:00
12466fb064
feat: New Organization Schema along with the ability to invite existing users to an organization ( #13002 )
...
* Add profile table
Copy to profile table
Update schema
Migrations
* wip
* Get switcher working
* Add organization seeder
* wip
* Remove dead code
* Fix unit tests
* relevantProfile -> profile
* cache bust
* One more comment
* Squash migrations
* Copy to profile table
* Update schema
* Fix existing user invite flow
* Add profile table
* Copy to profile table
* Update schema
* Format
* Add profile table
Copy to profile table
Update schema
Migrations
* Format
* wip
Get switcher working
Add organization seeder
wip
Remove dead code
Fix unit tests
relevantProfile -> profile
cache bust
One more comment
Squash migrations
Copy to profile table
Update schema
Fix existing user invite flow
Add profile table
Copy to profile table
Update schema
chore: small improvements to signup (#13227 )
* removed features on mobile, better background color
* nit
* dark mode nits
New Crowdin translations by Github Action
fix: event reschedule workflow trigger (#13122 )
* fix event reschedule workflow trigger
* uncomment previously failed test
* review fix
---------
Co-authored-by: Joe Au-Yeung <[email protected] >
Co-authored-by: CarinaWolli <[email protected] >
chore: added community support to help (#13213 )
refactor: Abstract `handleSeats` from `handleNewBooking` (#12062 )
* Refactor createBooking
* Type fix
* Abstract handleSeats
* Create Invitee type
* Create OrganizerUser type
* Abstract addVideoCallDataToEvt
* Abstract createLoggerWithEventDetails
* Abstract `handleAppStatus` from handler
* Create ReqAppsStatus type
* Move `deleteMeeting` and `getCalendar`
* Set parameters for `handleSeats`
* Typescript refactor
* Change function params from req
* Type fix
---------
Co-authored-by: Morgan <[email protected] >
Co-authored-by: Erik <[email protected] >
fix: Dynamic group booking org-migration redirect (#13223 )
* fix: Dynamic group booking redirect
* Fix flaky private team test
test: Check availability tab and all your functions (teste2e-availability) (#12434 )
* add changes
* add changes
* add changes
* add changes
* Requested changes
* Change way to grab element
---------
Co-authored-by: gitstart-calcom <[email protected] >
Co-authored-by: gitstart-calcom <[email protected] >
Co-authored-by: Morgan <[email protected] >
Co-authored-by: Keith Williams <[email protected] >
Co-authored-by: Joe Au-Yeung <[email protected] >
fix: Reschedule a cancelled booking (#13170 )
* fix: Reschedule a cancelled booking
* canceled instead of cancelled
---------
Co-authored-by: Joe Au-Yeung <[email protected] >
Co-authored-by: Carina Wollendorfer <[email protected] >
v3.7.0
test: In Team Event type when location is Organizer Default App and U… (#12939 )
* test: In Team Event type when location is Organizer Default App and User Metadata is emoty
* chore: use variable
* fix: type error
test: add test for invalid cal video (#13103 )
* test: add test for invalid cal video
* chore: add confirm
* chore: fix type error
* chore: update code
* test: add unit test
* chore: type error
* chore
* chore: type
* chore: fix test
* chore
---------
Co-authored-by: Carina Wollendorfer <[email protected] >
chore: add error message for no availability (#13230 )
* chore: add error message for no default user availability
* chore: check only availability
* chore: change message
* chore: add eventType
fix: Team revert with members (#13228 )
refactor: Refactor seats logic (#12905 )
* Refactor createBooking
* Type fix
* Abstract handleSeats
* Create Invitee type
* Create OrganizerUser type
* Abstract addVideoCallDataToEvt
* Abstract createLoggerWithEventDetails
* Abstract `handleAppStatus` from handler
* Create ReqAppsStatus type
* Move `deleteMeeting` and `getCalendar`
* Set parameters for `handleSeats`
* Typescript refactor
* Change function params from req
* Type fix
* Move handleSeats
* Abstract lastAttendeeDeleteBooking
* Create function for rescheduling seated events
* Fix imports on reschedule seats function
* Fix imports
* Import handleSeats function
* Fix rescheduleUid type
* Refactor owner reschedule to new time slot
* Refactor combine two booking times together
* Reschedule as an attendee
* Refactor createNewSeat
* Remove old handleSeats
* Remove lastAttendeeDeleteBooking from handleNewBooking
* Test for new attendee right params are passed
* Unit test params for reschedule
* Typo fix
* Clean up
* Create new seat test
* Test when attendee already signs up for booking
* Type fix
* Test reschedule move attendee to existing booking
* On reschedule create new booking
* Test on last attendee cancel booking
* Owner reschedule to new time slot
* Owner rescheduling, merge two bookings together
* Test: when merging more than available seats, then fail
* Test: fail when event is full
* Remove duplicate E2E tests
* Clean up
* Rename `addVideoCallDataToEvt` to `addVideoCallDataToEvent`
* Refactor `calcAppsStatus`
* Assign `evt` to resutl of `addVideoCallDataToEvent`
* Use prisma.transaction when moving attendees
* Clean create seat call
* Use ErrorCode enum
* Use attendeeRescheduledSeatedBooking function
* Await function
* Prevent double triggering of workflows
* Use inviteeToAdd in createNewSeat
* Remove unused error code
* Remove old handleSeats file
* Type fix
* Type fix
* Type fix
* Type fix
* Type fix
* Type fix
* Type fix
* Type fix
---------
Co-authored-by: Morgan <[email protected] >
Co-authored-by: Peer Richelsen <[email protected] >
Co-authored-by: Erik <[email protected] >
feat: Allow admins to filter bookings only by attendee emails (#13236 )
* chore: Allow admins to filter bookings only by attendee emails
* Fix type error
Fixed [CAL-2930] Org branding isnt centered in shell #13225 (#13237 )
Add profile table
Copy to profile table
Update schema
Migrations
Format
* wip
* Add profile relation everywhere
* Fix schema
* Fix invite handler
* Add profileId during eventTypec reation
* Get dashboard working with profile relatioon
* Add workflow create repository
* Add profileId to host
* Add profileId to credential table
* Add destinationCalendar repository
* Add profileId to membership
* Revert all profile related changes
* Add acme and dunder
* Fix membership profileId usgae
* Various fixes
* Some renaming
* Fix failing tests
* Debugging next-aut
* Consolidate migrations
* Testing fixes
* Fix unit tests
* Self review feedback
* PR feedback
* Fix orgMigration as well
* Add profile schema and copy users to it
* Remove migrations from here
* Fix type issues
* Fix type error after main merge
* Remove movedFromUserId
* Add missing migration file
* Self review addressed
* Joe's review addressed
* Fix profile switcher
---------
Co-authored-by: Joe Au-Yeung <[email protected] >
2024-02-02 21:34:13 +00:00
e4037be79a
feat: Limit the amount of days to load for a schedule ( #13282 )
...
* feat: Disallow next month prefetching in booker
* renamed to include NEXT_PUBLIC
* fixed boolean expression
* Now using a variable length of days to load
* Type fixes
* Now opening all dates to be clickable
* Added turbo.json var and updated example env
* Fixed issue with selectedDate being null when first loading the page
* Updated description of variable
* Made constant for the booking days
* Type fix
* Setting the days to load for weekly view to 7
* feat: add ui and ability to fetch more on click
* feat: add ui and ability to fetch more on click
* fix: loader
* fix: banner detection
* Update packages/features/bookings/Booker/Booker.tsx
* fix: types
* Not showing HavingTroubleFindingTime component when the schedule is loading
* Only enabled on monthly view
* Correctly load initial date
* Type fix
* Fixed bugs around triggering multiple requests
* Added case for when there is no selectedDate but the month has been specified
* Types
* More types
* Check for undefined
* More typing
* More typing
---------
Co-authored-by: sean-brydon <[email protected] >
Co-authored-by: sean-brydon <[email protected] >
2024-01-25 14:48:46 -03:00
833a91375e
feat: integrate avatarapi to pre-fill avatar ( #13185 )
...
Co-authored-by: Peer Richelsen <[email protected] >
Co-authored-by: Omar López <[email protected] >
2024-01-19 03:57:07 +00:00
DmytroHryshyn and Benny Joo
a28b9cacd2
chore: [app-router-migration 17]: migrate payments page ( #13039 )
...
* chore: migrate payments page
* migrate page to WithLayout HOC, replace new ssrInit
* fix type error
* fix
* revert version changes
* fix
---------
Co-authored-by: Benny Joo <[email protected] >
2024-01-12 18:36:48 -03:00
zomars
97d5bb9fe6
Update turbo.json
2024-01-08 15:37:32 -07:00