Merge pull request #780 from appwrite/feat-messaging-consistent-terms

Update messaging related text
This commit is contained in:
Torsten Dittmann
2024-02-08 09:19:59 +01:00
committed by GitHub
4 changed files with 18 additions and 8 deletions
@@ -4,6 +4,7 @@
import { sdk } from '$lib/stores/sdk';
import { Query, type Models } from '@appwrite.io/console';
import { createEventDispatcher } from 'svelte';
import { providerType } from './wizard/store';
export let show: boolean;
export let topicsById: Record<string, Models.Topic>;
@@ -79,7 +80,10 @@
</script>
<Modal {title} bind:show onSubmit={submit} on:close={reset} size="big">
<p class="text">Select existing topics you want to send this message to its recipients.</p>
<p class="text">
Select existing topics you want to send this message to its subscribers. The message will be
sent only to {$providerType} targets.
</p>
<InputSearch
autofocus
disabled={totalResults === 0 && !search}
@@ -15,7 +15,7 @@
export let show: boolean;
export let targetsById: Record<string, Models.Target>;
export let providerType: MessagingProviderType = null;
export let title = 'Select users';
export let title = 'Select subscribers';
const dispatch = createEventDispatcher();
@@ -117,8 +117,15 @@
}
</script>
<Modal {title} bind:show onSubmit={submit} on:close={reset} size="big">
<p class="text">Select recipients for this message from your users.</p>
<Modal {title} bind:show onSubmit={submit} on:close={reset} size="big" headerDivider={false}>
<!-- TODO: Update docs link -->
<p class="text">
Add subscribers to this topic by selecting the targets for directing messages. <a
href="https://appwrite.io/docs"
target="_blank"
rel="noopener noreferrer"
class="link">Learn more about subscribers.</a>
</p>
<InputSearch
autofocus
disabled={totalResults === 0 && !search}
@@ -51,7 +51,7 @@
<svelte:fragment slot="title">Targets</svelte:fragment>
<!-- TODO: add support for topics -->
<svelte:fragment slot="subtitle"
>Select users to whom this message should be directed.</svelte:fragment>
>Select targets to whom this message should be directed.</svelte:fragment>
{#if targetIdsLength === 0 && topicIdsLength === 0}
<Card>
<div class="u-flex u-cross-center u-flex-vertical u-main-center u-flex">
@@ -67,7 +67,7 @@
</Button>
</Actions>
<div class="common-section">
<span class="text"> Select recipients to get started</span>
<span class="text"> Select targets to get started</span>
</div>
</div>
</Card>
@@ -54,8 +54,7 @@
<svelte:fragment slot="title">Schedule</svelte:fragment>
<!-- TODO: Add link to docs -->
<svelte:fragment slot="subtitle"
>Schedule the time you want your users to receive this message. Learn more in our
documentation.</svelte:fragment>
>Schedule the time you want to deliver this message. Learn more in our documentation.</svelte:fragment>
<FormList>
<div
class="u-grid u-gap-24"