(sendTrackEvent('edx.bi.welcome.page.support.link.clicked'))}
diff --git a/src/welcome/WelcomePageModal.jsx b/src/progressive-profiling/ProgressiveProfilingPageModal.jsx
similarity index 87%
rename from src/welcome/WelcomePageModal.jsx
rename to src/progressive-profiling/ProgressiveProfilingPageModal.jsx
index 08e1f302..4d4b4a1b 100644
--- a/src/welcome/WelcomePageModal.jsx
+++ b/src/progressive-profiling/ProgressiveProfilingPageModal.jsx
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
import messages from './messages';
-const WelcomePageModal = (props) => {
+const ProgressiveProfilingPageModal = (props) => {
const { intl, isOpen, redirectUrl } = props;
const platformName = getConfig().SITE_NAME;
@@ -46,14 +46,14 @@ const WelcomePageModal = (props) => {
);
};
-WelcomePageModal.propTypes = {
+ProgressiveProfilingPageModal.propTypes = {
intl: intlShape.isRequired,
isOpen: PropTypes.bool,
redirectUrl: PropTypes.string.isRequired,
};
-WelcomePageModal.defaultProps = {
+ProgressiveProfilingPageModal.defaultProps = {
isOpen: false,
};
-export default injectIntl(WelcomePageModal);
+export default injectIntl(ProgressiveProfilingPageModal);
diff --git a/src/welcome/data/actions.js b/src/progressive-profiling/data/actions.js
similarity index 100%
rename from src/welcome/data/actions.js
rename to src/progressive-profiling/data/actions.js
diff --git a/src/welcome/data/reducers.js b/src/progressive-profiling/data/reducers.js
similarity index 100%
rename from src/welcome/data/reducers.js
rename to src/progressive-profiling/data/reducers.js
diff --git a/src/welcome/data/sagas.js b/src/progressive-profiling/data/sagas.js
similarity index 100%
rename from src/welcome/data/sagas.js
rename to src/progressive-profiling/data/sagas.js
diff --git a/src/welcome/data/selectors.js b/src/progressive-profiling/data/selectors.js
similarity index 100%
rename from src/welcome/data/selectors.js
rename to src/progressive-profiling/data/selectors.js
diff --git a/src/welcome/data/service.js b/src/progressive-profiling/data/service.js
similarity index 100%
rename from src/welcome/data/service.js
rename to src/progressive-profiling/data/service.js
diff --git a/src/welcome/index.js b/src/progressive-profiling/index.js
similarity index 100%
rename from src/welcome/index.js
rename to src/progressive-profiling/index.js
diff --git a/src/welcome/messages.jsx b/src/progressive-profiling/messages.jsx
similarity index 100%
rename from src/welcome/messages.jsx
rename to src/progressive-profiling/messages.jsx
diff --git a/src/welcome/tests/ProgressiveProfiling.test.jsx b/src/progressive-profiling/tests/ProgressiveProfiling.test.jsx
similarity index 98%
rename from src/welcome/tests/ProgressiveProfiling.test.jsx
rename to src/progressive-profiling/tests/ProgressiveProfiling.test.jsx
index 4113ee22..c1e749e7 100644
--- a/src/welcome/tests/ProgressiveProfiling.test.jsx
+++ b/src/progressive-profiling/tests/ProgressiveProfiling.test.jsx
@@ -33,7 +33,7 @@ auth.hydrateAuthenticatedUser = jest.fn().mockImplementation(() => Promise.resol
describe('ProgressiveProfilingTests', () => {
mergeConfig({
- WELCOME_PAGE_SUPPORT_LINK: 'http://localhost:1999/welcome',
+ AUTHN_PROGRESSIVE_PROFILING_SUPPORT_LINK: 'http://localhost:1999/welcome',
});
const registrationResult = { redirectUrl: getConfig().LMS_BASE_URL + DEFAULT_REDIRECT_URL, success: true };
const fields = {
diff --git a/src/register/RegistrationPage.jsx b/src/register/RegistrationPage.jsx
index 1cdb23f7..1377ba5c 100644
--- a/src/register/RegistrationPage.jsx
+++ b/src/register/RegistrationPage.jsx
@@ -462,7 +462,7 @@ const RegistrationPage = (props) => {
finishAuthUrl={finishAuthUrl}
optionalFields={optionalFields}
redirectToWelcomePage={
- getConfig().ENABLE_PROGRESSIVE_PROFILING && Object.keys(optionalFields).length !== 0
+ getConfig().ENABLE_PROGRESSIVE_PROFILING_ON_AUTHN && Object.keys(optionalFields).length !== 0
}
/>
diff --git a/src/register/tests/RegistrationPage.test.jsx b/src/register/tests/RegistrationPage.test.jsx
index f9df96b4..2b755f5a 100644
--- a/src/register/tests/RegistrationPage.test.jsx
+++ b/src/register/tests/RegistrationPage.test.jsx
@@ -13,7 +13,7 @@ import { Router } from 'react-router-dom';
import renderer from 'react-test-renderer';
import configureStore from 'redux-mock-store';
-import { COMPLETE_STATE, PENDING_STATE, WELCOME_PAGE } from '../../data/constants';
+import { AUTHN_PROGRESSIVE_PROFILING, COMPLETE_STATE, PENDING_STATE } from '../../data/constants';
import {
backupRegistrationFormBegin,
clearUsernameSuggestions,
@@ -719,7 +719,7 @@ describe('RegistrationPage', () => {
it('should redirect to dashboard if features flags are configured but no optional fields are configured', () => {
mergeConfig({
- ENABLE_PROGRESSIVE_PROFILING: true,
+ ENABLE_PROGRESSIVE_PROFILING_ON_AUTHN: true,
});
const dashboardUrl = 'https://test.com/testing-dashboard/';
store = mockStore({
@@ -740,7 +740,7 @@ describe('RegistrationPage', () => {
it('should redirect to progressive profiling page if optional fields are configured', () => {
mergeConfig({
- ENABLE_PROGRESSIVE_PROFILING: true,
+ ENABLE_PROGRESSIVE_PROFILING_ON_AUTHN: true,
});
store = mockStore({
@@ -764,7 +764,7 @@ describe('RegistrationPage', () => {
,
));
progressiveProfilingPage.update();
- expect(history.location.pathname).toEqual(WELCOME_PAGE);
+ expect(history.location.pathname).toEqual(AUTHN_PROGRESSIVE_PROFILING);
});
// ******** test hinted third party auth ********