Skip to content

Commit 319ceb5

Browse files
ref(onboarding): Rename wizardNew -> onboarding (#14104)
1 parent 0f9b4f8 commit 319ceb5

File tree

6 files changed

+17
-22
lines changed

6 files changed

+17
-22
lines changed

src/sentry/static/sentry/app/routes.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ function routes() {
798798
<Route
799799
path=":step/"
800800
componentPromise={() =>
801-
import(/* webpackChunkName: "OnboardingWizardNew" */ 'app/views/onboarding/wizardNew')
801+
import(/* webpackChunkName: "Onboarding" */ 'app/views/onboarding/onboarding')
802802
}
803803
component={errorHandler(LazyLoad)}
804804
/>

src/sentry/static/sentry/app/views/onboarding/wizardNew.jsx renamed to src/sentry/static/sentry/app/views/onboarding/onboarding.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const stepShape = PropTypes.shape({
5050
Component: PropTypes.func,
5151
});
5252

53-
class OnboardingWizard extends React.Component {
53+
class Onboarding extends React.Component {
5454
static propTypes = {
5555
steps: PropTypes.arrayOf(stepShape),
5656
projects: PropTypes.arrayOf(SentryTypes.Project),
@@ -327,4 +327,4 @@ export const stepPropTypes = {
327327
onUpdate: PropTypes.func,
328328
};
329329

330-
export default withOrganization(withProjects(OnboardingWizard));
330+
export default withOrganization(withProjects(Onboarding));

src/sentry/static/sentry/app/views/onboarding/platform.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React from 'react';
44

55
import {addErrorMessage} from 'app/actionCreators/indicator';
66
import {createProject} from 'app/actionCreators/projects';
7-
import {stepPropTypes} from 'app/views/onboarding/wizardNew';
7+
import {stepPropTypes} from 'app/views/onboarding/onboarding';
88
import {t, tct} from 'app/locale';
99
import Button from 'app/components/button';
1010
import PlatformPicker from 'app/components/platformPicker';

src/sentry/static/sentry/app/views/onboarding/projectSetup/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import posed, {PoseGroup} from 'react-pose';
33

44
import {analytics} from 'app/utils/analytics';
5-
import {stepPropTypes} from 'app/views/onboarding/wizardNew';
5+
import {stepPropTypes} from 'app/views/onboarding/onboarding';
66
import {t} from 'app/locale';
77
import HookOrDefault from 'app/components/hookOrDefault';
88
import SentryTypes from 'app/sentryTypes';

src/sentry/static/sentry/app/views/onboarding/welcome.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import styled from 'react-emotion';
33

44
import {analytics} from 'app/utils/analytics';
5-
import {stepPropTypes} from 'app/views/onboarding/wizardNew';
5+
import {stepPropTypes} from 'app/views/onboarding/onboarding';
66
import {t, tct} from 'app/locale';
77
import Button from 'app/components/button';
88
import SentryTypes from 'app/sentryTypes';

tests/js/spec/views/onboarding/wizardNew.spec.jsx renamed to tests/js/spec/views/onboarding/onboarding.spec.jsx

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ import React from 'react';
33

44
import {initializeOrg} from 'app-test/helpers/initializeOrg';
55
import {mount} from 'enzyme';
6-
import OnboardingWizard, {stepPropTypes} from 'app/views/onboarding/wizardNew';
6+
import Onboarding, {stepPropTypes} from 'app/views/onboarding/onboarding';
77
import ProjectsStore from 'app/stores/projectsStore';
88

99
const MockStep = ({
1010
name,
1111
data,
1212
scrollTargetId,
1313
active,
14-
orgId,
1514
project,
16-
platform,
1715
onReturnToStep,
1816
onComplete,
1917
onUpadte,
@@ -24,9 +22,9 @@ const MockStep = ({
2422
{name}
2523
</div>
2624
<div id="project_slug">{project && project.slug}</div>
27-
<a id="complete" href="#" onClick={e => onComplete(data)} />
28-
<a id="update" href="#" onClick={e => onUpadte(data)} />
29-
<a id="return" href="#" onClick={e => onReturnToStep(data)} />
25+
<a id="complete" href="#" onClick={() => onComplete(data)} />
26+
<a id="update" href="#" onClick={() => onUpadte(data)} />
27+
<a id="return" href="#" onClick={() => onReturnToStep(data)} />
3028
</div>
3129
);
3230

@@ -52,7 +50,7 @@ const MOCKED_STEPS = [
5250
},
5351
];
5452

55-
describe('OnboardingWizard', function() {
53+
describe('Onboarding', function() {
5654
it('redirects to first step if invalid step ID present', function() {
5755
browserHistory.replace = jest.fn();
5856

@@ -61,10 +59,7 @@ describe('OnboardingWizard', function() {
6159
orgId: 'org-bar',
6260
};
6361

64-
mount(
65-
<OnboardingWizard steps={MOCKED_STEPS} params={params} />,
66-
TestStubs.routerContext()
67-
);
62+
mount(<Onboarding steps={MOCKED_STEPS} params={params} />, TestStubs.routerContext());
6863

6964
expect(browserHistory.replace).toHaveBeenCalledWith('/onboarding/org-bar/step1/');
7065
});
@@ -76,7 +71,7 @@ describe('OnboardingWizard', function() {
7671
};
7772

7873
const wrapper = mount(
79-
<OnboardingWizard steps={MOCKED_STEPS} params={params} />,
74+
<Onboarding steps={MOCKED_STEPS} params={params} />,
8075
TestStubs.routerContext()
8176
);
8277

@@ -106,7 +101,7 @@ describe('OnboardingWizard', function() {
106101
};
107102

108103
const wrapper = mount(
109-
<OnboardingWizard steps={MOCKED_STEPS} params={params} />,
104+
<Onboarding steps={MOCKED_STEPS} params={params} />,
110105
TestStubs.routerContext()
111106
);
112107

@@ -121,7 +116,7 @@ describe('OnboardingWizard', function() {
121116
};
122117

123118
const wrapper = mount(
124-
<OnboardingWizard steps={MOCKED_STEPS} params={params} />,
119+
<Onboarding steps={MOCKED_STEPS} params={params} />,
125120
TestStubs.routerContext()
126121
);
127122

@@ -163,7 +158,7 @@ describe('OnboardingWizard', function() {
163158
};
164159

165160
const wrapper = mount(
166-
<OnboardingWizard steps={MOCKED_STEPS} params={params} />,
161+
<Onboarding steps={MOCKED_STEPS} params={params} />,
167162
TestStubs.routerContext()
168163
);
169164

@@ -192,7 +187,7 @@ describe('OnboardingWizard', function() {
192187
};
193188

194189
const wrapper = mount(
195-
<OnboardingWizard steps={MOCKED_STEPS} params={params} />,
190+
<Onboarding steps={MOCKED_STEPS} params={params} />,
196191
routerContext
197192
);
198193

0 commit comments

Comments
 (0)