mirror of
https://github.com/stablyai/orca.git
synced 2026-10-29 16:17:51 +00:00
Remove workspace creation contextual tour
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -8,13 +8,7 @@ import {
|
||||
|
||||
describe('contextual tour definitions', () => {
|
||||
it('defines the required tours with three concise steps each', () => {
|
||||
const expectedIds: ContextualTourId[] = [
|
||||
'workspace-board',
|
||||
'browser',
|
||||
'tasks',
|
||||
'automations',
|
||||
'workspace-creation'
|
||||
]
|
||||
const expectedIds: ContextualTourId[] = ['workspace-board', 'browser', 'tasks', 'automations']
|
||||
|
||||
expect(CONTEXTUAL_TOURS.map((tour) => tour.id)).toEqual(expectedIds)
|
||||
for (const tour of CONTEXTUAL_TOURS) {
|
||||
@@ -29,13 +23,12 @@ describe('contextual tour definitions', () => {
|
||||
}
|
||||
})
|
||||
|
||||
it('keeps workspace creation as the only modal-allowed tour', () => {
|
||||
it('keeps contextual tours out of modal-only flows', () => {
|
||||
const modalTours = (CONTEXTUAL_TOURS as readonly ContextualTour[]).filter(
|
||||
(tour) => tour.allowedActiveModals?.length
|
||||
)
|
||||
|
||||
expect(modalTours.map((tour) => tour.id)).toEqual(['workspace-creation'])
|
||||
expect(modalTours[0]?.allowedActiveModals).toEqual(['new-workspace-composer', 'add-repo'])
|
||||
expect(modalTours).toEqual([])
|
||||
})
|
||||
|
||||
it('normalizes persisted ids by removing unknowns and duplicates', () => {
|
||||
@@ -48,6 +41,6 @@ describe('contextual tour definitions', () => {
|
||||
null,
|
||||
'workspace-creation'
|
||||
])
|
||||
).toEqual(['tasks', 'browser', 'workspace-creation'])
|
||||
).toEqual(['tasks', 'browser'])
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
export type ContextualTourId =
|
||||
| 'workspace-board'
|
||||
| 'browser'
|
||||
| 'tasks'
|
||||
| 'automations'
|
||||
| 'workspace-creation'
|
||||
export type ContextualTourId = 'workspace-board' | 'browser' | 'tasks' | 'automations'
|
||||
|
||||
export type ContextualTourStep = {
|
||||
title: string
|
||||
@@ -105,28 +100,6 @@ export const CONTEXTUAL_TOURS = [
|
||||
targetSelector: '[data-contextual-tour-target="automations-runs"]'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'workspace-creation',
|
||||
allowedActiveModals: ['new-workspace-composer', 'add-repo'],
|
||||
steps: [
|
||||
{
|
||||
title: 'Add the code Orca should work on',
|
||||
body: 'Pick a local folder, clone a repo URL, or connect to a remote machine. Orca needs a project before it can create workspaces.',
|
||||
targetSelector: '[data-contextual-tour-target="workspace-creation-source"]',
|
||||
requiredForStart: true
|
||||
},
|
||||
{
|
||||
title: 'Review advanced options',
|
||||
body: 'Use Advanced or setup-step options for scripts, existing worktrees, notes, or workspace details.',
|
||||
targetSelector: '[data-contextual-tour-target="workspace-creation-setup"]'
|
||||
},
|
||||
{
|
||||
title: 'Create when the inputs are ready',
|
||||
body: 'Start the workspace after the project, name, agent, and setup choices look right.',
|
||||
targetSelector: '[data-contextual-tour-target="workspace-creation-action"]'
|
||||
}
|
||||
]
|
||||
}
|
||||
] as const satisfies readonly ContextualTour[]
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@ export const FEATURE_EDUCATION_CONTEXTUAL_TOUR_IDS = [
|
||||
'workspace-board',
|
||||
'browser',
|
||||
'tasks',
|
||||
'automations',
|
||||
'workspace-creation'
|
||||
'automations'
|
||||
] as const satisfies readonly ContextualTourId[]
|
||||
|
||||
export const FEATURE_EDUCATION_SOURCES = [
|
||||
@@ -13,9 +12,6 @@ export const FEATURE_EDUCATION_SOURCES = [
|
||||
'browser_visible',
|
||||
'tasks_open',
|
||||
'automations_open',
|
||||
'workspace_creation_visible',
|
||||
'workspace_creation_modal',
|
||||
'workspace_creation_add_project',
|
||||
'unknown'
|
||||
] as const
|
||||
|
||||
|
||||
Reference in New Issue
Block a user