Skip to content

Commit

Permalink
Remove Jumpstart (#12747)
Browse files Browse the repository at this point in the history
* Remove Jumpstart

* Add _inc/jetpack-modules.models.js to eslintignore

* Revert lockfile change

* Update build-module-headings-translations.php

* Update composer.lock
  • Loading branch information
simison authored and jeherve committed Jun 20, 2019
1 parent 9ff4d3c commit 9576f91
Show file tree
Hide file tree
Showing 37 changed files with 16 additions and 820 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/_inc/blocks
/_inc/build
/_inc/client/**/test/*.js
/_inc/jetpack-modules.models.js
/_inc/jquery.spin.js
/_inc/postmessage.js
/_inc/spin.js
Expand Down
3 changes: 0 additions & 3 deletions _inc/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ Action types dispatched during the UI lifecycle are listed in `state/action-type
* **getJetpackStateNoticesErrorCode( state )**
* **getJetpackStateNoticesErrorDescription( state )**
* **getJetpackStateNoticesMessageCode( state )**
* **getJumpStartStatus( state )**
* **getLastDownTime( state )**
* **getModule( state, name )**
* **getModuleOption( state, module_slug, option_name )** {
Expand Down Expand Up @@ -141,8 +140,6 @@ Action types dispatched during the UI lifecycle are listed in `state/action-type
* **fetchStatsData( range )**
* **fetchUserConnectionData()**
* **filterSearch( term )**
* **jumpStartActivate()**
* **jumpStartSkip()**
* **regeneratePostByEmailAddress()**
* **resetOptions( options )**
* **setInitialState()**
Expand Down
99 changes: 0 additions & 99 deletions _inc/client/components/jumpstart/index.jsx

This file was deleted.

47 changes: 0 additions & 47 deletions _inc/client/components/jumpstart/style.scss

This file was deleted.

21 changes: 0 additions & 21 deletions _inc/client/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import Masthead from 'components/masthead';
import Navigation from 'components/navigation';
import NavigationSettings from 'components/navigation-settings';
import SearchableSettings from 'settings/index.jsx';
import JumpStart from 'components/jumpstart';
import { getJumpStartStatus } from 'state/jumpstart';
import { getSiteConnectionStatus, isCurrentUserLinked, isSiteConnected } from 'state/connection';
import {
setInitialState,
Expand Down Expand Up @@ -129,7 +127,6 @@ class Main extends React.Component {

return (
nextProps.siteConnectionStatus !== this.props.siteConnectionStatus ||
nextProps.jumpStartStatus !== this.props.jumpStartStatus ||
nextProps.isLinked !== this.props.isLinked ||
nextProps.route.path !== this.props.route.path ||
nextProps.searchTerm !== this.props.searchTerm ||
Expand All @@ -153,22 +150,6 @@ class Main extends React.Component {
}
}

renderJumpstart = () => {
if ( ! this.props.isSiteConnected ) {
return null;
}

if ( ! this.props.jumpStartStatus ) {
return null;
}

return (
<div aria-live="assertive">
<JumpStart />
</div>
);
};

renderMainContent = route => {
if ( ! this.props.userCanManageModules ) {
if ( ! this.props.siteConnectionStatus ) {
Expand Down Expand Up @@ -261,7 +242,6 @@ class Main extends React.Component {
return (
<div aria-live="assertive">
{ navComponent }
{ this.renderJumpstart() }
{ pageComponent }
</div>
);
Expand Down Expand Up @@ -301,7 +281,6 @@ class Main extends React.Component {
export default connect(
state => {
return {
jumpStartStatus: getJumpStartStatus( state ),
siteConnectionStatus: getSiteConnectionStatus( state ),
isLinked: isCurrentUserLinked( state ),
siteRawUrl: getSiteRawUrl( state ),
Expand Down
15 changes: 0 additions & 15 deletions _inc/client/rest-api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,21 +104,6 @@ function JetpackRestApiClient( root, nonce ) {
.then( checkStatus )
.then( parseJsonResponse ),

jumpStart: action => {
let active;
if ( action === 'activate' ) {
active = true;
}
if ( action === 'deactivate' ) {
active = false;
}
return postRequest( `${ apiRoot }jetpack/v4/jumpstart`, postParams, {
body: JSON.stringify( { active } ),
} )
.then( checkStatus )
.then( parseJsonResponse );
},

fetchModules: () =>
getRequest( `${ apiRoot }jetpack/v4/module/all`, getParams )
.then( checkStatus )
Expand Down
1 change: 0 additions & 1 deletion _inc/client/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
@import '../components/dev-card/style';
@import '../components/loading-placeholder/style';
@import '../components/jetpack-notices/style';
@import '../components/jumpstart/style';
@import '../components/masthead/style';
@import '../components/module-settings/style';
@import '../components/support-card/style';
Expand Down
7 changes: 0 additions & 7 deletions _inc/client/state/action-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ export const JETPACK_CONNECTION_STATUS_FETCH = 'JETPACK_CONNECTION_STATUS_FETCH'

export const JETPACK_CONNECTION_TEST_FETCH = 'JETPACK_CONNECTION_TEST_FETCH';

export const JUMPSTART_ACTIVATE = 'JUMPSTART_ACTIVATE';
export const JUMPSTART_ACTIVATE_FAIL = 'JUMPSTART_ACTIVATE_FAIL';
export const JUMPSTART_ACTIVATE_SUCCESS = 'JUMPSTART_ACTIVATE_SUCCESS';
export const JUMPSTART_SKIP = 'JUMPSTART_SKIP';
export const JUMPSTART_SKIP_FAIL = 'JUMPSTART_SKIP_FAIL';
export const JUMPSTART_SKIP_SUCCESS = 'JUMPSTART_SKIP_SUCCESS';

export const DASHBOARD_PROTECT_COUNT_FETCH = 'DASHBOARD_PROTECT_COUNT_FETCH';
export const DASHBOARD_PROTECT_COUNT_FETCH_FAIL = 'DASHBOARD_PROTECT_COUNT_FETCH_FAIL';
export const DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS = 'DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS';
Expand Down
8 changes: 0 additions & 8 deletions _inc/client/state/jetpack-notices/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,13 @@ import {
JETPACK_NOTICES_DISMISS_SUCCESS,
DISCONNECT_SITE_SUCCESS,
RESET_OPTIONS_SUCCESS,
JUMPSTART_ACTIVATE_SUCCESS,
JUMPSTART_SKIP,
} from 'state/action-types';

const notice = ( state = false, action ) => {
switch ( action.type ) {
case DISCONNECT_SITE_SUCCESS:
return 'disconnected';

case JUMPSTART_ACTIVATE_SUCCESS:
return 'new_connection_jumpstart';

case JUMPSTART_SKIP:
return 'new_connection_no_jumpstart';

default:
return state;
}
Expand Down
94 changes: 0 additions & 94 deletions _inc/client/state/jumpstart/actions.js

This file was deleted.

2 changes: 0 additions & 2 deletions _inc/client/state/jumpstart/index.js

This file was deleted.

Loading

0 comments on commit 9576f91

Please sign in to comment.