From ee1264d5270ad684938907862921409b8f6766bc Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 24 Jul 2025 23:21:07 +1200 Subject: [PATCH 1/2] Revert "1.8.x" --- package.json | 10 +- pnpm-lock.yaml | 155 ++++++++++-------- src/lib/actions/analytics.ts | 32 ++-- src/lib/commandCenter/commands.ts | 6 +- src/lib/commandCenter/panels/ai.svelte | 2 +- .../{tables.svelte => collections.svelte} | 4 +- ...teColumn.svelte => createAttribute.svelte} | 8 +- src/lib/commandCenter/panels/index.ts | 16 +- .../commandCenter/searchers/collections.ts | 29 ++++ src/lib/commandCenter/searchers/index.ts | 2 +- src/lib/commandCenter/searchers/tables.ts | 27 --- src/lib/components/backupRestoreBox.svelte | 5 +- src/lib/components/columnSelector.svelte | 13 +- src/lib/components/csvImportBox.svelte | 40 +++-- src/lib/components/eventModal.svelte | 51 +++--- src/lib/components/filePicker.svelte | 4 +- src/lib/components/filters/store.ts | 20 +-- src/lib/components/viewSelector.svelte | 4 +- src/lib/constants.ts | 61 +------ src/lib/layout/containerHeader.svelte | 3 - src/lib/layout/displaySettingsModal.svelte | 6 +- src/lib/layout/gridHeader.svelte | 10 +- src/lib/stores/billing.ts | 3 - src/lib/stores/migration.ts | 25 ++- src/lib/stores/organization.ts | 1 - src/lib/stores/preferences.ts | 25 ++- src/lib/stores/roles.ts | 10 +- src/lib/stores/sdk.ts | 4 +- .../members/+page.ts | 1 - .../project-[region]-[project]/+error.svelte | 4 +- .../databases/create.svelte | 1 - .../database-[database]/+layout.svelte | 37 +++-- .../database-[database]/+page.svelte | 24 +-- .../databases/database-[database]/+page.ts | 9 +- .../database-[database]/[...rest]/+page.ts | 41 ----- .../+layout.svelte | 106 ++++++------ .../+layout.ts | 15 +- .../+page.svelte | 124 +++++++------- .../+page.ts | 13 +- .../activity/+page.svelte | 0 .../activity/+page.ts | 2 +- .../attributes}/+page.svelte | 110 ++++++------- .../attributes}/arrow-one.svg | 0 .../attributes}/arrow-two.svg | 0 .../attributes}/boolean.svelte | 20 +-- .../createAttributeDropdown.svelte} | 8 +- .../attributes}/datetime.svelte | 20 +-- .../attributes/deleteAttribute.svelte} | 34 ++-- .../attributes}/edit.svelte | 54 +++--- .../attributes}/email.svelte | 20 +-- .../attributes}/enum.svelte | 20 +-- .../attributes}/float.svelte | 20 +-- .../attributes}/integer.svelte | 20 +-- .../attributes}/ip.svelte | 20 +-- .../attributes}/relationship.svelte | 90 +++++----- .../attributes}/store.ts | 12 +- .../attributes}/string.svelte | 28 ++-- .../attributes}/url.svelte | 20 +-- .../breadcrumbs.svelte | 6 +- .../create/+page.svelte | 73 +++++---- .../createAttribute.svelte} | 33 ++-- .../csvDisabled.svelte | 0 .../document-[document]}/+layout.svelte | 2 +- .../document-[document]}/+layout.ts | 31 ++-- .../document-[document]}/+page.svelte | 84 +++++----- .../activity/+page.svelte | 0 .../document-[document]}/activity/+page.ts | 2 +- .../document-[document]/attribute.svelte | 63 +++++++ .../document-[document]/attributeForm.svelte} | 18 +- .../document-[document]/attributeItem.svelte} | 50 +++--- .../attributes}/boolean.svelte | 6 +- .../attributes}/datetime.svelte | 6 +- .../attributes}/email.svelte | 6 +- .../attributes}/enum.svelte | 8 +- .../attributes}/integer.svelte | 12 +- .../attributes}/relationship.svelte | 48 +++--- .../document-[document]/attributes/store.ts | 37 +++++ .../attributes}/string.svelte | 16 +- .../attributes}/url.svelte | 6 +- .../document-[document]}/breadcrumbs.svelte | 12 +- .../document-[document]}/delete.svelte | 50 +++--- .../document-[document]/document.svelte} | 50 +++--- .../document-[document]}/header.svelte | 15 +- .../settings/+page.svelte | 72 ++++---- .../document-[document]}/store.ts | 2 +- .../failedModal.svelte | 0 .../header.svelte | 45 ++--- .../indexes/+page.svelte | 76 ++++----- .../indexes/createIndex.svelte | 82 ++++----- .../indexes/deleteIndex.svelte | 12 +- .../indexes/overviewIndex.svelte | 16 +- .../indexes/select.svelte | 4 +- .../relationshipsModal.svelte | 8 +- .../settings/+page.svelte | 4 +- .../settings/dangerZone.svelte | 15 +- .../settings/deleteCollection.svelte} | 14 +- .../settings/displayName.svelte | 36 ++-- .../settings/updateName.svelte | 29 ++-- .../settings/updatePermissions.svelte | 33 ++-- .../settings/updateSecurity.svelte | 72 ++++++++ .../settings/updateStatus.svelte | 32 ++-- .../collection-[collection]/store.ts | 30 ++++ .../subNavigation.svelte | 34 ++-- .../table.svelte | 117 ++++++------- .../usage/[[period]]/+page.svelte | 11 +- .../usage/[[period]]/+page.ts | 3 +- ...teTable.svelte => createCollection.svelte} | 20 +-- .../database-[database]/delete.svelte | 68 ++++---- .../databases/database-[database]/grid.svelte | 22 +-- .../database-[database]/header.svelte | 4 +- .../database-[database]/settings/+page.svelte | 29 ++-- .../databases/database-[database]/store.ts | 4 +- .../database-[database]/string.svelte | 22 +-- .../table-[table]/row-[row]/column.svelte | 63 ------- .../table-[table]/row-[row]/columns/store.ts | 35 ---- .../settings/updateSecurity.svelte | 68 -------- .../table-[table]/store.ts | 27 --- .../database-[database]/table.svelte | 64 ++++---- .../usage/[[period]]/+page.svelte | 8 +- .../databases/usage/[[period]]/+page.svelte | 1 - .../databases/usage/[[period]]/+page.ts | 3 +- .../overview/+layout.svelte | 2 +- .../overview/api-keys/scopes.svelte | 43 +---- .../migrations/(import)/importReport.svelte | 7 +- .../settings/migrations/+page.svelte | 9 +- .../settings/migrations/details.svelte | 3 +- .../settings/migrations/exportModal.svelte | 9 +- .../file-[file]/manageFileToken.svelte | 5 +- 128 files changed, 1645 insertions(+), 1701 deletions(-) rename src/lib/commandCenter/panels/{tables.svelte => collections.svelte} (59%) rename src/lib/commandCenter/panels/{createColumn.svelte => createAttribute.svelte} (58%) create mode 100644 src/lib/commandCenter/searchers/collections.ts delete mode 100644 src/lib/commandCenter/searchers/tables.ts delete mode 100644 src/routes/(console)/project-[region]-[project]/databases/database-[database]/[...rest]/+page.ts rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/+layout.svelte (62%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/+layout.ts (60%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/+page.svelte (66%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/+page.ts (76%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/activity/+page.svelte (100%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/activity/+page.ts (89%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/+page.svelte (70%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/arrow-one.svg (100%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/arrow-two.svg (100%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/boolean.svelte (85%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns/createColumnDropdown.svelte => collection-[collection]/attributes/createAttributeDropdown.svelte} (90%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/datetime.svelte (83%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns/deleteColumn.svelte => collection-[collection]/attributes/deleteAttribute.svelte} (64%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/edit.svelte (57%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/email.svelte (84%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/enum.svelte (88%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/float.svelte (87%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/integer.svelte (87%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/ip.svelte (84%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/relationship.svelte (71%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/store.ts (94%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/string.svelte (88%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/columns => collection-[collection]/attributes}/url.svelte (84%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/breadcrumbs.svelte (81%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/create/+page.svelte (57%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/createColumn.svelte => collection-[collection]/createAttribute.svelte} (68%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/csvDisabled.svelte (100%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row] => collection-[collection]/document-[document]}/+layout.svelte (50%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row] => collection-[collection]/document-[document]}/+layout.ts (51%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row] => collection-[collection]/document-[document]}/+page.svelte (53%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row] => collection-[collection]/document-[document]}/activity/+page.svelte (100%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row] => collection-[collection]/document-[document]}/activity/+page.ts (87%) create mode 100644 src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/document-[document]/attribute.svelte rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row]/columnForm.svelte => collection-[collection]/document-[document]/attributeForm.svelte} (67%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row]/columnItem.svelte => collection-[collection]/document-[document]/attributeItem.svelte} (65%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row]/columns => collection-[collection]/document-[document]/attributes}/boolean.svelte (77%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row]/columns => collection-[collection]/document-[document]/attributes}/datetime.svelte (74%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row]/columns => collection-[collection]/document-[document]/attributes}/email.svelte (73%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row]/columns => collection-[collection]/document-[document]/attributes}/enum.svelte (79%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row]/columns => collection-[collection]/document-[document]/attributes}/integer.svelte (55%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row]/columns => collection-[collection]/document-[document]/attributes}/relationship.svelte (87%) create mode 100644 src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/document-[document]/attributes/store.ts rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row]/columns => collection-[collection]/document-[document]/attributes}/string.svelte (59%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row]/columns => collection-[collection]/document-[document]/attributes}/url.svelte (72%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row] => collection-[collection]/document-[document]}/breadcrumbs.svelte (65%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row] => collection-[collection]/document-[document]}/delete.svelte (69%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row]/row.svelte => collection-[collection]/document-[document]/document.svelte} (59%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row] => collection-[collection]/document-[document]}/header.svelte (77%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row] => collection-[collection]/document-[document]}/settings/+page.svelte (59%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/row-[row] => collection-[collection]/document-[document]}/store.ts (60%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/failedModal.svelte (100%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/header.svelte (64%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/indexes/+page.svelte (77%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/indexes/createIndex.svelte (67%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/indexes/deleteIndex.svelte (83%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/indexes/overviewIndex.svelte (81%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/indexes/select.svelte (83%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/relationshipsModal.svelte (87%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/settings/+page.svelte (90%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/settings/dangerZone.svelte (59%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table]/settings/deleteTable.svelte => collection-[collection]/settings/deleteCollection.svelte} (73%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/settings/displayName.svelte (81%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/settings/updateName.svelte (67%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/settings/updatePermissions.svelte (66%) create mode 100644 src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/settings/updateSecurity.svelte rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/settings/updateStatus.svelte (62%) create mode 100644 src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/store.ts rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/subNavigation.svelte (86%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/table.svelte (77%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/usage/[[period]]/+page.svelte (62%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{table-[table] => collection-[collection]}/usage/[[period]]/+page.ts (84%) rename src/routes/(console)/project-[region]-[project]/databases/database-[database]/{createTable.svelte => createCollection.svelte} (77%) delete mode 100644 src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/row-[row]/column.svelte delete mode 100644 src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/row-[row]/columns/store.ts delete mode 100644 src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/settings/updateSecurity.svelte delete mode 100644 src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/store.ts diff --git a/package.json b/package.json index f850c4ad4..a393ac712 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "dependencies": { "@ai-sdk/svelte": "^1.1.24", - "@appwrite.io/console": "https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@935b30f", + "@appwrite.io/console": "https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c", "@appwrite.io/pink-icons": "0.25.0", "@appwrite.io/pink-icons-svelte": "^2.0.0-RC.1", "@appwrite.io/pink-legacy": "^1.0.3", @@ -57,20 +57,20 @@ "@sveltejs/vite-plugin-svelte": "^5.0.3", "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.6.3", - "@testing-library/svelte": "^5.2.8", + "@testing-library/svelte": "^5.2.4", "@testing-library/user-event": "^14.6.1", "@types/deep-equal": "^1.0.4", "@types/prismjs": "^1.26.5", "@types/remarkable": "^2.0.8", "@typescript-eslint/eslint-plugin": "^8.28.0", "@typescript-eslint/parser": "^8.28.0", - "@vitest/ui": "^3.2.4", + "@vitest/ui": "^3.0.9", "color": "^5.0.0", "eslint": "^9.31.0", "eslint-config-prettier": "^10.1.0", "eslint-plugin-svelte": "^3.3.3", "globals": "^16.0.0", - "jsdom": "^26.1.0", + "jsdom": "^26.0.0", "kleur": "^4.1.5", "prettier": "^3.5.3", "prettier-plugin-svelte": "^3.3.3", @@ -94,5 +94,5 @@ "svelte-preprocess" ] }, - "packageManager": "pnpm@10.13.1" + "packageManager": "pnpm@10.7.0+sha512.6b865ad4b62a1d9842b61d674a393903b871d9244954f652b8842c2b553c72176b278f64c463e52d40fff8aba385c235c8c9ecf5cc7de4fd78b8bb6d49633ab6" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 725d81880..f9cf31eee 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^1.1.24 version: 1.1.24(svelte@5.25.3)(zod@3.24.3) '@appwrite.io/console': - specifier: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@935b30f - version: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@935b30f + specifier: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c + version: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c '@appwrite.io/pink-icons': specifier: 0.25.0 version: 0.25.0 @@ -112,8 +112,8 @@ importers: specifier: ^6.6.3 version: 6.6.3 '@testing-library/svelte': - specifier: ^5.2.8 - version: 5.2.8(svelte@5.25.3)(vite@6.2.3(@types/node@22.13.14)(sass@1.86.0))(vitest@3.0.9) + specifier: ^5.2.4 + version: 5.2.7(svelte@5.25.3)(vite@6.2.3(@types/node@22.13.14)(sass@1.86.0))(vitest@3.0.9) '@testing-library/user-event': specifier: ^14.6.1 version: 14.6.1(@testing-library/dom@10.4.0) @@ -133,8 +133,8 @@ importers: specifier: ^8.28.0 version: 8.28.0(eslint@9.31.0)(typescript@5.8.2) '@vitest/ui': - specifier: ^3.2.4 - version: 3.2.4(vitest@3.0.9) + specifier: ^3.0.9 + version: 3.0.9(vitest@3.0.9) color: specifier: ^5.0.0 version: 5.0.0 @@ -151,8 +151,8 @@ importers: specifier: ^16.0.0 version: 16.0.0 jsdom: - specifier: ^26.1.0 - version: 26.1.0 + specifier: ^26.0.0 + version: 26.0.0 kleur: specifier: ^4.1.5 version: 4.1.5 @@ -194,7 +194,7 @@ importers: version: 6.2.3(@types/node@22.13.14)(sass@1.86.0) vitest: specifier: ^3.0.0 - version: 3.0.9(@types/node@22.13.14)(@vitest/ui@3.2.4)(jsdom@26.1.0)(sass@1.86.0) + version: 3.0.9(@types/node@22.13.14)(@vitest/ui@3.0.9)(jsdom@26.0.0)(sass@1.86.0) packages: @@ -257,8 +257,8 @@ packages: '@analytics/type-utils@0.6.2': resolution: {integrity: sha512-TD+xbmsBLyYy/IxFimW/YL/9L2IEnM7/EoV9Aeh56U64Ify8o27HJcKjo38XY9Tcn0uOq1AX3thkKgvtWvwFQg==} - '@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@935b30f': - resolution: {tarball: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@935b30f} + '@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c': + resolution: {tarball: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c} version: 1.9.0 '@appwrite.io/pink-icons-svelte@2.0.0-RC.1': @@ -1277,8 +1277,8 @@ packages: resolution: {integrity: sha512-IteBhl4XqYNkM54f4ejhLRJiZNqcSCoXUOG2CPK7qbD322KjQozM4kHQOfkG2oln9b9HTYqs+Sae8vBATubxxA==} engines: {node: '>=14', npm: '>=6', yarn: '>=1'} - '@testing-library/svelte@5.2.8': - resolution: {integrity: sha512-ucQOtGsJhtawOEtUmbR4rRh53e6RbM1KUluJIXRmh6D4UzxR847iIqqjRtg9mHNFmGQ8Vkam9yVcR5d1mhIHKA==} + '@testing-library/svelte@5.2.7': + resolution: {integrity: sha512-aGhUaFmEXEVost4QOsbHUUbHLwi7ZZRRxAHFDO2Cmr0BZD3/3+XvaYEPq70Rdw0NRNjdqZHdARBEcrCOkPuAqw==} engines: {node: '>= 10'} peerDependencies: svelte: ^3 || ^4 || ^5 || ^5.0.0-next.0 @@ -1473,9 +1473,6 @@ packages: '@vitest/pretty-format@3.0.9': resolution: {integrity: sha512-OW9F8t2J3AwFEwENg3yMyKWweF7oRJlMyHOMIhO5F3n0+cgQAJZBjNgrF8dLwFTEXl5jUqBLXd9QyyKv8zEcmA==} - '@vitest/pretty-format@3.2.4': - resolution: {integrity: sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==} - '@vitest/runner@3.0.9': resolution: {integrity: sha512-NX9oUXgF9HPfJSwl8tUZCMP1oGx2+Sf+ru6d05QjzQz4OwWg0psEzwY6VexP2tTHWdOkhKHUIZH+fS6nA7jfOw==} @@ -1485,17 +1482,14 @@ packages: '@vitest/spy@3.0.9': resolution: {integrity: sha512-/CcK2UDl0aQ2wtkp3YVWldrpLRNCfVcIOFGlVGKO4R5eajsH393Z1yiXLVQ7vWsj26JOEjeZI0x5sm5P4OGUNQ==} - '@vitest/ui@3.2.4': - resolution: {integrity: sha512-hGISOaP18plkzbWEcP/QvtRW1xDXF2+96HbEX6byqQhAUbiS5oH6/9JwW+QsQCIYON2bI6QZBF+2PvOmrRZ9wA==} + '@vitest/ui@3.0.9': + resolution: {integrity: sha512-FpZD4aIv/qNpwkV3XbLV6xldWFHMgoNWAJEgg5GmpObmAOLAErpYjew9dDwXdYdKOS3iZRKdwI+P3JOJcYeUBg==} peerDependencies: - vitest: 3.2.4 + vitest: 3.0.9 '@vitest/utils@3.0.9': resolution: {integrity: sha512-ilHM5fHhZ89MCp5aAaM9uhfl1c2JdxVxl3McqsdVyVNN6JffnEen8UMCdRTzOhGXNQGo5GNL9QugHrz727Wnng==} - '@vitest/utils@3.2.4': - resolution: {integrity: sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==} - '@vue/compiler-core@3.5.13': resolution: {integrity: sha512-oOdAkwqUfW1WqpwSYJce06wvt6HljgY3fGeM9NcVA1HaYOij3mZG9Rkysn0OHuyUAGMbEbARIpsG+LPVlBJ5/Q==} @@ -1626,6 +1620,9 @@ packages: resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==} engines: {node: '>=4'} + asynckit@0.4.0: + resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + autolinker@3.16.2: resolution: {integrity: sha512-JiYl7j2Z19F9NdTmirENSUUIIL/9MytEWtmzhfmsKPCp9E+G35Y0UNCMoM9tFigxT59qSc8Ml2dlZXOCVTYwuA==} @@ -1748,6 +1745,10 @@ packages: resolution: {integrity: sha512-16BlyiuyLq3MLxpRWyOTiWsO3ii/eLQLJUQXBSNcxMBBSnyt1ee9YUdaozQp03ifwm5woztEZGDbk9RGVuCsdw==} engines: {node: '>=18'} + combined-stream@1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + comma-separated-tokens@2.0.3: resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} @@ -1964,6 +1965,10 @@ packages: delaunator@5.0.1: resolution: {integrity: sha512-8nvh+XBe96aCESrGOqMp/84b13H9cdKbG5P2ejQCh4d4sK9RL4371qou9drQjMhvnPmhWl5hnmqbEE0fXr9Xnw==} + delayed-stream@1.0.0: + resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} + engines: {node: '>=0.4.0'} + dequal@2.0.3: resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} engines: {node: '>=6'} @@ -2027,6 +2032,10 @@ packages: resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} engines: {node: '>= 0.4'} + es-set-tostringtag@2.1.0: + resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==} + engines: {node: '>= 0.4'} + esbuild@0.25.1: resolution: {integrity: sha512-BGO5LtrGC7vxnqucAe/rmvKdJllfGaYWdyABvyMoXQlfYMb2bbRuReWR5tEGE//4LcNJj9XrkovTqNYRFZHAMQ==} engines: {node: '>=18'} @@ -2169,14 +2178,6 @@ packages: picomatch: optional: true - fdir@6.4.6: - resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==} - peerDependencies: - picomatch: ^3 || ^4 - peerDependenciesMeta: - picomatch: - optional: true - fflate@0.8.2: resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==} @@ -2206,6 +2207,10 @@ packages: resolution: {integrity: sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==} engines: {node: '>= 0.4'} + form-data@4.0.2: + resolution: {integrity: sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==} + engines: {node: '>= 6'} + forwarded-parse@2.1.2: resolution: {integrity: sha512-alTFZZQDKMporBH77856pXgzhEzaUVmLCDk+egLgIgHst3Tpndzz8MnKe+GzRJRfvVdn69HhpW7cmXzvtLvJAw==} @@ -2475,8 +2480,8 @@ packages: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} hasBin: true - jsdom@26.1.0: - resolution: {integrity: sha512-Cvc9WUhxSMEo4McES3P7oK3QaXldCfNWp7pl2NNeiIFlCoLr3kfq9kb1fxftiwk1FLV7CvpvDfonxtzUDeSOPg==} + jsdom@26.0.0: + resolution: {integrity: sha512-BZYDGVAIriBWTpIxYzrXjv3E/4u8+/pSG5bQdIYCbNCGOvsPkDQfTVLAIXAf9ETdCpduCVTkDe2NNZ8NIwUVzw==} engines: {node: '>=18'} peerDependencies: canvas: ^3.0.0 @@ -2544,9 +2549,6 @@ packages: loupe@3.1.3: resolution: {integrity: sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug==} - loupe@3.1.4: - resolution: {integrity: sha512-wJzkKwJrheKtknCOKNEtDK4iqg/MxmZheEMtSTYvnzRdEYaZzmgH976nenp8WdJRdx5Vc1X/9MO0Oszl6ezeXg==} - lru-cache@10.4.3: resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} @@ -2608,6 +2610,14 @@ packages: resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} engines: {node: '>=8.6'} + mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + + mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + min-indent@1.0.1: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} @@ -3241,8 +3251,8 @@ packages: tinyexec@0.3.2: resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} - tinyglobby@0.2.14: - resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==} + tinyglobby@0.2.12: + resolution: {integrity: sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww==} engines: {node: '>=12.0.0'} tinypool@1.0.2: @@ -3646,7 +3656,7 @@ snapshots: '@analytics/type-utils@0.6.2': {} - '@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@935b30f': {} + '@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c': {} '@appwrite.io/pink-icons-svelte@2.0.0-RC.1(svelte@5.25.3)': dependencies: @@ -4748,13 +4758,13 @@ snapshots: lodash: 4.17.21 redent: 3.0.0 - '@testing-library/svelte@5.2.8(svelte@5.25.3)(vite@6.2.3(@types/node@22.13.14)(sass@1.86.0))(vitest@3.0.9)': + '@testing-library/svelte@5.2.7(svelte@5.25.3)(vite@6.2.3(@types/node@22.13.14)(sass@1.86.0))(vitest@3.0.9)': dependencies: '@testing-library/dom': 10.4.0 svelte: 5.25.3 optionalDependencies: vite: 6.2.3(@types/node@22.13.14)(sass@1.86.0) - vitest: 3.0.9(@types/node@22.13.14)(@vitest/ui@3.2.4)(jsdom@26.1.0)(sass@1.86.0) + vitest: 3.0.9(@types/node@22.13.14)(@vitest/ui@3.0.9)(jsdom@26.0.0)(sass@1.86.0) '@testing-library/user-event@14.6.1(@testing-library/dom@10.4.0)': dependencies: @@ -4998,10 +5008,6 @@ snapshots: dependencies: tinyrainbow: 2.0.0 - '@vitest/pretty-format@3.2.4': - dependencies: - tinyrainbow: 2.0.0 - '@vitest/runner@3.0.9': dependencies: '@vitest/utils': 3.0.9 @@ -5017,16 +5023,16 @@ snapshots: dependencies: tinyspy: 3.0.2 - '@vitest/ui@3.2.4(vitest@3.0.9)': + '@vitest/ui@3.0.9(vitest@3.0.9)': dependencies: - '@vitest/utils': 3.2.4 + '@vitest/utils': 3.0.9 fflate: 0.8.2 flatted: 3.3.3 pathe: 2.0.3 sirv: 3.0.1 - tinyglobby: 0.2.14 + tinyglobby: 0.2.12 tinyrainbow: 2.0.0 - vitest: 3.0.9(@types/node@22.13.14)(@vitest/ui@3.2.4)(jsdom@26.1.0)(sass@1.86.0) + vitest: 3.0.9(@types/node@22.13.14)(@vitest/ui@3.0.9)(jsdom@26.0.0)(sass@1.86.0) '@vitest/utils@3.0.9': dependencies: @@ -5034,12 +5040,6 @@ snapshots: loupe: 3.1.3 tinyrainbow: 2.0.0 - '@vitest/utils@3.2.4': - dependencies: - '@vitest/pretty-format': 3.2.4 - loupe: 3.1.4 - tinyrainbow: 2.0.0 - '@vue/compiler-core@3.5.13': dependencies: '@babel/parser': 7.27.0 @@ -5191,6 +5191,8 @@ snapshots: dependencies: tslib: 2.8.1 + asynckit@0.4.0: {} + autolinker@3.16.2: dependencies: tslib: 2.8.1 @@ -5323,6 +5325,10 @@ snapshots: color-convert: 3.1.0 color-string: 2.0.1 + combined-stream@1.0.8: + dependencies: + delayed-stream: 1.0.0 + comma-separated-tokens@2.0.3: {} commander@7.2.0: {} @@ -5567,6 +5573,8 @@ snapshots: dependencies: robust-predicates: 3.0.2 + delayed-stream@1.0.0: {} + dequal@2.0.3: {} detect-libc@1.0.3: @@ -5625,6 +5633,13 @@ snapshots: dependencies: es-errors: 1.3.0 + es-set-tostringtag@2.1.0: + dependencies: + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + has-tostringtag: 1.0.2 + hasown: 2.0.2 + esbuild@0.25.1: optionalDependencies: '@esbuild/aix-ppc64': 0.25.1 @@ -5806,10 +5821,6 @@ snapshots: optionalDependencies: picomatch: 4.0.2 - fdir@6.4.6(picomatch@4.0.2): - optionalDependencies: - picomatch: 4.0.2 - fflate@0.8.2: {} file-entry-cache@8.0.0: @@ -5840,6 +5851,13 @@ snapshots: dependencies: is-callable: 1.2.7 + form-data@4.0.2: + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + es-set-tostringtag: 2.1.0 + mime-types: 2.1.35 + forwarded-parse@2.1.2: {} framesync@6.1.2: @@ -6107,11 +6125,12 @@ snapshots: dependencies: argparse: 2.0.1 - jsdom@26.1.0: + jsdom@26.0.0: dependencies: cssstyle: 4.3.0 data-urls: 5.0.0 decimal.js: 10.5.0 + form-data: 4.0.2 html-encoding-sniffer: 4.0.0 http-proxy-agent: 7.0.2 https-proxy-agent: 7.0.6 @@ -6177,8 +6196,6 @@ snapshots: loupe@3.1.3: {} - loupe@3.1.4: {} - lru-cache@10.4.3: {} lru-cache@5.1.1: @@ -6247,6 +6264,12 @@ snapshots: braces: 3.0.3 picomatch: 2.3.1 + mime-db@1.52.0: {} + + mime-types@2.1.35: + dependencies: + mime-db: 1.52.0 + min-indent@1.0.1: {} minimatch@3.1.2: @@ -6867,9 +6890,9 @@ snapshots: tinyexec@0.3.2: {} - tinyglobby@0.2.14: + tinyglobby@0.2.12: dependencies: - fdir: 6.4.6(picomatch@4.0.2) + fdir: 6.4.3(picomatch@4.0.2) picomatch: 4.0.2 tinypool@1.0.2: {} @@ -7033,7 +7056,7 @@ snapshots: optionalDependencies: vite: 6.2.3(@types/node@22.13.14)(sass@1.86.0) - vitest@3.0.9(@types/node@22.13.14)(@vitest/ui@3.2.4)(jsdom@26.1.0)(sass@1.86.0): + vitest@3.0.9(@types/node@22.13.14)(@vitest/ui@3.0.9)(jsdom@26.0.0)(sass@1.86.0): dependencies: '@vitest/expect': 3.0.9 '@vitest/mocker': 3.0.9(vite@6.2.3(@types/node@22.13.14)(sass@1.86.0)) @@ -7057,8 +7080,8 @@ snapshots: why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 22.13.14 - '@vitest/ui': 3.2.4(vitest@3.0.9) - jsdom: 26.1.0 + '@vitest/ui': 3.0.9(vitest@3.0.9) + jsdom: 26.0.0 transitivePeerDependencies: - jiti - less diff --git a/src/lib/actions/analytics.ts b/src/lib/actions/analytics.ts index e3ac82596..d9c86e0d9 100644 --- a/src/lib/actions/analytics.ts +++ b/src/lib/actions/analytics.ts @@ -148,9 +148,9 @@ export enum Click { ConnectRepositoryClick = 'click_connect_repository', CreditsRedeemClick = 'click_credits_redeem', CloudSignupClick = 'click_cloud_signup', - DatabaseColumnDelete = 'click_column_delete', + DatabaseAttributeDelete = 'click_attribute_delete', DatabaseIndexDelete = 'click_index_delete', - DatabaseTableDelete = 'click_table_delete', + DatabaseCollectionDelete = 'click_collection_delete', DatabaseDatabaseDelete = 'click_database_delete', DatabaseImportCsv = 'click_database_import_csv', DomainCreateClick = 'click_domain_create', @@ -273,22 +273,22 @@ export enum Submit { DatabaseDelete = 'submit_database_delete', DatabaseUpdateName = 'submit_database_update_name', DatabaseImportCsv = 'submit_database_import_csv', - ColumnCreate = 'submit_column_create', - ColumnUpdate = 'submit_column_update', - ColumnDelete = 'submit_column_delete', - RowCreate = 'submit_row_create', - RowDelete = 'submit_row_delete', - RowUpdate = 'submit_row_update', - RowUpdatePermissions = 'submit_row_update_permissions', + AttributeCreate = 'submit_attribute_create', + AttributeUpdate = 'submit_attribute_update', + AttributeDelete = 'submit_attribute_delete', + DocumentCreate = 'submit_document_create', + DocumentDelete = 'submit_document_delete', + DocumentUpdate = 'submit_document_update', + DocumentUpdatePermissions = 'submit_document_update_permissions', IndexCreate = 'submit_index_create', IndexDelete = 'submit_index_delete', - TableCreate = 'submit_row_create', - TableDelete = 'submit_row_delete', - TableUpdateName = 'submit_row_update_name', - TableUpdatePermissions = 'submit_row_update_permissions', - TableUpdateSecurity = 'submit_row_update_security', - TableUpdateEnabled = 'submit_row_update_enabled', - TableUpdateDisplayNames = 'submit_row_update_display_names', + CollectionCreate = 'submit_collection_create', + CollectionDelete = 'submit_collection_delete', + CollectionUpdateName = 'submit_collection_update_name', + CollectionUpdatePermissions = 'submit_collection_update_permissions', + CollectionUpdateSecurity = 'submit_collection_update_security', + CollectionUpdateEnabled = 'submit_collection_update_enabled', + CollectionUpdateDisplayNames = 'submit_collection_update_display_names', FunctionCreate = 'submit_function_create', FunctionDelete = 'submit_function_delete', FunctionUpdateName = 'submit_function_update_name', diff --git a/src/lib/commandCenter/commands.ts b/src/lib/commandCenter/commands.ts index fa8427d30..b191b892f 100644 --- a/src/lib/commandCenter/commands.ts +++ b/src/lib/commandCenter/commands.ts @@ -28,10 +28,10 @@ const groups = [ 'integrations', 'migrations', 'users', - 'tables', - 'columns', + 'collections', + 'attributes', 'indexes', - 'rows', + 'documents', 'teams', 'security', 'buckets', diff --git a/src/lib/commandCenter/panels/ai.svelte b/src/lib/commandCenter/panels/ai.svelte index 5181a99a2..58407c678 100644 --- a/src/lib/commandCenter/panels/ai.svelte +++ b/src/lib/commandCenter/panels/ai.svelte @@ -27,7 +27,7 @@ const examples = [ 'How to add platform in the console?', 'How can I manage users, permissions, and access control in Appwrite?', - 'How can I set up database tables and rows in Appwrite?', + 'How can I set up database collections and documents in Appwrite?', 'How do I configure and manage server-side functions in Appwrite?', 'How to add custom domain in the console?' ]; diff --git a/src/lib/commandCenter/panels/tables.svelte b/src/lib/commandCenter/panels/collections.svelte similarity index 59% rename from src/lib/commandCenter/panels/tables.svelte rename to src/lib/commandCenter/panels/collections.svelte index 8fb86e37b..140d2e6ba 100644 --- a/src/lib/commandCenter/panels/tables.svelte +++ b/src/lib/commandCenter/panels/collections.svelte @@ -1,9 +1,9 @@