Skip to content

Commit

Permalink
Submission page updates for Topgear
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgasper committed Jan 12, 2024
1 parent f14eded commit 748ace9
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 12 deletions.
1 change: 1 addition & 0 deletions config/backup-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
55 changes: 43 additions & 12 deletions src/shared/components/SubmissionPage/Submit/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
: (
<span>
If you are having trouble uploading your file, please send your submission
to <a href="mailto:[email protected]">[email protected]</a>
</span>
);

// Find the state for FilePicker with id of 1 or assign default values
const fpState = filePickers.find(fp => fp.id === id) || ({
id,
Expand All @@ -189,14 +208,14 @@ class Submit extends React.Component {
{ isChallengeBelongToTopgearGroup ? 'URL' : 'SUBMISSION UPLOAD'}
</h2>
<p styleName="note">
Please follow the instructions on the Challenge Details page regarding
what your submission should contain and how it should be organized.
{ submissionInstruction }
</p>
{/* eslint-disable-next-line max-len */}
{ track === COMPETITION_TRACKS.DEV || track === COMPETITION_TRACKS.DS || track === COMPETITION_TRACKS.QA ? (
<p styleName="additional-note">
Upload your entire submission as a single zip file. If you are having
trouble uploading your file, please send your submission to <a href="mailto:[email protected]">[email protected]</a>
{ !isChallengeBelongToTopgearGroup
&& 'Upload your entire submission as a single zip file. ' }
{ troubleInstruction }
</p>
) : null }
<div styleName="submission-hints">
Expand Down Expand Up @@ -229,7 +248,7 @@ class Submit extends React.Component {
Help Center.
</a>
&nbsp;
If you are having trouble uploading your file, please send your submission to <a href="mailto:[email protected]">[email protected]</a>
{ troubleInstruction }
</p>
</div>
) : null }
Expand Down Expand Up @@ -266,13 +285,25 @@ class Submit extends React.Component {
<p>
Submitting your files means you hereby agree to the
&zwnj;
<a
href={config.URL.INFO.TOPCODER_TERMS}
rel="noreferrer noopener"
target="_blank"
>
Topcoder terms of use
</a>
{
isChallengeBelongToTopgearGroup ? (
<a
href={config.URL.INFO.TOPGEAR_TERMS}
rel="noreferrer noopener"
target="_blank"
>
TopGear terms and conditions
</a>
) : (
<a
href={config.URL.INFO.TOPCODER_TERMS}
rel="noreferrer noopener"
target="_blank"
>
Topcoder terms of use
</a>
)
}
&zwnj;
and to the extent your uploaded file wins a topcoder Competition,
you hereby assign, grant and transfer and agree to assign, grant and
Expand Down

0 comments on commit 748ace9

Please sign in to comment.