mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-20 21:18:18 +00:00
fix: upgrade plan modal text
This commit is contained in:
@@ -105,7 +105,7 @@ export const IPAllowlistSection = () => {
|
||||
<UpgradePlanModal
|
||||
isOpen={popUp.upgradePlan.isOpen}
|
||||
onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}
|
||||
text="You can use IP allowlisting if you switch to Infisical's Pro plan."
|
||||
text="Your current plan does not provide access to IP allowlisting. To unlock this feature, please upgrade to Infisical Pro plan."
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -159,7 +159,7 @@ export const IPAllowlistTable = ({ popUp, handlePopUpOpen, handlePopUpToggle }:
|
||||
<UpgradePlanModal
|
||||
isOpen={popUp.upgradePlan.isOpen}
|
||||
onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}
|
||||
text="You can use IP allowlisting if you switch to Infisical's Pro plan."
|
||||
text="Your current plan does not provide access to IP allowlisting. To unlock this feature, please upgrade to Infisical Pro plan."
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -1174,8 +1174,7 @@ export const OverviewPage = () => {
|
||||
}
|
||||
handlePopUpOpen("upgradePlan", {
|
||||
isEnterpriseFeature: true,
|
||||
description:
|
||||
"You can add dynamic secrets if you switch to Infisical's Enterprise plan."
|
||||
text: "Adding dynamic secrets can be unlocked if you upgrade to Infisical Enterprise plan."
|
||||
});
|
||||
}}
|
||||
isDisabled={userAvailableDynamicSecretEnvs.length === 0}
|
||||
@@ -1200,8 +1199,7 @@ export const OverviewPage = () => {
|
||||
return;
|
||||
}
|
||||
handlePopUpOpen("upgradePlan", {
|
||||
description:
|
||||
"You can add secret rotations if you switch to Infisical's Pro plan."
|
||||
text: "Adding secret rotations can be unlocked if you upgrade to Infisical Pro plan."
|
||||
});
|
||||
}}
|
||||
isDisabled={userAvailableSecretRotationEnvs.length === 0}
|
||||
@@ -1687,7 +1685,7 @@ export const OverviewPage = () => {
|
||||
isOpen={popUp.upgradePlan.isOpen}
|
||||
onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}
|
||||
isEnterpriseFeature={popUp.upgradePlan.data?.isEnterpriseFeature}
|
||||
text={popUp.upgradePlan.data?.description}
|
||||
text={popUp.upgradePlan.data?.text}
|
||||
/>
|
||||
)}
|
||||
<CreateSecretRotationV2Modal
|
||||
|
||||
+2
-3
@@ -330,8 +330,7 @@ export const AccessApprovalRequest = ({
|
||||
onClick={() => {
|
||||
if (subscription && !subscription?.secretApproval) {
|
||||
handlePopUpOpen("upgradePlan", {
|
||||
description:
|
||||
"You can use request access feature if you switch to Infisical's Pro plan."
|
||||
text: "Access requests feature can be unlocked if you upgrade to Infisical Pro plan."
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -596,7 +595,7 @@ export const AccessApprovalRequest = ({
|
||||
)}
|
||||
|
||||
<UpgradePlanModal
|
||||
text={popUp.upgradePlan.data?.description}
|
||||
text={popUp.upgradePlan.data?.text}
|
||||
isOpen={popUp.upgradePlan.isOpen}
|
||||
onOpenChange={() => handlePopUpClose("upgradePlan")}
|
||||
/>
|
||||
|
||||
+1
-1
@@ -505,7 +505,7 @@ export const ApprovalPolicyList = ({ projectId }: IProps) => {
|
||||
<UpgradePlanModal
|
||||
isOpen={popUp.upgradePlan.isOpen}
|
||||
onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}
|
||||
text="You can add secret approval policy if you switch to Infisical's Pro plan."
|
||||
text="Adding secret approval policies can be unlocked if you upgrade to Infisical Pro plan."
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
+5
-5
@@ -906,7 +906,7 @@ export const ActionBar = ({
|
||||
}
|
||||
|
||||
handlePopUpOpen("upgradePlan", {
|
||||
feature: "PIT Recovery"
|
||||
featureName: "PIT Recovery"
|
||||
});
|
||||
}}
|
||||
leftIcon={<FontAwesomeIcon icon={faCodeCommit} />}
|
||||
@@ -1022,7 +1022,7 @@ export const ActionBar = ({
|
||||
return;
|
||||
}
|
||||
handlePopUpOpen("upgradePlan", {
|
||||
feature: "Dynamic Secrets",
|
||||
featureName: "Dynamic Secrets",
|
||||
isEnterpriseFeature: true
|
||||
});
|
||||
}}
|
||||
@@ -1052,7 +1052,7 @@ export const ActionBar = ({
|
||||
return;
|
||||
}
|
||||
handlePopUpOpen("upgradePlan", {
|
||||
feature: "Secret Rotation"
|
||||
featureName: "Secret Rotation"
|
||||
});
|
||||
}}
|
||||
variant="outline_bg"
|
||||
@@ -1221,7 +1221,7 @@ export const ActionBar = ({
|
||||
projectId={projectId}
|
||||
onUpgradePlan={() =>
|
||||
handlePopUpOpen("upgradePlan", {
|
||||
feature: "Secret Imports"
|
||||
featureName: "Secret Imports"
|
||||
})
|
||||
}
|
||||
isOpen={popUp.addSecretImport.isOpen}
|
||||
@@ -1286,7 +1286,7 @@ export const ActionBar = ({
|
||||
isOpen={popUp.upgradePlan.isOpen}
|
||||
onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}
|
||||
isEnterpriseFeature={popUp.upgradePlan.data?.isEnterpriseFeature}
|
||||
text={`You can use ${popUp.upgradePlan.data?.feature} if you switch to Infisical's ${popUp.upgradePlan.data?.isEnterpriseFeature ? "Enterprise" : "Pro"} plan.`}
|
||||
text={`Your current plan does not provide access to ${popUp.upgradePlan.data?.featureName}. To unlock this feature, please upgrade to Infisical ${popUp.upgradePlan.data?.isEnterpriseFeature ? "Enterprise" : "Pro"} plan.`}
|
||||
/>
|
||||
)}
|
||||
<Modal
|
||||
|
||||
+1
-1
@@ -226,7 +226,7 @@ export const EnvironmentTabs = ({ secretPath }: Props) => {
|
||||
<UpgradePlanModal
|
||||
isOpen={popUp.upgradePlan.isOpen}
|
||||
onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}
|
||||
text="You can add custom environments if you switch to Infisical's Pro plan."
|
||||
text="Your current plan does not provide access to adding custom environments. To unlock this feature, please upgrade to Infisical Pro plan."
|
||||
/>
|
||||
<AddEnvironmentModal
|
||||
isOpen={popUp.createEnvironment.isOpen}
|
||||
|
||||
+1
-1
@@ -321,7 +321,7 @@ export const SecretDetailSidebar = ({
|
||||
onOpenChange={(isUpgradeModalOpen) =>
|
||||
handlePopUpToggle("secretAccessUpgradePlan", isUpgradeModalOpen)
|
||||
}
|
||||
text="You can access secret access analysis if you switch to Infisical's Pro plan."
|
||||
text="Secret access analysis feature can be unlocked if you upgrade to Infisical Pro plan."
|
||||
/>
|
||||
<Modal
|
||||
isOpen={popUp.secretReferenceTree.isOpen}
|
||||
|
||||
@@ -397,7 +397,7 @@ const Page = () => {
|
||||
<UpgradePlanModal
|
||||
isOpen={popUp.upgradePlan.isOpen}
|
||||
onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}
|
||||
text="You can add secret rotation if you switch to Infisical's Pro plan."
|
||||
text="Adding secret rotations can be unlocked if you upgrade to Infisical Pro plan."
|
||||
/>
|
||||
<Modal
|
||||
isOpen={popUp.secretRotationV2.isOpen}
|
||||
|
||||
+1
-1
@@ -123,7 +123,7 @@ export const EnvironmentSection = () => {
|
||||
<UpgradePlanModal
|
||||
isOpen={popUp.upgradePlan.isOpen}
|
||||
onOpenChange={(isOpen) => handlePopUpToggle("upgradePlan", isOpen)}
|
||||
text="You can add custom environments if you switch to Infisical's Pro plan."
|
||||
text="You have reached the maximum number of environments allowed on your current plan. To add more environments, please upgrade to Infisical Pro plan."
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user