docs: 📝 Add General settings
This commit is contained in:
@@ -12,6 +12,7 @@ import { useWorkspace } from 'contexts/WorkspaceContext'
|
|||||||
import { GeneralSettings } from 'models'
|
import { GeneralSettings } from 'models'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { isFreePlan } from 'services/workspace'
|
import { isFreePlan } from 'services/workspace'
|
||||||
|
import { isDefined } from 'utils'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
generalSettings: GeneralSettings
|
generalSettings: GeneralSettings
|
||||||
@@ -76,13 +77,14 @@ export const GeneralSettingsForm = ({
|
|||||||
label="Prefill input"
|
label="Prefill input"
|
||||||
initialValue={generalSettings.isInputPrefillEnabled ?? true}
|
initialValue={generalSettings.isInputPrefillEnabled ?? true}
|
||||||
onCheckChange={handleInputPrefillChange}
|
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
|
<SwitchWithLabel
|
||||||
id="new-result"
|
id="new-result"
|
||||||
label="Create new session on page refresh"
|
label="Remember session"
|
||||||
initialValue={generalSettings.isNewResultOnRefreshEnabled ?? false}
|
initialValue={isDefined(generalSettings.isNewResultOnRefreshEnabled) ? !generalSettings.isNewResultOnRefreshEnabled : true}
|
||||||
onCheckChange={handleNewResultOnRefreshChange}
|
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
|
<SwitchWithLabel
|
||||||
id="query-params"
|
id="query-params"
|
||||||
|
|||||||
@@ -1,5 +1,16 @@
|
|||||||
# Settings
|
# 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
|
## 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.
|
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.
|
||||||
|
|||||||
BIN
apps/docs/static/img/settings/general.png
vendored
Normal file
BIN
apps/docs/static/img/settings/general.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 166 KiB |
Reference in New Issue
Block a user