Skip to content

Commit

Permalink
docs: 📝 Add General settings
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jun 29, 2022
1 parent f4c81f2 commit 7caac2b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/builder/components/settings/GeneralSettingsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { useWorkspace } from 'contexts/WorkspaceContext'
import { GeneralSettings } from 'models'
import React from 'react'
import { isFreePlan } from 'services/workspace'
import { isDefined } from 'utils'

type Props = {
generalSettings: GeneralSettings
Expand Down Expand Up @@ -76,13 +77,14 @@ export const GeneralSettingsForm = ({
label="Prefill input"
initialValue={generalSettings.isInputPrefillEnabled ?? true}
onCheckChange={handleInputPrefillChange}
moreInfoContent="Inputs are automatically pre-filled whenever its saving variable has a value"
moreInfoContent="Inputs are automatically pre-filled whenever their associated variable has a value"
/>
<SwitchWithLabel
id="new-result"
label="Create new session on page refresh"
initialValue={generalSettings.isNewResultOnRefreshEnabled ?? false}
label="Remember session"
initialValue={isDefined(generalSettings.isNewResultOnRefreshEnabled) ? !generalSettings.isNewResultOnRefreshEnabled : true}
onCheckChange={handleNewResultOnRefreshChange}
moreInfoContent="If the user refreshes the page, its existing results will be overwritten. Disable this if you want to create a new results every time the user refreshes the page."
/>
<SwitchWithLabel
id="query-params"
Expand Down
11 changes: 11 additions & 0 deletions apps/docs/docs/editor/settings.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Settings

## General

The general settings represent the general behaviors of your typebot.

<img src="/img/settings/general.png" width="400" alt="General" />

- **Typebot.io branding**: If enabled, will show a "Made with Typebot" badge displayed at the bottom of your bot.
- **Prefill input**: If enabled, the inputs will be automatically pre-filled whenever their associated variable has a value.
- **Remember session**: If enabled, when a user refreshes the page, its existing answers will be overwritten.
- **Hide query params on bot start**: If enabled, the query params will be hidden when the bot starts.

## Typing emulation

By default, your typebot will emulate a certain typing speed. It is considered a good default as slow as a human typing speed and it's not too fast so that multiple bubble can be readable sequentially.
Expand Down
Binary file added apps/docs/static/img/settings/general.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

4 comments on commit 7caac2b

@vercel
Copy link

@vercel vercel bot commented on 7caac2b Jun 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 7caac2b Jun 29, 2022

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

@vercel
Copy link

@vercel vercel bot commented on 7caac2b Jun 29, 2022

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

bot.aws.bj
vhpage.cr8.ai
an.nigerias.io
apo.nigerias.io
sat.cr8.ai
apr.nigerias.io
aso.nigerias.io
ar.nigerias.io
am.nigerias.io
bt.id8rs.com
chat.sureb4.com
sakuranembro.it
feedback.ofx.one
games.klujo.com
bot.piccinato.co
eventhub.com.au
bot.upfunnel.art
clo.closeer.work
faqs.nigerias.io
stan.vselise.com
bot.maitempah.com
app.chatforms.net
ov2.wpwakanda.com
ov1.wpwakanda.com
gentleman-shop.fr
voicehelp.cr8.ai
ov3.wpwakanda.com
sell.applepie.pro
goalsettingbot.com
admin.applepie.pro
this-is-a-test.com
zap.techadviser.in
bot.ansuraniphone.my
bot.eventhub.com.au
typebot.stillio.com
order.maitempah.com
bot.cotemeuplano.com
forms.webisharp.com
chat.hayurihijab.com
get.freebotoffer.xyz
abutton.wpwakanda.com
bbutton.wpwakanda.com
bot.incusservices.com
sbutton.wpwakanda.com
bot.meuesocial.com.br
cdd.searchcube.com.sg
chat.missarkansas.org
apply.ansuraniphone.my
c23111azqw.nigerias.io
bbutton.wpwwakanda.com
felipewelington.com.br
form.searchcube.com.sg
gcase.barrettamario.it
mainmenu.diddancing.com
view.onlinebotdemo.xyz
info.clickasuransi.com
kodawariab736.skeep.it
subfooter.wpwakanda.com
83242573.actualizar.xyz
91181264.your-access.one
hunterbot.saleshunter.ai
form.sergiolimajr.com.br
type.opaulovieira.com.br
boyfriend-breakup.riku.ai
aibot.angrybranding.co.uk
bot.cabinrentalagency.com
type.dericsoncalari.com.br
piazzatorre.barrettamario.it
type.talitasouzamarques.com.br
designguide.techyscouts.com
onboarding.libertydreamcare.ie
agendamento.sergiolimajr.com.br
bookings.littlepartymonkeys.com
bot.comercializadoraomicron.com
personal-trainer.barrettamario.it
preagendamento.sergiolimajr.com.br
studiotecnicoimmobiliaremerelli.it
viewer-v2-alpha-git-main-typebot-io.vercel.app
viewer-v2-alpha-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 7caac2b Jun 29, 2022

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

Please sign in to comment.