Skip to content
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

feat: add time-based restrictions for cancellation and rescheduling #20538

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Add time-based restrictions for cancellation and rescheduling in event types

This PR implements the following features:

  • Add new options in event type settings to specify if cancellation/rescheduling should be:
    • Always disabled
    • Disabled within X hours of booking start time
  • Add time input fields to specify the hours threshold when selecting the time-based option
  • Modify the cancellation/reschedule pages to check the booking start time against current time using dayjs
  • Only show cancellation/reschedule options if the booking is outside the restricted timeframe
  • Add user-friendly messages when cancellation/rescheduling is disabled due to time restrictions
  • Only apply time-based restrictions to attendees, not to organizers

Link to Devin run: https://app.devin.ai/sessions/58efb2599025405196ea293e2dcbcfce
Requested by: Bailey Pumfleet ([email protected])

@devin-ai-integration devin-ai-integration bot requested a review from a team as a code owner April 4, 2025 03:05
@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Apr 4, 2025
@graphite-app graphite-app bot requested a review from a team April 4, 2025 03:05
Copy link

graphite-app bot commented Apr 4, 2025

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (04/04/25)

1 reviewer was added to this PR based on Keith Williams's automation.

"Add community label" took an action on this PR • (04/04/25)

1 label was added to this PR based on Keith Williams's automation.

@dosubot dosubot bot added event-types area: event types, event-types ✨ feature New feature or request ❗️ migrations contains migration files labels Apr 4, 2025
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link

vercel bot commented Apr 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Apr 4, 2025 5:16am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Apr 4, 2025 5:16am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Created by Linear-GitHub Sync event-types area: event types, event-types ✨ feature New feature or request ❗️ migrations contains migration files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants