diff --git a/apps/studio/components/interfaces/Database/Replication/ComingSoon.tsx b/apps/studio/components/interfaces/Database/Replication/ComingSoon.tsx
index cfcca53a244..0816a5cd1fe 100644
--- a/apps/studio/components/interfaces/Database/Replication/ComingSoon.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/ComingSoon.tsx
@@ -3,10 +3,13 @@ import { useTheme } from 'next-themes'
import Link from 'next/link'
import { useMemo } from 'react'
import ReactFlow, { Background, Handle, Position, ReactFlowProvider } from 'reactflow'
+
import 'reactflow/dist/style.css'
+import { useParams } from 'common'
import { BASE_PATH } from 'lib/constants'
import { Button, Card, CardContent } from 'ui'
+
import { NODE_WIDTH } from '../../Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.constants'
const STATIC_NODES = [
@@ -61,22 +64,25 @@ const STATIC_EDGES = [
{ id: 'e1-4', source: '1', target: '4', type: 'smoothstep', animated: true },
]
-export const ReplicationComingSoon = ({ projectRef }: { projectRef: string }) => {
+export const ReplicationComingSoon = () => {
return (
- Destinations are external platforms where your database changes are automatically - sent. Connect to various data warehouses and analytics platforms to enable real-time - data pipelines. +
+ {unifiedReplication + ? 'Deploy read replicas for lower latency and better resource management, or capture database changes to external platforms for real-time data pipelines.' + : 'Destinations are external platforms where your database changes are automatically sent. Connect to various data warehouses and analytics platforms to enable real-time data pipelines.'}
} diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx index 840209723c4..61fa1c90d4f 100644 --- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx +++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx @@ -1,9 +1,3 @@ -import dayjs from 'dayjs' -import { capitalize } from 'lodash' -import { BarChart2, ExternalLink } from 'lucide-react' -import Link from 'next/link' -import { Fragment, useMemo, useState } from 'react' - import { useParams } from 'common' import { getAddons } from 'components/interfaces/Billing/Subscription/Subscription.utils' import { CPUWarnings } from 'components/interfaces/Billing/Usage/UsageWarningAlerts/CPUWarnings' @@ -30,15 +24,20 @@ import { import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query' import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query' import { useResourceWarningsQuery } from 'data/usage/resource-warnings-query' +import dayjs from 'dayjs' import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization' import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject' import { DOCS_URL, INSTANCE_MICRO_SPECS, INSTANCE_NANO_SPECS, InstanceSpecs } from 'lib/constants' import { TIME_PERIODS_BILLING, TIME_PERIODS_REPORTS } from 'lib/constants/metrics' +import { capitalize } from 'lodash' +import { BarChart2, ExternalLink } from 'lucide-react' +import Link from 'next/link' +import { Fragment, useMemo, useState } from 'react' import { useDatabaseSelectorStateSnapshot } from 'state/database-selector' -import { Admonition } from 'ui-patterns/admonition' import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader' +import { Admonition } from 'ui-patterns/admonition' + import { INFRA_ACTIVITY_METRICS } from './Infrastructure.constants' -import { useShowNewReplicaPanel } from './InfrastructureConfiguration/use-show-new-replica' const NON_DEDICATED_IO_RESOURCES = [ 'ci_micro', @@ -74,8 +73,6 @@ export const InfrastructureActivity = () => { const { data: addons } = useProjectAddonsQuery({ projectRef }) const selectedAddons = addons?.selected_addons ?? [] - const { setShowNewReplicaPanel } = useShowNewReplicaPanel() - const { computeInstance } = getAddons(selectedAddons) const hasDedicatedIOResources = computeInstance !== undefined && diff --git a/apps/studio/pages/project/[ref]/database/replication/index.tsx b/apps/studio/pages/project/[ref]/database/replication/index.tsx index c706953df85..5d5c8699fd3 100644 --- a/apps/studio/pages/project/[ref]/database/replication/index.tsx +++ b/apps/studio/pages/project/[ref]/database/replication/index.tsx @@ -34,8 +34,9 @@ const DatabaseReplicationPage: NextPageWithLayout = () => {- Automatically replicate your database changes to external data warehouses and - analytics platforms in real-time + {unifiedReplication + ? 'Deploy read replicas across multiple regions, or replicate database changes to external data warehouses and analytics platforms' + : 'Automatically replicate your database changes to external data warehouses and analytics platforms in real-time'}
@@ -60,7 +61,7 @@ const DatabaseReplicationPage: NextPageWithLayout = () => { /> -