12582 Commits
Author SHA1 Message Date
Atharva Deosthale b2991238c2 fix(dev-keys): state deprecation dates in the alert 2026-07-22 19:16:14 +05:30
Atharva Deosthale d9db09f0fb fix(dev-keys): remove dev key creation, add deprecation notice
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
2026-07-22 19:14:12 +05:30
harsh mahajan 3924835e96 fix(sites): remove deployment metrics card calling sites.getUsage()
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.
2026-07-22 16:13:09 +05:30
harsh mahajan a0ee4324ef fix: remove orphaned shared usage components and breadcrumb entry
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.
2026-07-21 18:02:14 +05:30
harsh mahajan 987cc06e73 Merge remote-tracking branch 'origin/fix-remove-remaining-resource-usage-tabs' into fix-remove-remaining-usage-tabs-consolidated 2026-07-21 17:57:45 +05:30
harsh mahajan 0512f68c0e Merge remote-tracking branch 'origin/fix-remove-database-usage-tab' into fix-remove-remaining-usage-tabs-consolidated 2026-07-21 17:57:41 +05:30
harsh mahajan de3deb88c0 fix: remove remaining per-resource Usage tabs and shortcuts
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.
2026-07-21 17:47:59 +05:30
harsh mahajan ac4672ec6c fix(databases): remove leftover per-database Usage tab
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.
2026-07-21 17:41:40 +05:30
harsh mahajan 8d5f6cbac4 fix(databases): remove orphaned shared entity Usage view
Only the table usage page consumed this component; it's now dead
code after removing that route.
2026-07-21 17:41:01 +05:30
harsh mahajan 6c104c03d7 fix(databases): remove dangling table usage command-center shortcut
The "Go to usage" (g u) shortcut pointed at the table usage route
removed earlier in this branch, leaving a broken command.
2026-07-21 17:38:05 +05:30
harsh mahajan 90057188f2 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.
2026-07-21 17:33:31 +05:30
Harsh Mahajan 368fa34995 Merge pull request #3128 from appwrite/fix-remove-databases-usage-tab
fix(databases): remove leftover top-level Usage tab
2026-07-20 15:20:09 +05:30
harsh mahajan 52fcc3ddf2 fix(databases): remove leftover top-level Usage tab
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.
2026-07-20 15:16:01 +05:30
BretRen db7a7b1b3d Add 'target' attribute to allowed attributes in modal 2026-07-20 00:58:37 -07:00
BretRen e778630b0f delete useless code 2026-07-20 00:15:46 -07:00
BretRen cb6daac2cd enforce noopener & noreferrer 2026-07-20 00:13:21 -07:00
BretRen e2e1c2b4d7 Enhance Security + Formatting 2026-07-19 23:05:09 -07:00
BretRen f4895412d7 fix: Server return html but not Rendering 2026-07-19 22:31:26 -07:00
Damodar Lohani 441717a906 fix(premiumGeoDB): treat webhook-race 404 on addon confirm as success 2026-07-16 11:16:12 +05:45
Damodar Lohani 74e69fc42b fix(premiumGeoDB): inspect payment outcome on enable, mirror BAA flow 2026-07-16 07:47:38 +05:45
Damodar Lohani c1caaa6437 Merge remote-tracking branch 'origin/main' into feat/project-premium-geo-db-addon
# Conflicts:
#	bun.lock
#	package.json
2026-07-16 06:56:34 +05:45
harsh mahajan 826e5a991c Gate Gitea button to self-hosted, use real Gitea logo
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.
2026-07-15 18:48:30 +05:30
harsh mahajan 8436692296 Add a Connect to Gitea button alongside GitHub
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.
2026-07-15 17:44:26 +05:30
Torsten Dittmann d006d2a90c Hide unavailable low-tier build specs 2026-07-13 22:56:44 +04:00
Chirag AggarwalandCursor fd020af6fd Address Greptile review
Replace heading-string matching with an explicit collapsible flag on
PermissionGroup, use startsWith instead of full-text search for the
organization picker, and reset loadingMore via finally on stale-term
early returns.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 11:25:25 +05:30
Chirag AggarwalandCursor c7905b4476 Improve OAuth2 consent screen UX
Recognize both hosted MCP resource URIs, add missing organization scope
descriptions, make permission groups collapsible, paginate project and
organization pickers with infinite scroll, remove per-scope copy buttons,
and add account switching via a dropdown on the account chip.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 08:48:01 +05:30
Matej Bačo 395a26886b Code quality improvements 2026-07-10 10:40:33 +02:00
Matej Bačo 16bc0d102b Add Appwrite provider; Improve OIDC provider 2026-07-10 10:30:14 +02:00
Atharva Deosthale c63636ed12 Merge pull request #3113 from appwrite/feat-state-of-appwrite-survey-banner
feat(console): add State of Appwrite Cloud survey banner
2026-07-10 13:09:16 +05:30
Atharva Deosthale 4081765807 feat(console): update survey banner message 2026-07-10 13:05:51 +05:30
harsh mahajan 8f67efbbde fix(databases): treat empty format as no format in enum icon lookup
Mirrors the truthiness guard already used in columns/+page.svelte, so
an empty-string format from the API falls back to undefined instead of
failing to match any option and dropping the icon.
2026-07-10 11:32:59 +05:30
harsh mahajan ca5f703f57 fix(databases): correct enum icon and hide indexed checkbox for relationships
The create-index column selector matched icons by type only, so enum
columns (type: string, format: enum) fell through to the first
string-typed option and showed the email icon. The columns table also
showed an "Indexed" checkbox for relationship columns, which can't be
indexed.
2026-07-10 11:28:39 +05:30
Atharva Deosthale 94e09141ed feat(console): add State of Appwrite Cloud survey banner
Replace Presences API promo with State of Appwrite Cloud survey
announcement linking to the feedback form.
2026-07-09 21:35:31 +05:30
Damodar Lohani 641e67f623 Merge remote-tracking branch 'origin/main' into feat/project-premium-geo-db-addon 2026-07-09 12:30:05 +05:45
Damodar Lohani 92d8e2969a fix(databases): remove Usage tab from collection header
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.
2026-07-09 12:20:20 +05:45
Damodar Lohani b3f0cc9533 refactor(databases): remove DocumentsDB collection usage page
The per-service DocumentsDB usage endpoints were removed in cloud
(appwrite-labs/cloud#4679, 'remove per-service /usage endpoints') as they
duplicated the org/project usage surface. The console collection usage page
was the only consumer of documentsDB.getCollectionUsage, so remove it and its
command-center 'Go to usage' entry. Database/table/project usage pages are
unaffected (they use the retained tablesDB.* usage endpoints).
2026-07-09 12:13:17 +05:45
Damodar Lohani 7c33c931fc Merge remote-tracking branch 'origin/main' into feat/project-premium-geo-db-addon
# Conflicts:
#	bun.lock
#	package.json
2026-07-09 11:33:24 +05:45
Chirag Aggarwal 768f44b7c1 (refactor): flatten the consent-page flow and extract oauth2 error constants
- Hoist the flow out of the 220-line effect into one named function per
  entry branch (grant_id / request_uri / raw client_id), cancelled via a
  run counter instead of a closed-over flag.
- Dedupe the authorize-request param extraction shared by createPAR and
  authorize into readAuthorizeParams(), plus getAccount()/fail() helpers.
- Move error messages and the oauth2_invalid_request exception type into
  a colocated errors.ts.
- Build navigation targets with resolve() to satisfy
  svelte/no-navigation-without-resolve.
2026-07-08 16:14:25 +05:30
Chirag Aggarwal b3ae248164 (refactor): drop the anonymous PAR client now that /par allows credentialed platform origins 2026-07-08 15:49:36 +05:30
Chirag Aggarwal f3e76aa628 (docs): explain why PAR needs a credentials-omitted client 2026-07-08 15:22:11 +05:30
Chirag Aggarwal 32ee3fc9d8 (fix): forward all resource values in the authenticated authorize path
Greptile follow-up: the PAR path already used params.getAll('resource') but the authenticated direct-authorize call still sent only the first value, dropping repeated RFC 8707 resource indicators.
2026-07-08 13:04:45 +05:30
Chirag Aggarwal 4afe9de76d (cleanup): trim consent-page comments to load-bearing constraints 2026-07-08 12:43:39 +05:30
Chirag Aggarwal f564a72d79 (fix): detect dead request_uri handles by exception type, not message substring
Greptile flagged the message.includes('request_uri') heuristic as over-broad. Match the AppwriteException type oauth2_invalid_request instead — the server reports every dead-handle case (expired, consumed, malformed) under that type, and since the request_uri authorize call sends nothing but the handle, the type can only mean the handle is unusable. Verified against the local cloud branch: a consumed handle returns type oauth2_invalid_request with message 'Invalid request_uri.' (which the suggested 'expired'/'not found' substrings would have missed).
2026-07-08 12:41:06 +05:30
Chirag Aggarwal cfaf3e7491 (feat): resume OAuth2 authorize requests through PAR handles across login
When an unauthenticated user lands on the consent screen, push the authorization request server-side (RFC 9126 PAR) and round-trip only a short request_uri handle through login, instead of the full consent URL. The full URL — scope, 2KB state, PKCE and authorization_details — previously travelled inside the GitHub OAuth state during 'Sign in with GitHub' and could exceed the provider's state size limits, breaking MCP client logins.

- createPAR goes through an anonymous no-credentials client: the server serves /par (like /token) with wildcard CORS and credentials disabled, which the browser rejects for the SDK's default credentialed fetch.
- The post-login request_uri path requires a session before dereferencing (the handle is single-use and consumed even by failing authorize calls) and sends only clientId + requestUri, as the server rejects any other param alongside the handle.
- After authorize returns a grant, the URL is rewritten to ?grant_id= with replaceState so reloads resume via getGrant instead of failing on the consumed handle.
- The consent effect is keyed on the query string via $derived: login calls invalidate(ACCOUNT) right after goto(redirect), which replaces the page.url object without changing the query — an effect tracking page.url directly re-runs, cancels the in-flight authorize and re-dereferences the consumed handle.
- Expired/consumed handles render a friendly retry message; PAR failures (e.g. servers without the endpoint) fall back to the legacy full-URL redirect.
- resource params are forwarded with getAll (RFC 8707 repeats the key).

SDK pinned to the preview build of appwrite-labs/cloud#4660 (@4b3ae78); re-pin after the cloud PR merges. Models.Locale was renamed to Models.CloudLocale in that spec, updated the seven usages.
2026-07-08 11:50:36 +05:30
Damodar LohaniandClaude Opus 4.8 a02d9cc16d fix(billing): friendly label for premium geo addon in project breakdown
Project-scoped addon resources (addon_premiumGeoDB) are rebuilt by the cloud
project aggregator without a `name` field, so the per-project breakdown rows —
which used `addon.name || addon.resourceId` — rendered the raw resourceId.

Add premium geo entries to billingAddonNamesFallback and apply the map in the
breakdown rows too (previously only the top-level addons section used it), so
the label degrades to "Premium Geo DB" instead of "addon_premiumGeoDB".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-07 16:11:49 +05:45
Damodar LohaniandClaude Opus 4.8 300f3cee8b fix(premiumGeoDB): handle 3DS PaymentAuthentication in re-enable flow
handleReEnable discarded the createPremiumGeoDBAddon return value and always
reported success. If the endpoint returns a PaymentAuthentication (payment/3DS
required) instead of an Addon, the challenge was never initiated — the addon
would sit in `pending` while the UI claimed it was re-enabled.

Mirror the enable modal: detect the `clientSecret` branch and drive confirmPayment
(which redirects to ?type=confirm-addon so the existing onMount handler completes
the payment). Matches BAA.svelte's handleReEnable pattern.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-07 16:01:35 +05:45
Damodar Lohani e185cbd502 Merge remote-tracking branch 'origin/main' into feat/project-premium-geo-db-addon
# Conflicts:
#	bun.lock
#	package.json
2026-07-07 15:37:11 +05:45
harsh mahajan f14ddc4b6d Remove Activity screens from the console
Audit logging has permanently stopped writing to the old project-DB
audit collection cloud reads from -- account, users, teams, messaging
topics, and database tables/collections Activity tabs (plus the
per-row/document activity side sheets) can never show new data again,
and are broken outright wherever the underlying endpoint was never
restored. Removes the tabs, command-palette entries, and the now-dead
route/component files rather than leaving broken or permanently-stale
screens in the product.
2026-07-06 19:24:45 +05:30
Chirag Aggarwal 471e15763c (fix): address Greptile review — guard umbrella collapse under read-only, drop redundant normalize pass 2026-07-06 18:04:33 +05:30
Chirag Aggarwal 74ba7ee685 Merge remote-tracking branch 'origin/main' into feat/mcp-consent-narrowing
# Conflicts:
#	src/routes/(public)/oauth2/consent-card.svelte
2026-07-06 18:04:33 +05:30