Skip to content

Commit 8bef940

Browse files
Merge pull request #5028 from topcoder-platform/tcx-202010
Smoke Testing 2020-10-01
2 parents c865c7c + ef64236 commit 8bef940

File tree

7 files changed

+21
-9
lines changed

7 files changed

+21
-9
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ workflows:
245245
filters:
246246
branches:
247247
only:
248-
- milestone-20200917
249248
- develop
250249
# This is beta env for production soft releases
251250
- "build-prod-beta":
@@ -262,6 +261,7 @@ workflows:
262261
branches:
263262
only:
264263
- develop
264+
- tcx-202010
265265
# Production builds are exectuted
266266
# when PR is merged to the master
267267
# Don't change anything in this configuration

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
"tc-accounts": "git+https://github.com/appirio-tech/accounts-app.git#dev",
138138
"tc-core-library-js": "github:appirio-tech/tc-core-library-js#v2.6.3",
139139
"tc-ui": "^1.0.12",
140-
"topcoder-react-lib": "1.0.6",
140+
"topcoder-react-lib": "1000.22.12",
141141
"topcoder-react-ui-kit": "2.0.1",
142142
"topcoder-react-utils": "0.7.8",
143143
"turndown": "^4.0.2",

src/shared/components/ChallengeTile/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class ChallengeTile extends React.Component {
108108
{underscoreReplace(type)}
109109
</p>
110110
<p styleName="date-completed">
111-
{formatDate(challenge.submissionEndDate)}
111+
{challenge.submissionEndDate && formatDate(challenge.submissionEndDate)}
112112
</p>
113113
{ challenge.wonFirst && !challenge.isPrivate
114114
&& (

src/shared/components/Dashboard/CurrentActivity/Header/index.jsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@ import Option from './Option';
99
import './style.scss';
1010

1111
export default function Header({
12-
numChallenges,
12+
// numChallenges,
1313
numCommunities,
1414
switchTab,
1515
tab,
1616
}) {
17+
/**
18+
* Temporary hide My Active Challenges - community-app#5004
19+
*/
20+
/*
1721
let myChallengesTitle = 'My Active Challenges';
1822
if (numChallenges) myChallengesTitle += ` (${numChallenges})`;
23+
*/
1924

2025
let myCommunitiesTitle = 'My Communities';
2126
if (numCommunities) myCommunitiesTitle += ` (${numCommunities})`;
@@ -25,11 +30,13 @@ export default function Header({
2530
<Carousel
2631
alignItems="start"
2732
>
33+
{/* {/* Temporary hide My Active Challenges - community-app#5004
2834
<Option
2935
selected={tab === TABS.MY_ACTIVE_CHALLENGES}
3036
select={() => switchTab(TABS.MY_ACTIVE_CHALLENGES)}
3137
title={myChallengesTitle}
3238
/>
39+
*/}
3340
<Option
3441
selected={tab === TABS.COMMUNITIES}
3542
select={() => switchTab(TABS.COMMUNITIES)}
@@ -46,7 +53,7 @@ export default function Header({
4653
}
4754

4855
Header.propTypes = {
49-
numChallenges: PT.number.isRequired,
56+
// numChallenges: PT.number.isRequired,
5057
numCommunities: PT.number.isRequired,
5158
switchTab: PT.func.isRequired,
5259
tab: PT.string.isRequired,

src/shared/components/SubmissionManagement/Submission/index.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import _ from 'lodash';
1515
import moment from 'moment';
1616
import React from 'react';
1717
import { config } from 'topcoder-react-utils';
18-
import { COMPETITION_TRACKS } from 'utils/tc';
18+
import { COMPETITION_TRACKS, CHALLENGE_STATUS } from 'utils/tc';
1919

2020
import PT from 'prop-types';
2121

@@ -85,7 +85,8 @@ export default function Submission(props) {
8585
onClick={() => onDownload(submissionObject.id)}
8686
><DownloadIcon /></button>
8787
*/ }
88-
{status !== 'COMPLETED'
88+
{status !== CHALLENGE_STATUS.COMPLETED
89+
&& track !== COMPETITION_TRACKS.DESIGN
8990
&& (
9091
<button
9192
styleName="delete-icon"

src/shared/reducers/page/dashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function create(state = {}) {
9393
[a.switchTab]: onSwitchTab,
9494
}, _.defaults(state, {
9595
challengeFilter: '',
96-
tab: TABS.MY_ACTIVE_CHALLENGES,
96+
tab: TABS.COMMUNITIES, // Temporary hide MY ACTIVE CHALLENGES - community-app#5004
9797
showAnnouncement: true,
9898
showChallengeFilter: false,
9999
xlBadge: '',

src/shared/utils/tc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ import { config, isomorphy } from 'topcoder-react-utils';
1010

1111
import { tc } from 'topcoder-react-lib';
1212

13-
export const { COMPETITION_TRACKS, REVIEW_OPPORTUNITY_TYPES } = tc;
13+
export const {
14+
COMPETITION_TRACKS,
15+
CHALLENGE_STATUS,
16+
REVIEW_OPPORTUNITY_TYPES,
17+
} = tc;
1418

1519
/**
1620
* Possible phase types (at the moment, this map does not cover all

0 commit comments

Comments
 (0)