diff --git a/__tests__/shared/components/Header/__snapshots__/index.jsx.snap b/__tests__/shared/components/Header/__snapshots__/index.jsx.snap index 311045f5f8..64c4410dc1 100644 --- a/__tests__/shared/components/Header/__snapshots__/index.jsx.snap +++ b/__tests__/shared/components/Header/__snapshots__/index.jsx.snap @@ -23,21 +23,13 @@ exports[`Default render 1`] = ` "id": "community", "secondaryMenuForGuest": Array [ Object { - "href": "https://www.topcoder-dev.com/about", + "href": "/community/learn", "title": "Overview", }, Object { - "href": "https://www.topcoder-dev.com/how-it-works/faqs/", + "href": "/thrive/tracks?track=Topcoder", "title": "How It Works", }, - Object { - "href": "/community/learn", - "title": "Tracks", - }, - Object { - "href": "https://www.topcoder-dev.com/about/why-crowdsourcing/", - "title": "Why Join", - }, ], "secondaryMenuForLoggedInUser": Array [ Object { @@ -96,7 +88,7 @@ exports[`Default render 1`] = ` Object { "subMenu": Array [ Object { - "href": "https://www.topcoder-dev.com/tco", + "href": "/tco", "title": "TCO", }, Object { @@ -116,9 +108,13 @@ exports[`Default render 1`] = ` "title": "Events", }, Object { - "href": "https://www.topcoder-dev.com/blog", + "href": "/blog", "title": "Blog", }, + Object { + "href": "/thrive", + "title": "Thrive", + }, ], "title": "Explore", }, @@ -146,8 +142,7 @@ exports[`Default render 1`] = ` "title": "Help", }, Object { - "href": "https://www.topcoder.com/about/", - "title": "About Topcoder", + "separator": true, }, Object { "href": "https://www.topcoder-dev.com/logout", diff --git a/config/default.js b/config/default.js index db896d63bf..00f1835fc0 100644 --- a/config/default.js +++ b/config/default.js @@ -223,39 +223,6 @@ module.exports = { }, }, - SECONDARY_MENU_FOR_LOGGED_USER: [ - { - title: 'Dashboard', - href: '/my-dashboard', - }, - { - id: 'myprofile', - title: 'My Profile', - href: '/members/', - }, - { - title: 'Payments', - href: 'https://community.topcoder-dev.com/PactsMemberServlet?module=PaymentHistory&full_list=false', - }, - ], - SECONDARY_MENU_FOR_GUEST: [ - { - title: 'Overview', - href: 'https://www.topcoder-dev.com/about', - }, - { - title: 'How It Works', - href: 'https://www.topcoder-dev.com/how-it-works/faqs/', - }, - { - title: 'Tracks', - href: '/community/learn', - }, - { - title: 'Why Join', - href: 'https://www.topcoder-dev.com/about/why-crowdsourcing/', - }, - ], ACCOUNT_MENU_SWITCH_TEXT: { title: 'Switch to BUSINESS', href: 'https://connect.topcoder-dev.com', @@ -287,19 +254,11 @@ module.exports = { secondaryMenuForGuest: [ { title: 'Overview', - href: 'https://www.topcoder-dev.com/about', - }, - { - title: 'How It Works', - href: 'https://www.topcoder-dev.com/how-it-works/faqs/', - }, - { - title: 'Tracks', href: '/community/learn', }, { - title: 'Why Join', - href: 'https://www.topcoder-dev.com/about/why-crowdsourcing/', + title: 'How It Works', + href: '/thrive/tracks?track=Topcoder', }, ], subMenu: [ @@ -346,7 +305,7 @@ module.exports = { subMenu: [ { title: 'TCO', - href: 'https://www.topcoder-dev.com/tco', + href: '/tco', }, { title: 'Programs', @@ -366,7 +325,11 @@ module.exports = { }, { title: 'Blog', - href: 'https://www.topcoder-dev.com/blog', + href: '/blog', + }, + { + title: 'Thrive', + href: '/thrive', }, ], }, @@ -388,10 +351,7 @@ module.exports = { title: 'Help', href: 'https://help.topcoder-dev.com/', }, - { - title: 'About Topcoder', - href: 'https://www.topcoder.com/about/', - }, + { separator: true }, { title: 'Log Out', href: 'https://www.topcoder-dev.com/logout', diff --git a/config/production.js b/config/production.js index 99a369561f..781bcf4f09 100644 --- a/config/production.js +++ b/config/production.js @@ -56,6 +56,11 @@ module.exports = { FILESTACK: { SUBMISSION_CONTAINER: 'topcoder-submissions-dmz', }, + + ACCOUNT_MENU_SWITCH_TEXT: { + title: 'Switch to BUSINESS', + href: 'https://connect.topcoder.com', + }, HEADER_MENU: [ { id: 'business', @@ -83,19 +88,11 @@ module.exports = { secondaryMenuForGuest: [ { title: 'Overview', - href: 'https://www.topcoder.com/about', - }, - { - title: 'How It Works', - href: 'https://www.topcoder.com/how-it-works/faqs/', - }, - { - title: 'Tracks', href: '/community/learn', }, { - title: 'Why Join', - href: 'https://www.topcoder.com/about/why-crowdsourcing/', + title: 'How It Works', + href: '/thrive/tracks?track=Topcoder', }, ], subMenu: [ @@ -142,7 +139,7 @@ module.exports = { subMenu: [ { title: 'TCO', - href: 'https://www.topcoder.com/tco', + href: '/tco', }, { title: 'Programs', @@ -162,7 +159,11 @@ module.exports = { }, { title: 'Blog', - href: 'https://www.topcoder.com/blog', + href: '/blog', + }, + { + title: 'Thrive', + href: '/thrive', }, ], }, @@ -184,50 +185,16 @@ module.exports = { title: 'Help', href: 'https://help.topcoder.com/', }, - { - title: 'About Topcoder', - href: 'https://www.topcoder.com/about/', - }, + { separator: true }, { title: 'Log Out', href: 'https://www.topcoder.com/logout', }, ], - SECONDARY_MENU_FOR_LOGGED_USER: [ - { - title: 'Dashboard', - href: '/my-dashboard', - }, - { - id: 'myprofile', - title: 'My Profile', - href: '/members/', - }, - { - title: 'Payments', - href: 'https://community.topcoder.com/PactsMemberServlet?module=PaymentHistory&full_list=false', - }, - ], - SECONDARY_MENU_FOR_GUEST: [ - { - title: 'Overview', - href: 'https://www.topcoder.com/about', - }, - { - title: 'How It Works', - href: 'https://www.topcoder.com/how-it-works/faqs/', - }, - { - title: 'Tracks', - href: '/community/learn', - }, - { - title: 'Why Join', - href: 'https://www.topcoder.com/about/why-crowdsourcing/', - }, - ], - ACCOUNT_MENU_SWITCH_TEXT: { - title: 'Switch to BUSINESS', - href: 'https://connect.topcoder.com', - }, + // Config for TC EDU - THRIVE + TC_EDU_BASE_PATH: '/thrive', + TC_EDU_TRACKS_PATH: '/tracks', + TC_EDU_ARTICLES_PATH: '/articles', + TC_EDU_SEARCH_PATH: '/search', + TC_EDU_SEARCH_BAR_MAX_RESULTS_EACH_GROUP: 3, };