@@ -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 40/95] 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 44/95] 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 ec213d39de6da21b934a303bff32f461d26761e6 Mon Sep 17 00:00:00 2001
From: ItzNotABug
Date: Tue, 27 Aug 2024 13:39:57 +0530
Subject: [PATCH 45/95] ran: `pnpm format`.
---
src/lib/helpers/load.ts | 2 +-
src/lib/layout/unauthenticated.svelte | 2 +-
src/lib/stores/feedback.ts | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/lib/helpers/load.ts b/src/lib/helpers/load.ts
index 05e043ddc..21e2f1ee6 100644
--- a/src/lib/helpers/load.ts
+++ b/src/lib/helpers/load.ts
@@ -21,7 +21,7 @@ export enum View {
export function getView(url: URL, route: Page['route'], fallback: View): View {
return (url.searchParams.get('view') ?? preferences.get(route).view) === View.Grid
? View.Grid
- : View.Table ?? fallback;
+ : (View.Table ?? fallback);
}
export function getColumns(route: Page['route'], fallback: string[]): string[] {
diff --git a/src/lib/layout/unauthenticated.svelte b/src/lib/layout/unauthenticated.svelte
index b7e250b54..4d859d492 100644
--- a/src/lib/layout/unauthenticated.svelte
+++ b/src/lib/layout/unauthenticated.svelte
@@ -16,7 +16,7 @@
export let coupon: Coupon = null;
$: selectedCampaign = campaigns.get(coupon?.campaign ?? campaign);
- $: variation = (coupon?.campaign ?? campaign ? selectedCampaign?.template : 'default') as
+ $: variation = ((coupon?.campaign ?? campaign) ? selectedCampaign?.template : 'default') as
| 'default'
| CampaignData['template'];
diff --git a/src/lib/stores/feedback.ts b/src/lib/stores/feedback.ts
index 7f9b6b200..7eaefca2d 100644
--- a/src/lib/stores/feedback.ts
+++ b/src/lib/stores/feedback.ts
@@ -71,8 +71,8 @@ export const feedbackData = createFeedbackDataStore();
function createFeedbackStore() {
const { subscribe, update } = writable({
- elapsed: browser ? parseInt(localStorage.getItem('feedbackElapsed')) ?? 0 : 0,
- visualized: browser ? parseInt(localStorage.getItem('feedbackVisualized')) ?? 0 : 0,
+ elapsed: browser ? (parseInt(localStorage.getItem('feedbackElapsed')) ?? 0) : 0,
+ visualized: browser ? (parseInt(localStorage.getItem('feedbackVisualized')) ?? 0) : 0,
notification: false,
type: 'general',
show: false
From 992fbb564a63fc4037d5b069aafab43a6a9eefe7 Mon Sep 17 00:00:00 2001
From: Darshan
Date: Tue, 26 Nov 2024 16:20:06 +0530
Subject: [PATCH 46/95] 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 47/95] 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 48/95] 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 49/95] 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/elements/forms/inputNumber.svelte b/src/lib/elements/forms/inputNumber.svelte
index 97835384e..dc3613644 100644
--- a/src/lib/elements/forms/inputNumber.svelte
+++ b/src/lib/elements/forms/inputNumber.svelte
@@ -24,11 +24,17 @@
let error: string;
onMount(() => {
- if (element && autofocus) {
- element.focus();
+ if (autofocus) {
+ addInputFocus();
}
});
+ export function addInputFocus() {
+ if (element) {
+ element.focus();
+ }
+ }
+
const handleInvalid = (event: Event) => {
event.preventDefault();
diff --git a/src/routes/(console)/organization-[organization]/billing/addCreditModal.svelte b/src/routes/(console)/organization-[organization]/billing/addCreditModal.svelte
index f0bb10ba9..4a66d6797 100644
--- a/src/routes/(console)/organization-[organization]/billing/addCreditModal.svelte
+++ b/src/routes/(console)/organization-[organization]/billing/addCreditModal.svelte
@@ -40,7 +40,12 @@
Apply Appwrite credits to your organization.
-
+
diff --git a/src/routes/(console)/organization-[organization]/billing/budgetCap.svelte b/src/routes/(console)/organization-[organization]/billing/budgetCap.svelte
index e76bcd2ed..c6b0d00fe 100644
--- a/src/routes/(console)/organization-[organization]/billing/budgetCap.svelte
+++ b/src/routes/(console)/organization-[organization]/billing/budgetCap.svelte
@@ -84,6 +84,7 @@
{/if}
diff --git a/src/routes/(console)/project-[project]/auth/security/updatePasswordHistory.svelte b/src/routes/(console)/project-[project]/auth/security/updatePasswordHistory.svelte
index a308e9962..82209e2bb 100644
--- a/src/routes/(console)/project-[project]/auth/security/updatePasswordHistory.svelte
+++ b/src/routes/(console)/project-[project]/auth/security/updatePasswordHistory.svelte
@@ -8,6 +8,7 @@
import { addNotification } from '$lib/stores/notifications';
import { sdk } from '$lib/stores/sdk';
import { project } from '../../store';
+ import { tick } from 'svelte';
let passwordHistory = $project?.authPasswordHistory < 1 ? 5 : $project?.authPasswordHistory;
let passwordHistoryEnabled = ($project?.authPasswordHistory ?? 0) !== 0;
@@ -34,6 +35,14 @@
trackError(error, Submit.AuthPasswordHistoryUpdate);
}
}
+
+ let maxSessionInputField: InputNumber | null = null;
+
+ $: if (passwordHistoryEnabled && maxSessionInputField) {
+ tick().then(() => {
+ maxSessionInputField.addInputFocus();
+ });
+ }
From b5f737646fd11b88b845ff25b51a02a95aac0cf3 Mon Sep 17 00:00:00 2001
From: Darshan
Date: Mon, 2 Dec 2024 12:31:32 +0530
Subject: [PATCH 53/95] fix: equality checks.
---
.../messaging/message-[message]/emailMessage.svelte | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/routes/(console)/project-[project]/messaging/message-[message]/emailMessage.svelte b/src/routes/(console)/project-[project]/messaging/message-[message]/emailMessage.svelte
index 6fcaad6d4..fc897c398 100644
--- a/src/routes/(console)/project-[project]/messaging/message-[message]/emailMessage.svelte
+++ b/src/routes/(console)/project-[project]/messaging/message-[message]/emailMessage.svelte
@@ -63,7 +63,7 @@
+ {:else}
+
{/if}
From 61e27bd947f5ecc78927a1fcc73674dd0b8b5ff8 Mon Sep 17 00:00:00 2001
From: Darshan
Date: Tue, 10 Dec 2024 11:01:23 +0530
Subject: [PATCH 55/95] add: autofocus to custom ids.
---
.../wizards/functions/steps/functionConfiguration.svelte | 1 +
src/lib/wizards/functions/steps/manualDetails.svelte | 1 +
.../wizards/functions/steps/templateConfiguration.svelte | 1 +
src/routes/(console)/createOrganization.svelte | 2 +-
src/routes/(console)/onboarding/+page.svelte | 7 ++++++-
.../organization-[organization]/createProject.svelte | 2 +-
.../organization-[organization]/wizard/step1.svelte | 1 +
.../(console)/project-[project]/auth/createTeam.svelte | 2 +-
.../(console)/project-[project]/auth/createUser.svelte | 2 +-
.../document-[document]/attributeForm.svelte | 2 +-
.../databases/database-[database]/createCollection.svelte | 2 +-
.../project-[project]/functions/wizard/step1.svelte | 1 +
.../project-[project]/messaging/topics/create.svelte | 2 +-
.../messaging/wizard/emailFormList.svelte | 1 +
.../storage/bucket-[bucket]/create-file/step1.svelte | 2 +-
.../(console)/project-[project]/storage/create.svelte | 2 +-
16 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/src/lib/wizards/functions/steps/functionConfiguration.svelte b/src/lib/wizards/functions/steps/functionConfiguration.svelte
index 02ae93868..cafa196af 100644
--- a/src/lib/wizards/functions/steps/functionConfiguration.svelte
+++ b/src/lib/wizards/functions/steps/functionConfiguration.svelte
@@ -71,6 +71,7 @@
{:else}
{:else}
{:else}
{:else}
-
+
{/if}
diff --git a/src/routes/(console)/onboarding/+page.svelte b/src/routes/(console)/onboarding/+page.svelte
index e714c1a5a..40515ff1f 100644
--- a/src/routes/(console)/onboarding/+page.svelte
+++ b/src/routes/(console)/onboarding/+page.svelte
@@ -125,7 +125,12 @@
diff --git a/src/routes/(console)/organization-[organization]/createProject.svelte b/src/routes/(console)/organization-[organization]/createProject.svelte
index 85bccc0f0..8638642ac 100644
--- a/src/routes/(console)/organization-[organization]/createProject.svelte
+++ b/src/routes/(console)/organization-[organization]/createProject.svelte
@@ -61,7 +61,7 @@