Benny Joo
f86a5db843
chore: App Router Migration, add metadata to getting-started, extract into /modules and add method to UserRepository ( #16449 )
...
* getting-started: extract into /modules
* fix
* fix type-check
* add findByIdWithOptionalSelect to UserRepository
* fix import error
* fix type check
* add metadata
* fix
2024-09-17 02:42:19 +00:00
Benny Joo
aa3c91ebd6
chore: App router - add missing metadata for /[user] pages ( #16516 )
2024-09-16 10:42:00 -04:00
Benny Joo
689e17bcf6
fix ( #16632 )
2024-09-15 20:23:37 -03:00
Benny Joo
70348c6f64
fix: Add new api-key CTA button is missing in settings/developer/api-keys ( #16649 )
...
* Add new api-key button is missing
* fix type check
2024-09-15 22:09:03 +09:00
a5191d1e5a
chore: App-router-migration(/auth/verify) add missing metadata / page & extract components into /module ( #16444 )
...
* create StripeRepository and simplify code
* verify-email-change: extract getServerSideProps
* add verify-email-change to app router
* auth/verify: Add metadata in app router
* auth/verify: extract client component into /modules
* fix type checks for stripe
* fix stripe session handler
* improve getServerSideProps for verify-email-change
* add title to verify-email-change page metadata
* add title to verify page metadata
* refactor
* add safety
* fix
* remove references to pages for verify-email
---------
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
2024-09-13 16:13:33 +00:00
sean-brydon
933eb0d057
remove teams layout ( #16624 )
2024-09-13 12:39:42 +00:00
Benny Joo
d9133cb395
chore: App router migration - Create/Use EventRepository and Extract /team/**/* and /teams/* into /modules from /pages ( #16453 )
2024-09-12 18:58:08 -03: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 <sean@brydon.io >
Co-authored-by: Peer Richelsen <peer@cal.com >
2024-09-12 12:33:10 -07:00
Benny Joo
55e1e0fa3d
chore: Remove passing optional prisma select prop to Repository classes ( #16600 )
2024-09-11 18:14:19 -07:00
Benny Joo
74a9f3c19e
hotfix: availability/[schedule] ( #16598 )
2024-09-11 18:11:10 +00:00
Benny Joo and Udit Takkar
d1a0fc6604
chore: App router migration - Fix /event-types/[type] page, move getServerSideProps to /lib for event-types pages ( #16457 )
...
* event-types: refactor and extract client code into /modules
* revert
* remove res in getServerSideProps
* remove res in getServerSideProps 2
* Create EventTypeAppDir and fix error in event-types/[type]
* add comments
* fix type-check
* fix 1 more type-check
---------
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
2024-09-11 02:41:46 +00:00
Benny Joo and Anik Dhabal Babu
976013512c
perf: Server-Side Data Fetching in App Router: /workflows ( #16563 )
...
* wip
* complete server side fetching for app router
* fix type error
* fix
* address comments
---------
Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com >
2024-09-10 19:25:59 -07:00
Benny Joo
d9777a3011
perf: Server-Side Data Fetching in App Router: /availability ( #16536 )
...
* wip
* add method to OrganizationRepository
* server side fetching for availability
* fix error
* server side fetching finish
* remove log
* fix
* fix
* fix type
* no need to export
* fix type
* address nit comments
2024-09-10 19:23:42 -07:00
Benny Joo and Udit Takkar
7725adedc8
chore: App router migration (org/[orgSlug]/instant-meeting), add missing page ( #16448 )
...
* Create event repository
* Use repository in event.handler
* fix type check
* migrate org/instant-meeting
* add export default
* fix metadata
* move getServerSideProps from @server/lib to @lib
* fix
* fix
* revert unneeded changes
---------
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
2024-09-10 18:43:50 -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 <keithwillcode@gmail.com >
2024-09-09 17:19:44 -07:00
Benny Joo
5dff1c6df0
chore: App router migration - /attributes, /privacy, /dsync, /license-key under /settings route group ( #16406 )
...
* migrate license-key/new
* migrate settings/org/dsync
* migrate settings/org/privacy
* migrate org attributes
* remove res in getServerSideProps
* Fix SettingsLayoutAppDir
* fix attributes pages
* fix
* fix
2024-09-09 17:19:12 -07:00
Benny Joo and Joe Au-Yeung
706d7dff42
perf: Server-Side Data Fetching in App Router: SettingsLayout / AdminLayout ( #16537 )
...
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
2024-09-09 14:38:51 -07:00
84a2e55125
chore: App router migration - general settings ( #16312 )
...
* added lockedSMS to future routes
* add orgMigrations routes to future
* correct metadata
* small fix
* add orgMigrations to future
* Move components to client components
* Remove tRPC element from edit user RSC
* Get username for meta
* Remove suspense query
* Remove orgMigrations from app router
* Type fix
* Revert "Remove suspense query"
This reverts commit eadd814f6e4a5d6856d9218342b7909c22fe62c6.
* Handle suspenseQuery in app router
* User edit page, fetch data server side
* Update yarn.lock
* Export getFixedT
* Set PageWrapper as root layout for settings
* Settings Layout accepts strings for shell heading
* Add OOO to app router settings
* Refactor layout for my-account pages
* Remove instances of pages router from my-account
* Refactor security pages
* Add billing to app router
* Add admin API link to layout
* Add api keys page
* Webhooks WIP
* Refactor SettingsHeader to client component
* Add webhook pages
* Refactor API keys page
* Add admin app page
* Type fix
* fix types
* fix developer/webhooks/[id] param value type error
* remove unnecessary code
* do not pass t prop to CreateNewWebhookButton
* fix type errors in webhook-edit-view
* fix the remaining type errors
* do not use prisma directly in generateMetadata
* remove use client if unnecessary
* Remove unused shell heading from SettingsLayoutAppDir
* improve metadata
* fix billing page
* fix import in settings/teams
* Use next `notFound()`
* fix type check
* fix type check
* remove unused code
* Fix calendar setting page
* Separate settings pages into route groups
* Refactor admin settings pages
* Remove meta instance from billing page route
* Update settings layoutAppDir
* Refactor developer settings pages
* Refactor out of office
* Refactor my account settings
* Refactor admin api page
* Refactor security pages
* Type fix
* fix styling in settings layout
---------
Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com >
Co-authored-by: Omar López <zomars@me.com >
Co-authored-by: Benny Joo <sldisek783@gmail.com >
2024-09-09 01:15:03 -04: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
d2f7a427d0
chore: App-router-migration(/apps) fix metadata, extract components into /module and finish migration ( #16354 )
...
* fix metadata for apps page
* migrate apps route to modules
* migrate apps/[slug]
* migrate apps/[slug]/setup
* migrate apps/categories/**/*
* add apps/installed page to app router
* migrate apps/[slug]/[...pages]
* migrate apps/installed/**/*
* Add apps/installation/[[...step]] to App router
* fix imports
* add missing use client directive
* finish migration
* fix metadata
* fix metadata for apps/categories
* fix type for installation/[[...step]]
* fix type for apps/[slug]/[...pages]
* remove unnecessary code
* refactor
* fix apps/installation
* move getServerSideProps to lib
* fix import of apps/installation
* fix import for app slug page
* refactor
* fix installation page in app router
* remove res in getServerSideProps
* replace setHeader with NextResponse header setHeader
* refactor installed pages
---------
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
2024-09-06 15:40:19 +00:00
fced9a6355
feat: Add step in team creation form for selecting event type and create a team event ( #15286 )
...
* feat: Create team event on a new team creation
* fix
* fixed failed tests
* move team event type form
* fix type error
* requested chnages
* update
* some update and refactor
* fix e2e test
* Update useCreateEventType.ts
* update
* fix type error
* fix e2e
* update
---------
Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com >
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com >
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
2024-09-05 12:33:18 -04: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
26be88fc56
chore: App-router-migration /auth/error, /auth/platform, /auth/oauth2 ( #16445 )
...
* preparePageMetadata: improve logic for title
* add missing pages: oauth2 / platform
* auth/error: add to app router and extract to /modules
2024-09-04 13:15:19 +00:00
Benny Joo
86cf8feb55
chore: App-router-migration /auth/new and /auth/saml-idp ( #16447 )
...
* auth/new: add to app router
* auth/saml-idp: add to app router
* fix
2024-09-04 13:05:38 +00:00
Benny Joo
d059b1399b
chore: App router migration - /auth/forgot-password/*, /auth/login, /auth/logout ( #16467 )
...
* migrate auth/forgot-password/*, auth/login, auth/logout
* revert
* fix forgot password
* fix folder structure
* fix logout
* fix middleware
* remove TODO log
* refactor logout
2024-09-03 18:53:16 +09:00
Benny Joo
12a9c74eb6
chore: App router migration - Add method to BookingRepository & Extract /videos/**/* into /modules and /lib ( #16466 )
...
* meeting-ended: refactor and extract client code into /modules
* meeting-not-started: refactor and extract client code into /modules
* meeting-not-found: fix getData
* BookingRepository: add a new method
* video: refactor and extract client code into /modules
* refactor
* refactor getServerSideProps
* use findBookingByUid for more getServerSideProps functions
* rename findBookingByUid -> findBookingByUidWithOptionalSelect
* add safety
2024-09-03 18:53:02 +09:00
Benny Joo
55d75a9786
chore: App router migration (/workflows) fix metadata and remove duplicate file for getStaticProps ( #16452 )
...
* Fix metadata
* add use client directive to workflow component
2024-09-02 23:00:48 +05:30
Benny Joo and Joe Au-Yeung
ae55e5e264
chore: App Router Migration - Ensure isBookingPage is correctly flagged before being passed to PageWrapper ( #16362 )
...
* Ensure adding isBookingPage is done in components in /modules, not in /pages
* Detect isBookingPage prop coming from Page and add it to page wrapper app dir
* fix build
* fix
---------
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
2024-08-29 17:03:02 -04:00
Joe Au-Yeung
6b244fc5b5
fix: Move future/workflow/[workflow] getStaticProps into separate file ( #16124 )
2024-08-28 08:53:32 -04:00
Benny Joo
47e8907184
chore: App Router Migration - Fix metadata util used in App Router and remove duplicate code ( #16346 )
2024-08-27 13:28:09 -04:00
Benny Joo
5bcefb0b3e
settings/teams/[id]/sso is not needed ( #16288 )
2024-08-21 16:47:34 +00:00
sean-brydon
3666c260ee
fix: remove layout as its already in /future/settings/teams/layout.tsx ( #16172 )
2024-08-12 16:08:15 +00:00
Somay Chauhan
6d2ec71df3
add missing getServerSideProps to /event-types ( #15731 )
2024-07-13 09:51:00 +00:00
Hariom Balhara
aa2808d621
fix: Broken SSR for event booking pages ( #14497 )
...
* fix: Broken SSR for event type pages
* Add test
* Consider requestedSlug as well for instances that require payment
* Add a todo test
2024-04-11 10:57:15 +01: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 <me@alexvanandel.com >
Co-authored-by: Hariom <hariombalhara@gmail.com >
Co-authored-by: sean-brydon <sean@cal.com >
Co-authored-by: Joe Au-Yeung <j.auyeung419@gmail.com >
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
Co-authored-by: Omar López <zomars@me.com >
2024-04-03 18:53:02 +05:30
502a3241e4
chore: run migrations conditionally ( #13925 )
...
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
2024-03-13 19:52:27 +00:00
d4f41e803a
fix: Collective Events: Duration parameter in link not working ( #13523 )
...
* set the selectedDuration in store to duration passed in query
* Pass durationConfig prop to Booker component in /team/[slig]/[type] pages
---------
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
2024-02-13 12:23:27 +05:30
97dcb2a2a9
fix: add missing title ( #13307 )
...
* add missing title
* add
* update
* update
* update
* fix lint
* Update AppsLayout.tsx
* update
* Update bookings-listing-view.tsx
* update
---------
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
2024-02-07 17:49:46 -03:00
Benny Joo
d91e74ec13
chore: module based file structure for /video group ( #13453 )
...
* chore: module based file structure for /video group
* fix
* fix
2024-01-29 18:59:24 +00:00
Benny Joo and zomars
c839e40a3e
chore: [app-router-migration 26] Migrate "/[user]" page ( #13057 )
...
Co-authored-by: zomars <zomars@me.com >
2024-01-27 10:57:43 +00:00
d804b3947d
chore: [app-router-migration 36] Migrate /org/* page group ( #13202 )
...
Co-authored-by: CarinaWolli <wollencarina@gmail.com >
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com >
Co-authored-by: Pradumn Kumar <pradumn@tealfeed.com >
Co-authored-by: zomars <zomars@me.com >
2024-01-26 13:06:02 -07:00
DmytroHryshyn
753cb5803d
chore: module based file structure: event types ( #13404 )
2024-01-25 18:37:26 -07:00
Omar López
210bc9fc8c
chore: Proposal for new module based file structure ( #13396 )
2024-01-25 17:31:08 -07:00
DmytroHryshyn
ebe6a60366
fix insights page ( #13390 )
2024-01-24 14:22:09 -07:00
Sasha and Dmytro Hryshyn
12eec186b2
chore: [app-router-migration 31] migrate the "/auth/setup" page ( #13196 )
...
* wip
* chore: setup page migration
* fix: conventions
* fix: convention
* use client
* fix: rebase on 13.5
---------
Co-authored-by: Dmytro Hryshyn <dev.dmytroh@gmail.com >
2024-01-23 18:05:47 -03:00
Benny Joo
827d8995a1
chore: [app-router-migration 38]: Refactor migrated pages and fix generateMetadata functions ( #13314 )
...
* refactor to keep consistencies in files
* manual: more refactors
* revert unnecessary changes
* fix type errors
* fix build error
* fix
2024-01-22 17:32:15 -03:00
3c8c6d0574
feat: Add Owner during organization creation ( #13069 )
...
* feat: Add Owner during organization creation
* chore: remove dead code
* fix: change route from onboard-admin to onboard-members
* fix: change button name to add_members from add_team_member
* fix: change MembershipRole badge colour
* fix: previous membership role bug
* update: "On-board administrators" tests
* fix: wrong import
* Reverted extra changes
* fix: current user cannot remove itself
* Reverted extra changes
* Reverted extra changes 2
* send isOrg to removeMember handler
* fix: removed prisma.user.delete cleanup as not needed
---------
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
2024-01-22 10:24:09 -05:00
c11e76bac9
chore: [app-router-migration 30] migrate the "login" page ( #13195 )
...
Co-authored-by: Dmytro Hryshyn <dev.dmytroh@gmail.com >
Co-authored-by: Benny Joo <sldisek783@gmail.com >
Co-authored-by: zomars <zomars@me.com >
2024-01-19 15:14:14 -07:00
bf958c82da
chore: [app-router-migration 32] migrate the "/auth/forgot-password/*" pages ( #13197 )
...
Co-authored-by: Dmytro Hryshyn <dev.dmytroh@gmail.com >
Co-authored-by: Benny Joo <sldisek783@gmail.com >
Co-authored-by: zomars <zomars@me.com >
2024-01-19 21:08:05 +00:00
Sasha
728a386bf0
chore: [app-router-migration 35] migrate the "sso" pages ( #13200 )
...
## What does this PR do?
- This PR migrates the `/auth/sso/*` page group to the app directory (which runs under the App Router).
- The migrated page exists under `/future/auth/sso/*` and is accessible at all times.
## Requirement/Documentation
- If there is a requirement document, please, share it here.
- If there is ab UI/UX design document, please, share it here.
## Type of change
- [x] Chore (refactoring code, technical debt, workflow improvements)
- [x] New feature (non-breaking change which adds functionality)
## How should this be tested?
There should be no changes between the old sso and new sso routes in terms of content and no downgrading in terms of performance.
The pages were not tested due to being unable to reproduce the flow locally.
## Mandatory Tasks
- [x] Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.
2024-01-19 14:00:36 -07:00