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

Improve wizard copy. #509

Merged
merged 3 commits into from
Aug 21, 2023
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
15 changes: 6 additions & 9 deletions src/lib/layout/logs.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<script lang="ts">
import { toLocaleDateTime } from '$lib/helpers/date';
import { log } from '$lib/stores/logs';
import { Alert, Card, Code, Heading, Id, SvgIcon, Tab, Tabs } from '../components';
import { base } from '$app/paths';
import { app } from '$lib/stores/app';
import { Card, Code, Heading, Id, SvgIcon, Tab, Tabs } from '../components';
import { calculateTime } from '$lib/helpers/timeConversion';
import {
TableBody,
Expand All @@ -14,7 +12,6 @@
TableScroll
} from '$lib/elements/table';
import { beforeNavigate } from '$app/navigation';
import Table from '$lib/elements/table/table.svelte';
import { Pill } from '$lib/elements';

let selectedRequest = 'parameters';
Expand Down Expand Up @@ -203,7 +200,7 @@
use
<b>context.log()</b>.
<a
href="http://#"
href="https://appwrite.io/docs/functions-develop#logging"
target="_blank"
rel="noopener noreferrer"
class="link">Learn more</a
Expand Down Expand Up @@ -241,7 +238,7 @@
header data in the Logs tab, use
<b>context.log()</b>.
<a
href="http://#"
href="https://appwrite.io/docs/functions-develop#logging"
target="_blank"
rel="noopener noreferrer"
class="link">Learn more</a
Expand All @@ -253,7 +250,7 @@
and privacy. To display body data in the Logs tab, use
<b>context.log()</b>.
<a
href="http://#"
href="https://appwrite.io/docs/functions-develop#logging"
target="_blank"
rel="noopener noreferrer"
class="link">Learn more</a
Expand Down Expand Up @@ -331,7 +328,7 @@
header data in the Logs tab, use
<b>context.log()</b>.
<a
href="http://#"
href="https://appwrite.io/docs/functions-develop#logging"
target="_blank"
rel="noopener noreferrer"
class="link">Learn more</a
Expand All @@ -343,7 +340,7 @@
and privacy. To display body data in the Logs tab, use
<b>context.log()</b>.
<a
href="http://#"
href="https://appwrite.io/docs/functions-develop#logging"
target="_blank"
rel="noopener noreferrer"
class="link">Learn more</a
Expand Down
2 changes: 1 addition & 1 deletion src/lib/wizards/functions/cover.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
class="link"
on:click={() => wizard.start(CreateManual)}>manually</button>
or using the CLI.
<a href="http://#" target="_blank" rel="noopener noreferrer" class="link"
<a href="https://appwrite.io/docs/functions-deploy" target="_blank" rel="noopener noreferrer" class="link"
>Learn more</a
>.
</p>
Expand Down
8 changes: 4 additions & 4 deletions src/lib/wizards/functions/createTemplate.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,23 @@

