56 Commits
Author SHA1 Message Date
Agusti Fernandez Pardo 00071bcdf0 fix: general settings (Save / Update on submit) (#4557) 2022-09-17 17:09:52 +00:00
a3462657db feat: v2 embed (#4477)
* Add support for custom tabNameKey and use embedTabName as the key for embed to avoid conflict with event-types tabName property

* Fix tests

* Code cleanup

* feat: v2 embed

* fix: button black default, reuse horitzontalTabs v2

* fix: remove comment, remove linkProps from NavTabs v2

* fix: height: 98% to avoid overflow

* fix: add embed to event type detail page

* fix: add also tabNames embed-code embed-react

* fix: add tabNames w empty divs

* Update Embed component as per V2

Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
2022-09-15 05:34:11 +00:00
38bd111260 fixes toggle (#4253)
* fixes toggle

* fix: remove absolute from recurring event div

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-08 11:42:46 +02:00
Agusti Fernandez Pardo fcb9ca6ace Merge pull request #162 from calcom/fix/no-prisma-defined 2022-09-06 19:40:48 +02:00
Agusti Fernandez Pardo 5d09739966 Merge pull request #161 from calcom/fix/me 2022-09-06 19:20:41 +02:00
Agusti Fernandez Pardo d210623fbd Merge pull request #160 from calcom/fix/build-issues 2022-09-06 19:06:29 +02:00
1948455be0 wip: remove metamask app (#4049)
* wip: disable metamask app

* fix: remove dont comment

* fix: remove dont comment

* Update packages/app-store/index.ts

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

* Update packages/app-store/index.ts

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

* fix: bookingpage

* fix: remove web3Details zod

* removed unused web3

* Build fixes

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Peer Richelsen <peer@cal.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: zomars <zomars@me.com>
2022-09-02 17:55:12 -06:00
f4fe91396f Improve 2fa: ask for code before account removal and 2fa disabling (#3817)
* fix conflicts

* fix remove separate function and call mutation directly

* feat: add new react-otp-input to enable 2fa flow

* fix: comment out

* fix: remove next-auth 4.9.0 from yarn.lock

* fix: delete account test fill password before submit

* fix: test delete accc

* fix typo in delete acc test

* Update apps/web/components/security/EnableTwoFactorModal.tsx

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

* feat: remove react-otp-input reuse TwoFactor

* feat: add center props to TwoFactor

* fix: no v2

* feat: disable 2fa requires 2fa api

* feat: make 2fa required to disable 2fa

* fix: FormEvent instead of SyntheticEvent

* fix: types

* fix: move disable 2fa form to fully use RHF

* fix     if (e) e.preventDefault();

* feat: fix remove account

* fix: remove react-otp-input types

* fix: separate onConfirm to add to form handleSubmit

* fix: types e:SyntethicEvent

* fix: types

* fix: import packages lib not web lib

* Update apps/web/components/security/EnableTwoFactorModal.tsx

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

* Update apps/web/components/security/EnableTwoFactorModal.tsx

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

* fix: no import from web

* fix: import

* fix: remove duplicate FormEvent

* fix: upgrade ErrorCode imports

* fix profile types totpCode not optional

* fix: build pass

* fix: dont touch test delete-account

* fix: type

* fix: add data-testid to password field

* fix: conflicts w syncServices

* Build fixes

* Fixes delete account e2e test

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-08-31 14:57:53 -06:00
58c4c894fd fix: update rejectOnNotFound -> find(Fist|Unique)OrThrow (#3829)
* fix: update rejectOnNotFound -> find(Fist|Unique)OrThrow

* fix: add back custom errohandling

* feat: handle notfounderror in getServerErrorFromUnknown

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: Omar López <zomars@me.com>
2022-08-31 13:44:47 -06:00
b8b1b9a6d0 fix: rate limit auth (#3820)
* fix: rate limit auth

* fix: replace lru-cache w memory-cache

* remove comments

* fix: yarn.lock

* fix: remove changes yarn lock

* fix: add missing EOL empty liune

* fix: move rate limiter so it kicks the last, limit to 10 tries per minute

* fix: move limiter w rest of code

* test: trying fix onboardong

* fix: undo changes in globalSetup.ts

* test: fix disable login for onboarding

* fix: use username instead of email for token check

* fix: tests

* fix: don't run on test

* fix: add missing comma

* fix: remove uniqueTokenPerInterval

* fix: add errorcode to packages lib auth

* Update packages/lib/rateLimit.ts

fix: improve readability

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

* Update packages/lib/rateLimit.ts

fix: no unnecessary any

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

* Update packages/lib/rateLimit.ts

fix: improve readability

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

* fix: rename interval -> intervalInMs

* fix: check user.email not username which could be empty

* fix: rateLimit update all naming

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-08-30 13:58:35 -06:00
bfe780e0af fix add endIconClassName in button (#3893)
* fix add tooltip provider to tooltip

* fix: add endIconClassNames support for button as startIcon has

* fix: undo tooltip provder

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-08-24 08:37:46 +00:00
9221042db4 feat: signin test email magic signup in app (#3749)
* feat: signin test email magic signup in app

* fix: no signIn page in nextauth

* fix: remove commented signIN

* Update apps/web/pages/auth/signin.tsx

remove import useRouter

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

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Omar López <zomars@me.com>
2022-08-09 15:38:21 -06:00
e878e1a665 Fix/api build (#3675)
* fix: shared next-auth calendso session type fix

* fix: move imports from @lib -> @calcom/lib to fix types

* Consolidates next-auth definitions

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: zomars <zomars@me.com>
2022-08-03 13:18:26 -06:00
Agusti Fernandez Pardo fe50b8de18 fix: cleanup onboarding username (#3638) 2022-08-02 10:33:21 -06:00
Agusti Fernandez Pardo fd8b323e47 fix: base_url for login link should be WEBAPP_URL not WEBSITE_URL (#3637) 2022-08-02 10:05:09 -06:00
c1896fc833 Feat/onboarding username (#3580)
* fix: remove duplicate button in textusernamefield

* feat: adds username if not present in getting-started first onboarding step

* fix: credentials

* fix: typo

* fix: user type

* fix: type errors

* Validates successRedirectUrl earlier with zod

* Removes deprecated api endpoint

* Reduces the data needed for the frontend on onboarding

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
2022-08-01 15:44:08 -06:00
Agusti Fernandez Pardo a8e8acd053 Merge pull request #149 from calcom/fix/users-pagination
fix: users pagination remove min/max as its a string not a number
2022-07-14 19:57:22 +02:00
Agusti Fernandez Pardo 60e9c26dfe Merge pull request #148 from calcom/production
rebase dayjs fix in Production to main
2022-07-12 20:37:24 +02:00
Agusti Fernandez Pardo 2bb6c7de45 Merge pull request #135 from calcom/feat/availability-teams
Feat/availability teams + pagination for /users
2022-07-12 20:16:57 +02:00
Agusti Fernandez Pardo ec24711990 Merge pull request #139 from calcom/fix/axiom-package
fix: add next-axiom to package.json
2022-07-08 19:35:22 +02:00
Agusti Fernandez PardoandOmar López 76d0b0c1ee Update pages/api/users/_get.ts
remove console log statement

Co-authored-by: Omar López <zomars@me.com>
2022-07-08 19:34:26 +02:00
Agusti Fernandez PardoandOmar López 80e414d4f5 Update pages/api/availability/_get.ts
no if just return

Co-authored-by: Omar López <zomars@me.com>
2022-07-08 19:33:50 +02:00
Agusti Fernandez PardoandOmar López a72fbfa093 Update pages/api/availability/_get.ts
improve error message team no members

Co-authored-by: Omar López <zomars@me.com>
2022-07-08 19:33:37 +02:00
Agusti Fernandez PardoandOmar López f6faa8bc46 Update pages/api/users/_get.ts
remove console log

Co-authored-by: Omar López <zomars@me.com>
2022-07-08 19:33:17 +02:00
Agusti Fernandez PardoandOmar López bd485b7b77 Update pages/api/teams/_get.ts
fix prisma import

Co-authored-by: Omar López <zomars@me.com>
2022-07-08 19:33:00 +02:00
Agusti Fernandez Pardo 03254b83da Merge pull request #144 from calcom/fix/add-middlewares-back-bookingId
fix: add middlewares back
2022-07-08 18:59:20 +02:00
Agusti Fernandez Pardo 916ceb57c6 Merge pull request #143 from calcom/fix/missing-return-bookings-id
fix: bookings:id
2022-07-08 18:51:33 +02:00
Agusti Fernandez Pardo 27482daaec Merge pull request #142 from calcom/fix/booking-no-middlewares
fix: remove old middlewares in bookingId
2022-07-08 18:27:53 +02:00
Agusti Fernandez Pardo 1266665710 Merge pull request #138 from calcom/chore/add-axiom
feat: add axiom
2022-07-08 02:00:36 +02:00
Agusti Fernandez Pardo 8ca627040b fix: adds new constants fallbacks for railway and heroku apps (#3217) 2022-07-06 19:13:02 -06:00
Agusti Fernandez PardoandOmar López 2263e04217 Update pages/api/availability/_get.ts
add select: availabilitUserSelect

Co-authored-by: Omar López <zomars@me.com>
2022-07-05 20:35:30 +02:00
Agusti Fernandez PardoandOmar López 5dbb2066e0 Update pages/api/availability/_get.ts
add initialData: {user}

Co-authored-by: Omar López <zomars@me.com>
2022-07-05 20:34:53 +02:00
Agusti Fernandez Pardo 74c227f5f1 Merge pull request #134 from calcom/fix/transpile-calcom-dayjs
fix: transpile new @calcom/dayjs package in API
2022-07-02 05:30:59 +02:00
5ec4b7ad37 feat: adds new version endpoint in internal api (#3155)
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-06-25 05:37:29 +00:00
Agusti Fernandez Pardo 6ed007d873 Merge pull request #133 from calcom/fix/api-feedback
fix: address issues raised in preview PR
2022-06-24 01:17:28 +02:00
Agusti Fernandez Pardo 9b142640d5 Merge pull request #132 from calcom/fix/userId-not-id
fix: userId not, id remove templates stall
2022-06-24 00:12:10 +02:00
Agusti Fernandez Pardo d675535cdf Merge pull request #130 from calcom/feat/dynamic-prisma
Feature: custom Prisma for self-hosted deployments needed for new hosted admin console
2022-06-23 23:39:29 +02:00
Agusti Fernandez Pardo 5a914934dd Merge pull request #127 from calcom/fix/optional-userId-availability
fix: makes id optional in availability
2022-06-16 21:53:15 +02:00
ddc686075b feat: update api to latest commit (#3073)
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-06-16 11:07:58 +02:00
Agusti Fernandez Pardo def5c8dd4c Merge pull request #126 from calcom/feat/improve-readme-deploy
feat: improve deployment docs for api
2022-06-16 03:11:32 +02:00
Agusti Fernandez Pardo d3785bb6f8 Merge pull request #125 from calcom/feat/users-id-availability
Feat/users id availability
2022-06-16 01:06:11 +02:00
Agusti Fernandez Pardo bcb61ab280 Merge pull request #124 from calcom/production
Production rebase main
2022-06-15 23:08:11 +02:00
Agusti Fernandez Pardo 26f861d0d0 Merge pull request #107 from calcom/feat/admin-events
Feat: Add admin enpoints for event-types, bookings, attendees
2022-06-15 21:58:31 +02:00
Agusti Fernandez Pardo 3eda1507c6 Merge pull request #123 from calcom/fix/build-session
add session to req
2022-06-15 00:21:34 +02:00
22460a460b feat: Adds new customPrisma for hosted API (#3055)
* feat: customPrisma for hosted API access

* fix: 24h not 24 days for expiry cache in customPrisma calls

* fix: move PRISMA_CLIENT_CACHING_TIME to API

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-06-14 17:11:39 +00:00
Agusti Fernandez Pardo 55d8af0ae9 Merge pull request #121 from calcom/fix/user-metadata
fix: make jsonSchema.optional()
2022-06-13 23:58:52 +02:00
456ba9db04 fix: saml update/delete only owner team (#2948)
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-06-04 07:31:10 -06:00
16836d0cfb fix: saml update/delete only owner team (#2948)
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-06-03 23:13:50 +00:00
60d6c7be51 fix: owners can't be edited by admins (#2942)
* fix: owners can't be edited by admins

* fix: removec omment

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-06-02 09:39:23 -06:00
Agusti Fernandez Pardo 1180f3f258 Merge pull request #105 from calcom/feat/uuid-hooks
feat: adds automatic generation of uuid id for webhooks create on API
2022-06-02 15:56:01 +02:00
Agusti Fernandez Pardo 767f170cae Merge pull request #103 from calcom/feat/admin-users
feat: Admin API users manegement endpoints
2022-05-31 21:00:51 +02:00
Agusti Fernandez Pardo 849c4aa240 Merge pull request #102 from calcom/fix/event-type-validations
Fix/event type validations
2022-05-28 01:52:06 +02:00
Agusti Fernandez Pardo eee5fd0090 Merge pull request #101 from calcom/fix-event-types-id
fix: event types id endpoints
2022-05-27 21:45:17 +02:00
Agusti Fernandez Pardo 81d2917a3d Merge pull request #100 from calcom/production
Production
2022-05-27 21:20:01 +02:00
Agusti Fernandez Pardo 458f37f5e9 Merge branch 'main' into production 2022-05-27 21:19:43 +02:00
Agusti Fernandez Pardo 10e8677894 Merge pull request #99 from calcom/fix/event-types-user-centric-query
fix: moves event-types to find user including it's event-types
2022-05-27 20:44:31 +02:00