From 0344345120711956a8a8847c06d7ad6c3a26964b Mon Sep 17 00:00:00 2001 From: Darshan Date: Wed, 5 Nov 2025 17:31:07 +0530 Subject: [PATCH 01/14] manage: headers on billing and domain pages. update: hide org in the breadcrumbs. --- src/lib/components/breadcrumbs.svelte | 4 +- src/lib/profiles/index.svelte.ts | 6 ++ src/lib/studio/studio-widget.ts | 6 +- .../organization-[organization]/+layout.ts | 5 +- .../organization-[organization]/header.svelte | 75 +++++++++++-------- .../organization-[organization]/view.svelte | 3 + 6 files changed, 61 insertions(+), 38 deletions(-) diff --git a/src/lib/components/breadcrumbs.svelte b/src/lib/components/breadcrumbs.svelte index 04ca3a2a9..7b70f77b8 100644 --- a/src/lib/components/breadcrumbs.svelte +++ b/src/lib/components/breadcrumbs.svelte @@ -271,7 +271,7 @@ {#key derivedKey}
- {#if !$isSmallViewport} + {#if !$isSmallViewport && resolvedProfile.showOrgInBreadcrumbs} / - {:else} + {:else if resolvedProfile.showOrgInBreadcrumbs}
- - {#each tabs as tab} - - {tab.title} - - {/each} - + + {#if !resolvedProfile.minimalOrgHeader} + + {#each tabs as tab} + + {tab.title} + + {/each} + + {/if} {/if} diff --git a/src/routes/(console)/organization-[organization]/view.svelte b/src/routes/(console)/organization-[organization]/view.svelte index 121571072..c3e7fdee3 100644 --- a/src/routes/(console)/organization-[organization]/view.svelte +++ b/src/routes/(console)/organization-[organization]/view.svelte @@ -319,8 +319,11 @@ organization={data.organization} currentPlan={$currentPlan} /> + + + Date: Wed, 5 Nov 2025 17:34:13 +0530 Subject: [PATCH 02/14] fix: logic on github support. update: org bottomsheet. --- src/lib/components/breadcrumbs.svelte | 4 +++- src/lib/components/support.svelte | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/components/breadcrumbs.svelte b/src/lib/components/breadcrumbs.svelte index 7b70f77b8..dc0798633 100644 --- a/src/lib/components/breadcrumbs.svelte +++ b/src/lib/components/breadcrumbs.svelte @@ -461,7 +461,9 @@ {/if} - + {#if resolvedProfile.showOrgInBreadcrumbs} + + {/if} {#await projectsBottomSheet then menu} {#if menu} diff --git a/src/lib/components/support.svelte b/src/lib/components/support.svelte index 654477fdd..6b2ad119d 100644 --- a/src/lib/components/support.svelte +++ b/src/lib/components/support.svelte @@ -58,7 +58,7 @@ link: 'https://appwrite.io/discord', description: 'Get support from our community through Discord' }, - ...(resolvedProfile.showGithubIssueSupport + ...(!resolvedProfile.showGithubIssueSupport ? [] : [ { From f8fd0c24ccad139381b31ed00c92e091d3897955 Mon Sep 17 00:00:00 2001 From: Darshan Date: Wed, 5 Nov 2025 17:40:30 +0530 Subject: [PATCH 03/14] hide: project creation onboarding page. --- .../onboarding/create-project/+page.ts | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/routes/(console)/onboarding/create-project/+page.ts b/src/routes/(console)/onboarding/create-project/+page.ts index 6413f6e74..738b1b1a7 100644 --- a/src/routes/(console)/onboarding/create-project/+page.ts +++ b/src/routes/(console)/onboarding/create-project/+page.ts @@ -6,12 +6,29 @@ import { isOrganization, tierToPlan } from '$lib/stores/billing'; import { ID, Query, type Models } from '@appwrite.io/console'; import { BillingPlan } from '$lib/constants'; import { redirect } from '@sveltejs/kit'; -import { base } from '$app/paths'; +import { base, resolve } from '$app/paths'; +import { resolvedProfile } from '$lib/profiles/index.svelte'; // TODO: this needs to be cleaned up! export const load: PageLoad = async ({ parent }) => { const { account, organizations } = await parent(); + const firstOrganization = organizations?.teams[0]?.$id; + + // short-circuit + if (!resolvedProfile.showOnboarding) { + if (!organizations?.total) { + redirect(303, resolve('/(console)/create-organization')); + } else { + redirect( + 303, + resolve('/(console)/organization-[organization]', { + organization: firstOrganization + }) + ); + } + } + const accountPrefs = account.prefs; const hasCompletedOnboarding = accountPrefs['newOnboardingCompleted'] ?? false; @@ -19,7 +36,7 @@ export const load: PageLoad = async ({ parent }) => { if (hasCompletedOnboarding && !organizations?.total) { redirect(303, `${base}/onboarding/create-organization`); } else if (hasCompletedOnboarding && organizations?.total) { - redirect(303, `${base}/organization-${organizations.teams[0].$id}`); + redirect(303, `${base}/organization-${firstOrganization}`); } if (!organizations?.total) { From a647fc23040672fcf91f5253a5fff17e89adb3bd Mon Sep 17 00:00:00 2001 From: Darshan Date: Wed, 5 Nov 2025 17:40:36 +0530 Subject: [PATCH 04/14] lint. --- src/lib/components/breadcrumbs.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/components/breadcrumbs.svelte b/src/lib/components/breadcrumbs.svelte index dc0798633..7360a596e 100644 --- a/src/lib/components/breadcrumbs.svelte +++ b/src/lib/components/breadcrumbs.svelte @@ -462,7 +462,9 @@ {#if resolvedProfile.showOrgInBreadcrumbs} - + {/if} {#await projectsBottomSheet then menu} From 862f3ca81dc6e1a3c941a2a428d1e8a873efc24a Mon Sep 17 00:00:00 2001 From: Darshan Date: Wed, 5 Nov 2025 17:46:15 +0530 Subject: [PATCH 05/14] redirect: from get-started page. --- .../get-started/+layout.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/routes/(console)/project-[region]-[project]/get-started/+layout.ts b/src/routes/(console)/project-[region]-[project]/get-started/+layout.ts index b246d4faf..bfe7b601f 100644 --- a/src/routes/(console)/project-[region]-[project]/get-started/+layout.ts +++ b/src/routes/(console)/project-[region]-[project]/get-started/+layout.ts @@ -1,8 +1,18 @@ import Breadcrumbs from '../overview/breadcrumbs.svelte'; import Header from '../overview/header.svelte'; import type { LayoutLoad } from './$types'; +import { resolvedProfile } from '$lib/profiles/index.svelte'; +import { redirect } from '@sveltejs/kit'; +import { resolve } from '$app/paths'; + +export const load: LayoutLoad = async ({ params }) => { + if (resolvedProfile.id !== 'console') { + redirect(303, resolve('/(console)/project-[region]-[project]/(studio)', { + region: params.region, + project: params.project + })) + } -export const load: LayoutLoad = async () => { return { header: Header, breadcrumbs: Breadcrumbs From 733346e203ad4272ca60bb302a5e9139aad675bf Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 6 Nov 2025 12:29:20 +0530 Subject: [PATCH 06/14] address comments. --- .../(console)/onboarding/create-project/+page.ts | 1 - .../get-started/+layout.ts | 13 ++++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/routes/(console)/onboarding/create-project/+page.ts b/src/routes/(console)/onboarding/create-project/+page.ts index 738b1b1a7..a12f3f5e0 100644 --- a/src/routes/(console)/onboarding/create-project/+page.ts +++ b/src/routes/(console)/onboarding/create-project/+page.ts @@ -15,7 +15,6 @@ export const load: PageLoad = async ({ parent }) => { const firstOrganization = organizations?.teams[0]?.$id; - // short-circuit if (!resolvedProfile.showOnboarding) { if (!organizations?.total) { redirect(303, resolve('/(console)/create-organization')); diff --git a/src/routes/(console)/project-[region]-[project]/get-started/+layout.ts b/src/routes/(console)/project-[region]-[project]/get-started/+layout.ts index bfe7b601f..28694bbb6 100644 --- a/src/routes/(console)/project-[region]-[project]/get-started/+layout.ts +++ b/src/routes/(console)/project-[region]-[project]/get-started/+layout.ts @@ -6,11 +6,14 @@ import { redirect } from '@sveltejs/kit'; import { resolve } from '$app/paths'; export const load: LayoutLoad = async ({ params }) => { - if (resolvedProfile.id !== 'console') { - redirect(303, resolve('/(console)/project-[region]-[project]/(studio)', { - region: params.region, - project: params.project - })) + if (resolvedProfile.id === 'studio') { + redirect( + 303, + resolve('/(console)/project-[region]-[project]/(studio)', { + region: params.region, + project: params.project + }) + ); } return { From 8a295c8db319b4e75bd0031f708b7696943c5aed Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 6 Nov 2025 12:31:26 +0530 Subject: [PATCH 07/14] fix: tests. --- src/lib/components/navbar.svelte | 1 - src/lib/layout/footer.svelte | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/components/navbar.svelte b/src/lib/components/navbar.svelte index b9e0c87c2..6aa6a941e 100644 --- a/src/lib/components/navbar.svelte +++ b/src/lib/components/navbar.svelte @@ -32,7 +32,6 @@ import { IconChevronRight, IconCreditCard, - IconGlobe, IconGlobeAlt, IconLogoutRight, IconMenuAlt4, diff --git a/src/lib/layout/footer.svelte b/src/lib/layout/footer.svelte index 266165f70..6a5b2f7c2 100644 --- a/src/lib/layout/footer.svelte +++ b/src/lib/layout/footer.svelte @@ -13,7 +13,7 @@ } from '@appwrite.io/pink-svelte'; import { isSmallViewport } from '$lib/stores/viewport'; import { page } from '$app/state'; - import { resolvedProfile } from '$lib/profiles/index.svelte.ts'; + import { resolvedProfile } from '$lib/profiles/index.svelte'; const currentYear = new Date().getFullYear(); From 7c7f0c8043f3613ce7210cd2e2cf4f394e7e350e Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 6 Nov 2025 13:01:31 +0530 Subject: [PATCH 08/14] fix: tests. update: sdks. --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- src/lib/helpers/files.ts | 5 ++--- .../overview/platforms/+page.svelte | 3 ++- .../settings/domains/table.svelte | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 19fec02b4..a1b9c41af 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@636ed39", + "@appwrite.io/console": "https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@2752", "@appwrite.io/pink-icons": "0.25.0", "@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@8f82877", "@appwrite.io/pink-legacy": "^1.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6da4f9d31..af6584180 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^1.1.24 version: 1.1.24(svelte@5.39.11)(zod@4.1.12) '@appwrite.io/console': - specifier: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@636ed39 - version: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@636ed39 + specifier: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@2752 + version: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@2752 '@appwrite.io/pink-icons': specifier: 0.25.0 version: 0.25.0 @@ -272,8 +272,8 @@ packages: '@analytics/type-utils@0.6.4': resolution: {integrity: sha512-Ou1gQxFakOWLcPnbFVsrPb8g1wLLUZYYJXDPjHkG07+5mustGs5yqACx42UAu4A6NszNN6Z5gGxhyH45zPWRxw==} - '@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@636ed39': - resolution: {tarball: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@636ed39} + '@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@2752': + resolution: {tarball: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@2752} version: 1.10.0 '@appwrite.io/pink-icons-svelte@2.0.0-RC.1': @@ -3710,7 +3710,7 @@ snapshots: '@analytics/type-utils@0.6.4': {} - '@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@636ed39': {} + '@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@2752': {} '@appwrite.io/pink-icons-svelte@2.0.0-RC.1(svelte@5.39.11)': dependencies: diff --git a/src/lib/helpers/files.ts b/src/lib/helpers/files.ts index b72e289f6..de236f5f2 100644 --- a/src/lib/helpers/files.ts +++ b/src/lib/helpers/files.ts @@ -65,11 +65,10 @@ export async function gzipUpload(files: FileList) { data: f.buffer })) ); - const blob = new Blob([tar], { type: 'application/gzip' }); - const file = new File([blob], 'deployment.tar.gz', { + const blob = new Blob([new Uint8Array(tar)], { type: 'application/gzip' }); + uploadFile = new File([blob], 'deployment.tar.gz', { type: 'application/gzip' }); - uploadFile = file; } catch (e) { addNotification({ type: 'error', diff --git a/src/routes/(console)/project-[region]-[project]/overview/platforms/+page.svelte b/src/routes/(console)/project-[region]-[project]/overview/platforms/+page.svelte index 6c3ff7ef1..335c85b46 100644 --- a/src/routes/(console)/project-[region]-[project]/overview/platforms/+page.svelte +++ b/src/routes/(console)/project-[region]-[project]/overview/platforms/+page.svelte @@ -7,6 +7,7 @@ import CreateWeb from './createWeb.svelte'; import { createPlatform } from './wizard/store'; import { Click, trackEvent } from '$lib/actions/analytics'; + import { PlatformType } from '@appwrite.io/console'; export enum Platform { Web, @@ -29,7 +30,7 @@ platform: Platform, name: string, key: string, - type: string + type: PlatformType ) { createPlatform.set({ name: name, diff --git a/src/routes/(console)/project-[region]-[project]/settings/domains/table.svelte b/src/routes/(console)/project-[region]-[project]/settings/domains/table.svelte index 1558e8e3f..e28db33a9 100644 --- a/src/routes/(console)/project-[region]-[project]/settings/domains/table.svelte +++ b/src/routes/(console)/project-[region]-[project]/settings/domains/table.svelte @@ -92,7 +92,7 @@ - {#if domain.status !== 'verified' && domain.status !== 'verifiying'} + {#if domain.status !== 'verified' && domain.status !== 'verifying'} { From f67a5f2964e8257f32f0e0b352af8588ff0ebfb0 Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 6 Nov 2025 13:14:21 +0530 Subject: [PATCH 09/14] update: lower the dependency. --- package.json | 2 +- pnpm-lock.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a1b9c41af..45f0e62d7 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@appwrite.io/pink-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-svelte@8f82877", "@faker-js/faker": "^9.9.0", "@popperjs/core": "^2.11.8", - "@sentry/sveltekit": "^8.55.0", + "@sentry/sveltekit": "^8.38.0", "@stripe/stripe-js": "^3.5.0", "ai": "^2.2.37", "analytics": "^0.8.19", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index af6584180..e142bfed3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,7 +33,7 @@ importers: specifier: ^2.11.8 version: 2.11.8 '@sentry/sveltekit': - specifier: ^8.55.0 + specifier: ^8.38.0 version: 8.55.0(@opentelemetry/api@1.9.0)(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/semantic-conventions@1.37.0)(@sveltejs/kit@2.46.4(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2)))(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2)))(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2)) '@stripe/stripe-js': specifier: ^3.5.0 @@ -4664,7 +4664,7 @@ snapshots: dependencies: '@sentry/browser': 8.55.0 '@sentry/core': 8.55.0 - magic-string: 0.30.7 + magic-string: 0.30.19 svelte: 5.39.11 '@sentry/sveltekit@8.55.0(@opentelemetry/api@1.9.0)(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/semantic-conventions@1.37.0)(@sveltejs/kit@2.46.4(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2)))(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2)))(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2))': From 4b13517dfe56c75dc3c50ab27de32e1c15483544 Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 6 Nov 2025 13:22:53 +0530 Subject: [PATCH 10/14] update: lower the dependency. --- package.json | 4 ++-- pnpm-lock.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 45f0e62d7..d8d41a08a 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@appwrite.io/pink-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-svelte@8f82877", "@faker-js/faker": "^9.9.0", "@popperjs/core": "^2.11.8", - "@sentry/sveltekit": "^8.38.0", + "@sentry/sveltekit": "^8.55.0", "@stripe/stripe-js": "^3.5.0", "ai": "^2.2.37", "analytics": "^0.8.19", @@ -58,7 +58,7 @@ "@melt-ui/svelte": "^0.86.6", "@playwright/test": "^1.56.0", "@sveltejs/adapter-static": "^3.0.10", - "@sveltejs/kit": "^2.46.2", + "@sveltejs/kit": "^2.42.1", "@sveltejs/vite-plugin-svelte": "^5.1.1", "@testing-library/dom": "^10.4.1", "@testing-library/jest-dom": "^6.9.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e142bfed3..77dac93fd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,7 +33,7 @@ importers: specifier: ^2.11.8 version: 2.11.8 '@sentry/sveltekit': - specifier: ^8.38.0 + specifier: ^8.55.0 version: 8.55.0(@opentelemetry/api@1.9.0)(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/semantic-conventions@1.37.0)(@sveltejs/kit@2.46.4(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2)))(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2)))(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2)) '@stripe/stripe-js': specifier: ^3.5.0 @@ -115,7 +115,7 @@ importers: specifier: ^3.0.10 version: 3.0.10(@sveltejs/kit@2.46.4(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2)))(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2))) '@sveltejs/kit': - specifier: ^2.46.2 + specifier: ^2.42.1 version: 2.46.4(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2)))(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2)) '@sveltejs/vite-plugin-svelte': specifier: ^5.1.1 From 328186a5df8405a330c0f62786fcf7a9f1314083 Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 6 Nov 2025 13:30:22 +0530 Subject: [PATCH 11/14] reset: dependency change. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d8d41a08a..a1b9c41af 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "@melt-ui/svelte": "^0.86.6", "@playwright/test": "^1.56.0", "@sveltejs/adapter-static": "^3.0.10", - "@sveltejs/kit": "^2.42.1", + "@sveltejs/kit": "^2.46.2", "@sveltejs/vite-plugin-svelte": "^5.1.1", "@testing-library/dom": "^10.4.1", "@testing-library/jest-dom": "^6.9.1", From a82d415a4801c06cb706e95d22ceb30764339231 Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 6 Nov 2025 13:34:53 +0530 Subject: [PATCH 12/14] downgrade: eslint. --- package.json | 6 +++--- pnpm-lock.yaml | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index a1b9c41af..8dbaf63fd 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "color": "^5.0.2", "eslint": "^9.37.0", "eslint-config-prettier": "^10.1.8", - "eslint-plugin-svelte": "^3.12.4", + "eslint-plugin-svelte": "^3.3.3", "globals": "^16.4.0", "jsdom": "^26.1.0", "kleur": "^4.1.5", @@ -81,12 +81,12 @@ "prettier-plugin-svelte": "^3.4.0", "sass": "^1.93.2", "svelte": "^5.39.10", - "svelte-check": "^4.3.2", + "svelte-check": "^4.1.5", "svelte-preprocess": "^6.0.3", "svelte-sequential-preprocessor": "^2.0.2", "tldts": "^7.0.16", "tslib": "^2.8.1", - "typescript": "^5.9.3", + "typescript": "^5.8.2", "typescript-eslint": "^8.46.0", "vite": "^7.1.9", "vitest": "^3.2.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 77dac93fd..71866d2f2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -115,7 +115,7 @@ importers: specifier: ^3.0.10 version: 3.0.10(@sveltejs/kit@2.46.4(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2)))(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2))) '@sveltejs/kit': - specifier: ^2.42.1 + specifier: ^2.46.2 version: 2.46.4(@opentelemetry/api@1.9.0)(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2)))(svelte@5.39.11)(vite@7.1.9(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.93.2)) '@sveltejs/vite-plugin-svelte': specifier: ^5.1.1 @@ -160,7 +160,7 @@ importers: specifier: ^10.1.8 version: 10.1.8(eslint@9.37.0(jiti@2.6.1)) eslint-plugin-svelte: - specifier: ^3.12.4 + specifier: ^3.3.3 version: 3.12.4(eslint@9.37.0(jiti@2.6.1))(svelte@5.39.11) globals: specifier: ^16.4.0 @@ -184,7 +184,7 @@ importers: specifier: ^5.39.10 version: 5.39.11 svelte-check: - specifier: ^4.3.2 + specifier: ^4.1.5 version: 4.3.3(picomatch@4.0.3)(svelte@5.39.11)(typescript@5.9.3) svelte-preprocess: specifier: ^6.0.3 @@ -199,7 +199,7 @@ importers: specifier: ^2.8.1 version: 2.8.1 typescript: - specifier: ^5.9.3 + specifier: ^5.8.2 version: 5.9.3 typescript-eslint: specifier: ^8.46.0 From e8f4224e9f98737222cef57faf647c4a2def277e Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 6 Nov 2025 14:17:18 +0530 Subject: [PATCH 13/14] update: disable the test. --- eslint.config.js | 3 ++- package.json | 6 +++--- pnpm-lock.yaml | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 32ef292d0..51a1fd71f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -34,7 +34,8 @@ export default ts.config( 'svelte/no-reactive-reassign': 'off', 'svelte/no-reactive-literals': 'off', // TODO: @itznotabug, this requires a big refactor! - 'svelte/no-navigation-without-resolve': 'off' + 'svelte/no-navigation-without-resolve': 'off', + 'svelte/prefer-svelte-reactivity': 'off' } }, { diff --git a/package.json b/package.json index 8dbaf63fd..a1b9c41af 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "color": "^5.0.2", "eslint": "^9.37.0", "eslint-config-prettier": "^10.1.8", - "eslint-plugin-svelte": "^3.3.3", + "eslint-plugin-svelte": "^3.12.4", "globals": "^16.4.0", "jsdom": "^26.1.0", "kleur": "^4.1.5", @@ -81,12 +81,12 @@ "prettier-plugin-svelte": "^3.4.0", "sass": "^1.93.2", "svelte": "^5.39.10", - "svelte-check": "^4.1.5", + "svelte-check": "^4.3.2", "svelte-preprocess": "^6.0.3", "svelte-sequential-preprocessor": "^2.0.2", "tldts": "^7.0.16", "tslib": "^2.8.1", - "typescript": "^5.8.2", + "typescript": "^5.9.3", "typescript-eslint": "^8.46.0", "vite": "^7.1.9", "vitest": "^3.2.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 71866d2f2..64d022df4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -160,7 +160,7 @@ importers: specifier: ^10.1.8 version: 10.1.8(eslint@9.37.0(jiti@2.6.1)) eslint-plugin-svelte: - specifier: ^3.3.3 + specifier: ^3.12.4 version: 3.12.4(eslint@9.37.0(jiti@2.6.1))(svelte@5.39.11) globals: specifier: ^16.4.0 @@ -184,7 +184,7 @@ importers: specifier: ^5.39.10 version: 5.39.11 svelte-check: - specifier: ^4.1.5 + specifier: ^4.3.2 version: 4.3.3(picomatch@4.0.3)(svelte@5.39.11)(typescript@5.9.3) svelte-preprocess: specifier: ^6.0.3 @@ -199,7 +199,7 @@ importers: specifier: ^2.8.1 version: 2.8.1 typescript: - specifier: ^5.8.2 + specifier: ^5.9.3 version: 5.9.3 typescript-eslint: specifier: ^8.46.0 From 8d5daf355f4d8b3fa2620dde09b69c2a19494280 Mon Sep 17 00:00:00 2001 From: Darshan Date: Thu, 6 Nov 2025 14:20:14 +0530 Subject: [PATCH 14/14] update: disable the tests. --- eslint.config.js | 3 ++- src/lib/studio/studio-widget.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index 51a1fd71f..883546e78 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -35,7 +35,8 @@ export default ts.config( 'svelte/no-reactive-literals': 'off', // TODO: @itznotabug, this requires a big refactor! 'svelte/no-navigation-without-resolve': 'off', - 'svelte/prefer-svelte-reactivity': 'off' + 'svelte/prefer-svelte-reactivity': 'off', + 'svelte/prefer-writable-derived': 'off' } }, { diff --git a/src/lib/studio/studio-widget.ts b/src/lib/studio/studio-widget.ts index 5a6c347e8..859e8376f 100644 --- a/src/lib/studio/studio-widget.ts +++ b/src/lib/studio/studio-widget.ts @@ -17,6 +17,7 @@ const CDN_URL = const DEV_OVERRIDE_WEB_COMPONENTS = env?.PUBLIC_AI_OVERRIDE_WEB_COMPONENTS === 'true'; let component: HTMLElement | null = null; +// eslint-disable-next-line @typescript-eslint/no-explicit-any let webComponentsModule: Record | null = null; let configInitialized = false; let routingInitialized = false; @@ -119,6 +120,7 @@ export async function getWebComponents() { /** * Navigate to a route in the web components */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any export async function navigateToRoute(...args: any[]) { try { const { navigateToRoute: navigate } = await getWebComponents();