const stepsComponents: WizardStepsType = new Map();
stepsComponents.set(1, {
label: 'Template configuration',
label: 'Configuration',
component: TemplateConfiguration
});
stepsComponents.set(2, {
label: 'Variables',
component: TemplateVariables
});
stepsComponents.set(3, {
label: 'Repository behaviour',
label: 'Connect',
component: RepositoryBehaviour
});
stepsComponents.set(4, {
label: 'Select repository',
label: 'Repository',
component: CreateRepository
});
stepsComponents.set(5, {
label: 'Git configuration',
label: 'Branch',
component: GitConfiguration
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/wizards/functions/steps/executeAccess.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</script>

<WizardStep>
<svelte:fragment slot="title">Execute access</svelte:fragment>
<svelte:fragment slot="title">Execution permissions</svelte:fragment>
<svelte:fragment slot="subtitle">
Choose who can execute this function using the client API. For more information, check out
the <a
Expand Down
2 changes: 1 addition & 1 deletion src/lib/wizards/functions/steps/repositoryBehaviour.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</script>

<WizardStep {beforeSubmit}>
<svelte:fragment slot="title">Repository Behaviour</svelte:fragment>
<svelte:fragment slot="title">Repository behaviour</svelte:fragment>
<svelte:fragment slot="subtitle">
Connect function to a new repository or to an existing one within a selected Git
organization.
Expand Down
4 changes: 2 additions & 2 deletions src/routes/console/(migration-wizard)/wizard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@

const steps: WizardStepsType = new Map();
steps.set(1, {
label: 'Select project',
label: 'Project',
component: Step1
});
steps.set(2, {
label: 'Select data',
label: 'Resources',
component: Step2
});
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<p class="text">
Click to copy variables for the fields below. Learn more <a
class="link"
href="/#">here</a
href="https://appwrite.io/docs/email-and-sms-templates">here</a
>.
<!-- TODO: add link to docs -->
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@

const stepsComponents: WizardStepsType = new Map();
stepsComponents.set(1, {
label: 'Create data',
label: 'Data',
component: Step1
});
stepsComponents.set(2, {
label: 'Set permissions',
label: 'Permissions',
component: Step2,
optional: true
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@

const stepsComponents: WizardStepsType = new Map();
stepsComponents.set(1, {
label: 'Details',
label: 'Configuration',
component: Step1
});
stepsComponents.set(2, {
label: 'Execute access',
label: 'Permissions',
component: Step2,
optional: true
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@

const stepsComponents: WizardStepsType = new Map();
stepsComponents.set(1, {
label: 'Register your platform',
label: 'Settings',
component: Step1
});
stepsComponents.set(2, {
label: 'Get the SDK',
label: 'Install',
component: Step2,
optional: true
});
stepsComponents.set(3, {
label: "Let's get coding",
label: "Import",
component: Step3,
optional: true
});
stepsComponents.set(4, {
label: 'All set',
label: 'Build',
component: Step4,
optional: true
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@

const stepsComponents: WizardStepsType = new Map();
stepsComponents.set(1, {
label: 'Register your platform',
label: 'Settings',
component: Step1
});
stepsComponents.set(2, {
label: 'Get the SDK',
label: 'Install',
component: Step2,
optional: true
});
stepsComponents.set(3, {
label: "Let's get coding",
label: "Import",
component: Step3,
optional: true
});
stepsComponents.set(4, {
label: 'All set',
label: 'Build',
component: Step4,
optional: true
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@

const stepsComponents: WizardStepsType = new Map();
stepsComponents.set(1, {
label: 'Register your platform',
label: 'Settings',
component: Step1
});
stepsComponents.set(2, {
label: 'Get the SDK',
label: 'Install',
component: Step2,
optional: true
});
stepsComponents.set(3, {
label: "Let's get coding",
label: "Import",
component: Step3,
optional: true
});
stepsComponents.set(4, {
label: 'All set',
label: 'Build',
component: Step4,
optional: true
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@

const stepsComponents: WizardStepsType = new Map();
stepsComponents.set(1, {
label: 'Register your platform',
label: 'Settings',
component: Step1
});
stepsComponents.set(2, {
label: 'Get the SDK',
label: 'Install',
component: Step2,
optional: true
});
stepsComponents.set(3, {
label: 'Initialize SDK',
label: 'Import',
component: Step3,
optional: true
});
stepsComponents.set(4, {
label: 'All set',
label: 'Build',
component: Step4,
optional: true
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@

const steps: WizardStepsType = new Map();
steps.set(1, {
label: 'Choose provider',
label: 'Source',
component: Step1
});
steps.set(2, {
label: 'Select data',
label: 'Resources',
component: Step2
});
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@

const stepsComponents: WizardStepsType = new Map();
stepsComponents.set(1, {
label: 'Add your webhook',
label: 'Configure',
component: Step1
});
stepsComponents.set(2, {
label: 'Webhook events',
label: 'Events',
component: Step2
});
stepsComponents.set(3, {
Expand Down