From 4e3777f9da7f4eeb22bf9ca2bce449638fd34691 Mon Sep 17 00:00:00 2001 From: harsh mahajan Date: Tue, 2 Jun 2026 10:59:47 +0530 Subject: [PATCH] fix: remove inaccurate usage stats from project overview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Keep Database, Storage, Auth, and Functions as nav tiles — icon + label only. Stats were consistently reported as inaccurate; nav value is preserved. Mobile layout uses a 2×2 grid instead of a vertical stack. --- .../overview/+layout.svelte | 173 ++++++------------ 1 file changed, 56 insertions(+), 117 deletions(-) diff --git a/src/routes/(console)/project-[region]-[project]/overview/+layout.svelte b/src/routes/(console)/project-[region]-[project]/overview/+layout.svelte index 7391e0ff1..6f52422be 100644 --- a/src/routes/(console)/project-[region]-[project]/overview/+layout.svelte +++ b/src/routes/(console)/project-[region]-[project]/overview/+layout.svelte @@ -17,13 +17,11 @@ import { PlatformsPanel } from '$lib/commandCenter/panels'; import { Tab, Tabs } from '$lib/components'; import { isTabSelected } from '$lib/helpers/load'; - import { humanFileSize } from '$lib/helpers/sizeConvertion'; import { Container, type UsagePeriods } from '$lib/layout'; import { onMount, setContext, type Component } from 'svelte'; import Bandwidth from './bandwidth.svelte'; import Requests from './requests.svelte'; import { usage } from './store'; - import { formatNum } from '$lib/helpers/string'; import { periodToDates } from '$lib/layout/usage.svelte'; import { canWriteProjects } from '$lib/stores/roles'; import { Card, Layout, Typography } from '@appwrite.io/pink-svelte'; @@ -121,124 +119,51 @@ {#if $usage} - {@const storage = humanFileSize($usage.filesStorageTotal ?? 0)} - - - - changePeriod(e.detail)} /> - - - changePeriod(e.detail)} /> - - - - - -
-
-
- - Database -
-
- -
- -
- - {formatNum($usage.documentsTotal ?? 0)} - - Rows -
-
-
- -
-
-
- - Storage -
-
- -
- -
- - {storage.value} - {storage.unit} - - Storage -
-
-
- -
-
-
- - Auth -
-
- -
- -
- - {formatNum($usage.usersTotal ?? 0)} - - Users -
-
-
- -
-
-
- - Functions -
-
- -
- -
- - {formatNum($usage.executionsTotal ?? 0)} - - Executions -
- -
-
-
-
-
- - - - - -
+ + + changePeriod(e.detail)} /> + + + changePeriod(e.detail)} /> + {/if} + + Integrations @@ -260,3 +185,17 @@
+ +