From 3abbf75caf0f0bf056796e708a92a532e51a47f0 Mon Sep 17 00:00:00 2001 From: Daniel Campbell Date: Wed, 15 May 2024 12:26:06 -0700 Subject: [PATCH 1/2] fix(ui): remove tsm limit text for iox users --- src/billing/components/Free/OrgLimits.tsx | 9 ++ .../components/Free/PAYGConversion.tsx | 37 ++++---- src/operator/OrgOverlay.tsx | 84 ++++++++++--------- 3 files changed, 74 insertions(+), 56 deletions(-) diff --git a/src/billing/components/Free/OrgLimits.tsx b/src/billing/components/Free/OrgLimits.tsx index bcbecd1cec..16fb5d6467 100644 --- a/src/billing/components/Free/OrgLimits.tsx +++ b/src/billing/components/Free/OrgLimits.tsx @@ -104,6 +104,15 @@ export const OrgLimits: FC = () => { ) } + // The 'dashboards', 'tasks', 'checks', and 'rules' limits are not applicable to orgs using IOx. + if (orgUsesIOx) { + const hiddenLimits = ['dashboards', 'tasks', 'checks', 'rules'] + + if (hiddenLimits.includes(limitName)) { + return null + } + } + // By default, any 'limit' is a single object literal containing one limitStatus. return ( { @@ -121,15 +123,18 @@ export const PAYGConversion: FC = () => { diff --git a/src/operator/OrgOverlay.tsx b/src/operator/OrgOverlay.tsx index b0e418698d..d3dff42ea6 100644 --- a/src/operator/OrgOverlay.tsx +++ b/src/operator/OrgOverlay.tsx @@ -65,7 +65,7 @@ export const OrgOverlay: FC = () => { const isIOx = organization?.storageType && organization.storageType.toLowerCase() === 'iox' - const canSeeCardinalityLimits = !isIOx + const canSeeTsmLimits = !isIOx useEffect(() => { handleGetLimits(orgID) @@ -223,7 +223,7 @@ export const OrgOverlay: FC = () => { onChangeLimits={setLimits} /> - {canSeeCardinalityLimits && ( + {canSeeTsmLimits && ( { onChangeLimits={setLimits} /> - - - - - - - - - - - - - - - - - - + {canSeeTsmLimits && ( + + + + + )} + {canSeeTsmLimits && ( + + + + + + + + + + + + + + + )} {limits?.timeout && ( From 7c9d37192aad5ab909903439b14d7f774b66b86c Mon Sep 17 00:00:00 2001 From: Daniel Campbell Date: Fri, 17 May 2024 11:02:29 -0700 Subject: [PATCH 2/2] empty