[PR #1217] [MERGED] feat: move template to team #1483

Closed
opened 2026-02-26 19:33:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1217
Author: @ephraimduncan
Created: 7/3/2024
Status: Merged
Merged: 7/5/2024
Merged by: @Mythie

Base: mainHead: feat/move-template-to-team


📝 Commits (2)

  • 24dd9e3 feat: move template to team
  • 778f989 fix: remove single line if statement

📊 Changes

5 files changed (+227 additions, -1 deletions)

View changed files

📝 apps/web/src/app/(dashboard)/templates/data-table-action-dropdown.tsx (+16 -1)
apps/web/src/app/(dashboard)/templates/move-template-dialog.tsx (+120 -0)
packages/lib/server-only/template/move-template-to-team.ts (+57 -0)
📝 packages/trpc/server/template-router/router.ts (+28 -0)
📝 packages/trpc/server/template-router/schema.ts (+6 -0)

📄 Description

Description

Allows users to move templates from their personal account to a team account.

Changes Made

  • Added a new "Move to Team" functionality to personal templates

Testing Performed

  • Confirmed the template successfully moves to the selected team

Checklist

  • I have tested these changes locally and they work as expected.
  • I have added/updated tests that prove the effectiveness of these changes.
  • I have updated the documentation to reflect these changes, if applicable.
  • I have followed the project's coding style guidelines.
  • I have addressed the code review feedback from the previous submission, if applicable.

Summary by CodeRabbit

  • New Features

    • Introduced functionality to move templates to different teams.
    • Added a dialog interface for template relocation with team selection and notifications.
  • Enhancements

    • Improved UI state management for moving templates.
    • Added error handling and validation for template and team associations.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/1217 **Author:** [@ephraimduncan](https://github.com/ephraimduncan) **Created:** 7/3/2024 **Status:** ✅ Merged **Merged:** 7/5/2024 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `feat/move-template-to-team` --- ### 📝 Commits (2) - [`24dd9e3`](https://github.com/documenso/documenso/commit/24dd9e33bbc363788377586a736c4cb56f15daf4) feat: move template to team - [`778f989`](https://github.com/documenso/documenso/commit/778f98968670ebeae4286d107705979f90f95570) fix: remove single line if statement ### 📊 Changes **5 files changed** (+227 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/src/app/(dashboard)/templates/data-table-action-dropdown.tsx` (+16 -1) ➕ `apps/web/src/app/(dashboard)/templates/move-template-dialog.tsx` (+120 -0) ➕ `packages/lib/server-only/template/move-template-to-team.ts` (+57 -0) 📝 `packages/trpc/server/template-router/router.ts` (+28 -0) 📝 `packages/trpc/server/template-router/schema.ts` (+6 -0) </details> ### 📄 Description ## Description Allows users to move templates from their personal account to a team account. ## Changes Made - Added a new "Move to Team" functionality to personal templates ## Testing Performed - Confirmed the template successfully moves to the selected team ## Checklist - [x] I have tested these changes locally and they work as expected. - [ ] I have added/updated tests that prove the effectiveness of these changes. - [ ] I have updated the documentation to reflect these changes, if applicable. - [x] I have followed the project's coding style guidelines. - [ ] I have addressed the code review feedback from the previous submission, if applicable. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced functionality to move templates to different teams. - Added a dialog interface for template relocation with team selection and notifications. - **Enhancements** - Improved UI state management for moving templates. - Added error handling and validation for template and team associations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:33:27 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1483
No description provided.