File tree Expand file tree Collapse file tree 8 files changed +34
-3
lines changed
Dashboard/TCOLeaderboards Expand file tree Collapse file tree 8 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -349,6 +349,7 @@ workflows:
349349 filters :
350350 branches :
351351 only :
352+ - enable_dashboard_on_data_science
352353 - free
353354 # This is alternate dev env for parallel testing
354355 - " build-test " :
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ exports[`Snapshot match 1`] = `
2323 async = { true }
2424 src = " https://43d132d5dbff47c59d9d53ad448f93c2.js.ubembed.com"
2525 />
26+ <script
27+ src = " //cdn-3.convertexperiments.com/js/10005965-10006774.js"
28+ type = " text/javascript"
29+ />
2630 </HelmetWrapper >
2731 <withRouter(Connect(Routes)) />
2832 <Connect(ErrorMessageContainer) />
@@ -62,6 +66,10 @@ exports[`Snapshot match 2`] = `
6266 async = { true }
6367 src = " https://43d132d5dbff47c59d9d53ad448f93c2.js.ubembed.com"
6468 />
69+ <script
70+ src = " //cdn-3.convertexperiments.com/js/10005965-10006774.js"
71+ type = " text/javascript"
72+ />
6573 </HelmetWrapper >
6674 <withRouter(Connect(Routes)) />
6775 <Connect(ErrorMessageContainer) />
Original file line number Diff line number Diff line change @@ -136,6 +136,11 @@ exports[`Default render 1`] = `
136136 " openNewTab" : true ,
137137 " title" : " Discord" ,
138138 },
139+ Object {
140+ " href" : " https://platform-ui.topcoder-dev.com/learn" ,
141+ " openNewTab" : true ,
142+ " title" : " Learn" ,
143+ },
139144 ],
140145 " title" : " COMMUNITY" ,
141146 },
Original file line number Diff line number Diff line change @@ -410,6 +410,11 @@ module.exports = {
410410 href : 'https://discord.gg/topcoder' ,
411411 openNewTab : true ,
412412 } ,
413+ {
414+ title : 'Learn' ,
415+ href : 'https://platform-ui.topcoder-dev.com/learn' ,
416+ openNewTab : true ,
417+ } ,
413418 ] ,
414419 } ,
415420 ] ,
Original file line number Diff line number Diff line change @@ -194,6 +194,11 @@ module.exports = {
194194 href : 'https://discord.gg/topcoder?ref=nav' ,
195195 openNewTab : true ,
196196 } ,
197+ {
198+ title : 'Learn' ,
199+ href : 'https://platform-ui.topcoder.com/learn' ,
200+ openNewTab : true ,
201+ } ,
197202 ] ,
198203 } ,
199204 ] ,
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ export default function App() {
3838 < meta name = "theme-color" content = "#FFFFFF" />
3939 < link rel = "manifest" href = "/challenges/manifest.json" />
4040 < script src = { config . URL . ABANDONMENT_EMBED } async />
41+ < script type = "text/javascript" src = "//cdn-3.convertexperiments.com/js/10005965-10006774.js" />
4142 </ Helmet >
4243 < Routes />
4344 < ErrorMessage />
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export default class TCOLeaderboards extends React.Component {
5151 < div styleName = "handle" >
5252 < a href = { `https://topcoder.com/members/${ row [ 'member_profile_basic.handle' ] } ` } target = "_blank" rel = "noreferrer" > { row [ 'member_profile_basic.handle' ] } </ a >
5353 </ div >
54- < span styleName = "tcoPoints" > { row [ 'tco_leaderboard.tco_points' ] . toLocaleString ( 'en-US' , { maximumFractionDigits : 2 } ) } </ span >
54+ < span styleName = "tcoPoints" > { ( row [ 'tco23_leaderboard.tco_points' ] ? row [ 'tco23_leaderboard.tco_points' ] : row [ ' tco_leaderboard.tco_points'] ) . toLocaleString ( 'en-US' , { maximumFractionDigits : 2 } ) } </ span >
5555 </ div >
5656 ) ) : < LoadingIndicator /> ;
5757
Original file line number Diff line number Diff line change @@ -42,7 +42,12 @@ export default function ChallengeViewSelector(props) {
4242 viewAsTable,
4343 } = props ;
4444
45- const { type, tags } = challenge ;
45+ let showDashboard ;
46+ const { type, tags, metadata } = challenge ;
47+ const dashboardMetadata = _ . find ( metadata , { name : 'show_data_dashboard' } ) ;
48+ if ( dashboardMetadata ) {
49+ showDashboard = dashboardMetadata . value ;
50+ }
4651
4752 const [ currentSelected , setCurrentSelected ] = useState ( 'Details' ) ;
4853 const [ isTabClosed , setIsTabClosed ] = useState ( true ) ;
@@ -300,7 +305,7 @@ export default function ChallengeViewSelector(props) {
300305 return '' ;
301306 } ) ( ) }
302307 {
303- ( isMM || challenge . track . toLowerCase ( ) === 'data science' ) && (
308+ ( challenge . track . toLowerCase ( ) === 'data science' && showDashboard ) && (
304309 < a
305310 tabIndex = "0"
306311 role = "tab"
@@ -455,6 +460,7 @@ ChallengeViewSelector.propTypes = {
455460 type : PT . string ,
456461 track : PT . string ,
457462 tags : PT . arrayOf ( PT . shape ( ) ) ,
463+ metadata : PT . arrayOf ( PT . string ) ,
458464 submissionViewable : PT . string ,
459465 } ) ,
460466 isMM : PT . bool ,
You can’t perform that action at this time.
0 commit comments