mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-21 01:16:49 +00:00
Merge pull request #4768 from Infisical/fix/upgrade-plan-modal-text
[ENG-3801] fix: updates 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 include 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 include access to IP allowlisting. To unlock this feature, please upgrade to Infisical Pro plan."
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -1180,8 +1180,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}
|
||||
@@ -1206,8 +1205,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}
|
||||
@@ -1693,7 +1691,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
@@ -312,8 +312,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;
|
||||
}
|
||||
@@ -573,7 +572,7 @@ export const AccessApprovalRequest = ({
|
||||
)}
|
||||
|
||||
<UpgradePlanModal
|
||||
text={popUp.upgradePlan.data?.description}
|
||||
text={popUp.upgradePlan.data?.text}
|
||||
isOpen={popUp.upgradePlan.isOpen}
|
||||
onOpenChange={() => handlePopUpClose("upgradePlan")}
|
||||
/>
|
||||
|
||||
+1
-1
@@ -491,7 +491,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
@@ -912,7 +912,7 @@ export const ActionBar = ({
|
||||
}
|
||||
|
||||
handlePopUpOpen("upgradePlan", {
|
||||
feature: "PIT Recovery"
|
||||
featureName: "PIT Recovery"
|
||||
});
|
||||
}}
|
||||
leftIcon={<FontAwesomeIcon icon={faCodeCommit} />}
|
||||
@@ -1028,7 +1028,7 @@ export const ActionBar = ({
|
||||
return;
|
||||
}
|
||||
handlePopUpOpen("upgradePlan", {
|
||||
feature: "Dynamic Secrets",
|
||||
featureName: "Dynamic Secrets",
|
||||
isEnterpriseFeature: true
|
||||
});
|
||||
}}
|
||||
@@ -1058,7 +1058,7 @@ export const ActionBar = ({
|
||||
return;
|
||||
}
|
||||
handlePopUpOpen("upgradePlan", {
|
||||
feature: "Secret Rotation"
|
||||
featureName: "Secret Rotation"
|
||||
});
|
||||
}}
|
||||
variant="outline_bg"
|
||||
@@ -1235,7 +1235,7 @@ export const ActionBar = ({
|
||||
projectId={projectId}
|
||||
onUpgradePlan={() =>
|
||||
handlePopUpOpen("upgradePlan", {
|
||||
feature: "Secret Imports"
|
||||
featureName: "Secret Imports"
|
||||
})
|
||||
}
|
||||
isOpen={popUp.addSecretImport.isOpen}
|
||||
@@ -1300,7 +1300,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 include 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 include 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 the free plan. Upgrade to Infisical Pro plan to add more environments."
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user