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 dry run mode message during the booking process. #18429

Merged
merged 2 commits into from
Jan 1, 2025

Conversation

hariombalhara
Copy link
Member

@hariombalhara hariombalhara commented Dec 31, 2024

Demo - https://www.loom.com/share/7649e3db7c08404683fd882f226c74cc

image

  • Introduced a new dismissable DryRunMessage component to inform users when in dry run mode.
  • Implemented utility function isBookingDryRun to check for dry run status based on URL search parameters.
  • Updated the Booker component to conditionally render the dry run message.
  • Adjusted booking mutation input mapping to reuse the utility
  • Fixes the issue of icons not showing up on org booking page

What does this PR do?

  • Fixes #XXXX (GitHub issue number)
  • Fixes CAL-XXXX (Linear issue number - should be visible at the bottom of the GitHub issue description)

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • N/A I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

See loom

@hariombalhara hariombalhara self-assigned this Dec 31, 2024
@graphite-app graphite-app bot requested a review from a team December 31, 2024 11:19
@dosubot dosubot bot added bookings area: bookings, availability, timezones, double booking ✨ feature New feature or request labels Dec 31, 2024
@keithwillcode keithwillcode added core area: core, team members only enterprise area: enterprise, audit log, organisation, SAML, SSO labels Dec 31, 2024
Copy link

graphite-app bot commented Dec 31, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (12/31/24)

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

@@ -464,7 +469,7 @@ const nextConfig = {
},
{
source: "/icons/sprite.svg",
headers: [CORP_CROSS_ORIGIN_HEADER],
headers: [CORP_CROSS_ORIGIN_HEADER, ACCESS_CONTROL_ALLOW_ORIGIN_HEADER],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the issue of icons not appearing locally for org bookings.

Production endpoint already has this header, I don't know why(maybe cloudflare)
image

@hariombalhara hariombalhara force-pushed the feat-add-banner-dry-run branch from 7de5fac to fbab72c Compare December 31, 2024 11:25
Copy link

vercel bot commented Dec 31, 2024

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 Jan 1, 2025 11:22am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Jan 1, 2025 11:22am

@hariombalhara hariombalhara force-pushed the feat-add-banner-dry-run branch from fbab72c to 02c64b0 Compare December 31, 2024 11:25
…rocess

- Introduced a new `DryRunMessage` component to inform users when in dry run mode.
- Implemented utility function `isBookingDryRun` to check for dry run status based on URL search parameters.
- Updated the `Booker` component to conditionally render the dry run message.
- Adjusted booking mutation input mapping to reuse the utility
Copy link
Contributor

github-actions bot commented Dec 31, 2024

E2E results are ready!

@Udit-takkar Udit-takkar added this to the v4.9 milestone Jan 1, 2025
@Udit-takkar Udit-takkar enabled auto-merge (squash) January 1, 2025 11:22
@Udit-takkar Udit-takkar merged commit bac2d1f into main Jan 1, 2025
38 checks passed
@Udit-takkar Udit-takkar deleted the feat-add-banner-dry-run branch January 1, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bookings area: bookings, availability, timezones, double booking core area: core, team members only enterprise area: enterprise, audit log, organisation, SAML, SSO ✨ feature New feature or request ready-for-e2e
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants