Hariom Balhara
476119d627
Add changesets/cli to release embed ( #8126 )
...
* Add dep versions
* Release new version for embeds
* Add prepublish
* Use prepare script which works with both npm and yarn
* Add changesets correctly
* Add embed publishing command
---------
Co-authored-by: zomars <zomars@me.com>
2023-05-13 08:22:31 +00:00
Julius Marminge
53748eb380
add an enum generator, stop importing from @prisma/client ( #8548 )
...
* add an enum generator and start importing from it
* keep moving imports
* fix remaining
* Header simplified
* Removed generated file from repo
* Updated .gitignore to exclude enums directory
* Add eslint rule to check for @prisma/client Prisma enum import
* Added another enum import + exclude PrismaClient
---------
Co-authored-by: Alex van Andel <me@alexvanandel.com>
2023-05-02 13:44:05 +02:00
Udit Takkar
bdbf9bd04d
perf: reduce bundle size ( #8337 )
...
Co-authored-by: zomars <zomars@me.com>
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Keith Williams <keithwillcode@gmail.com>
2023-04-19 19:45:08 +05:30
Nafees Nazik
f467bb7957
perf: use LRU cache for getServerSession ( #8339 )
...
* chore: add lru package
* feat: use LRU cache
* fix: type
* Updates package json
---------
Co-authored-by: zomars <zomars@me.com>
2023-04-18 01:55:01 +00:00
Lucas Smith
e5eb7c3906
perf: use getSlimServerSession for session retrieval ( #8308 )
...
* perf: use getSlimServerSession for session retrieval
Creates a new `getSlimServerSession` method and replaces all calls to `getServerSession`.
The new method is much faster than `getServerSession` with it not requiring the NextAuth options object which includes a number of additional packages.
Additionally introduces a primitive in-memory cache for slim sessions.
* fix: account for seconds in token.exp
* Reverts diffs
* Replaces getServerSession with slimmer version
* Update disable.ts
---------
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Keith Williams <keithwillcode@gmail.com>
Co-authored-by: zomars <zomars@me.com>
2023-04-17 23:48:00 +00:00
Alex van Andel
4975aba5e0
Move some dependencies into async ( #8270 )
...
* Move some dependencies into async
* Also remove jackson & jose from global scope
2023-04-14 14:25:15 -07:00
Abdallah Alsamman
91f381bce9
Replace react icons with lucidedev ( #8146 )
...
* migrate from react-icons to lucide-react
* replace react-icon with lucide-dev: Webhook Icon
* add lucide transformer
* Fix LinkIcon import
* Update yarn.lock to include monorepo deps
* Migrated icons in ChargeCardDialog
* Port Storybook to new icons as well
* Adjust Info & Globe icons size to match react-icons size
---------
Co-authored-by: Alex van Andel <me@alexvanandel.com>
2023-04-12 17:26:31 +02:00
Udit Takkar
fa17139e8f
fix: add belongsToActiveTeam ( #7890 )
...
* fix: add belongsToActiveTeam
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
* fix: create a common function
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
* fix: add suggestion
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
* chore: use deconstructing
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
* chore
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
---------
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
2023-03-23 19:23:06 +01:00
zomars
5cbd334a42
Simplifies admin password role checks
2023-03-16 14:02:38 -07:00
Alex van Andel
2685e8154f
Hotfix/account provider should be lowercase ( #7763 )
...
* Fix passThrough console error (passHref is not valid)
* Fix 'use-identity-login' error when logging in with idP
---------
Co-authored-by: Keith Williams <keithwillcode@gmail.com>
2023-03-16 15:12:45 +00:00
Omar López
54cefcb16e
Upgrades yarn v1 to v3. Improves CI times by 2x ( #7738 )
...
* Create env file workflow
* Add env-cache
* Fix env setter
* Fix
* Another fix
* Fix
* Fix
* Fixes
* FFS
* Fix
* Fix
* Fix
* Fix
* Fix
* Cache fixes
* Fixes
* Adds skipping steps
* db-cache fixes
* Test
* Cache fixes
* e2e
* Possible caching conflicts
* Running out of ideas
* Caching is hard
* One more time
* cache-build not skipping
* Fingers crossed
* a
* Test
* Pls
* Please
* LFG
* Build fix
* fix
* Whitespace!!
* Zomars/cal 884 paid events not sending the link (#7318 )
* WIP
* Sends correct emails for paid bookings
* Update PaymentService.ts
* Update webhook.ts
* Update webhook.ts
* Update settings back button redirect link (#7403 )
* fix(schedule): close on click #7143
* fix(EventSetupTab): validLocations length will always match validLocations length #7138
* fix(SettingsLayout): go back to right route #7379
* feat: get country code from ip geolocation (#6880 )
* feat: get coutnry code from ip geolocation
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
* fix: create new api route for fetching code
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
* chore: replace city with country
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
* refactor: create hook for country
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
---------
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
* Team Workflows (#7038 )
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Co-authored-by: zomars <zomars@me.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
* Add destination calendar name to DestinationCalendarSelector (#6701 )
* Add destination calendar name
* Type fix
* Search through calendars only for destination calendar credential
* Refactor get connected calendars
* Clean up
---------
Co-authored-by: zomars <zomars@me.com>
* Update viewer.tsx (#7428 )
* Fix - add team members to emails (#7207 )
* On booking add team members & translation
* Add team members to round robin create
* Only update calendars on reschedule if there is a calendar reference
* Send email on reschedules
* Send team email on cancelled event
* Add team members to calendar event description
* Clean up
* Convert other emails to organizer & teams
* Type check fixes
* More type fixes
* Change organizer scheduled input to an object
* early return updateCalendarEvent
* Introduce team member type
* Fix type errors
* Put team members before attendees
* Remove lodash cloneDeep
* Update packages/core/EventManager.ts
Co-authored-by: Omar López <zomars@me.com>
* Remove booking select object
* Revert "Remove booking select object"
This reverts commit 9f121ff4eb
.
* Refactor email manager (#7270 )
Co-authored-by: zomars <zomars@me.com>
* Type change
* Remove conditional check for updateAllCalendarEvents
---------
Co-authored-by: zomars <zomars@me.com>
* Typefix
* Updates webhook response
* Update pr.yml
* Update action.yml
* Update action.yml
* Update action.yml
* Update action.yml
* Update action.yml
* Is this redundant?
* Removed setup
* Update action.yml
* Update action.yml
* Consolitades setup step
* Revert "Consolitades setup step"
This reverts commit 5e8d1983cc
.
* Fix?
* One more time
* Revert "One more time"
This reverts commit fd8b559a13
.
* Benchmarking buildjet
* Update action.yml
* Re-introduce setup
* Adds embeds to missing pro cache
* Lint fixes
* Adds prettier ignore
* Upgrades to yarn 3
* Updates lockfile
* Reverts CI to ubuntu
* Testing new yarn install
* We cannot use immutable due to our private submodules
* Adds CI skip
* Fixes
* Adds plugin
* Forces local embed package
* Moves eslint to root
* Update yarn.lock
* Playwright fixes
* Embed test fixes
* Splits embed react tests
* Splits embed react tests
* Removes install step to benchmark
* Update playwright.config.ts
* One playwright config for all
* More test fixes
* Update basic.e2e.ts
* Added typescript as a global monorepo dev
* Update to v18
* Update yarn.lock
* Update env-create-file.yml
* Update .github/workflows/pr.yml
---------
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
Co-authored-by: Esaú Morais <55207584+esau-morais@users.noreply.github.com>
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com>
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
2023-03-15 15:01:04 -07:00
Alex van Andel
fcb06a131b
Bugfix/allow impersonation non cal id p ( #7689 )
...
* Only require a password when IdP is CAL
* Also require twoFactorEnabled
2023-03-15 14:52:32 +00:00
Alex van Andel
d778fe6a1b
Does case insensitive select, then overwrites email with IdP email ( #7673 )
2023-03-15 14:52:18 +00:00
Alex van Andel
14c38f5108
Small fix to next-auth-options ( #7674 )
2023-03-11 20:04:42 +00:00
Lucas Smith
2317473545
feat(web): improve session retrieval performance ( #7584 )
...
* feat(web): improve session retrieval performance
Switch to using `getServerSession` which avoids a HTTP round trip to retrieve session details.
Additionally, migrate deprecated `app/lib/auth` calls to to `@calcom/lib` package.
* fix: update failing test and lint
* Consolidates auth code in features
* Update yarn.lock
* Update packages/trpc/server/createContext.ts
* Oopsie
---------
Co-authored-by: zomars <zomars@me.com>
2023-03-10 23:45:24 +00:00
Omar López
7c749299bb
Enforces explicit type imports ( #7158 )
...
* Enforces explicit type imports
* Upgrades typescript-eslint
* Upgrades eslint related dependencies
* Update config
* Sync packages mismatches
* Syncs prettier version
* Linting
* Relocks node version
* Fixes
* Locks @vitejs/plugin-react to 1.3.2
* Linting
2023-02-16 15:39:57 -07:00
Nafees Nazik
8197ba18d4
feat: add new Jitsu events ( #6980 )
...
Co-authored-by: Peer Richelsen <peer@cal.com>
2023-02-10 09:53:03 +00:00
Jeroen Reumkens
cfa8fd8b67
Reduce bundle size by importing single icons at a time ( #6644 )
...
* Removed barrel import for icons to reduce bundle size.
* Fixed replacement mistakes
* Reverted unneccesary yarn.lock updates
* Added some missed Icon. import conversions
* Remove merge artifact import in @calcom/ui
* Don't import Icon in pages/[user]
* Update packages/ui/package.json
Co-authored-by: Alex van Andel <me@alexvanandel.com>
Co-authored-by: Omar López <zomars@me.com>
2023-01-23 23:08:01 +00:00
sean-brydon
9d0cf6be0b
No more modules folder 🔥 ( #6158 )
...
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-12-22 19:06:26 +00:00
sean-brydon
1bb987556d
Impersonate UI ( #4243 )
...
* Impersonate UI
* Depracates Old admin required
* Move permission container to features
* Remove logic from dumb components
* Fix export from v2
* Fix type cast - add tab filter
* Redirect on authed pages
* Add key back
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
2022-09-08 15:35:31 +00:00
Omar López
464343f5ab
Refactors EE code ( #3490 )
...
* WIP
* WIP
* Type and migration fixes
* Adds missing default import
* Fixes import
* Fixes tRPC imports in App Store
* Migrate stripe helpers
* WIP
* Type fixes
* Type fix?
* WIP
* WIP
* Update index.ts
* Fixes
* Update workflow.tsx
* Moved queries to lib
* Moves QueryCell
* Migrates MultiSelectCheckboxes
* WIP
* CryptoSection type fixes
* WIP
* Import fixes
* Build fixes
* Update app-providers.tsx
* Build fixes
* Upgrades hookform zod resolvers
* Build fixes
* Cleanup
* Build fixes
* Relocates QueryCell to ui
* Moved List and SkeletonLoader
* Revert QueryCell migration
* Can't use QueryCell here
* oops
* CryptoSection cleanup
* Update app-providers.tsx
* Moved ee to features
* ee to features/ee
* Removes @calcom/ee
* Adds possible feature locations
* Build fixes
* Migrates stripe to app-store lib
* Colocates stripe imports
* Update subscription.ts
* Submodule sync
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-07-28 13:58:26 -06:00