From 79b2eeb8b28049123f9da118a741e32e04eaa5ae Mon Sep 17 00:00:00 2001
From: Danny White <3104761+dnywh@users.noreply.github.com>
Date: Sat, 11 Jul 2026 02:34:16 +1000
Subject: [PATCH] fix(studio): make replica pricing learn more an inline link
(#47825)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## What kind of change does this PR introduce?
Bug fix / polish
## What is the current behavior?
On the add-destination sheet for read replicas, “Learn more” sits as a
stray sibling next to the cost copy.
## What is the new behavior?
Cost copy and “Learn more” are one paragraph, with the link inline and
styled like `InlineLink` (underline, pointer cursor, hover colour):
> New replica will cost an additional $16.25/month. Learn more
| Before | After |
| --- | --- |
| | |
_Note that the grey icon square is being fixed separately in
https://github.com/supabase/supabase/pull/47794._
## To test
On the staging preview, open Database → Replication → Add destination →
Read replica, and check the footer cost line in light and dark mode —
“Learn more” should sit inline, show a pointer cursor, and change colour
on hover.
## Summary by CodeRabbit
## Summary by CodeRabbit
* **New Features**
* Added estimated monthly pricing to the read replica pricing dialog
trigger (“additional {cost}/month”).
* **UI Improvements**
* Moved the pricing/cost impact messaging from the form footer to the
pricing dialog area.
* Refined the “Learn more” link/button styling and layout for a cleaner
presentation.
---
.../ReadReplicaPricingDialog.tsx | 18 ++++++++++++------
.../DestinationPanel/ReadReplicaForm/index.tsx | 9 ++-------
2 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/ReadReplicaForm/ReadReplicaPricingDialog.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/ReadReplicaForm/ReadReplicaPricingDialog.tsx
index 4b47819f797..a6e643e5660 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/ReadReplicaForm/ReadReplicaPricingDialog.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/ReadReplicaForm/ReadReplicaPricingDialog.tsx
@@ -25,17 +25,23 @@ import { DOCS_URL } from '@/lib/constants'
export const ReadReplicaPricingDialog = () => {
const { data: project } = useSelectedProjectQuery()
- const { compute, disk, iops, throughput } = useGetReplicaCost()
+ const { totalCost, compute, disk, iops, throughput } = useGetReplicaCost()
const showNewDiskManagementUI = project?.cloud_provider === 'AWS'
return (