2
0

Add NPS Survey template

Closes #356
This commit is contained in:
Baptiste Arnaud
2023-03-03 17:21:02 +01:00
parent 79e5aedf00
commit 852cc73511
5 changed files with 767 additions and 21 deletions

View File

@ -102,11 +102,13 @@ export const RatingInputSettings = ({
initialValue={options.isOneClickSubmitEnabled ?? false}
onCheckChange={handleOneClickSubmitChange}
/>
<TextInput
label="Button label:"
defaultValue={options.labels.button}
onChange={handleButtonLabelChange}
/>
{!options.isOneClickSubmitEnabled && (
<TextInput
label="Button label:"
defaultValue={options.labels.button}
onChange={handleButtonLabelChange}
/>
)}
<Stack>
<FormLabel mb="0" htmlFor="variable">
Save answer in a variable:

View File

@ -227,7 +227,6 @@ const NonMemoizedDraggableGroupNode = ({
bg: editableHoverBg,
}}
px="1"
noOfLines={2}
userSelect={'none'}
/>
<EditableInput minW="0" px="1" className="prevent-group-drag" />

View File

@ -5,7 +5,18 @@ export const templates: TemplateProps[] = [
{ name: 'Customer Support', emoji: '😍', fileName: 'customer-support.json' },
{ name: 'Quiz', emoji: '🕹️', fileName: 'quiz.json' },
{ name: 'Lead Scoring', emoji: '🏆', fileName: 'lead-scoring.json' },
{
name: 'NPS Survey',
emoji: '⭐',
fileName: 'nps.json',
isNew: true,
},
{
name: 'User Onboarding',
emoji: '🧑‍🚀',
fileName: 'onboarding.json',
isNew: true,
},
{
name: 'Digital Product Payment',
emoji: '🖼️',
@ -16,16 +27,4 @@ export const templates: TemplateProps[] = [
emoji: '💬',
fileName: 'faq.json',
},
{
name: 'User Onboarding',
emoji: '🧑‍🚀',
fileName: 'onboarding.json',
isNew: true,
},
{
name: 'Conversational Resume',
emoji: '👨‍💼',
fileName: 'customer-support.json',
isComingSoon: true,
},
]