[PR #205] [MERGED] Team invitation #384

Closed
opened 2026-03-03 11:29:42 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dflow-sh/dflow/pull/205
Author: @jagadeesh507
Created: 5/30/2025
Status: Merged
Merged: 5/30/2025
Merged by: @jagadeesh507

Base: mainHead: team-invitation


📝 Commits (10+)

  • a380247 feat: implement team management actions and UI components for managing team members
  • 98951b0 feat: add invitation page and view for team joining process
  • cb2ee05 fix: added jsonwebtoken package
  • 6133887 feat: add userClient for user authentication and implement joinTeamAction for team joining process
  • d81427c feat: add getTenantAction and integrate tenant data into TeamPage
  • 34b66db feat: enhance sign-up and sign-in forms to support invitation tokens
  • 9d5c1c5 feat: add functions to generate and verify invitation tokens
  • c214725 feat: add sendInvitationLinkAction and schema for sending team invitations
  • 125cd89 feat: implement invitation functionality with email template and UI for team invitations
  • 1ac8c7c refactor: remove console log from sendLink function in Invitation component

📊 Changes

19 files changed (+1087 additions, -26 deletions)

View changed files

📝 package.json (+3 -1)
📝 pnpm-lock.yaml (+107 -17)
📝 src/actions/auth/index.ts (+6 -0)
src/actions/team/index.ts (+158 -0)
src/actions/team/validator.ts (+24 -0)
📝 src/app/(frontend)/(auth)/sign-up/page.tsx (+16 -4)
src/app/(frontend)/(dashboard)/[organisation]/team/page.tsx (+25 -0)
📝 src/app/(frontend)/(dashboard)/layout.client.tsx (+1 -0)
src/app/(frontend)/invite/page.tsx (+38 -0)
src/components/Team/Invitation.tsx (+155 -0)
src/components/Team/TeamMembers.tsx (+224 -0)
src/components/Team/index.tsx (+21 -0)
src/components/invite/index.tsx (+139 -0)
📝 src/components/sign-in/SignInForm.tsx (+12 -1)
📝 src/components/sign-up/SignUpForm.tsx (+9 -3)
src/emails/team-invitation/index.tsx (+70 -0)
src/lib/generateInvitationLink.ts (+27 -0)
📝 src/lib/safe-action.ts (+22 -0)
src/lib/verifyInviteToken.ts (+30 -0)

📄 Description

  1. UI for displaying team members
  2. Enable updating team members Roles
  3. Create Jwt token for invitation
  4. Team members invitation with copy Link and Email
  5. Verify tenant and jwt expiration date.
  6. Add tenant requested team member
  7. Allow admin to remove team members from team

🔄 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/dflow-sh/dflow/pull/205 **Author:** [@jagadeesh507](https://github.com/jagadeesh507) **Created:** 5/30/2025 **Status:** ✅ Merged **Merged:** 5/30/2025 **Merged by:** [@jagadeesh507](https://github.com/jagadeesh507) **Base:** `main` ← **Head:** `team-invitation` --- ### 📝 Commits (10+) - [`a380247`](https://github.com/dflow-sh/dflow/commit/a3802472bdd37c2c23d883e51a6bc3a0ff920e18) feat: implement team management actions and UI components for managing team members - [`98951b0`](https://github.com/dflow-sh/dflow/commit/98951b0ddf10b34742593bcf8b4e20dbf56559ac) feat: add invitation page and view for team joining process - [`cb2ee05`](https://github.com/dflow-sh/dflow/commit/cb2ee050c10481ff7264cd64adbed10c9efd5000) fix: added jsonwebtoken package - [`6133887`](https://github.com/dflow-sh/dflow/commit/6133887fed43b9c6f98bbb9cb692390ac428fb81) feat: add userClient for user authentication and implement joinTeamAction for team joining process - [`d81427c`](https://github.com/dflow-sh/dflow/commit/d81427c793abbfabc89ef48098ea8a2125814e2d) feat: add getTenantAction and integrate tenant data into TeamPage - [`34b66db`](https://github.com/dflow-sh/dflow/commit/34b66db501e29a30ef30a4f4ecabf0cfaeb5a0f1) feat: enhance sign-up and sign-in forms to support invitation tokens - [`9d5c1c5`](https://github.com/dflow-sh/dflow/commit/9d5c1c53903399837beb250cbf4f49b397e16e5b) feat: add functions to generate and verify invitation tokens - [`c214725`](https://github.com/dflow-sh/dflow/commit/c2147255b2ee2ff9dc4f314a7404b731497dc43a) feat: add sendInvitationLinkAction and schema for sending team invitations - [`125cd89`](https://github.com/dflow-sh/dflow/commit/125cd8998d5287bcc6755c7e56a6725b09518ed2) feat: implement invitation functionality with email template and UI for team invitations - [`1ac8c7c`](https://github.com/dflow-sh/dflow/commit/1ac8c7cadee47f3a179f4f58dfc7575ff1e6b327) refactor: remove console log from sendLink function in Invitation component ### 📊 Changes **19 files changed** (+1087 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+3 -1) 📝 `pnpm-lock.yaml` (+107 -17) 📝 `src/actions/auth/index.ts` (+6 -0) ➕ `src/actions/team/index.ts` (+158 -0) ➕ `src/actions/team/validator.ts` (+24 -0) 📝 `src/app/(frontend)/(auth)/sign-up/page.tsx` (+16 -4) ➕ `src/app/(frontend)/(dashboard)/[organisation]/team/page.tsx` (+25 -0) 📝 `src/app/(frontend)/(dashboard)/layout.client.tsx` (+1 -0) ➕ `src/app/(frontend)/invite/page.tsx` (+38 -0) ➕ `src/components/Team/Invitation.tsx` (+155 -0) ➕ `src/components/Team/TeamMembers.tsx` (+224 -0) ➕ `src/components/Team/index.tsx` (+21 -0) ➕ `src/components/invite/index.tsx` (+139 -0) 📝 `src/components/sign-in/SignInForm.tsx` (+12 -1) 📝 `src/components/sign-up/SignUpForm.tsx` (+9 -3) ➕ `src/emails/team-invitation/index.tsx` (+70 -0) ➕ `src/lib/generateInvitationLink.ts` (+27 -0) 📝 `src/lib/safe-action.ts` (+22 -0) ➕ `src/lib/verifyInviteToken.ts` (+30 -0) </details> ### 📄 Description 1. UI for displaying team members 2. Enable updating team members Roles 3. Create Jwt token for invitation 4. Team members invitation with copy Link and Email 5. Verify tenant and jwt expiration date. 6. Add tenant requested team member 7. Allow admin to remove team members from team --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 11:29:42 +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/dflow#384
No description provided.