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.
fix(frontend): restore broken tutorial in builder (#12377)
Abhimanyu Yadav1c2953d61b1d
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/tutorial/helpers/blocks.ts b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/tutorial/helpers/blocks.tsindex 040991450f..0de0a168b6 100644--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/tutorial/helpers/blocks.ts+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/tutorial/helpers/blocks.ts@@ -75,7 +75,7 @@ export const getSecondCalculatorNode = () => {export const getFormContainerSelector = (blockId: string): string | null => {const node = getNodeByBlockId(blockId);if (node) {- return `[data-id="form-creator-container-${node.id}"]`;+ return `[data-id="form-creator-container-${node.id}-node"]`;}return null;};diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/tutorial/styles.ts b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/tutorial/styles.tsindex 1b0cc5359e..52a1b29c2e 100644--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/tutorial/styles.ts+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/tutorial/styles.ts@@ -7,6 +7,7 @@** Typography (body, small, action, info, tip, warning) uses Tailwind utilities directly in steps.ts*/+import "shepherd.js/dist/css/shepherd.css";import "./tutorial.css";export const injectTutorialStyles = () => {diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/tutorial/tutorial.css b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/tutorial/tutorial.cssindex 6564a61888..a875aec5aa 100644--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/tutorial/tutorial.css+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/tutorial/tutorial.css@@ -1,3 +1,14 @@+.new-builder-tutorial-disable {+ opacity: 0.3 !important;+ pointer-events: none !important;+ filter: grayscale(100%) !important;+}++.new-builder-tutorial-highlight {+ position: relative;+ z-index: 10;+}+.new-builder-tutorial-highlight * {opacity: 1 !important;filter: none !important;