Skip to content

Commit 512c8fe

Browse files
Merge From develop branch
2 parents 8f07236 + ff876f6 commit 512c8fe

File tree

199 files changed

+1242
-1132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+1242
-1132
lines changed

.circleci/config.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,17 @@ workflows:
183183
branches:
184184
only:
185185
- develop
186-
- hot-fix
186+
- nav-hot-fix
187+
- hot-fixes-leaderboard
187188
# This is beta env for production soft releases
188189
- "build-prod-beta":
189190
context : org-global
190191
filters:
191192
branches:
192193
only:
193-
- develop
194-
- feature-m2m-token
195-
# Production builds are exectuted only on tagged commits to the
194+
- develop
195+
- feature-contentful
196+
# Production builds are exectuted only on tagged commits to the
196197
# master branch.
197198
- "build-prod":
198199
context : org-global

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

+17-16
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,34 @@ exports[`Default render 1`] = `
2121
},
2222
Object {
2323
"id": "community",
24-
"secondaryMenuForGuest": Array [
25-
Object {
26-
"href": "/community/learn",
27-
"title": "Overview",
28-
},
29-
Object {
30-
"href": "/thrive/tracks?track=Topcoder",
31-
"title": "How It Works",
32-
},
33-
],
34-
"secondaryMenuForLoggedInUser": Array [
24+
"secondaryMenu": Array [
3525
Object {
3626
"href": "/my-dashboard",
27+
"logged": true,
3728
"title": "Dashboard",
3829
},
3930
Object {
4031
"href": "/members/willFilledByUserName",
4132
"id": "myprofile",
33+
"logged": true,
4234
"title": "My Profile",
4335
},
4436
Object {
4537
"href": "https://community.topcoder-dev.com/PactsMemberServlet?module=PaymentHistory&full_list=false",
38+
"logged": true,
39+
"openNewTab": true,
4640
"title": "Payments",
4741
},
42+
Object {
43+
"href": "/community/learn",
44+
"logged": false,
45+
"title": "Overview",
46+
},
47+
Object {
48+
"href": "/thrive/tracks?track=Topcoder",
49+
"logged": false,
50+
"title": "How It Works",
51+
},
4852
],
4953
"subMenu": Array [
5054
Object {
@@ -97,16 +101,13 @@ exports[`Default render 1`] = `
97101
},
98102
Object {
99103
"href": "https://apps.topcoder-dev.com/forums",
104+
"openNewTab": true,
100105
"title": "Forums",
101106
},
102107
Object {
103108
"href": "/community/statistics",
104109
"title": "Statistics",
105110
},
106-
Object {
107-
"href": "/community/events",
108-
"title": "Events",
109-
},
110111
Object {
111112
"href": "https://www.topcoder-dev.com/blog",
112113
"title": "Blog",
@@ -138,7 +139,7 @@ exports[`Default render 1`] = `
138139
"separator": true,
139140
},
140141
Object {
141-
"href": "https://help.topcoder-dev.com/",
142+
"href": "https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder",
142143
"title": "Help",
143144
},
144145
Object {

__tests__/shared/components/challenge-listing/Filters/ChallengeFilters.jsx

-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ afterAll(() => {
1616

1717
const saveFilter = jest.fn();
1818
const selectCommunity = jest.fn();
19-
const setCardType = jest.fn();
2019
const setExpanded = jest.fn();
2120
const setFilterState = jest.fn();
2221
const setSearchText = jest.fn();
@@ -33,7 +32,6 @@ const mockDatas = [{
3332
saveFilter,
3433
selectCommunity,
3534
selectedCommunityId: '3',
36-
setCardType,
3735
setExpanded,
3836
setFilterState,
3937
searchText: '',
@@ -54,7 +52,6 @@ const mockDatas = [{
5452
saveFilter,
5553
selectCommunity,
5654
selectedCommunityId: '3',
57-
setCardType,
5855
setExpanded,
5956
setFilterState,
6057
searchText: '',

__tests__/shared/components/challenge-listing/Filters/__snapshots__/ChallengeFilters.jsx.snap

-8
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ exports[`Matches shallow shapshot shapshot 1`] = `
77
<div
88
className="src-shared-components-challenge-listing-Filters-___ChallengeFilters__filter-header___2l3Jh"
99
>
10-
<FiltersCardsType
11-
isCardTypeSet="type"
12-
setCardType={[MockFunction]}
13-
/>
1410
<ChallengeSearchBar
1511
label="Search Challenges:"
1612
onSearch={[Function]}
@@ -97,10 +93,6 @@ exports[`Matches shallow shapshot shapshot 2`] = `
9793
<div
9894
className="src-shared-components-challenge-listing-Filters-___ChallengeFilters__filter-header___2l3Jh"
9995
>
100-
<FiltersCardsType
101-
isCardTypeSet="Challenges"
102-
setCardType={[MockFunction]}
103-
/>
10496
<ChallengeSearchBar
10597
label="Search Challenges:"
10698
onSearch={[Function]}

__tests__/shared/components/challenge-listing/Tooltips/ProgressBarTooltip.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test('Matches shallow shapshot', () => {
3535
renderer.render((
3636
<ProgressBarTooltip {...data}>
3737
<div className="mock-class">
38-
abcedfghik
38+
abcedfghik
3939
</div>
4040
</ProgressBarTooltip>
4141
));
@@ -50,7 +50,7 @@ class Wrapper extends React.Component {
5050
return (
5151
<ProgressBarTooltip {...this.props}>
5252
<div className="mock-class">
53-
abcedfghik
53+
abcedfghik
5454
</div>
5555
</ProgressBarTooltip>
5656
);

__tests__/shared/components/challenge-listing/Tooltips/TrackAbbreviationTooltip.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test('Matches shallow shapshot', () => {
2020
renderer.render((
2121
<TrackAbbreviationTooltip {...data}>
2222
<div className="mock-class">
23-
abcedfghik
23+
abcedfghik
2424
</div>
2525
</TrackAbbreviationTooltip>
2626
));
@@ -35,7 +35,7 @@ class Wrapper extends React.Component {
3535
return (
3636
<TrackAbbreviationTooltip {...this.props}>
3737
<div className="mock-class">
38-
abcedfghik
38+
abcedfghik
3939
</div>
4040
</TrackAbbreviationTooltip>
4141
);

__tests__/shared/components/challenge-listing/Tooltips/UserAvatarTooltip.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test('Matches shallow shapshot', () => {
3030
renderer.render((
3131
<UserAvatarTooltip {...data}>
3232
<div className="mock-class">
33-
abcedfghik
33+
abcedfghik
3434
</div>
3535
</UserAvatarTooltip>
3636
));
@@ -45,7 +45,7 @@ class Wrapper extends React.Component {
4545
return (
4646
<UserAvatarTooltip {...this.props}>
4747
<div className="mock-class">
48-
abcedfghik
48+
abcedfghik
4949
</div>
5050
</UserAvatarTooltip>
5151
);

__tests__/shared/components/tc-communities/Accordion.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test('Snapshot match', () => {
1111
<Accordion>
1212
<AccordionItem title="Test title">
1313
<div>
14-
Test content
14+
Test content
1515
</div>
1616
</AccordionItem>
1717
</Accordion>
@@ -28,12 +28,12 @@ class Wrapper extends React.Component {
2828
<Accordion>
2929
<AccordionItem title="Test title 1">
3030
<div>
31-
Test content 1
31+
Test content 1
3232
</div>
3333
</AccordionItem>
3434
<AccordionItem title="Test title 2">
3535
<div>
36-
Test content 2
36+
Test content 2
3737
</div>
3838
</AccordionItem>
3939
</Accordion>

__tests__/shared/components/tc-communities/AccordionItem.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test('Snapshot match', () => {
1313
title="Test title"
1414
>
1515
<div>
16-
Test content
16+
Test content
1717
</div>
1818
</AccordionItem>
1919
));
@@ -25,7 +25,7 @@ Test content
2525
isOpen
2626
>
2727
<div>
28-
Test content
28+
Test content
2929
</div>
3030
</AccordionItem>
3131
));
@@ -40,7 +40,7 @@ class Wrapper extends React.Component {
4040
<div>
4141
<AccordionItem {...this.props} title="Test title">
4242
<div>
43-
Test content
43+
Test content
4444
</div>
4545
</AccordionItem>
4646
</div>

__tests__/shared/components/tc-communities/Section.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Wrapper extends React.Component {
2828
<Provider store={store}>
2929
<Section {...this.props}>
3030
<div>
31-
content
31+
content
3232
</div>
3333
</Section>
3434
</Provider>

__tests__/shared/components/tc-communities/Text.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Wrapper extends React.Component {
99
return (
1010
<Text {...this.props}>
1111
<div>
12-
content
12+
content
1313
</div>
1414
</Text>
1515
);

config/default.js

+10-8
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ module.exports = {
112112
ARENA: 'https://arena.topcoder-dev.com',
113113
AUTH: 'http://accounts.topcoder-dev.com',
114114
BASE: 'https://www.topcoder-dev.com',
115+
HOME: '/my-dashboard',
115116
BLOG: 'https://www.topcoder-dev.com/blog',
116117
BLOG_FEED: 'https://www.topcoder.com/blog/feed/',
117118
COMMUNITY: 'https://community.topcoder-dev.com',
@@ -256,29 +257,33 @@ module.exports = {
256257
{
257258
id: 'community', // required for 'Switch to BUSINESS' to work
258259
title: 'COMMUNITY',
259-
secondaryMenuForLoggedInUser: [
260+
secondaryMenu: [
260261
{
261262
title: 'Dashboard',
262263
href: '/my-dashboard',
264+
logged: true,
263265
},
264266
{
265267
id: 'myprofile',
266268
title: 'My Profile',
267269
href: '/members/willFilledByUserName',
270+
logged: true,
268271
},
269272
{
270273
title: 'Payments',
271274
href: 'https://community.topcoder-dev.com/PactsMemberServlet?module=PaymentHistory&full_list=false',
275+
logged: true,
276+
openNewTab: true,
272277
},
273-
],
274-
secondaryMenuForGuest: [
275278
{
276279
title: 'Overview',
277280
href: '/community/learn',
281+
logged: false,
278282
},
279283
{
280284
title: 'How It Works',
281285
href: '/thrive/tracks?track=Topcoder',
286+
logged: false,
282287
},
283288
],
284289
subMenu: [
@@ -334,15 +339,12 @@ module.exports = {
334339
{
335340
title: 'Forums',
336341
href: 'https://apps.topcoder-dev.com/forums',
342+
openNewTab: true,
337343
},
338344
{
339345
title: 'Statistics',
340346
href: '/community/statistics',
341347
},
342-
{
343-
title: 'Events',
344-
href: '/community/events',
345-
},
346348
{
347349
title: 'Blog',
348350
href: 'https://www.topcoder-dev.com/blog',
@@ -369,7 +371,7 @@ module.exports = {
369371
{ separator: true },
370372
{
371373
title: 'Help',
372-
href: 'https://help.topcoder-dev.com/',
374+
href: 'https://community-app.topcoder-dev.com/thrive/tracks?track=Topcoder',
373375
},
374376
{ separator: true },
375377
{

0 commit comments

Comments
 (0)