Skip to content

Commit e271bca

Browse files
committed
address comments.
1 parent 2bc3679 commit e271bca

File tree

7 files changed

+19
-45
lines changed

7 files changed

+19
-45
lines changed

src/routes/(console)/project-[region]-[project]/overview/platforms/wizard/android/step3.svelte

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts">
22
import { page } from '$app/stores';
33
import { WizardStep } from '$lib/layout';
4-
import { Code, Id } from '$lib/components';
4+
import { Code } from '$lib/components';
55
import { getProjectEndpoint } from '$lib/helpers/project';
66
77
const project = $page.params.project;
@@ -17,13 +17,7 @@ val client = Client(context)
1717

1818
<WizardStep>
1919
<svelte:fragment slot="title">Initialize</svelte:fragment>
20-
21-
<h2 class="heading-level-7">Initialize your SDK</h2>
22-
<p>
23-
Initialize your SDK by pointing the client to your Appwrite project using your <Id
24-
value={project}>Project ID</Id
25-
>.
26-
</p>
20+
<p>Initialize your SDK by pointing the client to your Appwrite project.</p>
2721
<div class="u-margin-block-start-16">
2822
<Code
2923
label="Android SDK"

src/routes/(console)/project-[region]-[project]/overview/platforms/wizard/apple/step3.svelte

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { page } from '$app/stores';
33
import { isCloud } from '$lib/system';
44
import { WizardStep } from '$lib/layout';
5-
import { Alert, Code, Id } from '$lib/components';
5+
import { Alert, Code } from '$lib/components';
66
import { getProjectEndpoint } from '$lib/helpers/project';
77
88
const project = $page.params.project;
@@ -20,12 +20,8 @@ let client = Client()
2020
<WizardStep>
2121
<svelte:fragment slot="title">Initialize</svelte:fragment>
2222

23-
<h2 class="heading-level-7">Initialize your SDK</h2>
24-
<p>
25-
Initialize your SDK by pointing the client to your Appwrite project using your
26-
<Id value={project}>Project ID</Id>
27-
.
28-
</p>
23+
<p>Initialize your SDK by pointing the client to your Appwrite project.</p>
24+
2925
<Code label="Apple SDK" labelIcon="apple" language="swift" {code} withCopy withLineNumbers />
3026
<p class="u-margin-block-start-24">
3127
Before sending any API calls to your new Appwrite project, make sure your device or emulator

src/routes/(console)/project-[region]-[project]/overview/platforms/wizard/flutter/step3.svelte

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { page } from '$app/stores';
33
import { isCloud } from '$lib/system';
44
import { WizardStep } from '$lib/layout';
5-
import { Alert, Code, Id } from '$lib/components';
5+
import { Alert, Code } from '$lib/components';
66
import { getProjectEndpoint } from '$lib/helpers/project';
77
88
const project = $page.params.project;
@@ -21,11 +21,8 @@ client
2121
<WizardStep>
2222
<svelte:fragment slot="title">Initialize</svelte:fragment>
2323

24-
<h2 class="heading-level-7">Initialize your SDK</h2>
25-
<p data-private>
26-
Initialize your SDK by pointing the client to your Appwrite project using your
27-
<Id value={project}>Project ID</Id>
28-
</p>
24+
<p>Initialize your SDK by pointing the client to your Appwrite project.</p>
25+
2926
<div class="u-margin-block-start-16">
3027
<Code
3128
label="Flutter SDK"

src/routes/(console)/project-[region]-[project]/overview/platforms/wizard/react-native/step3.svelte

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { isCloud } from '$lib/system';
44
import { WizardStep } from '$lib/layout';
55
import { createPlatform } from '../store';
6-
import { Alert, Code, Id } from '$lib/components';
6+
import { Alert, Code } from '$lib/components';
77
import { getProjectEndpoint } from '$lib/helpers/project';
88
99
const project = $page.params.project;
@@ -21,11 +21,8 @@ const client = new Client()
2121
<WizardStep>
2222
<svelte:fragment slot="title">Initialize</svelte:fragment>
2323

24-
<h2 class="heading-level-7">Initialize your SDK</h2>
25-
<p data-private>
26-
Initialize your SDK by pointing the client to your Appwrite project using your <Id
27-
value={project}>Project ID</Id>
28-
</p>
24+
<p>Initialize your SDK by pointing the client to your Appwrite project.</p>
25+
2926
<div class="u-margin-block-start-16">
3027
<Code
3128
label="React Native"

src/routes/(console)/project-[region]-[project]/overview/platforms/wizard/skipped.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
2323
export async function onPlatformSetupFinish(event: CustomEvent): Promise<void> {
2424
const type = event.type;
25-
const skipped = event.detail.skipped ?? false;
26-
const optional = event.detail.optional ?? false;
25+
const skipped = event.detail?.skipped ?? false;
26+
const optional = event.detail?.optional ?? false;
2727
2828
const isSkipped = type === 'finish' ? skipped : type === 'exit' ? optional : false;
2929
@@ -53,8 +53,8 @@
5353
title="Skipping optional steps">
5454
<FormList>
5555
<p>
56-
The platform will be added to your project. Use the Project ID and API endpoint in your
57-
project to get started:
56+
The platform will be added to your project. Access Appwrite services using this
57+
project's API Endpoint and Project ID:
5858
</p>
5959

6060
<CopyInput label="Project ID" showLabel={true} value={project} />

src/routes/(console)/project-[region]-[project]/overview/platforms/wizard/step4.svelte

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,14 @@
66
import { getProjectEndpoint } from '$lib/helpers/project';
77
88
const project = $page.params.project;
9-
$: isFirstProject = $page.data.platforms.total === 0;
109
</script>
1110

1211
<WizardStep>
1312
<svelte:fragment slot="title">All set! Your project is ready to go</svelte:fragment>
1413
<FormList gap={16}>
1514
<p>
16-
{#if isFirstProject}
17-
Congratulations on adding the first platform to your project!
18-
{:else}
19-
Congratulations on adding another platform to your project!
20-
{/if}
21-
22-
Use the Project ID and API endpoint in your project to get started:
15+
You've successfully added a platform to your project. Access Appwrite services using
16+
this project's API Endpoint and Project ID:
2317
</p>
2418

2519
<CopyInput label="Project ID" showLabel={true} value={project} />

src/routes/(console)/project-[region]-[project]/overview/platforms/wizard/web/step3.svelte

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@ client
1515
<WizardStep>
1616
<svelte:fragment slot="title">Initialize SDK</svelte:fragment>
1717

18-
<h2 class="heading-level-7">Initialize your SDK</h2>
19-
<p>
20-
Initialize your SDK by pointing the client to your Appwrite project using your <Id
21-
value={project}>Project ID</Id
22-
>.
23-
</p>
18+
<p>Initialize your SDK by pointing the client to your Appwrite project.</p>
19+
2420
<div class="u-margin-block-start-16">
2521
<Code
2622
label="Web SDK"

0 commit comments

Comments
 (0)