fix(databases): remove leftover per-table Usage tab

Same cleanup as #3128, one level down: the per-table Usage tab still
called tablesDB.getTableUsage(), which is going away with the backend
usage-endpoint removal and is already showing empty data on cloud.
This commit is contained in:
harsh mahajan committed 2026-07-21 17:33:31 +05:30
1 parent 1d1eabcec7
commit 90057188f2
3 files changed
-35

No files matched your search

@@ -32,12 +32,6 @@
title: 'Indexes',
event: 'indexes'
},
{
href: `${path}/usage`,
title: 'Usage',
event: 'usage',
hasChildren: true
},
{
href: `${path}/settings`,
title: 'Settings',
@@ -1,11 +0,0 @@
<script lang="ts">
import type { PageProps } from './$types';
import { Usage } from '$database/(entity)';
let { data }: PageProps = $props();
const count = $derived(data.rows);
const total = $derived(data.rowsTotal);
</script>
<Usage {count} {total} />
@@ -1,18 +0,0 @@
import { isValueOfStringEnum } from '$lib/helpers/types';
import { sdk } from '$lib/stores/sdk';
import { UsageRange } from '@appwrite.io/console';
import type { PageLoad } from './$types';
export const load: PageLoad = async ({ params }) => {
const period = isValueOfStringEnum(UsageRange, params.period)
? params.period
: UsageRange.ThirtyDays;
return {
...(await sdk.forProject(params.region, params.project).tablesDB.getTableUsage({
databaseId: params.database,
tableId: params.table,
range: period
}))
};
};