Skip to content

Commit 4f52467

Browse files
Merge pull request #5210 from topcoder-platform/submission-review
Smoke Testing 2020/11/24 - Submission review
2 parents 76d7e93 + 74b6955 commit 4f52467

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ workflows:
231231
branches:
232232
only:
233233
- develop
234+
- submission-review
234235
# This is alternate dev env for parallel testing
235236
- "build-test":
236237
context : org-global
@@ -260,6 +261,7 @@ workflows:
260261
branches:
261262
only:
262263
- develop
264+
- submission-review
263265
# Production builds are exectuted
264266
# when PR is merged to the master
265267
# Don't change anything in this configuration

config/default.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ module.exports = {
112112
COMMUNITY: 'https://community.topcoder-dev.com',
113113
FORUMS: 'https://apps.topcoder-dev.com/forums',
114114
HELP: 'https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles',
115+
SUBMISSION_REVIEW: 'https://submission-review.topcoder-dev.com',
115116

116117
THRIVE: 'https://www.topcoder.com/thrive',
117118

config/production.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module.exports = {
3232
COMMUNITY: 'https://community.topcoder.com',
3333
FORUMS: 'https://apps.topcoder.com/forums',
3434
HELP: 'https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles',
35+
SUBMISSION_REVIEW: 'https://submission-review.topcoder.com',
3536
MEMBER: 'https://member.topcoder.com',
3637
ONLINE_REVIEW: 'https://software.topcoder.com',
3738
PAYMENT_TOOL: 'https://payment.topcoder.com',

src/shared/components/challenge-detail/Header/TabSelector/index.jsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,18 @@ export default function ChallengeViewSelector(props) {
160160
</a>
161161
) : null
162162
}
163+
{
164+
(hasRegistered && mySubmissions.length > 0) && (
165+
<a
166+
href={`${config.URL.SUBMISSION_REVIEW}/challenges/${challenge.legacyId}`}
167+
styleName="challenge-selector-common challenge-unselected-view"
168+
target="_blank"
169+
rel="oopener noreferrer"
170+
>
171+
SUBMISSION REVIEW
172+
</a>
173+
)
174+
}
163175
{
164176
numWinners ? (
165177
<a
@@ -225,6 +237,7 @@ ChallengeViewSelector.defaultProps = {
225237
ChallengeViewSelector.propTypes = {
226238
isLoggedIn: PT.bool,
227239
challenge: PT.shape({
240+
legacyId: PT.string,
228241
legacy: PT.shape({
229242
forumId: PT.number,
230243
}),

0 commit comments

Comments
 (0)