diff --git a/__tests__/shared/components/SubmissionManagement/__snapshots__/SubmissionManagement.jsx.snap b/__tests__/shared/components/SubmissionManagement/__snapshots__/SubmissionManagement.jsx.snap index efd7d9dca4..41fbddbe59 100644 --- a/__tests__/shared/components/SubmissionManagement/__snapshots__/SubmissionManagement.jsx.snap +++ b/__tests__/shared/components/SubmissionManagement/__snapshots__/SubmissionManagement.jsx.snap @@ -61,6 +61,7 @@ exports[`Matches shallow shapshot 1`] = ` onShowDetails={[Function]} onlineReviewUrl="" showDetails={Set {}} + status={undefined} submissionObjects={Array []} type="Challenge Track" /> diff --git a/__tests__/shared/components/SubmissionManagement/__snapshots__/SubmissionsTable.jsx.snap b/__tests__/shared/components/SubmissionManagement/__snapshots__/SubmissionsTable.jsx.snap index b1e203e09d..b8ebeb4f40 100644 --- a/__tests__/shared/components/SubmissionManagement/__snapshots__/SubmissionsTable.jsx.snap +++ b/__tests__/shared/components/SubmissionManagement/__snapshots__/SubmissionsTable.jsx.snap @@ -37,6 +37,7 @@ exports[`Matches shallow shapshot 1`] = ` onDownload={[Function]} onShowDetails={[Function]} showScreeningDetails={true} + status={undefined} submissionObject={ Object { "submissionId": 12345, diff --git a/__tests__/shared/components/TopcoderHeader/__snapshots__/Auth.jsx.snap b/__tests__/shared/components/TopcoderHeader/__snapshots__/Auth.jsx.snap index e1d8f1be9f..641a076b7c 100644 --- a/__tests__/shared/components/TopcoderHeader/__snapshots__/Auth.jsx.snap +++ b/__tests__/shared/components/TopcoderHeader/__snapshots__/Auth.jsx.snap @@ -6,13 +6,13 @@ exports[`Snapshot match 1`] = ` > Join Log In @@ -25,13 +25,13 @@ exports[`Snapshot match 2`] = ` > Join Log In diff --git a/__tests__/shared/components/TopcoderHeader/__snapshots__/index.jsx.snap b/__tests__/shared/components/TopcoderHeader/__snapshots__/index.jsx.snap index 9c629c5427..07cbfe2b36 100644 --- a/__tests__/shared/components/TopcoderHeader/__snapshots__/index.jsx.snap +++ b/__tests__/shared/components/TopcoderHeader/__snapshots__/index.jsx.snap @@ -49,13 +49,13 @@ exports[`Default render 1`] = ` > Join Log In @@ -232,13 +232,13 @@ exports[`Render with open menu 1`] = ` > Join Log In diff --git a/__tests__/shared/components/challenge-listing/ChallengeCard/__snapshots__/index.jsx.snap b/__tests__/shared/components/challenge-listing/ChallengeCard/__snapshots__/index.jsx.snap index 268db202cb..fa857d2970 100644 --- a/__tests__/shared/components/challenge-listing/ChallengeCard/__snapshots__/index.jsx.snap +++ b/__tests__/shared/components/challenge-listing/ChallengeCard/__snapshots__/index.jsx.snap @@ -44,6 +44,7 @@ exports[`Matches shallow shapshot shapshot 1 1`] = ` @@ -155,6 +156,7 @@ exports[`Matches shallow shapshot shapshot 2 1`] = ` @@ -261,6 +263,7 @@ exports[`Matches shallow shapshot shapshot 3 1`] = ` diff --git a/__tests__/shared/components/tc-communities/__snapshots__/AccessDenied.jsx.snap b/__tests__/shared/components/tc-communities/__snapshots__/AccessDenied.jsx.snap index a89c4d263c..71e704eec4 100644 --- a/__tests__/shared/components/tc-communities/__snapshots__/AccessDenied.jsx.snap +++ b/__tests__/shared/components/tc-communities/__snapshots__/AccessDenied.jsx.snap @@ -15,7 +15,7 @@ exports[`Matches shallow shapshot 1`] = ` > Log In Here diff --git a/config/default.json b/config/default.json index 39548d9b8b..a89da4622b 100644 --- a/config/default.json +++ b/config/default.json @@ -57,7 +57,7 @@ "ACCOUNTS_APP_CONNECTOR": "https://accounts.topcoder-dev.com/connector.html", "ARENA": "https://arena.topcoder-dev.com", - "AUTH": "http://accounts-test.topcoder-dev.com", + "AUTH": "http://accounts.topcoder-dev.com", "BASE": "https://www.topcoder-dev.com", "BLOG": "https://www.topcoder-dev.com/feed", "COGNITIVE": "https://cognitive.topcoder.com", diff --git a/package-lock.json b/package-lock.json index 524837d125..e19f499e01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4237,6 +4237,11 @@ } } }, + "fetch-jsonp": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/fetch-jsonp/-/fetch-jsonp-1.1.1.tgz", + "integrity": "sha1-t7n9fTpPdNODifXqLy0PRsNFEOQ=" + }, "figures": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", @@ -6278,6 +6283,11 @@ "strip-bom": "2.0.0" } }, + "load-script": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/load-script/-/load-script-1.0.0.tgz", + "integrity": "sha1-BJGTngvuVkPuSUp+PaPSuscMbKQ=" + }, "loader-runner": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.3.0.tgz", @@ -6507,6 +6517,11 @@ "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.0.tgz", "integrity": "sha1-FQzwoWeR9ZA7iJHqsVRgknS96lU=" }, + "lodash.omit": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", + "integrity": "sha1-brGa5aHuHdnfC5aeZs4Lf6MLXmA=" + }, "lodash.pick": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz", @@ -9913,6 +9928,17 @@ "moment": "2.18.1" } }, + "react-player": { + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/react-player/-/react-player-0.20.0.tgz", + "integrity": "sha1-YbphsKDAOpoOXkXucLQPuC6rVr0=", + "requires": { + "fetch-jsonp": "1.1.1", + "load-script": "1.0.0", + "lodash.omit": "4.5.0", + "prop-types": "15.5.10" + } + }, "react-portal": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/react-portal/-/react-portal-3.1.0.tgz", diff --git a/package.json b/package.json index fb5c922d96..76d358ef7d 100644 --- a/package.json +++ b/package.json @@ -78,6 +78,7 @@ "react-dom": "^15.6.1", "react-dropdown": "^1.2.1", "react-hot-loader": "^3.0.0-beta.6", + "react-player": "^0.20.0", "react-redux": "^5.0.3", "react-router-dom": "^4.0.0", "react-select": "^1.0.0-rc.3", diff --git a/src/shared/components/SubmissionManagement/Submission/index.jsx b/src/shared/components/SubmissionManagement/Submission/index.jsx index 88de8dc91a..7eb56b4e45 100644 --- a/src/shared/components/SubmissionManagement/Submission/index.jsx +++ b/src/shared/components/SubmissionManagement/Submission/index.jsx @@ -31,6 +31,7 @@ export default function Submission(props) { type, onDelete, onShowDetails, + status, } = props; const formatDate = date => moment(+new Date(date)).format('MMM DD, YYYY hh:mm A'); @@ -72,10 +73,12 @@ export default function Submission(props) { onClick={() => onDownload(submissionObject.submissionId)} > */ } - + {status !== 'COMPLETED' && + + }