Skip to content

ref(onboarding): Rename wizardNew -> onboarding #14104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sentry/static/sentry/app/routes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ function routes() {
<Route
path=":step/"
componentPromise={() =>
import(/* webpackChunkName: "OnboardingWizardNew" */ 'app/views/onboarding/wizardNew')
import(/* webpackChunkName: "Onboarding" */ 'app/views/onboarding/onboarding')
}
component={errorHandler(LazyLoad)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const stepShape = PropTypes.shape({
Component: PropTypes.func,
});

class OnboardingWizard extends React.Component {
class Onboarding extends React.Component {
static propTypes = {
steps: PropTypes.arrayOf(stepShape),
projects: PropTypes.arrayOf(SentryTypes.Project),
Expand Down Expand Up @@ -327,4 +327,4 @@ export const stepPropTypes = {
onUpdate: PropTypes.func,
};

export default withOrganization(withProjects(OnboardingWizard));
export default withOrganization(withProjects(Onboarding));
2 changes: 1 addition & 1 deletion src/sentry/static/sentry/app/views/onboarding/platform.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from 'react';

import {addErrorMessage} from 'app/actionCreators/indicator';
import {createProject} from 'app/actionCreators/projects';
import {stepPropTypes} from 'app/views/onboarding/wizardNew';
import {stepPropTypes} from 'app/views/onboarding/onboarding';
import {t, tct} from 'app/locale';
import Button from 'app/components/button';
import PlatformPicker from 'app/components/platformPicker';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import posed, {PoseGroup} from 'react-pose';

import {analytics} from 'app/utils/analytics';
import {stepPropTypes} from 'app/views/onboarding/wizardNew';
import {stepPropTypes} from 'app/views/onboarding/onboarding';
import {t} from 'app/locale';
import HookOrDefault from 'app/components/hookOrDefault';
import SentryTypes from 'app/sentryTypes';
Expand Down
2 changes: 1 addition & 1 deletion src/sentry/static/sentry/app/views/onboarding/welcome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import styled from 'react-emotion';

import {analytics} from 'app/utils/analytics';
import {stepPropTypes} from 'app/views/onboarding/wizardNew';
import {stepPropTypes} from 'app/views/onboarding/onboarding';
import {t, tct} from 'app/locale';
import Button from 'app/components/button';
import SentryTypes from 'app/sentryTypes';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@ import React from 'react';

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

const MockStep = ({
name,
data,
scrollTargetId,
active,
orgId,
project,
platform,
onReturnToStep,
onComplete,
onUpadte,
Expand All @@ -24,9 +22,9 @@ const MockStep = ({
{name}
</div>
<div id="project_slug">{project && project.slug}</div>
<a id="complete" href="#" onClick={e => onComplete(data)} />
<a id="update" href="#" onClick={e => onUpadte(data)} />
<a id="return" href="#" onClick={e => onReturnToStep(data)} />
<a id="complete" href="#" onClick={() => onComplete(data)} />
<a id="update" href="#" onClick={() => onUpadte(data)} />
<a id="return" href="#" onClick={() => onReturnToStep(data)} />
</div>
);

Expand All @@ -52,7 +50,7 @@ const MOCKED_STEPS = [
},
];

describe('OnboardingWizard', function() {
describe('Onboarding', function() {
it('redirects to first step if invalid step ID present', function() {
browserHistory.replace = jest.fn();

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

mount(
<OnboardingWizard steps={MOCKED_STEPS} params={params} />,
TestStubs.routerContext()
);
mount(<Onboarding steps={MOCKED_STEPS} params={params} />, TestStubs.routerContext());

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

const wrapper = mount(
<OnboardingWizard steps={MOCKED_STEPS} params={params} />,
<Onboarding steps={MOCKED_STEPS} params={params} />,
TestStubs.routerContext()
);

Expand Down Expand Up @@ -106,7 +101,7 @@ describe('OnboardingWizard', function() {
};

const wrapper = mount(
<OnboardingWizard steps={MOCKED_STEPS} params={params} />,
<Onboarding steps={MOCKED_STEPS} params={params} />,
TestStubs.routerContext()
);

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

const wrapper = mount(
<OnboardingWizard steps={MOCKED_STEPS} params={params} />,
<Onboarding steps={MOCKED_STEPS} params={params} />,
TestStubs.routerContext()
);

Expand Down Expand Up @@ -163,7 +158,7 @@ describe('OnboardingWizard', function() {
};

const wrapper = mount(
<OnboardingWizard steps={MOCKED_STEPS} params={params} />,
<Onboarding steps={MOCKED_STEPS} params={params} />,
TestStubs.routerContext()
);

Expand Down Expand Up @@ -192,7 +187,7 @@ describe('OnboardingWizard', function() {
};

const wrapper = mount(
<OnboardingWizard steps={MOCKED_STEPS} params={params} />,
<Onboarding steps={MOCKED_STEPS} params={params} />,
routerContext
);

Expand Down