File tree 5 files changed +18
-18
lines changed
5 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 1
1
import { initializeOrg } from 'sentry-test/initializeOrg' ;
2
2
import { render , screen , userEvent , waitFor } from 'sentry-test/reactTestingLibrary' ;
3
3
4
- import { NewOnboardingSidebar } from 'sentry/components/onboardingWizard/newSidebar ' ;
4
+ import { OnboardingSidebar } from 'sentry/components/onboardingWizard/sidebar ' ;
5
5
import { type OnboardingTask , OnboardingTaskKey } from 'sentry/types/onboarding' ;
6
6
7
7
const gettingStartedTasks : OnboardingTask [ ] = [
@@ -46,10 +46,10 @@ const beyondBasicsTasks: OnboardingTask[] = [
46
46
} ,
47
47
] ;
48
48
49
- describe ( 'NewSidebar ' , function ( ) {
49
+ describe ( 'Sidebar ' , function ( ) {
50
50
it ( 'should render the sidebar with the correct groups and tasks' , async function ( ) {
51
51
render (
52
- < NewOnboardingSidebar
52
+ < OnboardingSidebar
53
53
onClose = { jest . fn ( ) }
54
54
orientation = "left"
55
55
collapsed = { false }
@@ -83,7 +83,7 @@ describe('NewSidebar', function () {
83
83
84
84
it ( 'if first group completed, second group should be expanded by default' , function ( ) {
85
85
render (
86
- < NewOnboardingSidebar
86
+ < OnboardingSidebar
87
87
onClose = { jest . fn ( ) }
88
88
orientation = "left"
89
89
collapsed = { false }
@@ -114,7 +114,7 @@ describe('NewSidebar', function () {
114
114
} ) ;
115
115
116
116
render (
117
- < NewOnboardingSidebar
117
+ < OnboardingSidebar
118
118
onClose = { jest . fn ( ) }
119
119
orientation = "left"
120
120
collapsed = { false }
Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ function TaskGroup({
557
557
) ;
558
558
}
559
559
560
- interface NewSidebarProps
560
+ interface SidebarProps
561
561
extends Pick < CommonSidebarProps , 'orientation' | 'collapsed' > ,
562
562
Pick <
563
563
ReturnType < typeof useOnboardingTasks > ,
@@ -566,13 +566,13 @@ interface NewSidebarProps
566
566
onClose : ( ) => void ;
567
567
}
568
568
569
- export function NewOnboardingSidebar ( {
569
+ export function OnboardingSidebar ( {
570
570
onClose,
571
571
orientation,
572
572
collapsed,
573
573
gettingStartedTasks,
574
574
beyondBasicsTasks,
575
- } : NewSidebarProps ) {
575
+ } : SidebarProps ) {
576
576
const walkthrough = isDemoModeEnabled ( ) ;
577
577
578
578
const sortedGettingStartedTasks = gettingStartedTasks . sort (
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
17
17
ExpandedContext ,
18
18
ExpandedContextProvider ,
19
19
} from 'sentry/components/sidebar/expandedContextProvider' ;
20
- import { NewOnboardingStatus } from 'sentry/components/sidebar/newOnboardingStatus ' ;
20
+ import { OnboardingStatus } from 'sentry/components/sidebar/onboardingStatus ' ;
21
21
import { DismissableRollbackBanner } from 'sentry/components/sidebar/rollback/dismissableBanner' ;
22
22
import { isDone } from 'sentry/components/sidebar/utils' ;
23
23
import {
@@ -621,7 +621,7 @@ function Sidebar() {
621
621
{ ...sidebarItemProps }
622
622
/>
623
623
< SidebarSection hasNewNav = { hasNewNav } noMargin noPadding >
624
- < NewOnboardingStatus
624
+ < OnboardingStatus
625
625
currentPanel = { activePanel }
626
626
onShowPanel = { ( ) => togglePanel ( SidebarPanelKey . ONBOARDING_WIZARD ) }
627
627
hidePanel = { hidePanel }
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import {UserFixture} from 'sentry-fixture/user';
3
3
4
4
import { render , screen , userEvent , waitFor } from 'sentry-test/reactTestingLibrary' ;
5
5
6
- import { NewOnboardingStatus } from 'sentry/components/sidebar/newOnboardingStatus ' ;
6
+ import { OnboardingStatus } from 'sentry/components/sidebar/onboardingStatus ' ;
7
7
import { SidebarPanelKey } from 'sentry/components/sidebar/types' ;
8
8
import { OnboardingTaskKey } from 'sentry/types/onboarding' ;
9
9
import type { Organization } from 'sentry/types/organization' ;
@@ -40,7 +40,7 @@ describe('Onboarding Status', function () {
40
40
const handleShowPanel = jest . fn ( ) ;
41
41
42
42
render (
43
- < NewOnboardingStatus
43
+ < OnboardingStatus
44
44
currentPanel = ""
45
45
onShowPanel = { handleShowPanel }
46
46
hidePanel = { jest . fn ( ) }
@@ -84,7 +84,7 @@ describe('Onboarding Status', function () {
84
84
const handleHidePanel = jest . fn ( ) ;
85
85
86
86
render (
87
- < NewOnboardingStatus
87
+ < OnboardingStatus
88
88
currentPanel = { SidebarPanelKey . ONBOARDING_WIZARD }
89
89
onShowPanel = { jest . fn ( ) }
90
90
hidePanel = { handleHidePanel }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import {css} from '@emotion/react';
4
4
import styled from '@emotion/styled' ;
5
5
6
6
import { OnboardingContext } from 'sentry/components/onboarding/onboardingContext' ;
7
- import { NewOnboardingSidebar } from 'sentry/components/onboardingWizard/newSidebar ' ;
7
+ import { OnboardingSidebar } from 'sentry/components/onboardingWizard/sidebar ' ;
8
8
import { getMergedTasks } from 'sentry/components/onboardingWizard/taskConfig' ;
9
9
import { useOnboardingTasks } from 'sentry/components/onboardingWizard/useOnboardingTasks' ;
10
10
import { findCompleteTasks } from 'sentry/components/onboardingWizard/utils' ;
@@ -26,15 +26,15 @@ import useProjects from 'sentry/utils/useProjects';
26
26
import type { CommonSidebarProps } from './types' ;
27
27
import { SidebarPanelKey } from './types' ;
28
28
29
- type NewOnboardingStatusProps = CommonSidebarProps ;
29
+ type OnboardingStatusProps = CommonSidebarProps ;
30
30
31
- export function NewOnboardingStatus ( {
31
+ export function OnboardingStatus ( {
32
32
collapsed,
33
33
currentPanel,
34
34
orientation,
35
35
hidePanel,
36
36
onShowPanel,
37
- } : NewOnboardingStatusProps ) {
37
+ } : OnboardingStatusProps ) {
38
38
const organization = useOrganization ( ) ;
39
39
const onboardingContext = useContext ( OnboardingContext ) ;
40
40
const { projects} = useProjects ( ) ;
@@ -148,7 +148,7 @@ export function NewOnboardingStatus({
148
148
) }
149
149
</ Container >
150
150
{ isActive && (
151
- < NewOnboardingSidebar
151
+ < OnboardingSidebar
152
152
orientation = { orientation }
153
153
collapsed = { collapsed }
154
154
onClose = { hidePanel }
You can’t perform that action at this time.
0 commit comments