The project Settings > Usage tab failed to render entirely, while every
other Settings tab worked. The API request succeeded; the crash was in
the page component's render:
Uncaught TypeError: Cannot read properties of undefined (reading 'length')
at +page.svelte:324
`data.usage.executionsBreakdown` was undefined. The console SDK types it
as a required `MetricBreakdown[]`, so the guard read `.length` on it
unconditionally. Because a throw during render aborts the whole render
pass, nothing mounted -- which is why the tab highlight moved to Usage
while the previously active tab's content stayed on screen instead of an
error page being shown.
Optional-chain both breakdown-table guards (`executionsBreakdown` and
`authPhoneCountryBreakdown`) so a missing breakdown hides just its table.
Also guard two latent instances of the same class on this page, since the
response demonstrably omits array fields the SDK types as required:
- `legendData` reduced over `databasesReads`/`databasesWrites` outside any
`{#if}`, so it would have crashed even earlier had those been missing.
- The db chart's `{#if dbReads || dbWrites}` passes when only one array is
present, but the body mapped both.
These are null-guards rather than defaulting the arrays to `[]`, because
`[]` is truthy and would flip several `{#if}` empty-state checks, silently
replacing "No data to show" cards with empty charts.
Separately, the attribution ping in `+layout.svelte` was fire-and-forget
with no `.catch()`, so a blocked request surfaced as an unhandled
`Failed to fetch` rejection that obscured real errors in the console.
When project is missing but an error query param is present, display the actual OAuth failure instead of the misleading "Missing redirect URL" message.
Dev key creation is no longer allowed. Removes the create button,
create modal, empty-state create action, and command palette entry,
and adds a deprecation alert linking the changelog:
https://appwrite.io/changelog/entry/2026-07-22
bun audit --audit-level high was failing on immutable (pulled in via
sass) for two DoS advisories (32-bit trie overflow, hash-collision
complexity). Bumped the override from ^5.1.5 to ^5.1.8.
sites.getUsage() is being dropped from the SDK (appwrite/sdk-for-console#105),
along with the other usage endpoints removed in #3134. This inline
build-metrics card on the site deployments page was the one live
consumer that cleanup missed.
A prior bun update/install cycle on this branch stripped the sha512
checksums for @appwrite.io/console, pink-icons-svelte, and
pink-svelte (flagged in review). Restored them to match main's
pinned versions.
Removing every remaining usage/[[period]] route in this branch left
the shared Usage/UsageMultiple components (src/lib/layout) with no
consumers, which also broke type-checking since no route defines a
`period` param anymore. Extracted the still-used helper functions
(periodToDates, total, etc.) to a plain usageHelpers.ts and deleted
the dead components. Also removed a leftover "Usage" sub-navigation
entry in the database store.
bun audit --audit-level high was failing CI on transitive deps pulled
in by eslint and @sentry/vite-plugin. Existing brace-expansion
override didn't cover the patched range; added a js-yaml override.
Removes the Usage tab/route and its g-u command-center shortcut for
buckets, functions, sites, and auth — the same cleanup already done
for databases (#3128/#3130/#3131). Project-level billing usage
(settings/usage) is untouched.
Same cleanup as #3128/#3130: removes the per-database Usage tab
(database-[database]/usage) and its command-center shortcut. It
called tablesDB.getUsage(), which is going away with the backend
usage-endpoint removal.
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.
Storage, functions, and sites already dropped their all-time usage
tabs; databases still had one, plus orphaned usage route files and a
dead command-center shortcut across storage/functions/sites/databases.
Gitea is a self-hosted-only feature, not offered on Appwrite Cloud, so
the button now checks isSelfHosted in addition to _APP_VCS_PROVIDERS.
Swapped the placeholder teapot silhouette for Gitea's actual mascot
mark.
Gated behind _APP_VCS_PROVIDERS containing 'gitea' (server-side allow
list), so it stays hidden unless Gitea is actually configured. Ships
a stand-in monochrome icon since no Gitea icon exists in
@appwrite.io/pink-icons-svelte yet.