Skip to content

fix: hide cal branding on platform workflows#27385

Merged
supalarry merged 14 commits intomainfrom
lauris/cal-7145-feat-remove-calcom-branding-from-workflow-reminder-emails
Feb 9, 2026
Merged

fix: hide cal branding on platform workflows#27385
supalarry merged 14 commits intomainfrom
lauris/cal-7145-feat-remove-calcom-branding-from-workflow-reminder-emails

Conversation

@supalarry
Copy link
Copy Markdown
Contributor

@supalarry supalarry commented Jan 29, 2026

Fixes #27334


Summary by cubic

Hides Cal branding in workflow and reminder emails for platform bookings by using platformClientId from booking metadata. Aligns with CAL-7145 to remove branding in platform workflow reminder emails.

  • Bug Fixes
    • Hide branding when booking.metadata includes platformClientId, across workflow emails and scheduled reminders.
    • Add and propagate platformClientId in booking metadata (API v2, input service, tasker, types, zod schema).
    • Centralize branding logic via shouldHideBranding and EmailWorkflowService.shouldHideBranding.
    • Pass isBrandingDisabled to rating and cancellation email templates.

Written for commit 27be579. Summary will update on new commits.

@supalarry supalarry requested a review from a team as a code owner January 29, 2026 11:37
@linear
Copy link
Copy Markdown

linear bot commented Jan 29, 2026

@github-actions github-actions bot added the Medium priority Created by Linear-GitHub Sync label Jan 29, 2026
@graphite-app graphite-app bot added consumer core area: core, team members only labels Jan 29, 2026
@graphite-app graphite-app bot requested a review from a team January 29, 2026 11:38
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 8 files

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 29, 2026

E2E results are ready!

PeerRich
PeerRich previously approved these changes Jan 29, 2026
devin-ai-integration bot added a commit that referenced this pull request Feb 4, 2026
Copy of PR #27385 - Hides Cal branding in workflow and reminder emails for platform bookings by using platformClientId from booking metadata.

Co-Authored-By: lauris@cal.com <lauris.skraucis@gmail.com>
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/user-bookings.e2e-spec.ts">

<violation number="1" location="apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/user-bookings.e2e-spec.ts:432">
P2: Remove `it.only` so the full test suite executes; leaving it will skip all other tests.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 4, 2026

Devin AI is addressing Cubic AI's review feedback

A Devin session has been created to address the issues identified by Cubic AI.

View Devin Session

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="apps/api/v2/src/ee/bookings/2024-08-13/services/input.service.ts">

<violation number="1">
P2: Dropping platformClientId from metadata means bookings created via platform no longer carry the platform marker unless the caller manually includes it. This breaks downstream branding hiding that relies on metadata.platformClientId. Preserve the previous merge so platformClientId is always propagated.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 4, 2026

Devin AI is addressing Cubic AI's review feedback

New feedback has been sent to the existing Devin session.

View Devin Session


✅ No changes pushed (confidence score not found for this issue - skipping per instructions)

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="apps/api/v2/src/ee/bookings/2024-08-13/services/input.service.ts">

<violation number="1" location="apps/api/v2/src/ee/bookings/2024-08-13/services/input.service.ts:195">
P2: The logic to inject `platformClientId` into metadata appears to be missing in `transformInputCreateRecurringBooking` (lines 463+), even though that method accepts `platformClientId` as an argument.

Ensure this field is propagated for recurring bookings as well to consistently hide branding across all workflow types.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 4, 2026

Devin AI is addressing Cubic AI's review feedback

New feedback has been sent to the existing Devin session.

View Devin Session


✅ Pushed commit 8edd011

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="apps/api/v2/src/ee/bookings/2024-08-13/services/input.service.ts">

<violation number="1" location="apps/api/v2/src/ee/bookings/2024-08-13/services/input.service.ts:533">
P2: User-supplied `metadata` can inject a fake `platformClientId` to bypass branding checks (since the code only overwrites it if the system value is truthy).
System-derived `platformClientId` should be authoritative. If the system value is undefined (regular booking), the `platformClientId` key should be removed from `metadata` to prevent spoofing.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 4, 2026

Devin AI is addressing Cubic AI's review feedback

New feedback has been sent to the existing Devin session.

View Devin Session


✅ Pushed commit 4c47361

@pull-request-size pull-request-size bot added size/L and removed size/M labels Feb 4, 2026
@supalarry supalarry force-pushed the lauris/cal-7145-feat-remove-calcom-branding-from-workflow-reminder-emails branch from 31a592e to 307ec1c Compare February 4, 2026 13:38
@pull-request-size pull-request-size bot added size/M and removed size/L labels Feb 4, 2026
@pull-request-size pull-request-size bot added size/L and removed size/M labels Feb 4, 2026
@supalarry supalarry enabled auto-merge (squash) February 4, 2026 14:39
Copy link
Copy Markdown
Contributor

@volnei volnei left a comment

Choose a reason for hiding this comment

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

could you add some tests?

@supalarry supalarry merged commit edf9cd7 into main Feb 9, 2026
53 checks passed
@supalarry supalarry deleted the lauris/cal-7145-feat-remove-calcom-branding-from-workflow-reminder-emails branch February 9, 2026 16:46
volnei added a commit that referenced this pull request Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

consumer core area: core, team members only Medium priority Created by Linear-GitHub Sync ready-for-e2e size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: remove cal.com branding from workflow reminder emails

3 participants