From 4433d9ddaffd705808997638dfc705a1d23298c6 Mon Sep 17 00:00:00 2001 From: Danny White <3104761+dnywh@users.noreply.github.com> Date: Mon, 17 Aug 2026 16:19:10 +1000 Subject: [PATCH] feat(studio): mark PrivateLink waiting as a warning (#49086) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What kind of change does this PR introduce? UI ## What is the current behavior? Waiting (still labelled Ready in #49085) is green. Creating is orange. Deleting is red. ## What is the new behavior? Waiting is orange. Creating is grey. Deleting is orange. Connected stays the only green state. | Before | After | | --- | --- | | CleanShot 2026-08-14 at 12 43
59@2x | CleanShot 2026-08-14 at 12 44
59@2x | | CleanShot 2026-08-14 at 12 44
21@2x | CleanShot 2026-08-14 at 12 44
49@2x | ## Additional context Stacked on #49085. See #49030 for the end state, as it may already include fixes you might propose. ## To test - **Project Settings → Integrations → AWS PrivateLink.** A connection that AWS has not accepted yet should show an orange **Waiting** badge, not green Ready. - Creating should be grey. Deleting orange. Expired and Failed stay red. - **Docs preview → Platform → PrivateLink.** Should say Waiting, not Ready. ## Summary by CodeRabbit * **Bug Fixes** * Updated AWS PrivateLink connection statuses to accurately show “Waiting” while the AWS Resource Share is pending acceptance. * Refined status badge styling for creating, waiting, and deleting connections. * Clarified that Resource Shares must be accepted within 12 hours. * **Documentation** * Updated PrivateLink setup instructions to reflect the revised connection status flow. --- apps/docs/content/guides/platform/privatelink.mdx | 4 ++-- .../AWSPrivateLink/AWSPrivateLink.utils.test.ts | 8 ++++---- .../Integrations/AWSPrivateLink/AWSPrivateLink.utils.ts | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/docs/content/guides/platform/privatelink.mdx b/apps/docs/content/guides/platform/privatelink.mdx index cdaa3aaeb14..e1ac45325ed 100644 --- a/apps/docs/content/guides/platform/privatelink.mdx +++ b/apps/docs/content/guides/platform/privatelink.mdx @@ -51,9 +51,9 @@ Navigate to your project's Integrations section to set up PrivateLink: Each database, whether the primary or a read replica, needs its own connection. Create a separate connection for every database you want to reach over PrivateLink. -After submission, Supabase creates a VPC Lattice Resource Configuration for your project and sends an AWS Resource Share to the specified AWS account ID. This process may take a few moments. Once complete, the connection will show a "Ready" status, indicating that the resource share has been sent to your AWS account and is ready to be accepted. You must accept the resource share within 12 hours, or the request expires and can no longer be accepted in AWS. You'll need to create a new connection to try again. +After submission, Supabase creates a VPC Lattice Resource Configuration for your project and sends an AWS Resource Share to the specified AWS account ID. This process may take a few moments. Once complete, the connection will show a "Waiting" status, indicating that the resource share has been sent to your AWS account and still needs to be accepted. You must accept the resource share within 12 hours, or the request expires and can no longer be accepted in AWS. You'll need to create a new connection to try again. -Once ready, select **View connection** to see the VPC Lattice resource configuration ID and ARNs for the connection. This is useful for confirming which resource configuration corresponds to which database when a project has multiple connections, for example one for the primary database and one for each read replica. +Select **View connection** to see the VPC Lattice resource configuration ID and ARNs for the connection. This is useful for confirming which resource configuration corresponds to which database when a project has multiple connections, for example one for the primary database and one for each read replica. ### Step 2: Accept resource share diff --git a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLink.utils.test.ts b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLink.utils.test.ts index 7cc18dd989c..34671bf9f59 100644 --- a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLink.utils.test.ts +++ b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLink.utils.test.ts @@ -15,8 +15,8 @@ describe('getConnectionStatusUi', () => { [ 'READY', { - badge: 'Ready', - badgeVariant: 'success', + badge: 'Waiting', + badgeVariant: 'warning', title: 'Waiting for the AWS account owner to accept', description: 'This request expires after 12 hours.', }, @@ -25,7 +25,7 @@ describe('getConnectionStatusUi', () => { 'CREATING', { badge: 'Creating', - badgeVariant: 'warning', + badgeVariant: 'default', title: 'This connection is being created', }, ], @@ -33,7 +33,7 @@ describe('getConnectionStatusUi', () => { 'DELETING', { badge: 'Deleting', - badgeVariant: 'destructive', + badgeVariant: 'warning', title: 'This connection is being deleted', }, ], diff --git a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLink.utils.ts b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLink.utils.ts index 07baa806d76..b850b4bb09b 100644 --- a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLink.utils.ts +++ b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLink.utils.ts @@ -21,20 +21,20 @@ const CONNECTION_STATUS_UI: Record