Skip to content

fix(databases): remove Usage tab from collection header#3112

Merged
lohanidamodar merged 1 commit into
mainfrom
fix-remove-collection-usage-tab
Jul 9, 2026
Merged

fix(databases): remove Usage tab from collection header#3112
lohanidamodar merged 1 commit into
mainfrom
fix-remove-collection-usage-tab

Conversation

@lohanidamodar

Copy link
Copy Markdown
Member

What

Removes the Usage navigation tab from the DocumentsDB collection header (collection-[collection]/header.svelte).

Why

Follow-up to #3111, which deleted the collection usage/ route and its command-center shortcut but missed the header tab. As Greptile flagged on that PR, the header still rendered a Usage tab linking to ${path}/usage — the now-deleted route — so it would 404 for every collection page reachable by multi-db users.

Scope

Single file: removes the one tab entry from the tabs array. Documents / Indexes / Settings tabs unchanged.

Verification

bun run check0 errors (88 pre-existing warnings unchanged). Prettier + ESLint clean.

Follow-up to #3111 (Greptile review): the collection header still rendered a
'Usage' tab linking to ${path}/usage, whose route was deleted in #3111. It
would 404 for multi-db users. Remove the tab entry.
@appwrite

appwrite Bot commented Jul 9, 2026

Copy link
Copy Markdown

Console (appwrite/console)

Project ID: 688b7bf400350cbd60e9

Sites (1)
Site Status Logs Preview QR
 console-stage
688b7cf6003b1842c9dc
Ready Ready View Logs Preview URL QR Code

Tip

Each function runs in its own isolated container with custom environment variables

@greptile-apps

greptile-apps Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR removes the Usage navigation tab from the collection header, which was linking to a usage/ route that was deleted in PR #3111. Without this fix, the tab would have produced a 404 for every multi-db collection page.

  • Removes the single { href: \${path}/usage`, title: 'Usage', ... }entry from thetabsarray inheader.svelte`.
  • No other references to the collection usage route remain in the collection directory.
  • The remaining tabs (Documents, Indexes, Settings) and their logic are unaffected.

Confidence Score: 5/5

Safe to merge — removes a dead nav link pointing at a deleted route with no collateral changes.

The change is a one-block deletion of a single tab entry. It eliminates a broken link to a previously removed route and leaves the rest of the header logic intact. No regressions are introduced.

No files require special attention.

Important Files Changed

Filename Overview
src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/header.svelte Removes the Usage tab (linking to the deleted usage/ route) from the collection header tabs array; Documents, Indexes, and Settings tabs are unchanged.

Reviews (1): Last reviewed commit: "fix(databases): remove Usage tab from co..." | Re-trigger Greptile

@lohanidamodar lohanidamodar merged commit d305af6 into main Jul 9, 2026
4 checks passed
@lohanidamodar lohanidamodar deleted the fix-remove-collection-usage-tab branch July 9, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant