Spaces:
Paused
Paused
File size: 1,439 Bytes
0b9dc2e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | import type { TFunction } from 'i18next';
import type { Tour } from 'onborda/dist/types';
export const CHAT_TOUR_NAME = 'chat-onboarding';
export const buildChatTour = (t: TFunction): Tour => ({
tour: CHAT_TOUR_NAME,
steps: [
{
icon: null,
title: t('tour.createAgent.title'),
content: t('tour.createAgent.content'),
selector: '#tour-create-agent',
side: 'bottom',
showControls: false,
pointerPadding: 8,
pointerRadius: 8,
},
{
icon: null,
title: t('tour.createSession.title'),
content: t('tour.createSession.content'),
selector: '#tour-create-session',
side: 'right',
showControls: false,
pointerPadding: 6,
pointerRadius: 6,
},
{
icon: null,
title: t('tour.llmSelect.title'),
content: t('tour.llmSelect.content'),
selector: '#tour-llm-select',
side: 'bottom',
showControls: false,
pointerPadding: 6,
pointerRadius: 8,
},
{
icon: null,
title: t('tour.permissionMode.title'),
content: t('tour.permissionMode.content'),
selector: '#tour-permission-mode',
side: 'bottom-right',
showControls: false,
pointerPadding: 6,
pointerRadius: 8,
},
{
icon: null,
title: t('tour.chatInput.title'),
content: t('tour.chatInput.content'),
selector: '#tour-chat-input',
side: 'top',
showControls: false,
pointerPadding: 6,
pointerRadius: 16,
},
],
});
|