Skip to content

Commit

Permalink
add info message at website chatbot settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
breeg554 committed Oct 16, 2024
1 parent 18aeb15 commit 4ea2033
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ import { SelectField } from '~/components/form/fields/select.field';
import { TextInputField } from '~/components/form/fields/text.field';
import { SubmitButton } from '~/components/form/submit';
import { IconButton } from '~/components/iconButton';
import { BasicLink } from '~/components/link/BasicLink';
import { toSelectOption } from '~/components/pages/pipelines/interface/interface.utils';
import type {
IInterfaceConfig,
IPipeline,
} from '~/components/pages/pipelines/pipeline.types';
import { Button } from '~/components/ui/button';
import { Label } from '~/components/ui/label';
import { routes } from '~/utils/routes.utils';

import { schema } from './schema';

Expand Down Expand Up @@ -159,6 +161,17 @@ export const InterfaceConfigForm: React.FC<InterfaceConfigFormProps> = ({
</Field>
</div>

<p className="text-sm">
<BasicLink
target="_blank"
className="font-semibold hover:underline"
to={routes.pipelineSettings(pipeline.organization_id, pipeline.id)}
>
Enable logs
</BasicLink>{' '}
to view the chatbot's history.
</p>

<FieldArray<string> name="webchat.suggested_messages">
{(items, { push, remove }) => (
<SuggestedMessages items={items} onAdd={push} onRemove={remove} />
Expand Down

0 comments on commit 4ea2033

Please sign in to comment.