Merge pull request #2418 from appwrite/fix-SER-416-fix-message-and-topic-id

This commit is contained in:
Darshan authored and GitHub committed 2025-09-29 19:08:44 +05:30
commit 963b3da44c
6 files changed
+18 -20

No files matched your search

@@ -4,7 +4,7 @@
import { Submit, trackEvent, trackError } from '$lib/actions/analytics';
import { Modal, CustomId } from '$lib/components';
import { Dependencies } from '$lib/constants';
import { Badge, Icon } from '@appwrite.io/pink-svelte';
import { Tag, Icon } from '@appwrite.io/pink-svelte';
import { IconPencil } from '@appwrite.io/pink-icons-svelte';
import { Button, InputText, InputSelect, InputPhone } from '$lib/elements/forms';
import InputEmail from '$lib/elements/forms/inputEmail.svelte';
@@ -18,7 +18,7 @@
let identifier = '';
let name = '';
let providerId = '';
let id: string = null;
let id: string | null = null;
let showCustomId = false;
const providerTypeOptions = [
@@ -115,12 +115,10 @@
{#if !showCustomId}
<div>
<Badge
variant="secondary"
content="Target ID"
on:click={() => (showCustomId = !showCustomId)}>
<Icon icon={IconPencil} size="s" slot="start" />
</Badge>
<Tag size="s" on:click={() => (showCustomId = !showCustomId)}>
<Icon icon={IconPencil} size="s" />
Target ID
</Tag>
</div>
{:else}
<CustomId bind:show={showCustomId} name="Target" bind:id autofocus={false} />
@@ -23,7 +23,7 @@
let formComponent: Form;
let isSubmitting = writable(false);
let showCustomId = false;
let id: string;
let id: string | null = null;
let subject: string;
let content: string;
let topics: string[];
@@ -24,7 +24,7 @@
let formComponent: Form;
let isSubmitting = writable(false);
let showCustomId = false;
let id: string;
let id: string | null = null;
let file: Models.File;
let data: Writable<[string, string][]> = writable([['', '']]);
let title: string;
@@ -22,7 +22,7 @@
let formComponent: Form;
let isSubmitting = writable(false);
let showCustomId = false;
let id: string;
let id: string | null = null;
let content: string;
let topics: string[];
let users: string[];
@@ -4,14 +4,14 @@
import { CustomId, LabelCard } from '$lib/components';
import { providers } from '../store';
import { InputText } from '$lib/elements/forms';
import { Badge, Icon } from '@appwrite.io/pink-svelte';
import { Tag, Icon } from '@appwrite.io/pink-svelte';
import { IconPencil } from '@appwrite.io/pink-icons-svelte';
import { Providers } from '../../provider.svelte';
import { SmtpEncryption } from '@appwrite.io/console';
let name = '';
let showCustomId = false;
let id: string = null;
let id: string | null = null;
$: {
name;
@@ -152,12 +152,10 @@
{#if !showCustomId}
<div>
<Badge
variant="secondary"
content="Provider ID"
on:click={() => (showCustomId = !showCustomId)}>
<Icon icon={IconPencil} size="s" slot="start" />
</Badge>
<Tag size="s" on:click={() => (showCustomId = !showCustomId)}>
<Icon icon={IconPencil} size="s" />
Provider ID
</Tag>
</div>
{:else}
<CustomId bind:show={showCustomId} name="Provider" bind:id autofocus={false} />
@@ -14,7 +14,9 @@
const dispatch = createEventDispatcher();
let name: string, id: string, error: string;
let name: string,
id: string | null = null,
error: string | null = null;
let showCustomId = false;
const create = async () => {