-
-
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.
Showing
32 changed files
with
464 additions
and
62 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import test, { expect } from '@playwright/test' | ||
import { createTypebots } from 'utils/playwright/databaseActions' | ||
import { parseDefaultGroupWithBlock } from 'utils/playwright/databaseHelpers' | ||
import cuid from 'cuid' | ||
import { defaultChatwootOptions, IntegrationBlockType } from 'models' | ||
import { typebotViewer } from 'utils/playwright/testHelpers' | ||
|
||
const typebotId = cuid() | ||
|
||
const chatwootTestWebsiteToken = 'tueXiiqEmrWUCZ4NUyoR7nhE' | ||
|
||
test.describe('Chatwoot block', () => { | ||
test('should be configurable', async ({ page }) => { | ||
await createTypebots([ | ||
{ | ||
id: typebotId, | ||
...parseDefaultGroupWithBlock({ | ||
type: IntegrationBlockType.CHATWOOT, | ||
options: defaultChatwootOptions, | ||
}), | ||
}, | ||
]) | ||
|
||
await page.goto(`/typebots/${typebotId}/edit`) | ||
await page.getByText('Configure...').click() | ||
await expect(page.getByLabel('Base URL')).toHaveAttribute( | ||
'value', | ||
defaultChatwootOptions.baseUrl | ||
) | ||
await page.getByLabel('Website token').fill(chatwootTestWebsiteToken) | ||
await expect(page.getByText('Open Chatwoot')).toBeVisible() | ||
await page.getByRole('button', { name: 'Set user details' }).click() | ||
await page.getByLabel('ID').fill('123') | ||
await page.getByLabel('Name').fill('John Doe') | ||
await page.getByLabel('Email').fill('[email protected]') | ||
await page.getByLabel('Avatar URL').fill('https://domain.com/avatar.png') | ||
await page.getByLabel('Phone number').fill('+33654347543') | ||
await page.getByRole('button', { name: 'Preview' }).click() | ||
await expect( | ||
page.getByText("Chatwoot won't open in preview mode").nth(0) | ||
).toBeVisible() | ||
}) | ||
}) |
13 changes: 13 additions & 0 deletions
13
apps/builder/features/chatwoot/components/ChatwootBlockNodeLabel.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,13 @@ | ||
import { Text } from '@chakra-ui/react' | ||
import { ChatwootBlock } from 'models' | ||
|
||
type Props = { | ||
block: ChatwootBlock | ||
} | ||
|
||
export const ChatwootBlockNodeLabel = ({ block }: Props) => | ||
block.options.websiteToken.length === 0 ? ( | ||
<Text color="gray.500">Configure...</Text> | ||
) : ( | ||
<Text>Open Chatwoot</Text> | ||
) |
29 changes: 29 additions & 0 deletions
29
apps/builder/features/chatwoot/components/ChatwootLogo.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,29 @@ | ||
import { Icon, IconProps } from '@chakra-ui/react' | ||
|
||
export const ChatwootLogo = (props: IconProps) => ( | ||
<Icon | ||
viewBox="0 0 512 512" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
{...props} | ||
> | ||
<g | ||
id="Square-logo" | ||
stroke="none" | ||
stroke-width="1" | ||
fill="none" | ||
fill-rule="evenodd" | ||
> | ||
<g id="chatwoot_logo" fill-rule="nonzero"> | ||
<circle id="Oval" fill="#47A7F6" cx="256" cy="256" r="256"></circle> | ||
<path | ||
d="M362.807947,368.807947 L244.122956,368.807947 C178.699407,368.807947 125.456954,315.561812 125.456954,250.12177 C125.456954,184.703089 178.699407,131.456954 244.124143,131.456954 C309.565494,131.456954 362.807947,184.703089 362.807947,250.12177 L362.807947,368.807947 Z" | ||
id="Fill-1" | ||
stroke="#FFFFFF" | ||
stroke-width="6" | ||
fill="#FFFFFF" | ||
></path> | ||
</g> | ||
</g> | ||
</Icon> | ||
) |
98 changes: 98 additions & 0 deletions
98
apps/builder/features/chatwoot/components/ChatwootSettingsForm.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,98 @@ | ||
import { | ||
Accordion, | ||
AccordionButton, | ||
AccordionIcon, | ||
AccordionItem, | ||
AccordionPanel, | ||
Stack, | ||
} from '@chakra-ui/react' | ||
import { Input } from 'components/shared/Textbox' | ||
import { ChatwootOptions } from 'models' | ||
import React from 'react' | ||
|
||
type Props = { | ||
options: ChatwootOptions | ||
onOptionsChange: (options: ChatwootOptions) => void | ||
} | ||
|
||
export const ChatwootSettingsForm = ({ options, onOptionsChange }: Props) => { | ||
return ( | ||
<Stack spacing={4}> | ||
<Input | ||
isRequired | ||
label="Base URL" | ||
defaultValue={options.baseUrl} | ||
onChange={(baseUrl: string) => { | ||
onOptionsChange({ ...options, baseUrl }) | ||
}} | ||
withVariableButton={false} | ||
/> | ||
<Input | ||
isRequired | ||
label="Website token" | ||
defaultValue={options.websiteToken} | ||
onChange={(websiteToken) => | ||
onOptionsChange({ ...options, websiteToken }) | ||
} | ||
moreInfoTooltip="Can be found in Chatwoot under Settings > Inboxes > Settings > Configuration, in the code snippet." | ||
/> | ||
<Accordion allowMultiple> | ||
<AccordionItem> | ||
<AccordionButton justifyContent="space-between"> | ||
Set user details | ||
<AccordionIcon /> | ||
</AccordionButton> | ||
<AccordionPanel pb={4} as={Stack} spacing="4"> | ||
<Input | ||
label="ID" | ||
defaultValue={options.user?.id} | ||
onChange={(id: string) => { | ||
onOptionsChange({ ...options, user: { ...options.user, id } }) | ||
}} | ||
/> | ||
<Input | ||
label="Name" | ||
defaultValue={options.user?.name} | ||
onChange={(name: string) => { | ||
onOptionsChange({ | ||
...options, | ||
user: { ...options.user, name }, | ||
}) | ||
}} | ||
/> | ||
<Input | ||
label="Email" | ||
defaultValue={options.user?.email} | ||
onChange={(email: string) => { | ||
onOptionsChange({ | ||
...options, | ||
user: { ...options.user, email }, | ||
}) | ||
}} | ||
/> | ||
<Input | ||
label="Avatar URL" | ||
defaultValue={options.user?.avatarUrl} | ||
onChange={(avatarUrl: string) => { | ||
onOptionsChange({ | ||
...options, | ||
user: { ...options.user, avatarUrl }, | ||
}) | ||
}} | ||
/> | ||
<Input | ||
label="Phone number" | ||
defaultValue={options.user?.phoneNumber} | ||
onChange={(phoneNumber: string) => { | ||
onOptionsChange({ | ||
...options, | ||
user: { ...options.user, phoneNumber }, | ||
}) | ||
}} | ||
/> | ||
</AccordionPanel> | ||
</AccordionItem> | ||
</Accordion> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { ChatwootLogo } from './ChatwootLogo' | ||
export { ChatwootBlockNodeLabel } from './ChatwootBlockNodeLabel' | ||
export { ChatwootSettingsForm } from './ChatwootSettingsForm' |
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 @@ | ||
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
Oops, something went wrong.
ea84039
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
landing-page-v2-git-main-typebot-io.vercel.app
get-typebot.com
www.get-typebot.com
typebot.io
landing-page-v2-typebot-io.vercel.app
www.typebot.io
ea84039
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
ea84039
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-typebot-io.vercel.app
builder-v2-git-main-typebot-io.vercel.app
app.typebot.io
ea84039
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.typebot.io
docs-git-main-typebot-io.vercel.app
ea84039
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
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.tc-mail.com
chat.sureb4.com
eventhub.com.au
games.klujo.com
sakuranembro.it
typebot.aloe.do
bot.piccinato.co
bot.upfunnel.art
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.maitempah.com
bot.phuonghub.com
bot.reviewzer.com
cares.urlabout.me
fmm.wpwakanda.com
gentleman-shop.fr
k1.kandabrand.com
lb.ticketfute.com
ov2.wpwakanda.com
ov3.wpwakanda.com
reward.onlinebotdemo.xyz
type.opaulovieira.com.br
aibot.angrybranding.co.uk
bot.aidigitalmarketing.kr
bot.arraesecenteno.com.br
bot.blackboxsports.com.br
bot.cabinrentalagency.com
boyfriend-breakup.riku.ai
brigadeirosemdrama.com.br
chat.ertcrebateportal.com
chat.thisiscrushhouse.com
sellmyharleylouisiana.com
verfica.botmachine.com.br
configurator.bouclidom.com
help.atlasoutfittersk9.com
ted.meujalecobrasil.com.br
type.dericsoncalari.com.br
chatbot.berbelanjabiz.trade
designguide.techyscouts.com
presente.empresarias.com.mx
sell.sellthemotorhome.co.uk
anamnese.odontopavani.com.br
austin.channelautomation.com
bot.marketingplusmindset.com
piazzatorre.barrettamario.it
requests.swamprecordsgnv.com
type.cookieacademyonline.com
bot.brigadeirosemdrama.com.br
onboarding.libertydreamcare.ie
type.talitasouzamarques.com.br
agendamento.sergiolimajr.com.br
anamnese.clinicamegasjdr.com.br
bookings.littlepartymonkeys.com
bot.comercializadoraomicron.com
yourfeedback.comebackreward.com
personal-trainer.barrettamario.it
preagendamento.sergiolimajr.com.br
studiotecnicoimmobiliaremerelli.it
download.thailandmicespecialist.com
register.thailandmicespecialist.com
viewer-v2-alpha-typebot-io.vercel.app
pesquisa.escolamodacomproposito.com.br
anamnese.clinicaramosodontologia.com.br
viewer-v2-alpha-git-main-typebot-io.vercel.app