-
-
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.
✨ Add back Make.com and implement help doc buttons
- Loading branch information
1 parent
cfcecaa
commit d75eceb
Showing
12 changed files
with
168 additions
and
47 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
51 changes: 51 additions & 0 deletions
51
apps/builder/src/features/blocks/integrations/makeCom/components/MakeComSettings.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 { | ||
Alert, | ||
AlertIcon, | ||
Button, | ||
Input, | ||
Link, | ||
Stack, | ||
Text, | ||
} from '@chakra-ui/react' | ||
import { ExternalLinkIcon } from '@/components/icons' | ||
import { useTypebot } from '@/features/editor' | ||
import { MakeComBlock } from 'models' | ||
import React from 'react' | ||
import { byId } from 'utils' | ||
|
||
type Props = { | ||
block: MakeComBlock | ||
} | ||
|
||
export const MakeComSettings = ({ block }: Props) => { | ||
const { webhooks } = useTypebot() | ||
const webhook = webhooks.find(byId(block.webhookId)) | ||
|
||
return ( | ||
<Stack spacing={4}> | ||
<Alert | ||
status={webhook?.url ? 'success' : 'info'} | ||
bgColor={webhook?.url ? undefined : 'blue.50'} | ||
rounded="md" | ||
> | ||
<AlertIcon /> | ||
{webhook?.url ? ( | ||
<>Your scenario is correctly configured 🚀</> | ||
) : ( | ||
<Stack> | ||
<Text>Head up to Make.com to configure this block:</Text> | ||
<Button | ||
as={Link} | ||
href="https://www.make.com/en/integrations/typebot" | ||
isExternal | ||
colorScheme="blue" | ||
> | ||
<Text mr="2">Make.com</Text> <ExternalLinkIcon /> | ||
</Button> | ||
</Stack> | ||
)} | ||
</Alert> | ||
{webhook?.url && <Input value={webhook?.url} isDisabled />} | ||
</Stack> | ||
) | ||
} |
3 changes: 3 additions & 0 deletions
3
apps/builder/src/features/blocks/integrations/makeCom/components/index.ts
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,3 @@ | ||
export * from './MakeComLogo' | ||
export * from './MakeComContent' | ||
export * from './MakeComSettings' |
3 changes: 1 addition & 2 deletions
3
apps/builder/src/features/blocks/integrations/makeCom/index.ts
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,2 +1 @@ | ||
export { MakeComLogo } from './components/MakeComLogo' | ||
export { MakeComNodeContent } from './components/MakeComNodeContent' | ||
export * from './components' |
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
2 changes: 2 additions & 0 deletions
2
apps/builder/src/features/blocks/integrations/pabbly/components/index.ts
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,2 @@ | ||
export * from './PabblyConnectContent' | ||
export * from './PabblyConnectLogo' |
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,2 +1 @@ | ||
export { PabblyConnectLogo } from './components/PabblyConnectLogo' | ||
export { PabblyConnectNodeContent } from './components/PabblyConnectNodeContent' | ||
export * from './components' |
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
80 changes: 80 additions & 0 deletions
80
...er/src/features/graph/components/Nodes/BlockNode/SettingsPopoverContent/HelpDocButton.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,80 @@ | ||
import { BuoyIcon } from '@/components/icons' | ||
import { Button, Link } from '@chakra-ui/react' | ||
import { | ||
BlockWithOptions, | ||
InputBlockType, | ||
IntegrationBlockType, | ||
LogicBlockType, | ||
} from 'models' | ||
import React from 'react' | ||
|
||
type HelpDocButtonProps = { | ||
blockType: BlockWithOptions['type'] | ||
} | ||
|
||
export const HelpDocButton = ({ blockType }: HelpDocButtonProps) => { | ||
const helpDocUrl = getHelpDocUrl(blockType) | ||
|
||
if (helpDocUrl === null) return null | ||
|
||
return ( | ||
<Button | ||
as={Link} | ||
leftIcon={<BuoyIcon />} | ||
size="xs" | ||
href={helpDocUrl} | ||
isExternal | ||
> | ||
Help | ||
</Button> | ||
) | ||
} | ||
|
||
const getHelpDocUrl = (blockType: BlockWithOptions['type']): string | null => { | ||
switch (blockType) { | ||
case LogicBlockType.TYPEBOT_LINK: | ||
return 'https://docs.typebot.io/editor/blocks/logic/typebot-link' | ||
case LogicBlockType.SET_VARIABLE: | ||
return 'https://docs.typebot.io/editor/blocks/logic/set-variable' | ||
case LogicBlockType.REDIRECT: | ||
return 'https://docs.typebot.io/editor/blocks/logic/redirect' | ||
case LogicBlockType.CODE: | ||
return 'https://docs.typebot.io/editor/blocks/logic/code' | ||
case InputBlockType.TEXT: | ||
return 'https://docs.typebot.io/editor/blocks/inputs/text' | ||
case InputBlockType.NUMBER: | ||
return 'https://docs.typebot.io/editor/blocks/inputs/number' | ||
case InputBlockType.EMAIL: | ||
return 'https://docs.typebot.io/editor/blocks/inputs/email' | ||
case InputBlockType.URL: | ||
return 'https://docs.typebot.io/editor/blocks/inputs/website' | ||
case InputBlockType.DATE: | ||
return 'https://docs.typebot.io/editor/blocks/inputs/date' | ||
case InputBlockType.PHONE: | ||
return 'https://docs.typebot.io/editor/blocks/inputs/phone-number' | ||
case InputBlockType.CHOICE: | ||
return 'https://docs.typebot.io/editor/blocks/inputs/buttons' | ||
case InputBlockType.PAYMENT: | ||
return 'https://docs.typebot.io/editor/blocks/inputs/payment' | ||
case InputBlockType.RATING: | ||
return 'https://docs.typebot.io/editor/blocks/inputs/rating' | ||
case InputBlockType.FILE: | ||
return 'https://docs.typebot.io/editor/blocks/inputs/file-upload' | ||
case IntegrationBlockType.EMAIL: | ||
return 'https://docs.typebot.io/editor/blocks/integrations/email' | ||
case IntegrationBlockType.CHATWOOT: | ||
return 'https://docs.typebot.io/editor/blocks/integrations/chatwoot' | ||
case IntegrationBlockType.GOOGLE_ANALYTICS: | ||
return 'https://docs.typebot.io/editor/blocks/integrations/ga' | ||
case IntegrationBlockType.GOOGLE_SHEETS: | ||
return 'https://docs.typebot.io/editor/blocks/integrations/google-sheets' | ||
case IntegrationBlockType.ZAPIER: | ||
return 'https://docs.typebot.io/editor/blocks/integrations/zapier' | ||
case IntegrationBlockType.PABBLY_CONNECT: | ||
return 'https://docs.typebot.io/editor/blocks/integrations/pabbly' | ||
case IntegrationBlockType.WEBHOOK: | ||
return 'https://docs.typebot.io/editor/blocks/integrations/webhook' | ||
default: | ||
return null | ||
} | ||
} |
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
d75eceb
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
bot.joof.it
yoda.riku.ai
bergamo.store
bot.tvbeat.it
app.yvon.earth
bots.bridge.ai
chat.hayuri.id
gollum.riku.ai
talk.gocare.io
bot.jesopizz.it
fitness.riku.ai
bot.contakit.com
zap.fundviser.in
bot.rihabilita.it
viewer.typebot.io
bot.danyservice.it
bot.dsignagency.com
chatbot.matthesv.de
demo.wemakebots.xyz
88584434.therpm.club
92109660.therpm.club
bot.barrettamario.it
hello.advergreen.com
bot.coachayongzul.com
bot.digitalpointer.id
bot.eikju.photography
bot.outstandbrand.com
bot.robertohairlab.it
criar.somaperuzzo.com
bot.ilmuseoaiborghi.it
bot.pratikmandalia.com
form.bridesquadapp.com
michaeljackson.riku.ai
87656003.actualizar.xyz
88152257.actualizar.xyz
91375310.actualizar.xyz
arrivalx2.wpwakanda.com
bot.hotelplayarimini.it
link.venturasuceder.com
invite.bridesquadapp.com
bot.amicidisanfaustino.it
chat.thehomebuyersusa.com
forms.hiabhaykulkarni.com
typebot-viewer.vercel.app
bot.adventureconsulting.hu
casestudyemb.wpwakanda.com
chat.atlasoutfittersk9.com
herbalife.barrettamario.it
homepageonly.wpwakanda.com
liveconvert.kandalearn.com
mainmenu1one.wpwakanda.com
tarian.theiofoundation.org
bot.pinpointinteractive.com
bot.polychromes-project.com
bot.seidinembroseanchetu.it
liveconvert2.kandalearn.com
bot.seidibergamoseanchetu.it
forms.escoladeautomacao.com.br
viewer-v2-typebot-io.vercel.app
bot.studiotecnicoimmobiliaremerelli.it
viewer-v2-git-main-typebot-io.vercel.app
d75eceb
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-alpha – ./apps/viewer
ns8.vn
yobot.me
247987.com
8jours.top
bot.aws.bj
bot.bbc.bj
finplex.be
sat.cr8.ai
bot.aipr.kr
minipost.uk
bt.id8rs.com
bot.krdfy.com
goldorayo.com
signup.cr8.ai
vhpage.cr8.ai
am.nigerias.io
an.nigerias.io
ar.nigerias.io
bot.enreso.org
bot.lalmon.com
ticketfute.com
apo.nigerias.io
apr.nigerias.io
aso.nigerias.io
bot.ageenda.com
bot.artiweb.app
bot.devitus.com
bot.tc-mail.com
chat.sureb4.com
eventhub.com.au
games.klujo.com
sakuranembro.it
typebot.aloe.do
bot.piccinato.co
botc.ceox.com.br
clo.closeer.work
faqs.nigerias.io
feedback.ofx.one
form.syncwin.com
kw.wpwakanda.com
myrentalhost.com
stan.vselise.com
start.taxtree.io
typebot.aloe.bot
voicehelp.cr8.ai
app.chatforms.net
bot.agfunnel.tech
bot.hostnation.de
bot.phuonghub.com
bot.reviewzer.com
cares.urlabout.me
fmm.wpwakanda.com
offer.botscientis.us
sellmycarglasgow.com
talkbot.agfunnel.com
tenorioadvogados.com
uppity.wpwakanda.com
abutton.wpwakanda.com
aidigitalmarketing.kr
bbutton.wpwakanda.com
bot.incusservices.com
bot.meuesocial.com.br
bot.ramonmatos.com.br
cdd.searchcube.com.sg
chat.missarkansas.org
chatbot.ownacademy.co
sbutton.wpwakanda.com
815639944.21000000.one
aplicacao.bmind.com.br
apply.ansuraniphone.my
bbutton.wpwwakanda.com
bot.louismarcondes.com
bot.t20worldcup.com.au
c23111azqw.nigerias.io
felipewelington.com.br
form.searchcube.com.sg
gcase.barrettamario.it
help.giversforgood.com
info.clickasuransi.com
kodawariab736.skeep.it
my.swamprecordsgnv.com
premium.kandabrand.com
report.gratirabbit.com
resume.gratirabbit.com
83242573.actualizar.xyz
bot.blackboxtips.com.br
bot.upgradesolutions.eu
help.comebackreward.com
mainmenu.diddancing.com
register.kandabrand.com
signup.hypemarketing.in
subfooter.wpwakanda.com
survey.hypemarketing.in
testbot.afterorigin.com
91181264.your-access.one
ai.chromebookstoreph.com
form.sergiolimajr.com.br
hunterbot.saleshunter.ai
instant.botscientis.info
link.cascadigital.com.br
d75eceb
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:
landing-page-v2 – ./apps/landing-page
typebot.io
www.get-typebot.com
landing-page-v2-git-main-typebot-io.vercel.app
landing-page-v2-typebot-io.vercel.app
get-typebot.com
www.typebot.io
d75eceb
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
app.typebot.io
builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app
d75eceb
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:
docs – ./apps/docs
docs-typebot-io.vercel.app
docs-git-main-typebot-io.vercel.app
docs.typebot.io