From 63c5277629452cb4e8d73734f8bb4302ef263bd0 Mon Sep 17 00:00:00 2001
From: MananTank
Date: Thu, 21 Nov 2024 23:40:49 +0000
Subject: [PATCH] Update Nebula Waitlist Page UI and invite link (#5485)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## Problem solved
Short description of the bug fixed or feature added
---
## PR-Codex overview
This PR enhances the `NebulaWaitListPageUI` and related components by adding a `teamId` prop to improve link sharing functionality. It modifies how the invite link is generated and displayed, allowing users to share a personalized link tied to their team.
### Detailed summary
- Updated `Story` to pass `teamId="foo"` to `NebulaWaitListPageUI`.
- Modified `NebulaWaitListPageUI` to accept `teamId` as a prop.
- Enhanced `ShareButton` to accept `teamId` and generate a personalized invite link.
- Changed tooltip label for the share button to "Copy Invite Link".
- Updated footer in `NebulaWaitListPageUI` to include the personalized `ShareButton` and a message encouraging sharing.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
---
.../components/nebula-waitlist-page-ui.client.tsx | 14 +++++++++++---
.../nebula/components/nebula-waitlist-page.tsx | 2 +-
.../nebula/components/nebula-waitlist.stories.tsx | 2 +-
.../nebula/components/share-button.client.tsx | 11 ++++++++---
4 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/apps/dashboard/src/app/team/[team_slug]/[project_slug]/nebula/components/nebula-waitlist-page-ui.client.tsx b/apps/dashboard/src/app/team/[team_slug]/[project_slug]/nebula/components/nebula-waitlist-page-ui.client.tsx
index 970c8ae98d4..3a693f15c54 100644
--- a/apps/dashboard/src/app/team/[team_slug]/[project_slug]/nebula/components/nebula-waitlist-page-ui.client.tsx
+++ b/apps/dashboard/src/app/team/[team_slug]/[project_slug]/nebula/components/nebula-waitlist-page-ui.client.tsx
@@ -3,7 +3,7 @@ import { OrbitIcon } from "lucide-react";
import Link from "next/link";
import { ShareButton } from "./share-button.client";
-export function NebulaWaitListPageUI() {
+export function NebulaWaitListPageUI(props: { teamId: string }) {
return (