Skip to content

Commit c69b593

Browse files
committed
enhance platform creation UX with optional badges and success notifications
1 parent dd61875 commit c69b593

File tree

7 files changed

+49
-22
lines changed

7 files changed

+49
-22
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"@ai-sdk/svelte": "^1.1.24",
2525
"@appwrite.io/console": "^1.10.0",
2626
"@appwrite.io/pink-icons": "0.25.0",
27-
"@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@e6b154b",
27+
"@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@d93a5e9",
2828
"@appwrite.io/pink-legacy": "^1.0.3",
29-
"@appwrite.io/pink-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-svelte@e6b154b",
29+
"@appwrite.io/pink-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-svelte@d93a5e9",
3030
"@popperjs/core": "^2.11.8",
3131
"@sentry/sveltekit": "^8.38.0",
3232
"@stripe/stripe-js": "^3.5.0",

pnpm-lock.yaml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ const val APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject(page.params.region, page.
6161
trackEvent(Submit.PlatformCreate, {
6262
type: 'android'
6363
});
64+
65+
addNotification({
66+
type: 'success',
67+
message: 'Platform created.'
68+
});
69+
6470
invalidate(Dependencies.PROJECT);
6571
invalidate(Dependencies.PLATFORMS);
6672
} catch (error) {
@@ -162,7 +168,7 @@ const val APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject(page.params.region, page.
162168

163169
<!-- Step Two -->
164170
{#if isPlatformCreated}
165-
<Fieldset legend="Clone starter">
171+
<Fieldset legend="Clone starter" badge="Optional">
166172
<Layout.Stack gap="l">
167173
<Typography.Text variant="m-500">
168174
1. If you're starting a new project, you can clone our starter kit from
@@ -243,7 +249,7 @@ const val APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject(page.params.region, page.
243249
secondary
244250
disabled={isCreatingPlatform}
245251
href={location.pathname}>
246-
Go to dashboard
252+
Skip, go to dashboard
247253
</Button>
248254
{/if}
249255
</svelte:fragment>

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ APPWRITE_PUBLIC_ENDPOINT: "${sdk.forProject(page.params.region, page.params.proj
7272
trackEvent(Submit.PlatformCreate, {
7373
type: platform
7474
});
75+
76+
addNotification({
77+
type: 'success',
78+
message: 'Platform created.'
79+
});
80+
7581
invalidate(Dependencies.PROJECT);
7682
invalidate(Dependencies.PLATFORMS);
7783
} catch (error) {
@@ -192,7 +198,7 @@ APPWRITE_PUBLIC_ENDPOINT: "${sdk.forProject(page.params.region, page.params.proj
192198

193199
<!-- Step Three -->
194200
{#if isPlatformCreated}
195-
<Fieldset legend="Clone starter">
201+
<Fieldset legend="Clone starter" badge="Optional">
196202
<Layout.Stack gap="l">
197203
<Typography.Text variant="m-500">
198204
1. If you're starting a new project, you can clone our starter kit from
@@ -272,7 +278,7 @@ APPWRITE_PUBLIC_ENDPOINT: "${sdk.forProject(page.params.region, page.params.proj
272278
secondary
273279
disabled={isCreatingPlatform}
274280
href={location.pathname}>
275-
Go to dashboard
281+
Skip, go to dashboard
276282
</Button>
277283
{/if}
278284
</svelte:fragment>

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@
132132
type: platform
133133
});
134134
135+
addNotification({
136+
type: 'success',
137+
message: 'Platform created.'
138+
});
139+
135140
invalidate(Dependencies.PROJECT);
136141
invalidate(Dependencies.PLATFORMS);
137142
} catch (error) {
@@ -268,7 +273,7 @@
268273

269274
<!-- Step Three -->
270275
{#if isPlatformCreated}
271-
<Fieldset legend="Clone starter">
276+
<Fieldset legend="Clone starter" badge="Optional">
272277
<Layout.Stack gap="l">
273278
<Typography.Text variant="m-500">
274279
1. If you're starting a new project, you can clone our starter kit from
@@ -350,7 +355,7 @@
350355
secondary
351356
disabled={isCreatingPlatform}
352357
href={location.pathname}>
353-
Go to dashboard
358+
Skip, go to dashboard
354359
</Button>
355360
{/if}
356361
</svelte:fragment>

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ EXPO_PUBLIC_APPWRITE_ENDPOINT=${sdk.forProject(page.params.region, page.params.p
9393
type: platform
9494
});
9595
96+
addNotification({
97+
type: 'success',
98+
message: 'Platform created.'
99+
});
100+
96101
invalidate(Dependencies.PROJECT);
97102
invalidate(Dependencies.PLATFORMS);
98103
} catch (error) {
@@ -212,7 +217,7 @@ EXPO_PUBLIC_APPWRITE_ENDPOINT=${sdk.forProject(page.params.region, page.params.p
212217

213218
<!-- Step Three -->
214219
{#if isPlatformCreated}
215-
<Fieldset legend="Clone starter">
220+
<Fieldset legend="Clone starter" badge="Optional">
216221
<Layout.Stack gap="l">
217222
<Typography.Text variant="m-500">
218223
1. If you're starting a new project, you can clone our starter kit from
@@ -298,7 +303,7 @@ EXPO_PUBLIC_APPWRITE_ENDPOINT=${sdk.forProject(page.params.region, page.params.p
298303
secondary
299304
disabled={isCreatingPlatform}
300305
href={location.pathname}>
301-
Go to dashboard
306+
Skip, go to dashboard
302307
</Button>
303308
{/if}
304309
</svelte:fragment>

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ ${prefix}APPWRITE_ENDPOINT = "${sdk.forProject(page.params.region, page.params.p
175175
type: platform
176176
});
177177
178+
addNotification({
179+
type: 'success',
180+
message: 'Platform created.'
181+
});
182+
178183
invalidate(Dependencies.PROJECT);
179184
invalidate(Dependencies.PLATFORMS);
180185
} catch (error) {
@@ -281,7 +286,7 @@ ${prefix}APPWRITE_ENDPOINT = "${sdk.forProject(page.params.region, page.params.p
281286

282287
<!-- Step Three -->
283288
{#if isPlatformCreated && !isChangingFramework}
284-
<Fieldset legend="Clone starter">
289+
<Fieldset legend="Clone starter" badge="Optional">
285290
<Layout.Stack gap="l">
286291
<Typography.Text variant="m-500">
287292
1. If you're starting a new project, you can clone our starter kit from
@@ -402,7 +407,7 @@ ${prefix}APPWRITE_ENDPOINT = "${sdk.forProject(page.params.region, page.params.p
402407
secondary
403408
fullWidthMobile
404409
href={location.pathname}
405-
disabled={isCreatingPlatform}>Go to dashboard</Button>
410+
disabled={isCreatingPlatform}>Skip, go to dashboard</Button>
406411
{/if}
407412
</svelte:fragment>
408413
</Wizard>

0 commit comments

Comments
 (0)