From c85d9c7bff0be3beff235995dc83bf9a31341fc8 Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 12 Dec 2024 13:20:36 +0530 Subject: [PATCH] update: copies, ui as per new designs. --- .../billing/budgetAlert.svelte | 12 +-- .../billing/budgetCap.svelte | 10 +- .../billing/paymentMethods.svelte | 95 ++++++++----------- .../billing/planSummary.svelte | 5 +- 4 files changed, 53 insertions(+), 69 deletions(-) diff --git a/src/routes/(console)/organization-[organization]/billing/budgetAlert.svelte b/src/routes/(console)/organization-[organization]/billing/budgetAlert.svelte index 116c72e47..02632fad9 100644 --- a/src/routes/(console)/organization-[organization]/billing/budgetAlert.svelte +++ b/src/routes/(console)/organization-[organization]/billing/budgetAlert.svelte @@ -79,7 +79,7 @@
- Budget alerts + Billing alerts

{#if $organization?.billingPlan === BillingPlan.FREE} @@ -94,15 +94,9 @@ {#if $organization?.billingPlan === BillingPlan.FREE} Budget alerts are a Pro plan feature + >Billing alerts are a Pro plan feature - Upgrade to a Pro plan to set a budget alerts for your organization. For more information - on what you can do with a Pro plan, - view our pricing guide. + Upgrade to a Pro plan to manage when you receive billing alerts for your organization. {:else} diff --git a/src/routes/(console)/organization-[organization]/billing/budgetCap.svelte b/src/routes/(console)/organization-[organization]/billing/budgetCap.svelte index 0d3503c0a..20586264c 100644 --- a/src/routes/(console)/organization-[organization]/billing/budgetCap.svelte +++ b/src/routes/(console)/organization-[organization]/billing/budgetCap.svelte @@ -55,8 +55,6 @@

Restrict your resource usage by setting a budget cap. Cap usage is reset at the beginning of each billing cycle. -

{#if $organization?.billingPlan === BillingPlan.FREE} @@ -76,8 +74,12 @@ - Budget cap limits do not include the base amount of your plan. Cap usage - is reset at the beginning of each billing cycle. + Budget cap limits do not include the base amount of your plan. {#if capActive} diff --git a/src/routes/(console)/organization-[organization]/billing/paymentMethods.svelte b/src/routes/(console)/organization-[organization]/billing/paymentMethods.svelte index 1a7938d24..9c50f62b3 100644 --- a/src/routes/(console)/organization-[organization]/billing/paymentMethods.svelte +++ b/src/routes/(console)/organization-[organization]/billing/paymentMethods.svelte @@ -20,7 +20,6 @@ import DeleteOrgPayment from './deleteOrgPayment.svelte'; import ReplaceCard from './replaceCard.svelte'; import EditPaymentModal from '$routes/(console)/account/payments/editPaymentModal.svelte'; - import { tooltip } from '$lib/actions/tooltip'; import PaymentModal from '$lib/components/billing/paymentModal.svelte'; import { user } from '$lib/stores/user'; @@ -198,8 +197,8 @@ {#if $organization?.billingPlan !== BillingPlan.FREE}
-

Backup

{#if $organization?.backupPaymentMethodId} +

Backup

- - {#if $paymentMethods.total} - {#each filteredPaymentMethods as paymentMethod} - { - showDropdownBackup = true; - addBackupPaymentMethod(paymentMethod?.$id); - }}> - -

- Card ending in {paymentMethod.last4} -

- -
-
- {/each} - {/if} - (showPayment = true)}> - Add new payment method - -
-
-
-
+
+ +
-
- + + + {#if $paymentMethods.total} + {#each filteredPaymentMethods as paymentMethod} + { + showDropdownBackup = true; + addBackupPaymentMethod(paymentMethod?.$id); + }}> + +

+ Card ending in {paymentMethod.last4} +

+ +
+
+ {/each} + {/if} + (showPayment = true)}> + Add new payment method + +
+ + {/if} {/if} diff --git a/src/routes/(console)/organization-[organization]/billing/planSummary.svelte b/src/routes/(console)/organization-[organization]/billing/planSummary.svelte index 331e11add..668a110d5 100644 --- a/src/routes/(console)/organization-[organization]/billing/planSummary.svelte +++ b/src/routes/(console)/organization-[organization]/billing/planSummary.svelte @@ -199,7 +199,7 @@ {#if $organization?.billingPlan === BillingPlan.FREE}
+ class="u-flex u-flex-vertical-mobile u-cross-center u-gap-16 u-flex-wrap u-width-full-line u-main-end"> @@ -216,7 +216,8 @@
{:else if $organization?.billingPlan !== BillingPlan.GITHUB_EDUCATION} -
+