From 1f41e53ef50400bba73c5031b2d54fcf04bae4de Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 1 Sep 2025 12:26:30 +0530 Subject: [PATCH] feat: add paywall --- .../dashboard/i18n/locale/en/settings.json | 12 ++++++ .../dashboard/settings/security/Index.vue | 19 ++++++++- .../security/components/SamlPaywall.vue | 41 +++++++++++++++++++ .../security/components/SamlSettings.vue | 1 - .../settings/security/security.routes.js | 2 + 5 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 app/javascript/dashboard/routes/dashboard/settings/security/components/SamlPaywall.vue diff --git a/app/javascript/dashboard/i18n/locale/en/settings.json b/app/javascript/dashboard/i18n/locale/en/settings.json index 9a3d58443..2533fa832 100644 --- a/app/javascript/dashboard/i18n/locale/en/settings.json +++ b/app/javascript/dashboard/i18n/locale/en/settings.json @@ -413,6 +413,18 @@ }, "VALIDATION": { "REQUIRED_FIELDS": "SSO URL and Certificate are required fields" + }, + "ENTERPRISE_PAYWALL": { + "AVAILABLE_ON": "The SAML SSO feature is only available in the Enterprise plans.", + "UPGRADE_PROMPT": "Upgrade to an Enterprise plan to access SAML single sign-on and other advanced security features.", + "ASK_ADMIN": "Please reach out to your administrator for the upgrade." + }, + "PAYWALL": { + "TITLE": "Upgrade to enable SAML SSO", + "AVAILABLE_ON": "The SAML SSO feature is only available in the Enterprise plans.", + "UPGRADE_PROMPT": "Upgrade your plan to get access to SAML single sign-on and other advanced features.", + "UPGRADE_NOW": "Upgrade now", + "CANCEL_ANYTIME": "You can change or cancel your plan anytime" } } }, diff --git a/app/javascript/dashboard/routes/dashboard/settings/security/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/security/Index.vue index 70b8043ae..169fb66b9 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/security/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/security/Index.vue @@ -1,7 +1,23 @@ diff --git a/app/javascript/dashboard/routes/dashboard/settings/security/components/SamlPaywall.vue b/app/javascript/dashboard/routes/dashboard/settings/security/components/SamlPaywall.vue new file mode 100644 index 000000000..8e7ef938f --- /dev/null +++ b/app/javascript/dashboard/routes/dashboard/settings/security/components/SamlPaywall.vue @@ -0,0 +1,41 @@ + + + diff --git a/app/javascript/dashboard/routes/dashboard/settings/security/components/SamlSettings.vue b/app/javascript/dashboard/routes/dashboard/settings/security/components/SamlSettings.vue index 67b9d62d9..4a4a7902e 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/security/components/SamlSettings.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/security/components/SamlSettings.vue @@ -118,7 +118,6 @@ onMounted(() => { :title="t('SECURITY_SETTINGS.SAML.TITLE')" :description="t('SECURITY_SETTINGS.SAML.NOTE')" :hide-content="!hasFeature || !isEnabled || isLoading" - with-border >