Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update messaging related text #780

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down Expand Up @@ -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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand All @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading