diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/store.ts b/src/routes/(console)/project-[project]/functions/function-[function]/store.ts index fb6de754f..d27486499 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/store.ts +++ b/src/routes/(console)/project-[project]/functions/function-[function]/store.ts @@ -59,12 +59,32 @@ export const columns = writable([ ], filter: false }, + { + id: 'totalSize', + title: 'Total size', + type: 'integer', + width: { min: 140, max: 160 }, + elements: [ + { + value: 2 * 1000 * 1000, + label: 'more than 2MB' + }, + { + value: 10 * 1000 * 1000, + label: 'more than 10MB' + }, + { + value: 50 * 1000 * 1000, + label: 'more than 50MB' + } + ] + }, { id: 'sourceSize', title: 'Source size', type: 'integer', + hide: true, width: { min: 140, max: 160 }, - elements: [ { value: 2 * 1000 * 1000, @@ -85,8 +105,21 @@ export const columns = writable([ title: 'Build size', type: 'integer', hide: true, - filter: false, - width: { min: 110, max: 130 } + width: { min: 110, max: 130 }, + elements: [ + { + value: 2 * 1000 * 1000, + label: 'more than 2MB' + }, + { + value: 10 * 1000 * 1000, + label: 'more than 10MB' + }, + { + value: 50 * 1000 * 1000, + label: 'more than 50MB' + } + ] }, { id: 'type', diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte index d0309096e..f9e83a331 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte @@ -87,6 +87,8 @@ {:else} {formatTimeDetailed(deployment.buildDuration)} {/if} + {:else if column.id === 'totalSize'} + {calculateSize(deployment.totalSize)} {:else if column.id === 'sourceSize'} {calculateSize(deployment.sourceSize)} {:else if column.id === 'buildSize'}