diff --git a/src/sentry/static/sentry/app/routes.jsx b/src/sentry/static/sentry/app/routes.jsx index 50b726e3ced2e4..e2fae1c99a7e27 100644 --- a/src/sentry/static/sentry/app/routes.jsx +++ b/src/sentry/static/sentry/app/routes.jsx @@ -13,8 +13,6 @@ import OrganizationContext from 'app/views/organizationContext'; import OrganizationDetails from 'app/views/organizationDetails'; import OrganizationRoot from 'app/views/organizationRoot'; import ProjectEventRedirect from 'app/views/projectEventRedirect'; -import ProjectPluginDetails from 'app/views/projectPluginDetails'; -import ProjectPlugins from 'app/views/projectPlugins'; import RouteNotFound from 'app/views/routeNotFound'; import SettingsProjectProvider from 'app/views/settings/components/settingsProjectProvider'; import SettingsWrapper from 'app/views/settings/components/settingsWrapper'; @@ -406,11 +404,19 @@ function routes() { /> - + + import(/* webpackChunkName: "ProjectPlugins" */ 'app/views/settings/projectPlugins') + } + component={errorHandler(LazyLoad)} + /> + import(/* webpackChunkName: "ProjectPluginDetails" */ 'app/views/settings/projectPlugins/details') + } + component={errorHandler(LazyLoad)} /> diff --git a/src/sentry/static/sentry/app/views/projectPlugins/constants.jsx b/src/sentry/static/sentry/app/views/settings/projectPlugins/constants.jsx similarity index 100% rename from src/sentry/static/sentry/app/views/projectPlugins/constants.jsx rename to src/sentry/static/sentry/app/views/settings/projectPlugins/constants.jsx diff --git a/src/sentry/static/sentry/app/views/projectPluginDetails.jsx b/src/sentry/static/sentry/app/views/settings/projectPlugins/details.jsx similarity index 98% rename from src/sentry/static/sentry/app/views/projectPluginDetails.jsx rename to src/sentry/static/sentry/app/views/settings/projectPlugins/details.jsx index dbaf8739a3d6e3..154a9aedb3c9e0 100644 --- a/src/sentry/static/sentry/app/views/projectPluginDetails.jsx +++ b/src/sentry/static/sentry/app/views/settings/projectPlugins/details.jsx @@ -10,7 +10,7 @@ import PluginConfig from 'app/components/pluginConfig'; import SettingsPageHeader from 'app/views/settings/components/settingsPageHeader'; import withPlugins from 'app/utils/withPlugins'; -import {DEPRECATED_PLUGINS} from 'app/views/projectPlugins/constants'; +import {DEPRECATED_PLUGINS} from './constants'; /** * There are currently two sources of truths for plugin details: diff --git a/src/sentry/static/sentry/app/views/projectPlugins/index.jsx b/src/sentry/static/sentry/app/views/settings/projectPlugins/index.jsx similarity index 95% rename from src/sentry/static/sentry/app/views/projectPlugins/index.jsx rename to src/sentry/static/sentry/app/views/settings/projectPlugins/index.jsx index e12a15f00640af..6ff826185cd47e 100644 --- a/src/sentry/static/sentry/app/views/projectPlugins/index.jsx +++ b/src/sentry/static/sentry/app/views/settings/projectPlugins/index.jsx @@ -3,11 +3,12 @@ import React from 'react'; import {fetchPlugins, enablePlugin, disablePlugin} from 'app/actionCreators/plugins'; import {t} from 'app/locale'; import PermissionAlert from 'app/views/settings/project/permissionAlert'; -import ProjectPlugins from 'app/views/projectPlugins/projectPlugins'; import SentryTypes from 'app/sentryTypes'; import SettingsPageHeader from 'app/views/settings/components/settingsPageHeader'; import withPlugins from 'app/utils/withPlugins'; +import ProjectPlugins from './projectPlugins'; + class ProjectPluginsContainer extends React.Component { static propTypes = { plugins: SentryTypes.PluginsStore, diff --git a/src/sentry/static/sentry/app/views/projectPlugins/projectPluginRow.jsx b/src/sentry/static/sentry/app/views/settings/projectPlugins/projectPluginRow.jsx similarity index 100% rename from src/sentry/static/sentry/app/views/projectPlugins/projectPluginRow.jsx rename to src/sentry/static/sentry/app/views/settings/projectPlugins/projectPluginRow.jsx diff --git a/src/sentry/static/sentry/app/views/projectPlugins/projectPlugins.jsx b/src/sentry/static/sentry/app/views/settings/projectPlugins/projectPlugins.jsx similarity index 97% rename from src/sentry/static/sentry/app/views/projectPlugins/projectPlugins.jsx rename to src/sentry/static/sentry/app/views/settings/projectPlugins/projectPlugins.jsx index 4b7b6ae20eb36c..ba94d5821c89b8 100644 --- a/src/sentry/static/sentry/app/views/projectPlugins/projectPlugins.jsx +++ b/src/sentry/static/sentry/app/views/settings/projectPlugins/projectPlugins.jsx @@ -12,11 +12,11 @@ import {t, tct} from 'app/locale'; import Access from 'app/components/acl/access'; import Link from 'app/components/links/link'; import LoadingIndicator from 'app/components/loadingIndicator'; -import ProjectPluginRow from 'app/views/projectPlugins/projectPluginRow'; import RouteError from 'app/views/routeError'; import SentryTypes from 'app/sentryTypes'; import {DEPRECATED_PLUGINS} from './constants'; +import ProjectPluginRow from './projectPluginRow'; class ProjectPlugins extends Component { static propTypes = { diff --git a/tests/js/spec/views/projectPluginDetails.spec.jsx b/tests/js/spec/views/projectPluginDetails.spec.jsx index 320d4c137d64d8..2a6dd49864a9c5 100644 --- a/tests/js/spec/views/projectPluginDetails.spec.jsx +++ b/tests/js/spec/views/projectPluginDetails.spec.jsx @@ -3,7 +3,7 @@ import {mount} from 'enzyme'; import ProjectPluginDetailsContainer, { ProjectPluginDetails, -} from 'app/views/projectPluginDetails'; +} from 'app/views/settings/projectPlugins/details'; jest.mock('jquery'); diff --git a/tests/js/spec/views/projectPlugins/__snapshots__/projectPluginsRow.spec.jsx.snap b/tests/js/spec/views/projectPlugins/__snapshots__/projectPluginsRow.spec.jsx.snap index 3e2047781b4ff8..04cd0b08332f34 100644 --- a/tests/js/spec/views/projectPlugins/__snapshots__/projectPluginsRow.spec.jsx.snap +++ b/tests/js/spec/views/projectPlugins/__snapshots__/projectPluginsRow.spec.jsx.snap @@ -138,24 +138,24 @@ exports[`ProjectPluginRow renders 1`] = ` >
@@ -176,7 +176,7 @@ exports[`ProjectPluginRow renders 1`] = ` >
Amazon SQS v8.23.0.dev0 diff --git a/tests/js/spec/views/projectPlugins/index.spec.jsx b/tests/js/spec/views/projectPlugins/index.spec.jsx index 554322c6cda948..80a05bdbb77e6d 100644 --- a/tests/js/spec/views/projectPlugins/index.spec.jsx +++ b/tests/js/spec/views/projectPlugins/index.spec.jsx @@ -1,7 +1,7 @@ import React from 'react'; import {mount} from 'enzyme'; -import ProjectPlugins from 'app/views/projectPlugins'; +import ProjectPlugins from 'app/views/settings/projectPlugins'; import {fetchPlugins, enablePlugin, disablePlugin} from 'app/actionCreators/plugins'; jest.mock('app/actionCreators/plugins'); diff --git a/tests/js/spec/views/projectPlugins/projectPlugins.spec.jsx b/tests/js/spec/views/projectPlugins/projectPlugins.spec.jsx index 03a825a53e0e95..b562b7941f544b 100644 --- a/tests/js/spec/views/projectPlugins/projectPlugins.spec.jsx +++ b/tests/js/spec/views/projectPlugins/projectPlugins.spec.jsx @@ -1,6 +1,6 @@ import React from 'react'; import {shallow} from 'enzyme'; -import ProjectPlugins from 'app/views/projectPlugins/projectPlugins'; +import ProjectPlugins from 'app/views/settings/projectPlugins/projectPlugins'; describe('ProjectPlugins', function() { let wrapper; diff --git a/tests/js/spec/views/projectPlugins/projectPluginsRow.spec.jsx b/tests/js/spec/views/projectPlugins/projectPluginsRow.spec.jsx index c06316fb0b395c..fb63c103ac7c17 100644 --- a/tests/js/spec/views/projectPlugins/projectPluginsRow.spec.jsx +++ b/tests/js/spec/views/projectPlugins/projectPluginsRow.spec.jsx @@ -1,6 +1,6 @@ import React from 'react'; import {mount} from 'enzyme'; -import ProjectPluginRow from 'app/views/projectPlugins/projectPluginRow'; +import ProjectPluginRow from 'app/views/settings/projectPlugins/projectPluginRow'; describe('ProjectPluginRow', function() { let wrapper;