-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c1e0fd
commit 9fa4c7d
Showing
114 changed files
with
1,541 additions
and
1,628 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 0 additions & 62 deletions
62
apps/builder/components/analytics/graph/blocks/StartBlockNode.tsx
This file was deleted.
Oops, something went wrong.
33 changes: 15 additions & 18 deletions
33
apps/builder/components/analytics/graph/blocks/StepsList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,24 @@ | ||
import { Flex, Stack } from '@chakra-ui/react' | ||
import { StartStep, Step } from 'bot-engine' | ||
import { StepNodeOverlay } from 'components/board/graph/BlockNode/StepNode' | ||
import { useTypebot } from 'contexts/TypebotContext/TypebotContext' | ||
|
||
export const StepsList = ({ | ||
steps, | ||
}: { | ||
blockId: string | ||
steps: Step[] | [StartStep] | ||
}) => { | ||
export const StepsList = ({ stepIds }: { stepIds: string[] }) => { | ||
const { typebot } = useTypebot() | ||
return ( | ||
<Stack spacing={1} transition="none"> | ||
<Flex h={'2px'} bgColor={'gray.400'} visibility={'hidden'} rounded="lg" /> | ||
{steps.map((step) => ( | ||
<Stack key={step.id} spacing={1}> | ||
<StepNodeOverlay key={step.id} step={step} /> | ||
<Flex | ||
h={'2px'} | ||
bgColor={'gray.400'} | ||
visibility={'hidden'} | ||
rounded="lg" | ||
/> | ||
</Stack> | ||
))} | ||
{typebot && | ||
stepIds.map((stepId) => ( | ||
<Stack key={stepId} spacing={1}> | ||
<StepNodeOverlay step={typebot?.steps.byId[stepId]} /> | ||
<Flex | ||
h={'2px'} | ||
bgColor={'gray.400'} | ||
visibility={'hidden'} | ||
rounded="lg" | ||
/> | ||
</Stack> | ||
))} | ||
</Stack> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
9fa4c7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
viewer-v2 – ./apps/viewer
viewer-v2-git-main-typebot-io.vercel.app
typebot-io.vercel.app
viewer-v2-typebot-io.vercel.app