Skip to content

feat(event-types): implement duplication to teams and workflows#28054

Open
AritraDey-Dev wants to merge 4 commits intocalcom:mainfrom
AritraDey-Dev:feat/event-type-duplication-teams
Open

feat(event-types): implement duplication to teams and workflows#28054
AritraDey-Dev wants to merge 4 commits intocalcom:mainfrom
AritraDey-Dev:feat/event-type-duplication-teams

Conversation

@AritraDey-Dev
Copy link
Contributor

@AritraDey-Dev AritraDey-Dev commented Feb 18, 2026

What does this PR do?

Visual Demo (For contributors especially)

event type duplication feature:

Screencast.from.2026-02-19.00-31-12.webm

Workflows duplication feature:

Screencast.from.2026-02-19.00-42-24.webm

Image Demo (if applicable):

  • Add side-by-side screenshots of the original and updated change.
  • Highlight any significant change(s).

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • NA
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Ensure your user is an Admin or Owner of a Team
  • Create a Personal Event Type and attach a Workflow to it.
  • Duplicate the Personal Event to a Team; verify a new Event and its Workflow are created in the Team context.
  • Duplicate the Team Event back to Personal; verify a new Personal Event and Workflow are created, with users/hosts reset to you.

Summary by cubic

Adds cross-context duplication for event types and workflows with deep cloning and a team/personal destination selector. Aligns with CAL-5803.

  • New Features

    • Duplicate event types to a team or personal account with a selector; slug preview updates to the chosen destination.
    • Across contexts: event types default to round-robin in teams; hosts/users reset to you; personal-only settings are skipped.
    • Attached workflows are cloned into the destination and re-linked to the new event type; steps are copied.
    • Duplicate workflows from the list (desktop and mobile) via a new dialog with a team selector; shows success toast and redirects to the new workflow.
    • Added unit tests for workflow duplication and permission checks.
  • Migration

    • You must be an Admin or Owner of the target team to duplicate into it.

Written for commit 09bcbbe. Summary will update on new commits.

@github-actions github-actions bot added Medium priority Created by Linear-GitHub Sync teams area: teams, round robin, collective, managed event-types workflows area: workflows, automations ✨ feature New feature or request labels Feb 18, 2026
@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Feb 18, 2026
Copy link
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.

2 issues found across 10 files

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/web/modules/ee/workflows/components/WorkflowListPage.tsx">

<violation number="1" location="apps/web/modules/ee/workflows/components/WorkflowListPage.tsx:289">
P2: The new duplicate action is added to the mobile dropdown, but the dropdown is still hidden for read‑only workflows. Desktop always allows duplicate, so mobile users can’t access the new feature on read‑only items.</violation>
</file>

<file name="apps/web/modules/event-types/components/DuplicateDialog.tsx">

<violation number="1" location="apps/web/modules/event-types/components/DuplicateDialog.tsx:63">
P3: Selecting the "Personal" duplicate target previews a team slug because the Personal option’s slug is set to pageSlug, which is populated from the current group’s (team) profile slug. The URL preview should use the authenticated user’s personal slug when targetTeamId is null.</violation>
</file>

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

…loning

Signed-off-by: Aritra Dey <adey01027@gmail.com>
@AritraDey-Dev AritraDey-Dev force-pushed the feat/event-type-duplication-teams branch from 43d1af1 to 14c86ca Compare February 18, 2026 19:55
Signed-off-by: Aritra Dey <adey01027@gmail.com>
Signed-off-by: Aritra Dey <adey01027@gmail.com>
Signed-off-by: Aritra Dey <adey01027@gmail.com>
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 ✨ feature New feature or request Medium priority Created by Linear-GitHub Sync size/XL teams area: teams, round robin, collective, managed event-types workflows area: workflows, automations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Easier setup for team events and workflows

1 participant

Comments