From 789c86f126a9c31027df0608fd265e290fc2bfc9 Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Thu, 28 Aug 2025 13:36:53 -0600 Subject: [PATCH 1/4] Updated descriptions of the usage plan for when there are no limits --- .../clusters/upsert/ClusterDetails.tsx | 6 +- .../components/ResourcesPerInstance.tsx | 58 +++++++++---------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/features/clusters/upsert/ClusterDetails.tsx b/src/features/clusters/upsert/ClusterDetails.tsx index e4b3b1dd8..d1ea41ecf 100644 --- a/src/features/clusters/upsert/ClusterDetails.tsx +++ b/src/features/clusters/upsert/ClusterDetails.tsx @@ -246,9 +246,9 @@ export function ClusterDetails({ />) } - {selectedPlan?.planLimits && selectedPlan.resourcesPerInstance && ( - - )} + {selectedPlan?.planLimits?.totalReadCount! > 0 ? ( + + ) : 'This plan has no usage limits'} From 74a01260e1a42cc9c068800093fc30f7c5163479 Mon Sep 17 00:00:00 2001 From: Dawson Toth Date: Fri, 29 Aug 2025 11:40:11 -0400 Subject: [PATCH 2/4] Extract out a ContactUs component --- src/components/ContactUs.tsx | 5 +++++ src/features/clusters/upsert/ClusterBilling.tsx | 9 +++------ src/features/organization/billing/invoices/Invoices.tsx | 8 +++----- .../billing/paymentMethod/PaymentMethodsDisplay.tsx | 5 ++--- 4 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 src/components/ContactUs.tsx diff --git a/src/components/ContactUs.tsx b/src/components/ContactUs.tsx new file mode 100644 index 000000000..729a01f1c --- /dev/null +++ b/src/components/ContactUs.tsx @@ -0,0 +1,5 @@ +export function ContactUs() { + return ( + Contact us + ); +} diff --git a/src/features/clusters/upsert/ClusterBilling.tsx b/src/features/clusters/upsert/ClusterBilling.tsx index de1d8699a..257a7a4ca 100644 --- a/src/features/clusters/upsert/ClusterBilling.tsx +++ b/src/features/clusters/upsert/ClusterBilling.tsx @@ -1,3 +1,4 @@ +import { ContactUs } from '@/components/ContactUs'; import { Button } from '@/components/ui/button'; import { ResourcesPerInstance } from '@/features/clusters/upsert/components/ResourcesPerInstance'; import { PaymentMethodsDisplay } from '@/features/organization/billing/paymentMethod/PaymentMethodsDisplay'; @@ -60,9 +61,7 @@ export function ClusterBilling({ this page.
  • Your account representative can work with you to sort out more precise details, and to help - accomplish your objectives with this - cluster. Contact - us, we are here to help. + accomplish your objectives with this cluster. , we are here to help.
  • @@ -99,9 +98,7 @@ export function ClusterBilling({
  • While refunds are not available, we’d be happy to assist you with... swag, depending on availability.
  • We would love to work with you to sort out more precise details, and to help accomplish your objectives - with this - cluster. Contact - us, we are here to help. + with this cluster. , we are here to help.
  • diff --git a/src/features/organization/billing/invoices/Invoices.tsx b/src/features/organization/billing/invoices/Invoices.tsx index f0518ee7f..af82ed25e 100644 --- a/src/features/organization/billing/invoices/Invoices.tsx +++ b/src/features/organization/billing/invoices/Invoices.tsx @@ -1,3 +1,4 @@ +import { ContactUs } from '@/components/ContactUs'; import { Loading } from '@/components/Loading'; import { SimpleBrowseDataTable } from '@/components/SimpleBrowseDataTable'; import { Button } from '@/components/ui/button'; @@ -26,9 +27,7 @@ export function Invoices() { return ( You are part of an enterprise organization! We don’t currently show your invoices on this page. - Want to explore your solution with Harper - more? Contact - us, we would love to talk! + Want to explore your solution with Harper more? , we would love to talk! ); } @@ -39,8 +38,7 @@ export function Invoices() { return ( Your invoices will be shown here once one is available! Want to explore your solution with Harper - more? Contact - us, we would love to talk! + more? , we would love to talk! ); } diff --git a/src/features/organization/billing/paymentMethod/PaymentMethodsDisplay.tsx b/src/features/organization/billing/paymentMethod/PaymentMethodsDisplay.tsx index b9228fbe4..432a7cce4 100644 --- a/src/features/organization/billing/paymentMethod/PaymentMethodsDisplay.tsx +++ b/src/features/organization/billing/paymentMethod/PaymentMethodsDisplay.tsx @@ -1,3 +1,4 @@ +import { ContactUs } from '@/components/ContactUs'; import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; import { AddNewPaymentMethod } from '@/features/organization/billing/paymentMethod/AddNewPaymentMethod'; @@ -48,9 +49,7 @@ export function PaymentMethodsDisplay({ return ( You are part of an enterprise organization! We don’t currently show your payment methods on this - page. Want to explore your solution with Harper - more? Contact - us, we would love to talk! + page. Want to explore your solution with Harper more? , we would love to talk! ); } From 381aa2127b5ae91b511065a69b704031c23fbabe Mon Sep 17 00:00:00 2001 From: Dawson Toth Date: Fri, 29 Aug 2025 11:40:58 -0400 Subject: [PATCH 3/4] Remove inner scroll on cluster form https://harperdb.atlassian.net/browse/STUDIO-371 --- src/features/clusters/upsert/ClusterDetails.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/clusters/upsert/ClusterDetails.tsx b/src/features/clusters/upsert/ClusterDetails.tsx index be431ed32..3d12ce4be 100644 --- a/src/features/clusters/upsert/ClusterDetails.tsx +++ b/src/features/clusters/upsert/ClusterDetails.tsx @@ -61,7 +61,7 @@ export function ClusterDetails({ const isSelfManaged = selectedDeployment === 'Self-Hosted'; return (<> -
    +
    ) : 'This plan has no usage limits'}
    - +