From 68cb2636df3c9a18e836192d39fc47da09644efd Mon Sep 17 00:00:00 2001 From: melohagan <101575380+melohagan@users.noreply.github.com> Date: Wed, 8 May 2024 13:38:50 +0100 Subject: [PATCH] Free trial close to expiration message (#13638) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add free_trial to deploy camunda script * Free trial banner * Don't show upgrade button for enterprise trial * Add link option to banners * Show free trial banner in portal * Only admins should see free trial modal * Fix days remaining * Ignore subscription cancelled message for trial * Remove unused code --------- Co-authored-by: José Vte. Calderón --- packages/bbui/src/Banner/Banner.svelte | 28 +++++++++++- .../EnterpriseBasicTrialBanner.svelte | 43 +++++++++++++++++++ .../portal/licensing/licensingBanners.js | 2 +- .../EnterpriseBasicTrialModal.svelte | 4 +- .../portal/_components/UpgradeButton.svelte | 2 +- .../src/pages/builder/portal/_layout.svelte | 13 +++++- .../pages/builder/portal/account/usage.svelte | 18 +++----- 7 files changed, 93 insertions(+), 17 deletions(-) create mode 100644 packages/builder/src/components/portal/licensing/EnterpriseBasicTrialBanner.svelte diff --git a/packages/bbui/src/Banner/Banner.svelte b/packages/bbui/src/Banner/Banner.svelte index a04d469cc7..2ce9795d70 100644 --- a/packages/bbui/src/Banner/Banner.svelte +++ b/packages/bbui/src/Banner/Banner.svelte @@ -8,6 +8,8 @@ export let size = "S" export let extraButtonText export let extraButtonAction + export let extraLinkText + export let extraLinkAction export let showCloseButton = true let show = true @@ -28,8 +30,13 @@
-
+
+ {#if extraLinkText} + + {/if}
{#if extraButtonText && extraButtonAction}