diff --git a/src/lib/components/avatarGroup.svelte b/src/lib/components/avatarGroup.svelte index c09a5368f2..c9091ffcf5 100644 --- a/src/lib/components/avatarGroup.svelte +++ b/src/lib/components/avatarGroup.svelte @@ -7,6 +7,7 @@ export let size = 40; export let avatarSize: keyof typeof Sizes = 'medium'; export let bordered = false; + export let color = ''; enum Sizes { xsmall = 'is-size-x-small', @@ -28,13 +29,13 @@ {#each icons as icon}
  • - +
  • {/each} {#if total > 2}
  • -
    +{total - 2}
    +
    +{total - 2}
  • {/if} diff --git a/src/lib/components/emptySearch.svelte b/src/lib/components/emptySearch.svelte index 43a41d217d..2f5cc759a0 100644 --- a/src/lib/components/emptySearch.svelte +++ b/src/lib/components/emptySearch.svelte @@ -20,7 +20,7 @@ {#if !hidePagination} -
    +

    Total results: 0

    diff --git a/src/lib/components/limit.svelte b/src/lib/components/limit.svelte index 7594ccc94e..bf5ed752ce 100644 --- a/src/lib/components/limit.svelte +++ b/src/lib/components/limit.svelte @@ -34,6 +34,7 @@
    + export type FormItemTag = 'li' | 'div'; + + -
  • + -
  • + diff --git a/src/lib/elements/forms/inputSearch.svelte b/src/lib/elements/forms/inputSearch.svelte index d93b782acd..b48debce77 100644 --- a/src/lib/elements/forms/inputSearch.svelte +++ b/src/lib/elements/forms/inputSearch.svelte @@ -1,5 +1,5 @@ - + {#if label}
    @@ -183,12 +201,12 @@
    All
    - {#if data.deployments.total > 0} + {#if $deploymentList.total}
    Deployment ID - Status + Status Source Updated Build Time @@ -196,7 +214,7 @@ - {#each data.deployments.deployments as deployment, index} + {#each $deploymentList.deployments as deployment, index (deployment.$id)} {@const status = deployment.status} @@ -333,7 +351,7 @@ name="Deployments" limit={data.limit} offset={data.offset} - total={data.deployments.total} /> + total={$deploymentList?.total} /> {#if selectedDeployment} diff --git a/src/routes/console/project-[project]/functions/function-[function]/+page.ts b/src/routes/console/project-[project]/functions/function-[function]/+page.ts index 1da9b2ebc2..d09a6161f5 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/+page.ts +++ b/src/routes/console/project-[project]/functions/function-[function]/+page.ts @@ -14,7 +14,7 @@ export const load: PageLoad = async ({ params, depends, url, route, parent }) => return { offset, limit, - deployments: await sdk.forProject.functions.listDeployments(params.function, [ + deploymentList: await sdk.forProject.functions.listDeployments(params.function, [ Query.limit(limit), Query.offset(offset), Query.orderDesc('') diff --git a/src/routes/console/project-[project]/functions/function-[function]/activate.svelte b/src/routes/console/project-[project]/functions/function-[function]/activate.svelte index 69aefb4462..4da5196f38 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/activate.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/activate.svelte @@ -35,7 +35,11 @@ }; - +

    Are you sure you want to activate this deployment?

    diff --git a/src/routes/console/project-[project]/functions/function-[function]/createManual.svelte b/src/routes/console/project-[project]/functions/function-[function]/createManual.svelte index cada9f7e5a..be24aece1e 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/createManual.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/createManual.svelte @@ -33,8 +33,8 @@ functionId, files[0], active, - entrypoint, - buildCommand + entrypoint || undefined, + buildCommand || undefined ); await invalidate(Dependencies.DEPLOYMENTS); files = undefined; @@ -76,8 +76,7 @@ label="Entrypoint" id="entrypoint" placeholder="Entrypoint" - bind:value={entrypoint} - required /> + bind:value={entrypoint} /> {#if $func.version !== 'v3'} diff --git a/src/routes/console/project-[project]/functions/function-[function]/redeployModal.svelte b/src/routes/console/project-[project]/functions/function-[function]/redeployModal.svelte index 6d68e2ec35..6f04929c0b 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/redeployModal.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/redeployModal.svelte @@ -25,8 +25,8 @@ }); trackEvent(Submit.FunctionRedeploy); - invalidate(Dependencies.DEPLOYMENTS); invalidate(Dependencies.FUNCTION); + invalidate(Dependencies.DEPLOYMENTS); show = false; } catch (error) { addNotification({ diff --git a/src/routes/console/project-[project]/functions/function-[function]/settings/+page.svelte b/src/routes/console/project-[project]/functions/function-[function]/settings/+page.svelte index dabf341fe3..499c2d49f0 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/settings/+page.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/settings/+page.svelte @@ -20,6 +20,7 @@ import { Button } from '$lib/elements/forms'; export let data; + let showAlert = true; const sdkCreateVariable = async (key: string, value: string) => { await sdk.forProject.functions.createVariable($func.$id, key, value); @@ -42,8 +43,12 @@ Settings - {#if $func.version !== 'v3'} - + {#if $func.version !== 'v3' && showAlert} + (showAlert = false)}> Your function is outdated Update your function version to make use of new features including build commands and HTTP data in your executions. To update, follow the steps outlined in our diff --git a/src/routes/console/project-[project]/functions/function-[function]/settings/+page.ts b/src/routes/console/project-[project]/functions/function-[function]/settings/+page.ts index d5e4fccb9c..cf2a5f98bc 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/settings/+page.ts +++ b/src/routes/console/project-[project]/functions/function-[function]/settings/+page.ts @@ -32,6 +32,7 @@ export const load: PageLoad = async ({ params, depends }) => { return { variables, globalVariables, + runtimesList: sdk.forProject.functions.listRuntimes(), installations: sdk.forProject.vcs.listInstallations() }; }; diff --git a/src/routes/console/project-[project]/functions/function-[function]/settings/updateConfiguration.svelte b/src/routes/console/project-[project]/functions/function-[function]/settings/updateConfiguration.svelte index 58dab72f22..df75532d11 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/settings/updateConfiguration.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/settings/updateConfiguration.svelte @@ -289,7 +289,7 @@ first configure your environment variables.
    -
    - - +
    @@ -136,11 +120,11 @@ on:change={(e) => applyFilter('runtime', runtime, e)} />
    - {icon} + +
    +
    + {runtime?.split('-')?.join(' ')}
    -
    {runtime}
    @@ -171,10 +155,8 @@ {@const hidden = template.runtimes.slice(1, -1)}
  • -
    -

    +
    +

    {template.name}

      @@ -242,11 +224,10 @@
    {/if} +
    +

    Total templates: {data.sum}

    + +

  • -
    -
    - -
    -
    diff --git a/src/routes/console/project-[project]/functions/templates/template-[template]/+page.svelte b/src/routes/console/project-[project]/functions/templates/template-[template]/+page.svelte index 5362ac55cd..7a8809820b 100644 --- a/src/routes/console/project-[project]/functions/templates/template-[template]/+page.svelte +++ b/src/routes/console/project-[project]/functions/templates/template-[template]/+page.svelte @@ -1,6 +1,6 @@