Skip to content

Commit

Permalink
Update billing summary for trial plans (#3620)
Browse files Browse the repository at this point in the history
* Update billing summary for trial plans

* Roll back to "Expected bill"

* Squashed commit of the following:

commit 95d8f16
Author: Benjamin Ottensten <[email protected]>
Date:   Tue Dec 3 15:27:36 2024 +0100

    A couple of copy changes (#3608)

    * Update feature copy

    * Update from yearly to annual language

    ---------

    Co-authored-by: andrewwallacespeckle <[email protected]>
  • Loading branch information
benjaminvo authored Dec 3, 2024
1 parent 84e04e4 commit 22080a2
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions packages/frontend-2/components/settings/workspaces/Billing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class="grid grid-cols-1 lg:grid-cols-3 divide-y divide-outline-3 lg:divide-y-0 lg:divide-x"
>
<div class="p-5 pt-4 flex flex-col gap-y-1">
<h3 class="text-body-xs text-foreground-2 pb-2">
<h3 class="text-body-xs text-foreground-2 pb-1">
{{ statusIsTrial ? 'Trial plan' : 'Current plan' }}
</h3>
<div class="flex gap-x-2">
Expand All @@ -32,16 +32,24 @@
</div>
</div>
<p v-if="isPurchasablePlan" class="text-body-xs text-foreground-2">
£{{ seatPrice[Roles.Workspace.Member] }} per seat/month, billed
{{
subscription?.billingInterval === BillingInterval.Yearly
? 'annually'
: 'monthly'
}}
<span v-if="statusIsTrial">
<span class="line-through mr-1">
£{{ seatPrice[Roles.Workspace.Member] }} per seat/month
</span>
Free
</span>
<span v-else>
£{{ seatPrice[Roles.Workspace.Member] }} per seat/month, billed
{{
subscription?.billingInterval === BillingInterval.Yearly
? 'annually'
: 'monthly'
}}
</span>
</p>
</div>
<div class="p-5 pt-4 flex flex-col gap-y-1">
<h3 class="text-body-xs text-foreground-2 pb-2">
<h3 class="text-body-xs text-foreground-2 pb-1">
{{
statusIsTrial
? 'Expected bill'
Expand Down Expand Up @@ -72,25 +80,26 @@
</div>
</div>
<div class="p-5 pt-4 flex flex-col gap-y-1">
<h3 class="text-body-xs text-foreground-2 pb-2">
<h3 class="text-body-xs text-foreground-2 pb-1">
{{
statusIsTrial && isPurchasablePlan
? 'First payment due'
? 'Trial ends'
: 'Next payment due'
}}
</h3>
<p class="text-heading-lg text-foreground capitalize">
{{ isPurchasablePlan ? nextPaymentDue : 'Never' }}
</p>
<p v-if="isPurchasablePlan" class="text-body-xs text-foreground-2">
<span class="capitalize">
<span v-if="statusIsTrial">Subscribe before this date</span>
<span v-else>
{{
subscription?.billingInterval === BillingInterval.Yearly
? 'Annual'
: 'Monthly'
}}
billing period
</span>
billing period
</p>
</div>
</div>
Expand Down

0 comments on commit 22080a2

Please sign in to comment.