@@ -363,7 +363,7 @@
{/if}
-
+
{execution.responseHeaders?.length
? 'Not all header data is'
: 'Header data is not'}
@@ -378,7 +378,7 @@
>.
{:else if selectedResponse === 'body'}
-
+
Body data is not captured by Appwrite for your user's security
and privacy. To display body data in the Logs tab, use
context.log().
@@ -419,12 +419,17 @@
padding-block: 1.5rem !important;
}
- .mobile-only-inline-16-padding {
+ .mobile-only-inline-20-padding {
padding-inline: 1.5rem !important;
}
- .grid-1-2 {
- row-gap: 1.5rem;
+ .mobile-only-block-start-20-padding {
+ padding-block-start: 1.5rem !important;
+ }
+
+ .code-panel-content.grid-1-2 {
+ display: unset !important;
+ row-gap: unset !important;
}
}
From f1d51a9dd074e7961aabec64d4c1d476f1e87093 Mon Sep 17 00:00:00 2001
From: ItzNotABug
Date: Tue, 6 Aug 2024 17:56:06 +0530
Subject: [PATCH 28/53] address comments: fix colors.
---
.../console/project-[project]/functions/templates/+page.svelte | 2 +-
.../functions/templates/template-[template]/+page.svelte | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/routes/console/project-[project]/functions/templates/+page.svelte b/src/routes/console/project-[project]/functions/templates/+page.svelte
index 729c8e6d3..947e947f3 100644
--- a/src/routes/console/project-[project]/functions/templates/+page.svelte
+++ b/src/routes/console/project-[project]/functions/templates/+page.svelte
@@ -270,7 +270,7 @@
}
:global(.theme-light .functions-template-title) {
- color: hsl(var(--color-neutral-120));
+ color: hsl(var(--color-neutral-70));
}
:global(.theme-dark .functions-template-title) {
diff --git a/src/routes/console/project-[project]/functions/templates/template-[template]/+page.svelte b/src/routes/console/project-[project]/functions/templates/template-[template]/+page.svelte
index 5c64826f1..08906b5d8 100644
--- a/src/routes/console/project-[project]/functions/templates/template-[template]/+page.svelte
+++ b/src/routes/console/project-[project]/functions/templates/template-[template]/+page.svelte
@@ -116,7 +116,7 @@
\ No newline at end of file
+
From 7529748975b052845b21a2e81a59f3073354a221 Mon Sep 17 00:00:00 2001
From: ItzNotABug
Date: Tue, 27 Aug 2024 13:39:14 +0530
Subject: [PATCH 30/53] ran: `pnpm format`.
---
.../functions/templates/+page.svelte | 14 ++++++++------
.../templates/template-[template]/+page.svelte | 7 +++----
2 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/src/routes/(console)/project-[project]/functions/templates/+page.svelte b/src/routes/(console)/project-[project]/functions/templates/+page.svelte
index 53950368e..fc1aee854 100644
--- a/src/routes/(console)/project-[project]/functions/templates/+page.svelte
+++ b/src/routes/(console)/project-[project]/functions/templates/+page.svelte
@@ -142,7 +142,8 @@
.getAll('runtime')
.includes(runtime)}
on:change={(e) => applyFilter('runtime', runtime, e)} />
-
+
@@ -181,14 +182,16 @@
-
+
{template.name}
{#each displayed as runtime}
{@const icon = getIconFromRuntime(runtime.name)}
{#if icon}
- -
+
-
![]()
-
\ No newline at end of file
+
diff --git a/src/routes/(console)/project-[project]/functions/templates/template-[template]/+page.svelte b/src/routes/(console)/project-[project]/functions/templates/template-[template]/+page.svelte
index 15e5899c1..15ae8d510 100644
--- a/src/routes/(console)/project-[project]/functions/templates/template-[template]/+page.svelte
+++ b/src/routes/(console)/project-[project]/functions/templates/template-[template]/+page.svelte
@@ -94,11 +94,10 @@
\ No newline at end of file
+
From 992fbb564a63fc4037d5b069aafab43a6a9eefe7 Mon Sep 17 00:00:00 2001
From: Darshan
Date: Tue, 26 Nov 2024 16:20:06 +0530
Subject: [PATCH 31/53] update: checkout from `main`.
---
.../functions/steps/templateVariables.svelte | 138 ++++++------------
1 file changed, 41 insertions(+), 97 deletions(-)
diff --git a/src/lib/wizards/functions/steps/templateVariables.svelte b/src/lib/wizards/functions/steps/templateVariables.svelte
index b51a4996d..c7db15bd4 100644
--- a/src/lib/wizards/functions/steps/templateVariables.svelte
+++ b/src/lib/wizards/functions/steps/templateVariables.svelte
@@ -56,80 +56,34 @@
{#if $template?.variables?.length}
{#if requiredVariables?.length}
- {#if requiredVariables?.length === 1 || requiredVariables.every((variable) => variable.required)}
-
-
-
-
-
- {#each requiredVariables as variable}
- {#if variable.name === 'APPWRITE_API_KEY'}
-
- {:else}
-
-
-
- {@html variable.description}
-
-
- {/if}
- {/each}
-
-
-
-
- {:else if requiredVariables?.length > 1}
-
-
- Required variables
-
- {requiredVariables.length}
-
+
+
+ Required variables
+
+ {requiredVariables.length}
+
-
- {#each requiredVariables as variable}
- {#if variable.name === 'APPWRITE_API_KEY'}
-
- {:else}
-
-
-
- {@html variable.description}
-
-
- {/if}
- {/each}
-
-
-
- {/if}
+
+ {#each requiredVariables as variable}
+
+
+
+ {@html variable.description}
+
+
+ {/each}
+
+
+
{/if}
{#if optionalVariables?.length}
@@ -142,25 +96,21 @@
{#each optionalVariables as variable}
- {#if variable.name === 'APPWRITE_API_KEY'}
-
- {:else}
-
-
+
+
-
- {@html variable.description}
-
-
- {/if}
+
+ {@html variable.description}
+
+
{/each}
@@ -172,9 +122,3 @@
{/if}
-
-
From 8396e5d0043ec7c13b9345352aeee4f0ee2b46b3 Mon Sep 17 00:00:00 2001
From: Darshan
Date: Thu, 28 Nov 2024 13:46:14 +0530
Subject: [PATCH 32/53] update: address comments.
---
.../functions/components/repositories.svelte | 2 +-
.../functions/function-[function]/createCli.svelte | 13 ++++++-------
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/lib/wizards/functions/components/repositories.svelte b/src/lib/wizards/functions/components/repositories.svelte
index cdbdf3016..da3524ee2 100644
--- a/src/lib/wizards/functions/components/repositories.svelte
+++ b/src/lib/wizards/functions/components/repositories.svelte
@@ -125,7 +125,7 @@
{#if selectedInstallation}
{#await loadRepositories(selectedInstallation, search)}
-
+
{:then response}
diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/createCli.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/createCli.svelte
index 22bf832f9..4ab648d8e 100644
--- a/src/routes/(console)/project-[project]/functions/function-[function]/createCli.svelte
+++ b/src/routes/(console)/project-[project]/functions/function-[function]/createCli.svelte
@@ -131,20 +131,19 @@
From 5c999e77445eb9e86a1ec6d7aab1ce1dbcdf6323 Mon Sep 17 00:00:00 2001
From: Darshan
Date: Thu, 28 Nov 2024 14:21:07 +0530
Subject: [PATCH 33/53] update: address comments.
---
src/lib/layout/logs.svelte | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/lib/layout/logs.svelte b/src/lib/layout/logs.svelte
index 9d04824f0..074e8260a 100644
--- a/src/lib/layout/logs.svelte
+++ b/src/lib/layout/logs.svelte
@@ -434,36 +434,36 @@
From 8cc55773f716abcdf8006a36d2946ada36ff4ca5 Mon Sep 17 00:00:00 2001
From: Damodar Lohani
Date: Mon, 2 Dec 2024 08:32:59 +0545
Subject: [PATCH 34/53] Feat: use premium support from plan attribute
---
src/lib/components/support.svelte | 8 +++-----
src/lib/sdk/billing.ts | 1 +
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/lib/components/support.svelte b/src/lib/components/support.svelte
index 66d922d41..95a008011 100644
--- a/src/lib/components/support.svelte
+++ b/src/lib/components/support.svelte
@@ -13,9 +13,7 @@
export let show = false;
- $: isPaid =
- $organization?.billingPlan === BillingPlan.PRO ||
- $organization?.billingPlan === BillingPlan.SCALE;
+ $: hasPremiumSupport = $organization?.billingPlan.premiumSupport ?? false;
$: supportTimings = `${utcHourToLocaleHour('16:00')} - ${utcHourToLocaleHour('00:00')} ${localeTimezoneName()}`;
@@ -24,13 +22,13 @@
Premium support
- {#if isPaid}
+ {#if hasPremiumSupport}
Get personalized support from the Appwrite team from {supportTimings}
{/if}
- {#if $organization?.billingPlan === BillingPlan.FREE}
+ {#if !hasPremiumSupport}
diff --git a/src/lib/stores/layout.ts b/src/lib/stores/layout.ts
index de3c04aef..7a9a3ef13 100644
--- a/src/lib/stores/layout.ts
+++ b/src/lib/stores/layout.ts
@@ -25,3 +25,5 @@ export function updateLayout(args: updateLayoutArguments) {
header.set(args.header ?? null);
breadcrumb.set(args.breadcrumb ?? null);
}
+
+export const showSubNavigation = writable(false);
diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/subNavigation.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/subNavigation.svelte
index 26d60dc96..a6b0f3f1d 100644
--- a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/subNavigation.svelte
+++ b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/subNavigation.svelte
@@ -3,6 +3,7 @@
import { page } from '$app/stores';
import { showCreate } from '../store';
import type { PageData } from './$types';
+ import { showSubNavigation } from '$lib/stores/layout';
$: data = $page.data as PageData;
$: project = $page.params.project;
@@ -24,7 +25,10 @@
Collections
From e4f03e7ff038299f0718b952301c4df45d8cf76d Mon Sep 17 00:00:00 2001
From: Darshan
Date: Sat, 14 Dec 2024 11:48:55 +0530
Subject: [PATCH 38/53] fix: tests and usage.
---
src/lib/layout/navigation.svelte | 7 +++----
src/routes/(console)/+layout.svelte | 4 +---
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/lib/layout/navigation.svelte b/src/lib/layout/navigation.svelte
index cda4c67a9..c81e06572 100644
--- a/src/lib/layout/navigation.svelte
+++ b/src/lib/layout/navigation.svelte
@@ -15,8 +15,7 @@
import { showSupportModal } from '$routes/(console)/wizard/support/store';
import { getContext } from 'svelte';
import type { Writable } from 'svelte/store';
-
- export let isOpen = false;
+ import { showSubNavigation } from '$lib/stores/layout';
$: project = $page.params.project;
$: projectPath = `${base}/project-${project}`;
@@ -44,12 +43,12 @@
}
function openFeedback() {
- isOpen = false;
+ $showSubNavigation = false;
wizard.start(Create);
}
function openSupport() {
- isOpen = false;
+ $showSubNavigation = false;
$showSupportModal = true;
}
diff --git a/src/routes/(console)/+layout.svelte b/src/routes/(console)/+layout.svelte
index 74df68b7b..dee3bc09b 100644
--- a/src/routes/(console)/+layout.svelte
+++ b/src/routes/(console)/+layout.svelte
@@ -238,7 +238,6 @@
rank: -1
}
]);
- let isOpen = false;
onMount(async () => {
loading.set(false);
if (!localStorage.getItem('feedbackElapsed')) {
@@ -319,14 +318,13 @@
-
+
From 99626fc9ff751473e8bb506d5bc772da7a3e71b4 Mon Sep 17 00:00:00 2001
From: Darshan
Date: Sun, 15 Dec 2024 18:58:19 +0530
Subject: [PATCH 39/53] fix: use-case display title casing
---
.../project-[project]/functions/templates/+page.svelte | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/routes/(console)/project-[project]/functions/templates/+page.svelte b/src/routes/(console)/project-[project]/functions/templates/+page.svelte
index 3ba5404c2..a740c7e2f 100644
--- a/src/routes/(console)/project-[project]/functions/templates/+page.svelte
+++ b/src/routes/(console)/project-[project]/functions/templates/+page.svelte
@@ -21,6 +21,7 @@
import type { Models } from '@appwrite.io/console';
import { functionsList } from '../store';
import { debounce } from '$lib/helpers/debounce';
+ import { capitalize } from '$lib/helpers/string';
export let data;
@@ -148,7 +149,7 @@
class="is-small"
checked={isChecked(useCase)}
on:change={(e) => applyFilter('useCase', useCase, e)} />
- {useCase}
+ {capitalize(useCase)}
{/each}
From d232fb5e92488ee1a9b32f48cb00fe8c272ea314 Mon Sep 17 00:00:00 2001
From: ernstmul
Date: Mon, 16 Dec 2024 14:23:03 +0100
Subject: [PATCH 40/53] Set todo's for changeing
---
src/lib/components/support.svelte | 2 ++
src/lib/layout/containerButton.svelte | 1 +
.../organization-[organization]/billing/budgetCap.svelte | 1 +
.../(console)/project-[project]/auth/templates/+page.svelte | 1 +
.../databases/database-[database]/backups/+page.svelte | 2 ++
5 files changed, 7 insertions(+)
diff --git a/src/lib/components/support.svelte b/src/lib/components/support.svelte
index 66d922d41..1f57ba233 100644
--- a/src/lib/components/support.svelte
+++ b/src/lib/components/support.svelte
@@ -13,6 +13,7 @@
export let show = false;
+ // TODO: fix to use plan details with 'premiumSupport' property
$: isPaid =
$organization?.billingPlan === BillingPlan.PRO ||
$organization?.billingPlan === BillingPlan.SCALE;
@@ -30,6 +31,7 @@
{/if}
+
{#if $organization?.billingPlan === BillingPlan.FREE}
+
{#if $organization?.billingPlan === BillingPlan.FREE}
diff --git a/src/routes/(console)/project-[project]/auth/templates/+page.svelte b/src/routes/(console)/project-[project]/auth/templates/+page.svelte
index 369080543..6b10dc048 100644
--- a/src/routes/(console)/project-[project]/auth/templates/+page.svelte
+++ b/src/routes/(console)/project-[project]/auth/templates/+page.svelte
@@ -268,6 +268,7 @@
-->
+
{#if isCloud && $organization?.billingPlan === BillingPlan.FREE}
{/if}
diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/backups/+page.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/backups/+page.svelte
index a8837be15..d449d5a32 100644
--- a/src/routes/(console)/project-[project]/databases/database-[database]/backups/+page.svelte
+++ b/src/routes/(console)/project-[project]/databases/database-[database]/backups/+page.svelte
@@ -24,12 +24,14 @@
let policyCreateError: string;
let totalPolicies: UserBackupPolicy[] = [];
+ // TODO: check the plan to see if the custom policies are disabled
let isDisabled = isSelfHosted || (isCloud && $organization?.billingPlan === BillingPlan.FREE);
export let data: PageData;
$: hasPolicyCreationLimitations = () => {
// allow when on Pro and no policy exists
+ // TODO: check the plan to see if the custom policies are disabled and limitations
if ($organization?.billingPlan === BillingPlan.PRO) {
return data.policies.total > 0;
} else if ($organization?.billingPlan === BillingPlan.SCALE) {
From 8ce6af3fe3efffc5e78bd903fba3acf69faa9908 Mon Sep 17 00:00:00 2001
From: ernstmul
Date: Mon, 16 Dec 2024 14:25:45 +0100
Subject: [PATCH 41/53] Add mocknumbers todo
---
.../project-[project]/auth/security/updateMockNumbers.svelte | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/routes/(console)/project-[project]/auth/security/updateMockNumbers.svelte b/src/routes/(console)/project-[project]/auth/security/updateMockNumbers.svelte
index 10e230e57..9ceb59758 100644
--- a/src/routes/(console)/project-[project]/auth/security/updateMockNumbers.svelte
+++ b/src/routes/(console)/project-[project]/auth/security/updateMockNumbers.svelte
@@ -26,6 +26,7 @@
$: initialNumbers = $project?.authMockNumbers?.map((num) => ({ ...num })) ?? [];
$: isSubmitDisabled = JSON.stringify(numbers) === JSON.stringify(initialNumbers);
+ //TODO check for plan details on if mocknumbers is allowed
let isComponentDisabled: boolean =
isSelfHosted || (isCloud && $organization?.billingPlan === BillingPlan.FREE);
let emptyStateTitle: string = isSelfHosted
From e4f5de6645dae7394f22da7dc1bc1dfd6aa4af77 Mon Sep 17 00:00:00 2001
From: Darshan
Date: Tue, 17 Dec 2024 14:14:39 +0530
Subject: [PATCH 42/53] ci: empty commit
From d9a84726517612f66c2b51733846888b73448150 Mon Sep 17 00:00:00 2001
From: ernstmul
Date: Wed, 18 Dec 2024 11:11:13 +0100
Subject: [PATCH 43/53] Inform the user to first add a billing address to their
account
---
.../billing/replaceAddress.svelte | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/routes/(console)/organization-[organization]/billing/replaceAddress.svelte b/src/routes/(console)/organization-[organization]/billing/replaceAddress.svelte
index 0eb06bbef..2df6d1bc2 100644
--- a/src/routes/(console)/organization-[organization]/billing/replaceAddress.svelte
+++ b/src/routes/(console)/organization-[organization]/billing/replaceAddress.svelte
@@ -1,6 +1,6 @@