mirror of
https://github.com/stablyai/orca.git
synced 2026-09-25 16:02:38 +00:00
* Add floating workspace contextual tour Co-authored-by: Orca <help@stably.ai> * Clarify floating workspace tour intro copy Co-authored-by: Orca <help@stably.ai> * Differentiate floating workspace tour steps instead of repeating examples Co-authored-by: Orca <help@stably.ai> * Lead floating workspace tour with the user benefit Co-authored-by: Orca <help@stably.ai> * Pitch floating workspace tour around cross-repo agents Co-authored-by: Orca <help@stably.ai> * Refine floating workspace tour step 1 copy Co-authored-by: Orca <help@stably.ai> * Anchor floating workspace tour step 2 on the minimize control Co-authored-by: Orca <help@stably.ai> * Restore floating workspace tour step 2 Co-authored-by: Orca <help@stably.ai> * Anchor floating workspace tour steps on New Terminal and New Markdown Note Co-authored-by: Orca <help@stably.ai> * Retitle floating workspace tour step 2 as scratchpad Co-authored-by: Orca <help@stably.ai> * Add why-comments for tour selector fallback and placement flipping Co-authored-by: Orca <help@stably.ai> --------- Co-authored-by: Orca <help@stably.ai>
36 lines
1.5 KiB
TypeScript
36 lines
1.5 KiB
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { CONTEXTUAL_TOUR_IDS } from './contextual-tours'
|
|
import {
|
|
FEATURE_EDUCATION_CONTEXTUAL_TOUR_IDS,
|
|
normalizeFeatureEducationSource,
|
|
normalizeSetupGuideSource
|
|
} from './feature-education-telemetry'
|
|
|
|
describe('feature education telemetry constants', () => {
|
|
it('keeps contextual tour telemetry ids aligned with tour definitions', () => {
|
|
expect(FEATURE_EDUCATION_CONTEXTUAL_TOUR_IDS).toEqual(CONTEXTUAL_TOUR_IDS)
|
|
})
|
|
|
|
it('normalizes unknown telemetry sources to a bounded fallback', () => {
|
|
expect(normalizeFeatureEducationSource('tasks_open')).toBe('tasks_open')
|
|
expect(normalizeFeatureEducationSource('workspace_agent_sessions_visible')).toBe(
|
|
'workspace_agent_sessions_visible'
|
|
)
|
|
expect(normalizeFeatureEducationSource('floating_workspace_visible')).toBe(
|
|
'floating_workspace_visible'
|
|
)
|
|
expect(normalizeFeatureEducationSource('setup_guide_parallel_work')).toBe(
|
|
'setup_guide_parallel_work'
|
|
)
|
|
expect(normalizeFeatureEducationSource('https://example.com/private')).toBe('unknown')
|
|
expect(normalizeFeatureEducationSource(null)).toBe('unknown')
|
|
})
|
|
|
|
it('normalizes setup guide telemetry sources to a bounded fallback', () => {
|
|
expect(normalizeSetupGuideSource('sidebar')).toBe('sidebar')
|
|
expect(normalizeSetupGuideSource('settings')).toBe('settings')
|
|
expect(normalizeSetupGuideSource('help_menu')).toBe('help_menu')
|
|
expect(normalizeSetupGuideSource('private-source')).toBe('unknown')
|
|
})
|
|
})
|