From be08aabdfad2f8a01641053571c197a2007829e7 Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Sun, 20 Aug 2023 01:32:22 +0000 Subject: [PATCH 1/2] Wizard steps simplification experiment --- src/lib/wizards/functions/createTemplate.svelte | 8 ++++---- src/lib/wizards/functions/steps/executeAccess.svelte | 2 +- .../wizards/functions/steps/repositoryBehaviour.svelte | 2 +- src/routes/console/(migration-wizard)/wizard.svelte | 4 ++-- .../collection-[collection]/createDocument.svelte | 4 ++-- .../project-[project]/functions/createFunction.svelte | 4 ++-- .../overview/platforms/createAndroid.svelte | 8 ++++---- .../overview/platforms/createApple.svelte | 8 ++++---- .../overview/platforms/createFlutter.svelte | 8 ++++---- .../project-[project]/overview/platforms/createWeb.svelte | 8 ++++---- .../settings/migrations/(import)/wizard.svelte | 4 ++-- .../settings/webhooks/createWebhook.svelte | 4 ++-- 12 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/lib/wizards/functions/createTemplate.svelte b/src/lib/wizards/functions/createTemplate.svelte index 5d9fe8a18b..d60486224f 100644 --- a/src/lib/wizards/functions/createTemplate.svelte +++ b/src/lib/wizards/functions/createTemplate.svelte @@ -61,7 +61,7 @@ const stepsComponents: WizardStepsType = new Map(); stepsComponents.set(1, { - label: 'Template configuration', + label: 'Configuration', component: TemplateConfiguration }); stepsComponents.set(2, { @@ -69,15 +69,15 @@ 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 }); diff --git a/src/lib/wizards/functions/steps/executeAccess.svelte b/src/lib/wizards/functions/steps/executeAccess.svelte index eeb691e94c..1c59f6c87c 100644 --- a/src/lib/wizards/functions/steps/executeAccess.svelte +++ b/src/lib/wizards/functions/steps/executeAccess.svelte @@ -5,7 +5,7 @@ - Execute access + Execution permissions Choose who can execute this function using the client API. For more information, check out the - Repository Behaviour + Repository behaviour Connect function to a new repository or to an existing one within a selected Git organization. diff --git a/src/routes/console/(migration-wizard)/wizard.svelte b/src/routes/console/(migration-wizard)/wizard.svelte index 73697d657e..2c25d86359 100644 --- a/src/routes/console/(migration-wizard)/wizard.svelte +++ b/src/routes/console/(migration-wizard)/wizard.svelte @@ -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 }); diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/createDocument.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/createDocument.svelte index 68a63996f4..741463c6f3 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/createDocument.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/createDocument.svelte @@ -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 }); diff --git a/src/routes/console/project-[project]/functions/createFunction.svelte b/src/routes/console/project-[project]/functions/createFunction.svelte index dfa9524659..d28c7222a2 100644 --- a/src/routes/console/project-[project]/functions/createFunction.svelte +++ b/src/routes/console/project-[project]/functions/createFunction.svelte @@ -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 }); diff --git a/src/routes/console/project-[project]/overview/platforms/createAndroid.svelte b/src/routes/console/project-[project]/overview/platforms/createAndroid.svelte index 15c1d2eade..efb3a96de3 100644 --- a/src/routes/console/project-[project]/overview/platforms/createAndroid.svelte +++ b/src/routes/console/project-[project]/overview/platforms/createAndroid.svelte @@ -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 }); diff --git a/src/routes/console/project-[project]/overview/platforms/createApple.svelte b/src/routes/console/project-[project]/overview/platforms/createApple.svelte index 1ae5b88e9d..03cf585a0b 100644 --- a/src/routes/console/project-[project]/overview/platforms/createApple.svelte +++ b/src/routes/console/project-[project]/overview/platforms/createApple.svelte @@ -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 }); diff --git a/src/routes/console/project-[project]/overview/platforms/createFlutter.svelte b/src/routes/console/project-[project]/overview/platforms/createFlutter.svelte index bf5f79968b..d1da8f7c2c 100644 --- a/src/routes/console/project-[project]/overview/platforms/createFlutter.svelte +++ b/src/routes/console/project-[project]/overview/platforms/createFlutter.svelte @@ -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 }); diff --git a/src/routes/console/project-[project]/overview/platforms/createWeb.svelte b/src/routes/console/project-[project]/overview/platforms/createWeb.svelte index 23b0fa5686..c24248ca39 100644 --- a/src/routes/console/project-[project]/overview/platforms/createWeb.svelte +++ b/src/routes/console/project-[project]/overview/platforms/createWeb.svelte @@ -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 }); diff --git a/src/routes/console/project-[project]/settings/migrations/(import)/wizard.svelte b/src/routes/console/project-[project]/settings/migrations/(import)/wizard.svelte index 89527f3cc4..9c9e82fa89 100644 --- a/src/routes/console/project-[project]/settings/migrations/(import)/wizard.svelte +++ b/src/routes/console/project-[project]/settings/migrations/(import)/wizard.svelte @@ -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 }); diff --git a/src/routes/console/project-[project]/settings/webhooks/createWebhook.svelte b/src/routes/console/project-[project]/settings/webhooks/createWebhook.svelte index 5424172c72..742b12d69a 100644 --- a/src/routes/console/project-[project]/settings/webhooks/createWebhook.svelte +++ b/src/routes/console/project-[project]/settings/webhooks/createWebhook.svelte @@ -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, { From dad2ee135d28435297b2777e915fb9eb2ea9a4e7 Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Mon, 21 Aug 2023 17:29:10 +0000 Subject: [PATCH 2/2] Add links to docs --- src/lib/layout/logs.svelte | 10 +++++----- src/lib/wizards/functions/cover.svelte | 2 +- .../auth/templates/emailTemplate.svelte | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/layout/logs.svelte b/src/lib/layout/logs.svelte index 2f1607cf83..94eec5f6c2 100644 --- a/src/lib/layout/logs.svelte +++ b/src/lib/layout/logs.svelte @@ -152,7 +152,7 @@ >context.log(context.req.headers) in your function and make them available in Logs tab. Learn morecontext.log() in your function and make them available in Logs tab. Learn morecontext.log() in your function and make it available in Logs tab. Learn morecontext.log() in your function and make them available in Logs tab. Learn morecontext.log() in your function and make it available in Logs tab. Learn more wizard.start(CreateManual)}>manually or using the CLI. - Learn more.

diff --git a/src/routes/console/project-[project]/auth/templates/emailTemplate.svelte b/src/routes/console/project-[project]/auth/templates/emailTemplate.svelte index 403719755c..807a5060fc 100644 --- a/src/routes/console/project-[project]/auth/templates/emailTemplate.svelte +++ b/src/routes/console/project-[project]/auth/templates/emailTemplate.svelte @@ -105,7 +105,7 @@

Click to copy variables for the fields below. Learn more herehere.