@@ -7,8 +7,10 @@ import type {OnboardingContextProps} from 'sentry/components/onboarding/onboardi
7
7
import { filterSupportedTasks } from 'sentry/components/onboardingWizard/filterSupportedTasks' ;
8
8
import { taskIsDone } from 'sentry/components/onboardingWizard/utils' ;
9
9
import { filterProjects } from 'sentry/components/performanceOnboarding/utils' ;
10
+ import { SidebarPanelKey } from 'sentry/components/sidebar/types' ;
10
11
import { sourceMaps } from 'sentry/data/platformCategories' ;
11
12
import { t } from 'sentry/locale' ;
13
+ import SidebarPanelStore from 'sentry/stores/sidebarPanelStore' ;
12
14
import pulsingIndicatorStyles from 'sentry/styles/pulsingIndicator' ;
13
15
import { space } from 'sentry/styles/space' ;
14
16
import type {
@@ -320,10 +322,20 @@ export function getOnboardingTasks({
320
322
) ,
321
323
skippable : true ,
322
324
requisites : [ OnboardingTaskKey . FIRST_PROJECT , OnboardingTaskKey . FIRST_EVENT ] ,
323
- actionType : 'app' ,
324
- location : normalizeUrl (
325
- `/organizations/${ organization . slug } /replays/#replay-sidequest`
326
- ) ,
325
+ actionType : 'action' ,
326
+ action : router => {
327
+ router . push (
328
+ normalizeUrl ( {
329
+ pathname : `/organizations/${ organization . slug } /replays/` ,
330
+ query : { referrer : 'onboarding_task' } ,
331
+ } )
332
+ ) ;
333
+ // Since the quick start panel is already open and closes on route change
334
+ // Wait for the next tick to open the replay onboarding panel
335
+ setTimeout ( ( ) => {
336
+ SidebarPanelStore . activatePanel ( SidebarPanelKey . REPLAYS_ONBOARDING ) ;
337
+ } , 0 ) ;
338
+ } ,
327
339
display : organization . features ?. includes ( 'session-replay' ) ,
328
340
SupplementComponent : withApi (
329
341
( { api, task, onCompleteTask} : FirstEventWaiterProps ) =>
0 commit comments