-
Notifications
You must be signed in to change notification settings - Fork 12k
feat: add custom calendar reminder for Google Calendar events #26078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
eunjae-lee
merged 27 commits into
calcom:main
from
Deepak22448:feat/google-calendar-custom-reminder
Jan 14, 2026
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
f587194
feat: add custom calendar reminder for Google Calendar events
Deepak22448 a8bc82e
fix: address code review feedback
Deepak22448 1ac7440
fix: add customCalendarReminder to DestinationCalendar types
Deepak22448 d4222ea
fix: update customCalendarReminder type in test to match Prisma schema
Deepak22448 681edae
feat: add 'just in time' reminder option for Google Calendar events
Deepak22448 c38ea4e
fix: add customCalendarReminder to calendars service mock
Deepak22448 c1a2241
fix: add customCalendarReminder to destination calendars controller test
Deepak22448 41ac7f9
fix: cast customCalendarReminder to ReminderMinutes type
Deepak22448 1da0f26
Merge branch 'main' into feat/google-calendar-custom-reminder
volnei 95d92ec
Merge branch 'main' into feat/google-calendar-custom-reminder
keithwillcode 387cf31
refactor: simplify translation logic in DestinationReminderSelector
Deepak22448 324de3c
Merge branch 'main' into feat/google-calendar-custom-reminder
Deepak22448 56aa7a7
Merge branch 'main' into feat/google-calendar-custom-reminder
volnei 428a5ba
refactor: make custom calendar reminder opt-in and use repository pat…
Deepak22448 61a1762
refactor: remove redundant migration file
Deepak22448 36a3155
Merge branch 'main' into feat/google-calendar-custom-reminder
eunjae-lee a3d683e
Merge branch 'main' into feat/google-calendar-custom-reminder
eunjae-lee ab68922
fix: type error for customCalendarReminder in destination calendar se…
Deepak22448 150faed
refactor: validate customCalendarReminder with Zod schema instead of …
Deepak22448 39c1dac
Merge branch 'main' into feat/google-calendar-custom-reminder
Deepak22448 d300dff
Merge branch 'main' into feat/google-calendar-custom-reminder
eunjae-lee 10a1fcc
Merge branch 'main' into feat/google-calendar-custom-reminder
eunjae-lee 9337b22
refactor: use instance methods in DestinationCalendarRepository
Deepak22448 82cd0cd
Merge branch 'feat/google-calendar-custom-reminder' of github.com:Dee…
Deepak22448 d9b9a2e
Merge remote-tracking branch 'origin/main' into feat/google-calendar-…
Deepak22448 c404de3
Merge branch 'main' into feat/google-calendar-custom-reminder
Deepak22448 b6a0949
refactor: replace singleton with DI for DestinationCalendarRepository
Deepak22448 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import type { DestinationCalendarRepository } from "@calcom/lib/server/repository/destinationCalendar"; | ||
|
|
||
| import { createContainer } from "../di"; | ||
| import { moduleLoader as destinationCalendarRepositoryModuleLoader } from "../modules/DestinationCalendar"; | ||
|
|
||
| const container = createContainer(); | ||
|
|
||
| export function getDestinationCalendarRepository() { | ||
| destinationCalendarRepositoryModuleLoader.loadModule(container); | ||
| return container.get<DestinationCalendarRepository>(destinationCalendarRepositoryModuleLoader.token); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import { DestinationCalendarRepository } from "@calcom/lib/server/repository/destinationCalendar"; | ||
| import { DI_TOKENS } from "@calcom/features/di/tokens"; | ||
| import { moduleLoader as prismaModuleLoader } from "@calcom/features/di/modules/Prisma"; | ||
|
|
||
| import { createModule, bindModuleToClassOnToken, type ModuleLoader } from "../di"; | ||
|
|
||
| export const destinationCalendarRepositoryModule = createModule(); | ||
| const token = DI_TOKENS.DESTINATION_CALENDAR_REPOSITORY; | ||
| const moduleToken = DI_TOKENS.DESTINATION_CALENDAR_REPOSITORY_MODULE; | ||
| const loadModule = bindModuleToClassOnToken({ | ||
| module: destinationCalendarRepositoryModule, | ||
| moduleToken, | ||
| token, | ||
| classs: DestinationCalendarRepository, | ||
| dep: prismaModuleLoader, | ||
| }); | ||
|
|
||
| export const moduleLoader: ModuleLoader = { | ||
| token, | ||
| loadModule, | ||
| }; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we avoid using direct
prismahere and use the repository pattern?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed.