From 46442d7961c34b94ac4465eb6329d9bc1d60f35f Mon Sep 17 00:00:00 2001 From: Justin Gasper Date: Thu, 29 Aug 2024 01:11:31 +0000 Subject: [PATCH] New reminder to use the new app when launching challenges --- .../ChallengeEditor.module.scss | 19 +++++++++++++++++++ src/components/ChallengeEditor/index.js | 6 ++++++ 2 files changed, 25 insertions(+) diff --git a/src/components/ChallengeEditor/ChallengeEditor.module.scss b/src/components/ChallengeEditor/ChallengeEditor.module.scss index 80989102..053b65ec 100644 --- a/src/components/ChallengeEditor/ChallengeEditor.module.scss +++ b/src/components/ChallengeEditor/ChallengeEditor.module.scss @@ -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; +} \ No newline at end of file diff --git a/src/components/ChallengeEditor/index.js b/src/components/ChallengeEditor/index.js index 0ce1ea9a..0b428159 100644 --- a/src/components/ChallengeEditor/index.js +++ b/src/components/ChallengeEditor/index.js @@ -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 @@ -1660,6 +1662,10 @@ class ChallengeEditor extends Component { const challengeForm = isNew ? (
+
+ Please use the new platform
+ If you are launching a challenge that is not a Marathon Match or Innovation Challenge, please use the new app platform here +