diff --git a/.circleci/config.yml b/.circleci/config.yml
index 5b87843434..83c2a82428 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -349,6 +349,7 @@ workflows:
filters:
branches:
only:
+ - enable_dashboard_on_data_science
- free
# This is alternate dev env for parallel testing
- "build-test":
diff --git a/__tests__/shared/__snapshots__/index.jsx.snap b/__tests__/shared/__snapshots__/index.jsx.snap
index 0304c1a0a5..2069cbf96f 100644
--- a/__tests__/shared/__snapshots__/index.jsx.snap
+++ b/__tests__/shared/__snapshots__/index.jsx.snap
@@ -23,6 +23,10 @@ exports[`Snapshot match 1`] = `
async={true}
src="https://43d132d5dbff47c59d9d53ad448f93c2.js.ubembed.com"
/>
+
@@ -62,6 +66,10 @@ exports[`Snapshot match 2`] = `
async={true}
src="https://43d132d5dbff47c59d9d53ad448f93c2.js.ubembed.com"
/>
+
diff --git a/__tests__/shared/components/Header/__snapshots__/index.jsx.snap b/__tests__/shared/components/Header/__snapshots__/index.jsx.snap
index 57529344d8..4379a704c9 100644
--- a/__tests__/shared/components/Header/__snapshots__/index.jsx.snap
+++ b/__tests__/shared/components/Header/__snapshots__/index.jsx.snap
@@ -136,6 +136,11 @@ exports[`Default render 1`] = `
"openNewTab": true,
"title": "Discord",
},
+ Object {
+ "href": "https://platform-ui.topcoder-dev.com/learn",
+ "openNewTab": true,
+ "title": "Learn",
+ },
],
"title": "COMMUNITY",
},
diff --git a/config/default.js b/config/default.js
index fc8f5da39b..e7058e0ccb 100644
--- a/config/default.js
+++ b/config/default.js
@@ -410,6 +410,11 @@ module.exports = {
href: 'https://discord.gg/topcoder',
openNewTab: true,
},
+ {
+ title: 'Learn',
+ href: 'https://platform-ui.topcoder-dev.com/learn',
+ openNewTab: true,
+ },
],
},
],
diff --git a/config/production.js b/config/production.js
index a97b9b3cb3..528760c7d9 100644
--- a/config/production.js
+++ b/config/production.js
@@ -194,6 +194,11 @@ module.exports = {
href: 'https://discord.gg/topcoder?ref=nav',
openNewTab: true,
},
+ {
+ title: 'Learn',
+ href: 'https://platform-ui.topcoder.com/learn',
+ openNewTab: true,
+ },
],
},
],
diff --git a/src/shared/app.jsx b/src/shared/app.jsx
index fa1757a8c2..4199a32cf7 100644
--- a/src/shared/app.jsx
+++ b/src/shared/app.jsx
@@ -38,6 +38,7 @@ export default function App() {
+
diff --git a/src/shared/components/Dashboard/TCOLeaderboards/index.jsx b/src/shared/components/Dashboard/TCOLeaderboards/index.jsx
index 3367c55141..881611ef09 100644
--- a/src/shared/components/Dashboard/TCOLeaderboards/index.jsx
+++ b/src/shared/components/Dashboard/TCOLeaderboards/index.jsx
@@ -51,7 +51,7 @@ export default class TCOLeaderboards extends React.Component {
- {row['tco_leaderboard.tco_points'].toLocaleString('en-US', { maximumFractionDigits: 2 })}
+ {(row['tco23_leaderboard.tco_points'] ? row['tco23_leaderboard.tco_points'] : row['tco_leaderboard.tco_points']).toLocaleString('en-US', { maximumFractionDigits: 2 })}
)) : ;
diff --git a/src/shared/components/challenge-detail/Header/TabSelector/index.jsx b/src/shared/components/challenge-detail/Header/TabSelector/index.jsx
index 14175c3264..dcdc49f122 100644
--- a/src/shared/components/challenge-detail/Header/TabSelector/index.jsx
+++ b/src/shared/components/challenge-detail/Header/TabSelector/index.jsx
@@ -42,7 +42,12 @@ export default function ChallengeViewSelector(props) {
viewAsTable,
} = props;
- const { type, tags } = challenge;
+ let showDashboard;
+ const { type, tags, metadata } = challenge;
+ const dashboardMetadata = _.find(metadata, { name: 'show_data_dashboard' });
+ if (dashboardMetadata) {
+ showDashboard = dashboardMetadata.value;
+ }
const [currentSelected, setCurrentSelected] = useState('Details');
const [isTabClosed, setIsTabClosed] = useState(true);
@@ -300,7 +305,7 @@ export default function ChallengeViewSelector(props) {
return '';
})()}
{
- (isMM || challenge.track.toLowerCase() === 'data science') && (
+ (challenge.track.toLowerCase() === 'data science' && showDashboard) && (