Skip to content

Commit fa66f51

Browse files
authored
Merge pull request #1193 from yoution/issue-1168
fix: issue #1168
2 parents beb313d + deca247 commit fa66f51

File tree

6 files changed

+25
-10
lines changed

6 files changed

+25
-10
lines changed

config/constants/development.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
SUBMISSIONS_API_URL: `${DEV_API_HOSTNAME}/v5/submissions`,
2222
PLATFORMS_V4_API_URL: `${DEV_API_HOSTNAME}/v4/platforms`,
2323
TECHNOLOGIES_V4_API_URL: `${DEV_API_HOSTNAME}/v4/technologies`,
24+
SUBMISSION_REVIEW_APP_URL: `https://submission-review.${DOMAIN}/challenges`,
2425
STUDIO_URL: `https://studio.${DOMAIN}`,
2526
CONNECT_APP_URL: `https://connect.${DOMAIN}`,
2627
DIRECT_PROJECT_URL: `https://www.${DOMAIN}/direct`,

config/constants/production.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
SUBMISSIONS_API_URL: `${PROD_API_HOSTNAME}/v5/submissions`,
2222
PLATFORMS_V4_API_URL: `${PROD_API_HOSTNAME}/v4/platforms`,
2323
TECHNOLOGIES_V4_API_URL: `${PROD_API_HOSTNAME}/v4/technologies`,
24+
SUBMISSION_REVIEW_APP_URL: `https://submission-review.${DOMAIN}/challenges`,
2425
STUDIO_URL: `https://studio.${DOMAIN}`,
2526
CONNECT_APP_URL: `https://connect.${DOMAIN}`,
2627
DIRECT_PROJECT_URL: `https://www.${DOMAIN}/direct`,

src/components/ChallengeEditor/Registrants/Registrants.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $member-red: #ea1900;
2020
padding-bottom: 197px;
2121
max-width: 966px;
2222
margin: 0 auto;
23-
margin-top: 30px;
23+
margin-top: 50px;
2424

2525
@include xs-to-sm {
2626
padding: 0 30px 30px;

src/components/ChallengeEditor/Submissions/Submissions.module.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ $base-unit: 5px;
2222
margin-left: auto;
2323
margin-right: auto;
2424

25+
.top-title {
26+
margin-top: -50px;
27+
text-align: center;
28+
}
29+
2530
div {
2631
white-space: nowrap;
2732
}
@@ -192,7 +197,7 @@ $base-unit: 5px;
192197
width: 100%;
193198
margin: 0 auto;
194199
padding-bottom: 30px;
195-
margin-top: 30px;
200+
margin-top: 50px;
196201
line-height: 50px;
197202
// text-align: center;
198203

src/components/ChallengeEditor/Submissions/index.js

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import React from 'react'
77
import PT from 'prop-types'
88
import moment from 'moment'
99
import _ from 'lodash'
10-
import { STUDIO_URL, getTCMemberURL } from '../../../config/constants'
10+
import { STUDIO_URL, SUBMISSION_REVIEW_APP_URL, getTCMemberURL } from '../../../config/constants'
1111
import cn from 'classnames'
1212
import ReactSVG from 'react-svg'
1313
import {
@@ -298,6 +298,11 @@ class SubmissionsComponent extends React.Component {
298298

299299
return (
300300
<div className={cn(styles.container, styles.dev, styles['non-mm'])}>
301+
<div className={styles['top-title']} >
302+
<a href={`${SUBMISSION_REVIEW_APP_URL}/${challenge.legacyId}`} target='_blank'>
303+
Manage Submissions
304+
</a>
305+
</div>
301306
<div className={styles.head}>
302307
{!isF2F && !isBugHunt && (
303308
<button
@@ -421,13 +426,15 @@ class SubmissionsComponent extends React.Component {
421426
{moment(s.created).format('MMM DD, YYYY HH:mm')}
422427
</div>
423428
<div className={styles['col-5']}>
424-
{!_.isEmpty(s.review) && s.review[0].score
425-
? s.review[0].score.toFixed(2)
426-
: 'N/A'}
427-
&zwnj; &zwnj;/ &zwnj;
428-
{s.reviewSummation && s.reviewSummation[0].aggregateScore
429-
? s.reviewSummation[0].aggregateScore.toFixed(2)
430-
: 'N/A'}
429+
<a href={`${SUBMISSION_REVIEW_APP_URL}/${challenge.legacyId}/submissions/${s.id} `} target='_blank'>
430+
{!_.isEmpty(s.review) && s.review[0].score
431+
? s.review[0].score.toFixed(2)
432+
: 'N/A'}
433+
&zwnj; &zwnj;/ &zwnj;
434+
{s.reviewSummation && s.reviewSummation[0].aggregateScore
435+
? s.reviewSummation[0].aggregateScore.toFixed(2)
436+
: 'N/A'}
437+
</a>
431438
</div>
432439
</div>
433440
))}

src/config/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
export const {
55
COMMUNITY_APP_URL,
66
CHALLENGE_API_URL,
7+
SUBMISSION_REVIEW_APP_URL,
78
STUDIO_URL,
89
CONNECT_APP_URL,
910
DIRECT_PROJECT_URL,

0 commit comments

Comments
 (0)