Skip to content

Commit 0a44c84

Browse files
authored
Merge branch 'develop' into gig-application
2 parents 4adf0fc + 960fedd commit 0a44c84

File tree

21 files changed

+319
-133
lines changed

21 files changed

+319
-133
lines changed

.circleci/config.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@ workflows:
230230
filters:
231231
branches:
232232
only:
233-
- milestone-20200924
234-
- develop
233+
- hot-fix
235234
# This is alternate dev env for parallel testing
236235
- "build-test":
237236
context : org-global
@@ -261,7 +260,7 @@ workflows:
261260
filters:
262261
branches:
263262
only:
264-
- feature-contentful
263+
- develop
265264
# Production builds are exectuted
266265
# when PR is merged to the master
267266
# Don't change anything in this configuration

__tests__/shared/components/Header/__snapshots__/index.jsx.snap

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`Default render 1`] = `
4-
<div>
4+
<div
5+
className="src-shared-components-Header-___style__nav-header-wrapper___3oH9J"
6+
>
57
<TopNav
68
loggedIn={true}
79
logo={

__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
`;

__tests__/shared/components/SubmissionManagement/__snapshots__/Submission.jsx.snap

+9-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ exports[`Snapshot match 1`] = `
66
>
77
<td
88
className="src-shared-components-SubmissionManagement-Submission-___styles__id-col___zC6Hi"
9-
/>
9+
>
10+
<div
11+
className="src-shared-components-SubmissionManagement-Submission-___styles__legacy-id___3T2Ay"
12+
/>
13+
</td>
1014
<td />
1115
<td
1216
className="src-shared-components-SubmissionManagement-Submission-___styles__date-col___3XOxK"
@@ -63,6 +67,9 @@ exports[`Snapshot match 2`] = `
6367
className="src-shared-components-SubmissionManagement-Submission-___styles__id-col___zC6Hi"
6468
>
6569
12345
70+
<div
71+
className="src-shared-components-SubmissionManagement-Submission-___styles__legacy-id___3T2Ay"
72+
/>
6673
</td>
6774
<td />
6875
<td
@@ -110,4 +117,4 @@ exports[`Snapshot match 2`] = `
110117
</div>
111118
</td>
112119
</tr>
113-
`;
120+
`;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
"tc-accounts": "git+https://github.com/appirio-tech/accounts-app.git#dev",
141141
"tc-core-library-js": "github:appirio-tech/tc-core-library-js#v2.6.3",
142142
"tc-ui": "^1.0.12",
143-
"topcoder-react-lib": "1.0.5",
143+
"topcoder-react-lib": "1000.22.13",
144144
"topcoder-react-ui-kit": "2.0.1",
145145
"topcoder-react-utils": "0.7.8",
146146
"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/Header/index.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { config } from 'topcoder-react-utils';
55
import Logo from 'assets/images/tc-logo.svg';
66
import { tracking } from '../../actions';
77

8+
import './style.scss';
9+
810
let TopNavRef;
911
let LoginNavRef;
1012

@@ -69,7 +71,7 @@ const Header = ({
6971

7072
if (TopNavRef) {
7173
return (
72-
<div>
74+
<div styleName="nav-header-wrapper">
7375
<TopNavRef
7476
menu={headerMenu || config.HEADER_MENU}
7577
rightMenu={(
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.nav-header-wrapper {
2+
z-index: 2;
3+
}

src/shared/components/ProfilePage/Header/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class ProfileHeader extends React.Component {
7272
<span>
7373
{' '}
7474
|
75+
{' '}
7576
{wins}
7677
{' '}
7778
Wins

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

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

@@ -42,6 +42,7 @@ export default function Submission(props) {
4242
<tr styleName="submission-row">
4343
<td styleName="id-col">
4444
{submissionObject.id}
45+
<div styleName="legacy-id">{submissionObject.legacySubmissionId}</div>
4546
</td>
4647
<td>
4748
{submissionObject.type}
@@ -84,7 +85,8 @@ export default function Submission(props) {
8485
onClick={() => onDownload(submissionObject.id)}
8586
><DownloadIcon /></button>
8687
*/ }
87-
{status !== 'COMPLETED'
88+
{status !== CHALLENGE_STATUS.COMPLETED
89+
&& track !== COMPETITION_TRACKS.DESIGN
8890
&& (
8991
<button
9092
styleName="delete-icon"
@@ -118,6 +120,7 @@ Submission.defaultProps = {
118120
Submission.propTypes = {
119121
submissionObject: PT.shape({
120122
id: PT.string,
123+
legacySubmissionId: PT.string,
121124
warpreviewnings: PT.string,
122125
screening: PT.shape({
123126
status: PT.string,

src/shared/components/SubmissionManagement/Submission/styles.scss

+4
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ $submission-space-50: $base-unit * 10;
7777
}
7878
}
7979

80+
.legacy-id {
81+
color: $tc-gray-50;
82+
}
83+
8084
.status-col {
8185
text-align: center;
8286

src/shared/components/TopcoderFooter/style.scss

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
font-weight: 400;
7373
line-height: 21px;
7474
position: relative;
75+
z-index: 0;
7576

7677
@include xs-to-sm {
7778
padding: 30px 30px 21px 30px;

src/shared/components/challenge-detail/Header/ChallengeTags.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ export default function ChallengeTags(props) {
6262
challengeType
6363
&& (
6464
<TrackTag
65-
onClick={() => setImmediate(() => setChallengeListingFilter(challengeType.id))
65+
onClick={() => (
66+
setImmediate(() => setChallengeListingFilter({ types: [challengeType.id] }))
67+
)
6668
}
6769
to={`${challengesUrl}?filter[types][0]=${encodeURIComponent(challengeType.id)}`}
6870
>

0 commit comments

Comments
 (0)