diff --git a/src/routes/console/project-[project]/settings/usage/[[invoice]]/+page.svelte b/src/routes/console/project-[project]/settings/usage/[[invoice]]/+page.svelte index a4d52bdf4..c3c3e103c 100644 --- a/src/routes/console/project-[project]/settings/usage/[[invoice]]/+page.svelte +++ b/src/routes/console/project-[project]/settings/usage/[[invoice]]/+page.svelte @@ -28,6 +28,7 @@ $: executions = data.usage.executions; $: executionsTotal = data.usage.executionsTotal; $: storage = data.usage.filesStorageTotal; + $: deployments = data.usage.deploymentsStorageTotal; const tier = data?.currentInvoice?.tier ?? $organization?.billingPlan; const plan = tierToPlan(tier).name; @@ -264,7 +265,7 @@

Calculated for all your files, deployments, builds and databases. While in beta, only - file storage is counted against your plan limits. + file storage and deployments are counted against your plan limits.

@@ -273,7 +274,7 @@

- {humanized.value} + Files - {humanized.value} {humanized.unit}

@@ -312,7 +313,55 @@ class="icon-chart-square-bar text-large" aria-hidden="true" style="font-size: 32px;" /> -

No data to show

+

No data to show for files

+
+ + {/if} + {#if deployments} + {@const humanized = humanFileSize(deployments)} +
+
+

+ Deployments - {humanized.value} + {humanized.unit} +

+
+
+ {#if data.usage.bucketsBreakdown.length > 0} + + + Function + Usage + + + + {#each data.usage.deploymentsStorageBreakdown.sort((a, b) => b.value - a.value) as func} + {@const humanized = humanFileSize(func.value)} + + + {func.name ?? func.resourceId} + + + {humanized.value}{humanized.unit} + + + View function + + + {/each} + +
+ {/if} + {:else} + +
+
{/if}