Skip to content

Commit b0cc9c7

Browse files
Merge branch 'develop' into gig-pages-chatbot
2 parents d8603af + 2a7a1c9 commit b0cc9c7

File tree

11 files changed

+274
-120
lines changed

11 files changed

+274
-120
lines changed

.circleci/config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ workflows:
245245
filters:
246246
branches:
247247
only:
248-
- gig-pages-chatbot
249248
- develop
250249
# This is beta env for production soft releases
251250
- "build-prod-beta":

__tests__/shared/components/Settings/Preferences/Email/__snapshots__/index.jsx.snap

+8
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ exports[`renders email preferences setting page correctly 1`] = `
6565
secondaryText="For all the latest updates surrounding the <a href=\\"https://www.topcoder.com/community/member-programs/topcoder-open\\" style=\\"color:#0d61bf;text-decoration:underline\\">Topcoder Open</a> you should definitely be subscribing to this one. Expect an update in your mailbox every Tuesday!"
6666
value="TCO Tuesdays"
6767
/>
68+
<ToggleableItem
69+
checked={false}
70+
id="RDM"
71+
onToggle={[Function]}
72+
primaryText="Rapid Development Match (RDM) Reminders"
73+
secondaryText="Receive notifications of our brand new RDMs! These rated, development matches will be a fun new way to engage with us!"
74+
value="RDM"
75+
/>
6876
</div>
6977
</div>
7078
`;

package.json

+1-1
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.5",
140+
"topcoder-react-lib": "1000.22.13",
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

+1-1
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

+9-2
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/Settings/Preferences/Email/index.jsx

+5
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ const newsletters = [
5555
name: 'TCO Newsletter',
5656
desc: 'For all the latest updates surrounding the <a href="https://www.topcoder.com/community/member-programs/topcoder-open" style="color:#0d61bf;text-decoration:underline">Topcoder Open</a> you should definitely be subscribing to this one. Expect an update in your mailbox every Tuesday!',
5757
},
58+
{
59+
id: 'RDM',
60+
name: 'Rapid Development Match (RDM) Reminders',
61+
desc: 'Receive notifications of our brand new RDMs! These rated, development matches will be a fun new way to engage with us!',
62+
},
5863
];
5964

6065
export default class EmailPreferences extends React.Component {

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

+3-2
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"

0 commit comments

Comments
 (0)