mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
chore: change plan name to free
This commit is contained in:
1 parent
24d0361842
commit
d83175bc1d
12 files changed
+32
-25
No files matched your search
@@ -14,7 +14,9 @@
|
||||
type="error"
|
||||
title={`${$organization.name} usage has reached the ${tierToPlan($organization.billingPlan).name} plan limit`}>
|
||||
<svelte:fragment>
|
||||
Usage for the <b>{$organization.name}</b> organization has reached the limits of the Starter
|
||||
Usage for the <b>{$organization.name}</b> organization has reached the limits of the {tierToPlan(
|
||||
$organization.billingPlan
|
||||
).name}
|
||||
plan. Consider upgrading to increase your resource usage.
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="buttons">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<SecondaryTabsItem
|
||||
disabled={selectedTab === 'tier-0'}
|
||||
on:click={() => (selectedTab = 'tier-0')}>
|
||||
Starter
|
||||
Free
|
||||
</SecondaryTabsItem>
|
||||
<SecondaryTabsItem
|
||||
disabled={selectedTab === 'tier-1'}
|
||||
@@ -38,7 +38,7 @@
|
||||
{:else if selectedTab === 'tier-1'}
|
||||
<h3 class="u-bold body-text-1">{plan.name} plan</h3>
|
||||
<ul class="un-order-list u-margin-block-start-8">
|
||||
<li>Everything in the Starter plan, plus:</li>
|
||||
<li>Everything in the Free plan, plus:</li>
|
||||
<li>Unlimited databases, buckets, functions</li>
|
||||
<li>{plan.bandwidth}GB bandwidth</li>
|
||||
<li>{plan.storage}GB storage</li>
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
|
||||
{#if excess?.members > 0}
|
||||
{#if currentTier === BillingPlan.STARTER}
|
||||
The Starter plan has a limit of one organization member. By proceeding, all but the
|
||||
creator of the organization admin will be removed.
|
||||
The {plan.name} plan has a limit of one organization member. By proceeding, all but the creator
|
||||
of the organization admin will be removed.
|
||||
{:else if currentTier === BillingPlan.PRO}
|
||||
Additional organization members on the Pro plan cost {collaboratorPrice} per member per billing
|
||||
period. By proceeding, you acknowledge your fees may increase in your next billing period.
|
||||
|
||||
@@ -54,9 +54,8 @@
|
||||
|
||||
<Modal bind:show size="big" headerDivider={false} title="Usage rates">
|
||||
{#if isFree}
|
||||
Usage on the Starter plan is limited for the following resources. Next billing period: {toLocaleDate(
|
||||
nextDate
|
||||
)}.
|
||||
Usage on the {$plansInfo?.get(BillingPlan.STARTER)} plan is limited for the following resources.
|
||||
Next billing period: {toLocaleDate(nextDate)}.
|
||||
{:else if org.billingPlan === BillingPlan.PRO}
|
||||
<p>
|
||||
Usage on the Pro plan will be charged at the end of each billing period at the following
|
||||
|
||||
@@ -367,7 +367,7 @@ export const feedbackDowngradeOptions = [
|
||||
},
|
||||
{
|
||||
value: 'starter',
|
||||
label: 'The Starter plan is enough for my projects'
|
||||
label: 'The Free plan is enough for my projects'
|
||||
},
|
||||
{
|
||||
value: 'budget',
|
||||
|
||||
@@ -111,7 +111,7 @@ export type TierData = {
|
||||
};
|
||||
|
||||
export const tierFree: TierData = {
|
||||
name: 'Starter',
|
||||
name: 'Free',
|
||||
description: 'For personal hobby projects of small scale and students.'
|
||||
};
|
||||
|
||||
@@ -218,9 +218,9 @@ export async function checkForUsageLimit(org: Organization) {
|
||||
if (now - lastNotification < 1000 * 60 * 60 * 24) return;
|
||||
|
||||
localStorage.setItem('limitReachedNotification', now.toString());
|
||||
let message = `<b>${org.name}</b> has reached <b>75%</b> of the Starter plan's ${resources.find((r) => r.value >= 75).name} limit. Upgrade to ensure there are no service disruptions.`;
|
||||
let message = `<b>${org.name}</b> has reached <b>75%</b> of the ${tierToPlan(BillingPlan.STARTER).name} plan's ${resources.find((r) => r.value >= 75).name} limit. Upgrade to ensure there are no service disruptions.`;
|
||||
if (resources.filter((r) => r.value >= 75)?.length > 1) {
|
||||
message = `Usage for <b>${org.name}</b> has reached 75% of the Starter plan limit. Upgrade to ensure there are no service disruptions.`;
|
||||
message = `Usage for <b>${org.name}</b> has reached 75% of the ${tierToPlan(BillingPlan.STARTER).name} plan limit. Upgrade to ensure there are no service disruptions.`;
|
||||
}
|
||||
addNotification({
|
||||
type: 'warning',
|
||||
|
||||
@@ -49,9 +49,9 @@
|
||||
<Alert type="info">
|
||||
<svelte:fragment slot="title">Get ready for Appwrite Pro</svelte:fragment>
|
||||
We will soon introduce the much-anticipated Pro plan. Your account will continue to have
|
||||
access to <b>one free Starter organization</b>. If you manage more than one
|
||||
organization, you will need to either upgrade to the Pro plan, transfer your projects to
|
||||
a Pro organization, or migrate to self-hosting.
|
||||
access to <b>one free organization</b>. If you manage more than one organization, you
|
||||
will need to either upgrade to the Pro plan, transfer your projects to a Pro
|
||||
organization, or migrate to self-hosting.
|
||||
<svelte:fragment slot="buttons">
|
||||
<Button href="https://appwrite.io/pricing" external text>Learn more</Button>
|
||||
</svelte:fragment>
|
||||
|
||||
@@ -27,11 +27,11 @@
|
||||
? [
|
||||
{
|
||||
value: BillingPlan.STARTER,
|
||||
label: `Starter - ${formatCurrency($plansInfo.get(BillingPlan.STARTER).price)}/month`
|
||||
label: `${tierToPlan(BillingPlan.STARTER).name} - ${formatCurrency($plansInfo.get(BillingPlan.STARTER).price)}/month`
|
||||
},
|
||||
{
|
||||
value: BillingPlan.PRO,
|
||||
label: `Pro - ${formatCurrency($plansInfo.get(BillingPlan.PRO).price)}/month + add-ons`
|
||||
label: `${tierToPlan(BillingPlan.PRO).name} - ${formatCurrency($plansInfo.get(BillingPlan.PRO).price)}/month + add-ons`
|
||||
}
|
||||
]
|
||||
: [];
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
import PaymentHistory from './paymentHistory.svelte';
|
||||
import TaxId from './taxId.svelte';
|
||||
import { Alert, Heading } from '$lib/components';
|
||||
import { failedInvoice, paymentMethods, upgradeURL } from '$lib/stores/billing';
|
||||
import { failedInvoice, paymentMethods, tierToPlan, upgradeURL } from '$lib/stores/billing';
|
||||
import type { PaymentMethodData } from '$lib/sdk/billing';
|
||||
import { onMount } from 'svelte';
|
||||
import { page } from '$app/stores';
|
||||
@@ -111,8 +111,10 @@
|
||||
{/if}
|
||||
{#if $organization?.billingPlanDowngrade}
|
||||
<Alert type="info" class="common-section">
|
||||
Your organization will change to a Starter plan once your current billing cycle ends and
|
||||
your invoice is paid on {toLocaleDate($organization.billingNextInvoiceDate)}.
|
||||
Your organization will change to a {tierToPlan(BillingPlan.STARTER).name} plan once your
|
||||
current billing cycle ends and your invoice is paid on {toLocaleDate(
|
||||
$organization.billingNextInvoiceDate
|
||||
)}.
|
||||
</Alert>
|
||||
{/if}
|
||||
<div class="common-section">
|
||||
|
||||
@@ -263,8 +263,10 @@
|
||||
</p>
|
||||
{#if anyOrgFree && billingPlan === BillingPlan.PRO}
|
||||
<Alert type="warning" class="u-margin-block-16">
|
||||
You are limited to one Starter organization per account. Consider upgrading or
|
||||
deleting <Button link href={`${base}/console/organization-${anyOrgFree.$id}`}
|
||||
You are limited to one {tierToPlan(BillingPlan.STARTER).name} organization per account.
|
||||
Consider upgrading or deleting <Button
|
||||
link
|
||||
href={`${base}/console/organization-${anyOrgFree.$id}`}
|
||||
>{anyOrgFree.name}</Button
|
||||
>.
|
||||
</Alert>
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
EmailTemplateLocale
|
||||
} from '@appwrite.io/console';
|
||||
import Email2FaTemplate from './email2FATemplate.svelte';
|
||||
import { tierToPlan } from '$lib/stores/billing';
|
||||
|
||||
const projectId = $page.params.project;
|
||||
|
||||
@@ -139,8 +140,9 @@
|
||||
href: `${base}/console/organization-${$organization.$id}/billing`
|
||||
}
|
||||
]}>
|
||||
All emails sent using the Starter plan will include attribution to Appwrite in
|
||||
the signature. To send attribution-free emails, upgrade your plan.
|
||||
All emails sent using the {tierToPlan(BillingPlan.STARTER).name} plan will include
|
||||
attribution to Appwrite in the signature. To send attribution-free emails, upgrade
|
||||
your plan.
|
||||
</Alert>
|
||||
{/if}
|
||||
<Collapsible>
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
</SearchQuery>
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="tooltip" let:limit let:tier let:upgradeMethod>
|
||||
{#if tier === 'Starter'}
|
||||
{#if tier === 'Free'}
|
||||
<p class="u-bold">The {tier} plan has limits</p>
|
||||
<ul>
|
||||
<li>{limit}GB total file storage</li>
|
||||
|
||||
Reference in new issue
Block a user