Skip to content

Commit

Permalink
New reminder to use the new app when launching challenges
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgasper committed Aug 29, 2024
1 parent fa11dcc commit 46442d7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/components/ChallengeEditor/ChallengeEditor.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -459,3 +459,22 @@ ul.linkList {
content:',\0000a0'; /* Non-breaking space */
}
}

.newPlatformWarning{
text-align: center;
background-color: rgb(204, 65, 65);
padding: 20px;
max-width: 600px;
border-radius: 6px;
margin-bottom: 10px;

a {
color: white;
text-decoration: underline;
}
}

.warningHeader{
font-weight: bold;
font-size: 1.2rem;
}
6 changes: 6 additions & 0 deletions src/components/ChallengeEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1641,6 +1641,8 @@ class ChallengeEditor extends Component {
const currentChallengeId = this.getCurrentChallengeId()
const showTimeline = false // disables the timeline for time being https://github.com/topcoder-platform/challenge-engine-ui/issues/706
const copilotResources = metadata.members || challengeResources
console.log(`Members: ${JSON.stringify(metadata.members, null, 5)}`)
console.log(`challengeResources: ${JSON.stringify(challengeResources, null, 5)}`)
const isDesignChallenge = challenge.trackId === DES_TRACK_ID
const isDevChallenge = challenge.trackId === DEV_TRACK_ID
const isMM = challenge.typeId === MARATHON_TYPE_ID
Expand All @@ -1660,6 +1662,10 @@ class ChallengeEditor extends Component {
const challengeForm = isNew
? (
<form name='challenge-new-form' noValidate autoComplete='off' onSubmit={this.createChallengeHandler}>
<div className={styles.newPlatformWarning}>
<span className={styles.warningHeader}>Please use the new platform</span><br />
<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>
</div>
<div className={styles.newFormContainer}>
<TrackField tracks={metadata.challengeTracks} challenge={challenge} onUpdateOthers={this.onUpdateOthers} />
<TypeField types={filteredTypes} onUpdateSelect={this.onUpdateSelect} challenge={challenge} />
Expand Down

0 comments on commit 46442d7

Please sign in to comment.