Skip to content

fix: managed events with internal notes#18933

Merged
sean-brydon merged 1 commit intomainfrom
fix/internal-note-managed-event-type
Jan 28, 2025
Merged

fix: managed events with internal notes#18933
sean-brydon merged 1 commit intomainfrom
fix/internal-note-managed-event-type

Conversation

@sean-brydon
Copy link
Copy Markdown
Member

What does this PR do?

This PR fixes the implementation of internal notes to work outside of just a "team event type" context. Allows the cancelation reason to transfer across to managed event types and not just specific team events.

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • 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?

Create a managed event type on a team
Create Internal note presets in settings > [team name] > settings
Create a booking on managed event type
Cancel booking > Select internal note or "other"
Cancel booking

Try the same with a normal team event type.
Try again with a normal booking that doesnt have internal notes enabled.

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my changes generate no new warnings

@graphite-app graphite-app Bot requested a review from a team January 28, 2025 08:25
{!error && (
<div className="mt-5 sm:mt-6">
{props.isHost && teamId && (
{props.isHost && props.internalNotePresets.length > 0 && (
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

TeamId isnt always true now for this to be rendered

@keithwillcode keithwillcode added consumer core area: core, team members only labels Jan 28, 2025
@dosubot dosubot Bot added bookings area: bookings, availability, timezones, double booking teams area: teams, round robin, collective, managed event-types 🐛 bug Something isn't working labels Jan 28, 2025
const { currentOrgDomain } = orgDomainConfig(context.req);

async function getInternalNotePresets(teamId: number) {
async function getInternalNotePresets(teamId: number | null) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Skipping data if user is not authed as host to be returned

@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Jan 28, 2025

Graphite Automations

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

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

"Add ready-for-e2e label" took an action on this PR • (01/28/25)

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

@github-actions
Copy link
Copy Markdown
Contributor

E2E results are ready!

@sean-brydon sean-brydon merged commit d8c9d2a into main Jan 28, 2025
@sean-brydon sean-brydon deleted the fix/internal-note-managed-event-type branch January 28, 2025 08:53
emrysal pushed a commit that referenced this pull request Jan 28, 2025
MuhammadAimanSulaiman pushed a commit to hit-pay/cal.com that referenced this pull request Feb 25, 2025
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 🐛 bug Something isn't working consumer core area: core, team members only ready-for-e2e teams area: teams, round robin, collective, managed event-types

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants