Skip to content

Commit 05bcf2c

Browse files
committed
Merge remote-tracking branch 'origin/develop' into feature-contentful
2 parents 543c173 + adcc1df commit 05bcf2c

File tree

182 files changed

+5294
-6302
lines changed

Some content is hidden

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

182 files changed

+5294
-6302
lines changed

.circleci/config.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,15 @@ workflows:
182182
branches:
183183
only:
184184
- develop
185+
- nav-hot-fix
186+
- hot-fixes-leaderboard
185187
# This is beta env for production soft releases
186188
- "build-prod-beta":
187189
context : org-global
188190
filters:
189191
branches:
190192
only:
191-
- develop
193+
- develop
192194
- feature-contentful
193195
# Production builds are exectuted only on tagged commits to the
194196
# master branch.

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

+16-15
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",

__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

+9-7
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',
@@ -247,29 +248,33 @@ module.exports = {
247248
{
248249
id: 'community', // required for 'Switch to BUSINESS' to work
249250
title: 'COMMUNITY',
250-
secondaryMenuForLoggedInUser: [
251+
secondaryMenu: [
251252
{
252253
title: 'Dashboard',
253254
href: '/my-dashboard',
255+
logged: true,
254256
},
255257
{
256258
id: 'myprofile',
257259
title: 'My Profile',
258260
href: '/members/willFilledByUserName',
261+
logged: true,
259262
},
260263
{
261264
title: 'Payments',
262265
href: 'https://community.topcoder-dev.com/PactsMemberServlet?module=PaymentHistory&full_list=false',
266+
logged: true,
267+
openNewTab: true,
263268
},
264-
],
265-
secondaryMenuForGuest: [
266269
{
267270
title: 'Overview',
268271
href: '/community/learn',
272+
logged: false,
269273
},
270274
{
271275
title: 'How It Works',
272276
href: '/thrive/tracks?track=Topcoder',
277+
logged: false,
273278
},
274279
],
275280
subMenu: [
@@ -325,15 +330,12 @@ module.exports = {
325330
{
326331
title: 'Forums',
327332
href: 'https://apps.topcoder-dev.com/forums',
333+
openNewTab: true,
328334
},
329335
{
330336
title: 'Statistics',
331337
href: '/community/statistics',
332338
},
333-
{
334-
title: 'Events',
335-
href: '/community/events',
336-
},
337339
{
338340
title: 'Blog',
339341
href: 'https://www.topcoder-dev.com/blog',

config/production.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module.exports = {
2727

2828
AUTH: 'https://accounts.topcoder.com',
2929
BASE: 'https://www.topcoder.com',
30+
HOME: '/my-dashboard',
3031
COMMUNITY: 'https://community.topcoder.com',
3132
FORUMS: 'https://apps.topcoder.com/forums',
3233
HELP: 'https://www.topcoder.com/thrive/tracks?track=Topcoder',
@@ -70,29 +71,33 @@ module.exports = {
7071
{
7172
id: 'community', // required for 'Switch to BUSINESS' to work
7273
title: 'COMMUNITY',
73-
secondaryMenuForLoggedInUser: [
74+
secondaryMenu: [
7475
{
7576
title: 'Dashboard',
7677
href: '/my-dashboard',
78+
logged: true,
7779
},
7880
{
7981
id: 'myprofile',
8082
title: 'My Profile',
8183
href: '/members/willFilledByUserName',
84+
logged: true,
8285
},
8386
{
8487
title: 'Payments',
8588
href: 'https://community.topcoder.com/PactsMemberServlet?module=PaymentHistory&full_list=false',
89+
logged: true,
90+
openNewTab: true,
8691
},
87-
],
88-
secondaryMenuForGuest: [
8992
{
9093
title: 'Overview',
9194
href: '/community/learn',
95+
logged: false,
9296
},
9397
{
9498
title: 'How It Works',
9599
href: '/thrive/tracks?track=Topcoder',
100+
logged: false,
96101
},
97102
],
98103
subMenu: [
@@ -148,15 +153,12 @@ module.exports = {
148153
{
149154
title: 'Forums',
150155
href: 'https://apps.topcoder.com/forums',
156+
openNewTab: true,
151157
},
152158
{
153159
title: 'Statistics',
154160
href: '/community/statistics',
155161
},
156-
{
157-
title: 'Events',
158-
href: '/community/events',
159-
},
160162
{
161163
title: 'Blog',
162164
href: 'https://www.topcoder.com/blog',

0 commit comments

Comments
 (0)