Skip to content

Commit 46442d7

Browse files
committed
New reminder to use the new app when launching challenges
1 parent fa11dcc commit 46442d7

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/components/ChallengeEditor/ChallengeEditor.module.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,3 +459,22 @@ ul.linkList {
459459
content:',\0000a0'; /* Non-breaking space */
460460
}
461461
}
462+
463+
.newPlatformWarning{
464+
text-align: center;
465+
background-color: rgb(204, 65, 65);
466+
padding: 20px;
467+
max-width: 600px;
468+
border-radius: 6px;
469+
margin-bottom: 10px;
470+
471+
a {
472+
color: white;
473+
text-decoration: underline;
474+
}
475+
}
476+
477+
.warningHeader{
478+
font-weight: bold;
479+
font-size: 1.2rem;
480+
}

src/components/ChallengeEditor/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,6 +1641,8 @@ class ChallengeEditor extends Component {
16411641
const currentChallengeId = this.getCurrentChallengeId()
16421642
const showTimeline = false // disables the timeline for time being https://github.com/topcoder-platform/challenge-engine-ui/issues/706
16431643
const copilotResources = metadata.members || challengeResources
1644+
console.log(`Members: ${JSON.stringify(metadata.members, null, 5)}`)
1645+
console.log(`challengeResources: ${JSON.stringify(challengeResources, null, 5)}`)
16441646
const isDesignChallenge = challenge.trackId === DES_TRACK_ID
16451647
const isDevChallenge = challenge.trackId === DEV_TRACK_ID
16461648
const isMM = challenge.typeId === MARATHON_TYPE_ID
@@ -1660,6 +1662,10 @@ class ChallengeEditor extends Component {
16601662
const challengeForm = isNew
16611663
? (
16621664
<form name='challenge-new-form' noValidate autoComplete='off' onSubmit={this.createChallengeHandler}>
1665+
<div className={styles.newPlatformWarning}>
1666+
<span className={styles.warningHeader}>Please use the new platform</span><br />
1667+
<span>If you are launching a challenge that is not a Marathon Match or Innovation Challenge, please use the new app platform <a href='https://app.topcoder.com'>here</a></span>
1668+
</div>
16631669
<div className={styles.newFormContainer}>
16641670
<TrackField tracks={metadata.challengeTracks} challenge={challenge} onUpdateOthers={this.onUpdateOthers} />
16651671
<TypeField types={filteredTypes} onUpdateSelect={this.onUpdateSelect} challenge={challenge} />

0 commit comments

Comments
 (0)