diff --git a/src/lib/components/account/sendVerificationEmailModal.svelte b/src/lib/components/account/sendVerificationEmailModal.svelte
new file mode 100644
index 000000000..bbe676142
--- /dev/null
+++ b/src/lib/components/account/sendVerificationEmailModal.svelte
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+ To continue using Appwrite Cloud, please verify your email address. An email will be
+ sent to {get(user)?.email}
+
+
+
+
+
+
+
+
diff --git a/src/lib/components/alerts/emailVerificationBanner.svelte b/src/lib/components/alerts/emailVerificationBanner.svelte
index 51fc4bbab..9af46d418 100644
--- a/src/lib/components/alerts/emailVerificationBanner.svelte
+++ b/src/lib/components/alerts/emailVerificationBanner.svelte
@@ -1,55 +1,26 @@
{#if shouldShowEmailBanner}
-
+
To avoid losing access to your projects, make sure
-
+
+
{/if}
diff --git a/src/lib/components/logs/logsRequest.svelte b/src/lib/components/logs/logsRequest.svelte
index dc04eb022..618201d74 100644
--- a/src/lib/components/logs/logsRequest.svelte
+++ b/src/lib/components/logs/logsRequest.svelte
@@ -11,7 +11,6 @@
Tabs,
Typography
} from '@appwrite.io/pink-svelte';
- import { onMount } from 'svelte';
let {
selectedLog,
@@ -23,29 +22,30 @@
let requestTab: 'parameters' | 'headers' = $state('parameters');
- let parameters = $state([]);
-
const href =
product === 'site'
? 'https://appwrite.io/docs/products/sites/logs#log-details'
: 'https://appwrite.io/docs/products/functions/develop#logging';
- onMount(() => {
+ // Make parameters reactive to selectedLog changes
+ let parameters = $derived.by(() => {
try {
// Add dummy base URL to parse relative paths
const url = new URL(selectedLog.requestPath, 'http://dummy.local');
if (url.search) {
- parameters = Array.from(url.searchParams.entries()).map(([name, value]) => ({
+ return Array.from(url.searchParams.entries()).map(([name, value]) => ({
name,
value: decodeURIComponent(value)
}));
}
+ return [];
} catch (error) {
- parameters = [];
+ return [];
}
});
- onMount(() => {
+ // Update requestTab when parameters or selectedLog changes
+ $effect(() => {
if (parameters?.length) {
requestTab = 'parameters';
} else if (selectedLog.requestHeaders?.length) {
diff --git a/src/lib/components/mfaChallengeFormList.svelte b/src/lib/components/mfaChallengeFormList.svelte
index bd5489f0b..fac525caa 100644
--- a/src/lib/components/mfaChallengeFormList.svelte
+++ b/src/lib/components/mfaChallengeFormList.svelte
@@ -1,21 +1,39 @@
-{#if challengeType === AuthenticationFactor.Recoverycode}
+{#if enabledMainFactors.length === 0}
+
+{:else if challengeType === AuthenticationFactor.Recoverycode}
- Enter below one of the recovery codes you received when enabling MFA for this account.
+ Enter one of the recovery codes you received when enabling MFA.
-{:else}
- {#if factors.totp && (challengeType === AuthenticationFactor.Totp || challengeType === null)}
- Enter below a 6-digit one-time code generated by your authentication app.
- {:else if challengeType === AuthenticationFactor.Email}
- A 6-digit verification code was sent to your email, enter it below.
- {:else if challengeType === AuthenticationFactor.Phone}
- A 6-digit verification code was sent to your phone, enter it below.
- {/if}
+{:else if challengeType === AuthenticationFactor.Totp}
+
+ Enter a 6-digit one-time code from your authenticator app.
+
+
+{:else if challengeType === AuthenticationFactor.Email}
+
+ A 6-digit verification code was sent to your email. Enter it below.
+
+
+{:else if challengeType === AuthenticationFactor.Phone}
+
+ A 6-digit verification code was sent to your phone. Enter it below.
+
{/if}
-{#if showVerifyButton}
+
+{#if showVerifyButton && enabledMainFactors.length > 0}
{/if}
-{#if enabledFactors.length > 1}
- or
-