From 2a20c5423b6978dc063df1516de04facb87854f8 Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Thu, 19 Nov 2020 23:51:57 -0300 Subject: [PATCH 1/4] Add Submission Review tab to challenge spec --- config/default.js | 1 + config/production.js | 1 + .../challenge-detail/Header/TabSelector/index.jsx | 13 +++++++++++++ 3 files changed, 15 insertions(+) diff --git a/config/default.js b/config/default.js index 0d6224aada..9f7fed509e 100644 --- a/config/default.js +++ b/config/default.js @@ -112,6 +112,7 @@ module.exports = { COMMUNITY: 'https://community.topcoder-dev.com', FORUMS: 'https://apps.topcoder-dev.com/forums', HELP: 'https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles', + SUBMISSION_REVIEW: 'https://submission-review.topcoder-dev.com', THRIVE: 'https://www.topcoder.com/thrive', diff --git a/config/production.js b/config/production.js index 44f89c1ef9..f068357d6e 100644 --- a/config/production.js +++ b/config/production.js @@ -32,6 +32,7 @@ module.exports = { COMMUNITY: 'https://community.topcoder.com', FORUMS: 'https://apps.topcoder.com/forums', HELP: 'https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles', + SUBMISSION_REVIEW: 'https://submission-review.topcoder-dev.com', MEMBER: 'https://member.topcoder.com', ONLINE_REVIEW: 'https://software.topcoder.com', PAYMENT_TOOL: 'https://payment.topcoder.com', diff --git a/src/shared/components/challenge-detail/Header/TabSelector/index.jsx b/src/shared/components/challenge-detail/Header/TabSelector/index.jsx index 0445677aa7..289bd641d4 100644 --- a/src/shared/components/challenge-detail/Header/TabSelector/index.jsx +++ b/src/shared/components/challenge-detail/Header/TabSelector/index.jsx @@ -160,6 +160,18 @@ export default function ChallengeViewSelector(props) { ) : null } + { + (hasRegistered && mySubmissions.length > 0) && ( + + SUBMISSION REVIEW + + ) + } { numWinners ? ( Date: Thu, 19 Nov 2020 23:53:14 -0300 Subject: [PATCH 2/4] ci: deploy submission-review to Dev env --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 23b1d90989..7325656ca4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -231,6 +231,7 @@ workflows: branches: only: - develop + - submission-review # This is alternate dev env for parallel testing - "build-test": context : org-global From 5a3a930928c10d97932949488a453994a02404a7 Mon Sep 17 00:00:00 2001 From: Luiz Ricardo Rodrigues Date: Fri, 20 Nov 2020 02:06:34 -0300 Subject: [PATCH 3/4] ci: deploy ubmission-review to Stag env Issue #5201 --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7325656ca4..398c9b80f2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -261,6 +261,7 @@ workflows: branches: only: - develop + - submission-review # Production builds are exectuted # when PR is merged to the master # Don't change anything in this configuration From 74b695548538d68210d157f703ad4ac364e1d34e Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Fri, 20 Nov 2020 02:48:14 -0300 Subject: [PATCH 4/4] Submission Review - Fix prod URL --- config/production.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/production.js b/config/production.js index f068357d6e..1ab2d4fb87 100644 --- a/config/production.js +++ b/config/production.js @@ -32,7 +32,7 @@ module.exports = { COMMUNITY: 'https://community.topcoder.com', FORUMS: 'https://apps.topcoder.com/forums', HELP: 'https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles', - SUBMISSION_REVIEW: 'https://submission-review.topcoder-dev.com', + SUBMISSION_REVIEW: 'https://submission-review.topcoder.com', MEMBER: 'https://member.topcoder.com', ONLINE_REVIEW: 'https://software.topcoder.com', PAYMENT_TOOL: 'https://payment.topcoder.com',