Skip to content

Commit 3d4b5ba

Browse files
committed
minor improvements
1 parent fd51d05 commit 3d4b5ba

File tree

8 files changed

+29
-11
lines changed

8 files changed

+29
-11
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export { NavTour } from './product-tour'
1+
export { NavTour, START_NAV_TOUR_EVENT } from './product-tour'
22
export { START_WORKFLOW_TOUR_EVENT, WorkflowTour } from './workflow-tour'

apps/sim/app/workspace/[workspaceId]/components/product-tour/nav-tour-steps.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,39 @@ export const navTourSteps: Step[] = [
3737
target: '[data-item-id="knowledge-base"]',
3838
title: 'Knowledge Base',
3939
content:
40-
'Build knowledge bases from your documents. Agents use these to answer questions with your own data.',
40+
'Build knowledge bases from your documents. Set up connectors to give your agents realtime access to your data sources from sources like Notion, Drive, Slack, Confluence, and more.',
4141
placement: 'right',
4242
disableBeacon: true,
4343
},
4444
{
4545
target: '[data-item-id="scheduled-tasks"]',
4646
title: 'Scheduled Tasks',
4747
content:
48-
'View and manage workflows running on a schedule. Monitor upcoming and past executions.',
48+
'View and manage background tasks. Set up new tasks, or view the tasks the Mothership is monitoring for upcoming or past executions.',
4949
placement: 'right',
5050
disableBeacon: true,
5151
},
5252
{
5353
target: '[data-item-id="logs"]',
5454
title: 'Logs',
5555
content:
56-
'Monitor every workflow execution. See inputs, outputs, errors, and timing for each run.',
56+
'Monitor every workflow execution. See inputs, outputs, errors, and timing for each run. View analytics on performance and costs, filter previous runs, and view snapshots of the workflow at the time of execution.',
57+
placement: 'right',
58+
disableBeacon: true,
59+
},
60+
{
61+
target: '.tasks-section',
62+
title: 'Tasks',
63+
content:
64+
'Tasks that work for you. Mothership can create, edit, and delete resource throughout the platform. It can also perform actions on your behalf, like sending emails, creating tasks, and more.',
5765
placement: 'right',
5866
disableBeacon: true,
5967
},
6068
{
6169
target: '.workflows-section',
6270
title: 'Workflows',
6371
content:
64-
'All your workflows live here. Create new ones with the + button and organize them into folders.',
72+
'All your workflows live here. Create new ones with the + button and organize them into folders. Deploy your workflows as API, webhook, schedule, or chat widget. Then hit Run to test it out.',
6573
placement: 'right',
6674
disableBeacon: true,
6775
},

apps/sim/app/workspace/[workspaceId]/components/product-tour/product-tour.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const Joyride = dynamic(() => import('react-joyride'), {
1616
})
1717

1818
const NAV_TOUR_STORAGE_KEY = 'sim-nav-tour-completed-v1'
19+
export const START_NAV_TOUR_EVENT = 'start-nav-tour'
1920

2021
/** Shared state passed from the tour component to the tooltip adapter via context */
2122
interface TourState {
@@ -134,7 +135,8 @@ export function NavTour() {
134135
steps: navTourSteps,
135136
storageKey: NAV_TOUR_STORAGE_KEY,
136137
autoStartDelay: 1200,
137-
resettable: false,
138+
resettable: true,
139+
triggerEvent: START_NAV_TOUR_EVENT,
138140
tourName: 'Navigation tour',
139141
disabled: isWorkflowPage,
140142
})
@@ -194,6 +196,7 @@ export function NavTour() {
194196
position: 'fixed' as React.CSSProperties['position'],
195197
height: '100%',
196198
overflow: 'visible',
199+
pointerEvents: 'none' as React.CSSProperties['pointerEvents'],
197200
},
198201
}}
199202
/>

apps/sim/app/workspace/[workspaceId]/components/product-tour/workflow-tour.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ export function WorkflowTour() {
191191
position: 'fixed' as React.CSSProperties['position'],
192192
height: '100%',
193193
overflow: 'visible',
194+
pointerEvents: 'none' as React.CSSProperties['pointerEvents'],
194195
},
195196
}}
196197
/>

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-controls/workflow-controls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const WorkflowControls = memo(function WorkflowControls() {
8080
}
8181

8282
if (!showWorkflowControls) {
83-
return null
83+
return <div data-tour='workflow-controls' className='hidden' />
8484
}
8585

8686
return (

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/sidebar.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ import {
3535
} from '@/components/emcn/icons'
3636
import { useSession } from '@/lib/auth/auth-client'
3737
import { cn } from '@/lib/core/utils/cn'
38-
import { START_WORKFLOW_TOUR_EVENT } from '@/app/workspace/[workspaceId]/components/product-tour'
38+
import {
39+
START_NAV_TOUR_EVENT,
40+
START_WORKFLOW_TOUR_EVENT,
41+
} from '@/app/workspace/[workspaceId]/components/product-tour'
3942
import { useRegisterGlobalCommands } from '@/app/workspace/[workspaceId]/providers/global-commands-provider'
4043
import { useUserPermissionsContext } from '@/app/workspace/[workspaceId]/providers/workspace-permissions-provider'
4144
import { createCommands } from '@/app/workspace/[workspaceId]/utils/commands-utils'
@@ -593,7 +596,9 @@ export const Sidebar = memo(function Sidebar() {
593596
)
594597

595598
const handleStartTour = useCallback(() => {
596-
window.dispatchEvent(new CustomEvent(START_WORKFLOW_TOUR_EVENT))
599+
window.dispatchEvent(
600+
new CustomEvent(isOnWorkflowPage ? START_WORKFLOW_TOUR_EVENT : START_NAV_TOUR_EVENT)
601+
)
597602
}, [])
598603

599604
const { data: fetchedTasks = [], isLoading: tasksLoading } = useTasks(workspaceId)
@@ -1102,7 +1107,7 @@ export const Sidebar = memo(function Sidebar() {
11021107
)}
11031108
>
11041109
{/* Tasks */}
1105-
<div className='flex flex-shrink-0 flex-col'>
1110+
<div className='tasks-section flex flex-shrink-0 flex-col'>
11061111
<div className='flex h-[18px] flex-shrink-0 items-center justify-between px-[16px]'>
11071112
<div className='font-base text-[var(--text-icon)] text-small'>All tasks</div>
11081113
{!isCollapsed && (

apps/sim/components/emcn/components/tour-tooltip/tour-tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function TourTooltip({
147147
const isCentered = placement === 'center'
148148

149149
const cardClasses = cn(
150-
'w-[300px] overflow-hidden rounded-[8px] bg-[var(--bg)]',
150+
'w-[260px] overflow-hidden rounded-[8px] bg-[var(--bg)]',
151151
isEntrance && 'animate-tour-tooltip-in motion-reduce:animate-none',
152152
className
153153
)

bun.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)