-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
66f3e7e
commit a58600a
Showing
78 changed files
with
2,399 additions
and
800 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.cm-editor { | ||
height: 100%; | ||
outline: 0px solid transparent !important; | ||
} | ||
|
||
.cm-scroller { | ||
border-radius: 5px; | ||
border: 1px solid #e5e7eb; | ||
} |
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
51 changes: 51 additions & 0 deletions
51
...lockNode/StepNode/SettingsPopoverContent/bodies/ConditionSettingsBody/ComparisonsItem.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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { Stack } from '@chakra-ui/react' | ||
import { DropdownList } from 'components/shared/DropdownList' | ||
import { InputWithVariableButton } from 'components/shared/InputWithVariableButton' | ||
import { TableListItemProps } from 'components/shared/TableList' | ||
import { VariableSearchInput } from 'components/shared/VariableSearchInput' | ||
import { Comparison, Variable, ComparisonOperators } from 'models' | ||
|
||
export const ComparisonItem = ({ | ||
item, | ||
onItemChange, | ||
}: TableListItemProps<Comparison>) => { | ||
const handleSelectVariable = (variable?: Variable) => { | ||
if (variable?.id === item.variableId) return | ||
onItemChange({ ...item, variableId: variable?.id }) | ||
} | ||
|
||
const handleSelectComparisonOperator = ( | ||
comparisonOperator: ComparisonOperators | ||
) => { | ||
if (comparisonOperator === item.comparisonOperator) return | ||
onItemChange({ ...item, comparisonOperator }) | ||
} | ||
const handleChangeValue = (value: string) => { | ||
if (value === item.value) return | ||
onItemChange({ ...item, value }) | ||
} | ||
|
||
return ( | ||
<Stack p="4" rounded="md" flex="1" borderWidth="1px"> | ||
<VariableSearchInput | ||
initialVariableId={item.variableId} | ||
onSelectVariable={handleSelectVariable} | ||
placeholder="Search for a variable" | ||
/> | ||
<DropdownList<ComparisonOperators> | ||
currentItem={item.comparisonOperator} | ||
onItemSelect={handleSelectComparisonOperator} | ||
items={Object.values(ComparisonOperators)} | ||
placeholder="Select an operator" | ||
/> | ||
{item.comparisonOperator !== ComparisonOperators.IS_SET && ( | ||
<InputWithVariableButton | ||
delay={100} | ||
initialValue={item.value ?? ''} | ||
onChange={handleChangeValue} | ||
placeholder="Type a value..." | ||
/> | ||
)} | ||
</Stack> | ||
) | ||
} |
160 changes: 0 additions & 160 deletions
160
...lockNode/StepNode/SettingsPopoverContent/bodies/ConditionSettingsBody/ComparisonsList.tsx
This file was deleted.
Oops, something went wrong.
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.
a58600a
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:
builder-v2 – ./apps/builder
builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app
next.typebot.io
a58600a
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-typebot-io.vercel.app
viewer-v2-git-main-typebot-io.vercel.app
typebot-io.vercel.app