Skip to content

Commit

Permalink
Replace tutorial modal with welcome e-mail (#6273)
Browse files Browse the repository at this point in the history
* Remove onboarding modal

* Welcome e-mail

* Send welcome e-mail after confirmation

* Remove obsolete translations
  • Loading branch information
Gargron committed Jan 18, 2018
1 parent e56404b commit d799921
Show file tree
Hide file tree
Showing 49 changed files with 261 additions and 632 deletions.
4 changes: 4 additions & 0 deletions app/javascript/images/icon_done.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 0 additions & 14 deletions app/javascript/mastodon/actions/onboarding.js

This file was deleted.

3 changes: 0 additions & 3 deletions app/javascript/mastodon/containers/mastodon.js
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { showOnboardingOnce } from '../actions/onboarding';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'react-router-scroll-4';
import UI from '../features/ui';
Expand Down Expand Up @@ -40,8 +39,6 @@ export default class Mastodon extends React.PureComponent {
const handlerUrl = window.location.protocol + '//' + window.location.host + '/intent?uri=%s';
window.setTimeout(() => navigator.registerProtocolHandler('web+mastodon', handlerUrl, 'Mastodon'), 5 * 60 * 1000);
}

store.dispatch(showOnboardingOnce());
}

componentWillUnmount () {
Expand Down
2 changes: 0 additions & 2 deletions app/javascript/mastodon/features/ui/components/modal_root.js
Expand Up @@ -9,7 +9,6 @@ import VideoModal from './video_modal';
import BoostModal from './boost_modal';
import ConfirmationModal from './confirmation_modal';
import {
OnboardingModal,
MuteModal,
ReportModal,
EmbedModal,
Expand All @@ -18,7 +17,6 @@ import {

const MODAL_COMPONENTS = {
'MEDIA': () => Promise.resolve({ default: MediaModal }),
'ONBOARDING': OnboardingModal,
'VIDEO': () => Promise.resolve({ default: VideoModal }),
'BOOST': () => Promise.resolve({ default: BoostModal }),
'CONFIRM': () => Promise.resolve({ default: ConfirmationModal }),
Expand Down
318 changes: 0 additions & 318 deletions app/javascript/mastodon/features/ui/components/onboarding_modal.js

This file was deleted.

4 changes: 0 additions & 4 deletions app/javascript/mastodon/features/ui/util/async-components.js
Expand Up @@ -94,10 +94,6 @@ export function Mutes () {
return import(/* webpackChunkName: "features/mutes" */'../../mutes');
}

export function OnboardingModal () {
return import(/* webpackChunkName: "modals/onboarding_modal" */'../components/onboarding_modal');
}

export function MuteModal () {
return import(/* webpackChunkName: "modals/mute_modal" */'../components/mute_modal');
}
Expand Down

0 comments on commit d799921

Please sign in to comment.