AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
feat(frontend): Update and fix tutorial (#8943)
Bentlyb16bf42fa306
diff --git a/autogpt_platform/frontend/src/components/tutorial.ts b/autogpt_platform/frontend/src/components/tutorial.tsindex 8b478e0a76..d2236fd2cd 100644--- a/autogpt_platform/frontend/src/components/tutorial.ts+++ b/autogpt_platform/frontend/src/components/tutorial.ts@@ -172,7 +172,7 @@ export const startTutorial = (text: "Please click the block button to open the blocks menu.",attachTo: {element: '[data-id="blocks-control-popover-trigger"]',- on: "bottom",+ on: "right",},advanceOn: {selector: '[data-id="blocks-control-popover-trigger"]',@@ -210,7 +210,7 @@ export const startTutorial = (id: "focus-new-block",title: "New Block",text: "This is the Calculator Block! Let's go over how it works.",- attachTo: { element: `[data-id="custom-node-1"]`, on: "top" },+ attachTo: { element: `[data-id="custom-node-1"]`, on: "left" },beforeShowPromise: () => waitForElement('[data-id="custom-node-1"]'),buttons: [{@@ -308,7 +308,7 @@ export const startTutorial = (text: "Enter a name for your agent, add an optional description, and then click 'Save agent' to save your flow.",attachTo: {element: '[data-id="save-control-popover-content"]',- on: "bottom",+ on: "top",},buttons: [],beforeShowPromise: () =>@@ -371,13 +371,14 @@ export const startTutorial = (id: "check-output",title: "Check the Output",text: "Check here to see the output of the block after running the flow.",- attachTo: { element: '[data-id="latest-output"]', on: "bottom" },- beforeShowPromise: () => waitForElement('[data-id="latest-output"]'),+ attachTo: { element: '[data-id="latest-output"]', on: "top" },+ beforeShowPromise: () =>+ new Promise((resolve) => {+ setTimeout(() => {+ waitForElement('[data-id="latest-output"]').then(resolve);+ }, 100);+ }),buttons: [- {- text: "Back",- action: tour.back,- },{text: "Next",action: tour.next,