From 8dcd7da314193157c70986cbd366b2e71b9e1d90 Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 15 Dec 2023 12:06:20 +0100 Subject: [PATCH] feat: add activity table footer --- src/lib/layout/activity.svelte | 25 +++++++++++-------- .../deployment-[deployment]/+page.svelte | 19 -------------- 2 files changed, 14 insertions(+), 30 deletions(-) diff --git a/src/lib/layout/activity.svelte b/src/lib/layout/activity.svelte index eb258ff8a..03d0577b2 100644 --- a/src/lib/layout/activity.svelte +++ b/src/lib/layout/activity.svelte @@ -18,7 +18,9 @@ import { Container, ContainerHeader } from '$lib/layout'; import { hoursToDays, toLocaleDateTime } from '$lib/helpers/date'; import type { Models } from '@appwrite.io/console'; - import type { PlanServices } from '$lib/stores/billing'; + import { tierToPlan, type PlanServices } from '$lib/stores/billing'; + import { isCloud } from '$lib/system'; + import { organization } from '$lib/stores/organization'; export let logs: Models.LogList; export let offset = 0; @@ -29,15 +31,7 @@ {#if service} - - -

- Logs are retained in rolling {hoursToDays(limit)} intervals with the {tier} plan. - to increase your log retention for a longer period. -

-
-
+ {:else} Activity {/if} @@ -50,7 +44,16 @@ IP Date - + + +

+ Logs are retained in rolling {hoursToDays(limit)} intervals with the + {tierToPlan($organization.billingPlan).name} + plan. + to increase your log retention for a longer period. +

+
{#each logs.logs as log} diff --git a/src/routes/console/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte b/src/routes/console/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte index 020233810..42d3a8d70 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte @@ -20,12 +20,6 @@ import DeploymentCreatedBy from '../deploymentCreatedBy.svelte'; import DeploymentDomains from '../deploymentDomains.svelte'; import { tooltip } from '$lib/actions/tooltip'; - // import { wizard } from '$lib/stores/wizard'; - // import ChangeOrganizationTierCloud from '$routes/console/changeOrganizationTierCloud.svelte'; - // import { getServiceLimit, tierToPlan } from '$lib/stores/billing'; - // import { organization } from '$lib/stores/organization'; - // import { isCloud } from '$lib/system'; - // import { hoursToDays } from '$lib/helpers/date'; let logs = ''; @@ -47,22 +41,9 @@ } }); }); - - // const limit = getServiceLimit('logs'); - // const tier = tierToPlan($organization?.billingPlan)?.name; -