Skip to content

Commit

Permalink
add back data-id for badge within the blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Bentlybro committed Oct 3, 2024
1 parent ef72ad2 commit 0f54d74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions autogpt_platform/frontend/src/components/CustomNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ export function CustomNode({
>
<Badge
variant="default"
data-id={`badge-${id}-${data.status}`}
className={cn(
"mr-4 flex min-w-[114px] items-center justify-center rounded-3xl text-center text-xs font-semibold",
hasConfigErrors || hasOutputError
Expand Down
6 changes: 3 additions & 3 deletions autogpt_platform/frontend/src/components/tutorial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,12 @@ export const startTutorial = (
id: "wait-for-processing",
title: "Processing",
text: "Let's wait for the block to finish being processed...",
attachTo: { element: '[data-id$="-QUEUED"]', on: "bottom" },
attachTo: { element: '[data-id^="badge-"][data-id$="-QUEUED"]', on: "bottom" },
buttons: [],
beforeShowPromise: () => waitForElement('[data-id$="-QUEUED"]'),
beforeShowPromise: () => waitForElement('[data-id^="badge-"][data-id$="-QUEUED"]'),
when: {
show: () => {
waitForElement('[data-id$="-COMPLETED"]').then(() => {
waitForElement('[data-id^="badge-"][data-id$="-COMPLETED"]').then(() => {
tour.next();
});
},
Expand Down

0 comments on commit 0f54d74

Please sign in to comment.