From d0f9e0d69ed833f3de2fff406d36f0619c368c19 Mon Sep 17 00:00:00 2001
From: Arman
Date: Wed, 22 Jan 2025 16:43:56 +0100
Subject: [PATCH] fix: design review from sara
---
src/lib/components/billing/estimatedTotalBox.svelte | 6 ++++--
src/lib/components/billing/planComparisonBox.svelte | 2 +-
src/lib/layout/containerHeader.svelte | 2 +-
.../organization-[organization]/change-plan/+page.svelte | 4 ++--
4 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/lib/components/billing/estimatedTotalBox.svelte b/src/lib/components/billing/estimatedTotalBox.svelte
index a6c8db6a7..474ed59f8 100644
--- a/src/lib/components/billing/estimatedTotalBox.svelte
+++ b/src/lib/components/billing/estimatedTotalBox.svelte
@@ -70,8 +70,10 @@
>{!currentPlan.trialDays
? toLocaleDate(billingPayDate.toString())
: toLocaleDate(trialEndDate.toString())}. Once your credits run out, you'll be charged
- {formatCurrency(currentPlan.price)} plus usage fees every 30 days.
+ >. {#if couponData?.status === 'active'}Once your credits run out, you'll be charged
+ {formatCurrency(currentPlan.price)} plus usage fees every 30
+ days.
+ {/if}
diff --git a/src/lib/components/billing/planComparisonBox.svelte b/src/lib/components/billing/planComparisonBox.svelte
index e297d8e75..6d11df4fd 100644
--- a/src/lib/components/billing/planComparisonBox.svelte
+++ b/src/lib/components/billing/planComparisonBox.svelte
@@ -109,7 +109,7 @@
Everything in the Pro plan, plus:
- Unlimited seats
- - Organization roles Coming soon
+ - Organization roles
- SOC-2, HIPAA compliance
- SSO Coming soon
- Priority support
diff --git a/src/lib/layout/containerHeader.svelte b/src/lib/layout/containerHeader.svelte
index 2ac9e01ab..ee53418b9 100644
--- a/src/lib/layout/containerHeader.svelte
+++ b/src/lib/layout/containerHeader.svelte
@@ -159,7 +159,7 @@
>Excess usage fees will apply.
- {:else}
+ {:else if $organization?.billingPlan !== BillingPlan.SCALE}
You are limited to {limit}
{title.toLocaleLowerCase()} per organization on the {tier} plan.
diff --git a/src/routes/(console)/organization-[organization]/change-plan/+page.svelte b/src/routes/(console)/organization-[organization]/change-plan/+page.svelte
index 1ec959e43..d8d1a413b 100644
--- a/src/routes/(console)/organization-[organization]/change-plan/+page.svelte
+++ b/src/routes/(console)/organization-[organization]/change-plan/+page.svelte
@@ -277,7 +277,7 @@
tier={BillingPlan.FREE}
class="u-margin-block-start-24"
members={data?.members?.total ?? 0} />
- {:else if billingPlan === BillingPlan.PRO && $organization.billingPlan === BillingPlan.SCALE}
+ {:else if billingPlan === BillingPlan.PRO && $organization.billingPlan === BillingPlan.SCALE && collaborators?.length > 0}
{@const extraMembers = collaborators?.length ?? 0}
@@ -316,7 +316,7 @@
{/if}
{/if}
- {#if isDowngrade}
+ {#if isDowngrade && billingPlan === BillingPlan.FREE}