From 748ace961c0d18c362938c10bce3669ddc391591 Mon Sep 17 00:00:00 2001 From: Justin Gasper Date: Fri, 12 Jan 2024 12:25:43 +1100 Subject: [PATCH] Submission page updates for Topgear https://topcoder.atlassian.net/browse/PS-192 --- config/backup-default.js | 1 + config/default.js | 1 + .../SubmissionPage/Submit/index.jsx | 55 +++++++++++++++---- 3 files changed, 45 insertions(+), 12 deletions(-) diff --git a/config/backup-default.js b/config/backup-default.js index b5d276dfd..f7d0e839b 100644 --- a/config/backup-default.js +++ b/config/backup-default.js @@ -138,6 +138,7 @@ module.exports = { STUDIO_FONTS_POLICY: 'http://help.topcoder.com/hc/en-us/articles/217959447-Font-Policy-for-Design-Challenges', TOPCODER_TERMS: 'https://www.topcoder.com/community/how-it-works/terms/', + TOPGEAR_TERMS: 'https://topgear.topcoder.com/challenges/terms/detail/f1d8cca9-ac24-473c-998d-02f499a829cb', HOWTOCOMPETEINMARATHON: 'https://www.topcoder.com/thrive/articles/How%20To%20Compete%20in%20a%20Marathon%20Match', USABLECODEDEV: 'https://www.topcoder.com/thrive/articles/Usable%20Code%20in%20Dev%20Challenges', EXTENSIONVSCODE: 'https://marketplace.visualstudio.com/items?itemName=Topcoder.topcoder-workflow&ssr=false#overview', diff --git a/config/default.js b/config/default.js index 571a5d464..88cdd1427 100644 --- a/config/default.js +++ b/config/default.js @@ -139,6 +139,7 @@ module.exports = { STUDIO_FONTS_POLICY: 'http://help.topcoder.com/hc/en-us/articles/217959447-Font-Policy-for-Design-Challenges', TOPCODER_TERMS: 'https://www.topcoder.com/community/how-it-works/terms/', + TOPGEAR_TERMS: 'https://topgear.topcoder.com/challenges/terms/detail/f1d8cca9-ac24-473c-998d-02f499a829cb', HOWTOCOMPETEINMARATHON: 'https://www.topcoder.com/thrive/articles/How%20To%20Compete%20in%20a%20Marathon%20Match', USABLECODEDEV: 'https://www.topcoder.com/thrive/articles/Usable%20Code%20in%20Dev%20Challenges', EXTENSIONVSCODE: 'https://marketplace.visualstudio.com/items?itemName=Topcoder.topcoder-workflow&ssr=false#overview', diff --git a/src/shared/components/SubmissionPage/Submit/index.jsx b/src/shared/components/SubmissionPage/Submit/index.jsx index d6f0a90f7..d4ab2e752 100644 --- a/src/shared/components/SubmissionPage/Submit/index.jsx +++ b/src/shared/components/SubmissionPage/Submit/index.jsx @@ -163,6 +163,25 @@ class Submit extends React.Component { } } + const submissionInstruction = isChallengeBelongToTopgearGroup + ? `Challenge participants should upload the outcome/asset/deliverable of + the challenge to the repository specified by the project team/challenge creator. + Copy the link of the outcome/asset/deliverable that was uploaded and enter + this link in the text box and click on SET URL. Ensure that the submission + link always reflects the outcome that was delivered as part of the challenge. + Do not submit any irrelevant link as submission link is proof to the work done.` + : `Please follow the instructions on the Challenge Details page regarding + what your submission should contain and how it should be organized.`; + const troubleInstruction = isChallengeBelongToTopgearGroup + ? `If you are having trouble uploading your file, please raise a Service + Now (SNOW) ticket under the TopGear category.` + : ( + + If you are having trouble uploading your file, please send your submission + to support@topcoder.com + + ); + // Find the state for FilePicker with id of 1 or assign default values const fpState = filePickers.find(fp => fp.id === id) || ({ id, @@ -189,14 +208,14 @@ class Submit extends React.Component { { isChallengeBelongToTopgearGroup ? 'URL' : 'SUBMISSION UPLOAD'}

- Please follow the instructions on the Challenge Details page regarding - what your submission should contain and how it should be organized. + { submissionInstruction }

{/* eslint-disable-next-line max-len */} { track === COMPETITION_TRACKS.DEV || track === COMPETITION_TRACKS.DS || track === COMPETITION_TRACKS.QA ? (

- Upload your entire submission as a single zip file. If you are having - trouble uploading your file, please send your submission to support@topcoder.com + { !isChallengeBelongToTopgearGroup + && 'Upload your entire submission as a single zip file. ' } + { troubleInstruction }

) : null }
@@ -229,7 +248,7 @@ class Submit extends React.Component { Help Center.   - If you are having trouble uploading your file, please send your submission to support@topcoder.com + { troubleInstruction }

) : null } @@ -266,13 +285,25 @@ class Submit extends React.Component {

Submitting your files means you hereby agree to the ‌ - - Topcoder terms of use - + { + isChallengeBelongToTopgearGroup ? ( + + TopGear terms and conditions + + ) : ( + + Topcoder terms of use + + ) + } ‌ and to the extent your uploaded file wins a topcoder Competition, you hereby assign, grant and transfer and agree to assign, grant and