Skip to content

Commit 33816c3

Browse files
committed
Merge branch 'develop' into member-selector
2 parents 83c63e8 + a1e7ad4 commit 33816c3

File tree

86 files changed

+1157
-365
lines changed

Some content is hidden

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

86 files changed

+1157
-365
lines changed

.exchange-rates.cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"disclaimer":"Usage subject to terms: https://openexchangerates.org/terms","license":"https://openexchangerates.org/license","timestamp":1508716800,"base":"USD","rates":{"AED":3.672993,"AFN":68.380133,"ALL":113.282273,"AMD":482.161304,"ANG":1.788357,"AOA":165.9225,"ARS":17.524074,"AUD":1.281074,"AWG":1.789995,"AZN":1.6985,"BAM":1.659594,"BBD":2,"BDT":82.706207,"BGN":1.660054,"BHD":0.377046,"BIF":1755.430443,"BMD":1,"BND":1.361805,"BOB":6.922952,"BRL":3.192395,"BSD":1,"BTC":0.00016678716,"BTN":65.011891,"BWP":10.382103,"BYN":1.959351,"BZD":2.013743,"CAD":1.26375,"CDF":1566.940781,"CHF":0.985896,"CLF":0.02333,"CLP":627.931164,"CNH":6.6373,"CNY":6.6392,"COP":2933.5,"CRC":570.481142,"CUC":1,"CUP":25.5,"CVE":93.8,"CZK":21.838,"DJF":178.77,"DKK":6.332615,"DOP":47.884791,"DZD":114.256308,"EGP":17.682,"ERN":15.336062,"ETB":27.194188,"EUR":0.850721,"FJD":2.037082,"FKP":0.75815,"GBP":0.75815,"GEL":2.482879,"GGP":0.75815,"GHS":4.399647,"GIP":0.75815,"GMD":47.4,"GNF":9026.3,"GTQ":7.366307,"GYD":208.427435,"HKD":7.80205,"HNL":23.595881,"HRK":6.370692,"HTG":63.947324,"HUF":261.9475,"IDR":13511.580047,"ILS":3.49515,"IMP":0.75815,"INR":65.1141,"IQD":1172.340296,"IRR":34243.946723,"ISK":105.71,"JEP":0.75815,"JMD":127.645593,"JOD":0.709001,"JPY":114.05875,"KES":103.458374,"KGS":68.54748,"KHR":4058.613333,"KMF":417.844177,"KPW":900,"KRW":1134.72,"KWD":0.302339,"KYD":0.834883,"KZT":336.595303,"LAK":8312.95,"LBP":1520.547463,"LKR":153.990818,"LRD":118.723205,"LSL":13.68264,"LYD":1.371949,"MAD":9.43187,"MDL":17.368089,"MGA":3084.880606,"MKD":52.25576,"MMK":1367.33506,"MNT":2451.865814,"MOP":8.052459,"MRO":355.821838,"MUR":34.00192,"MVR":15.409873,"MWK":728.366938,"MXN":19.0082,"MYR":4.225,"MZN":61.028857,"NAD":13.64834,"NGN":360.146861,"NIO":30.758276,"NOK":7.998,"NPR":104.078659,"NZD":1.440968,"OMR":0.3847,"PAB":1,"PEN":3.238138,"PGK":3.216388,"PHP":51.612907,"PKR":105.371372,"PLN":3.600552,"PYG":5688.527124,"QAR":3.78397,"RON":3.90212,"RSD":101.128935,"RUB":57.5795,"RWF":848.67327,"SAR":3.7502,"SBD":7.792911,"SCR":13.646132,"SDG":6.686393,"SEK":8.17895,"SGD":1.363283,"SHP":0.75815,"SLL":7643.328121,"SOS":585.274004,"SRD":7.448,"SSP":130.4107,"STD":20823.05009,"SVC":8.766224,"SYP":514.98999,"SZL":13.699742,"THB":33.2085,"TJS":8.811479,"TMT":3.50998,"TND":2.477309,"TOP":2.236132,"TRY":3.68829,"TTD":6.742681,"TWD":30.235661,"TZS":2248.337374,"UAH":26.598841,"UGX":3651.233069,"USD":1,"UYU":29.589897,"UZS":8064.8,"VEF":9.990025,"VND":22720.586641,"VUV":105.223334,"WST":2.533773,"XAF":558.036461,"XAG":0.05889637,"XAU":0.00078425,"XCD":2.70255,"XDR":0.708683,"XOF":558.036461,"XPD":0.00102725,"XPF":101.518031,"XPT":0.00108934,"YER":250.331642,"ZAR":13.69311,"ZMW":9.753126,"ZWL":322.355011}}
1+
{"disclaimer":"Usage subject to terms: https://openexchangerates.org/terms","license":"https://openexchangerates.org/license","timestamp":1508716800,"base":"USD","rates":{"AED":3.672993,"AFN":68.380133,"ALL":113.282273,"AMD":482.161304,"ANG":1.788357,"AOA":165.9225,"ARS":17.524074,"AUD":1.281074,"AWG":1.789995,"AZN":1.6985,"BAM":1.659594,"BBD":2,"BDT":82.706207,"BGN":1.660054,"BHD":0.377046,"BIF":1755.430443,"BMD":1,"BND":1.361805,"BOB":6.922952,"BRL":3.192395,"BSD":1,"BTC":0.00016678716,"BTN":65.011891,"BWP":10.382103,"BYN":1.959351,"BZD":2.013743,"CAD":1.26375,"CDF":1566.940781,"CHF":0.985896,"CLF":0.02333,"CLP":627.931164,"CNH":6.6373,"CNY":6.6392,"COP":2933.5,"CRC":570.481142,"CUC":1,"CUP":25.5,"CVE":93.8,"CZK":21.838,"DJF":178.77,"DKK":6.332615,"DOP":47.884791,"DZD":114.256308,"EGP":17.682,"ERN":15.336062,"ETB":27.194188,"EUR":0.850721,"FJD":2.037082,"FKP":0.75815,"GBP":0.75815,"GEL":2.482879,"GGP":0.75815,"GHS":4.399647,"GIP":0.75815,"GMD":47.4,"GNF":9026.3,"GTQ":7.366307,"GYD":208.427435,"HKD":7.80205,"HNL":23.595881,"HRK":6.370692,"HTG":63.947324,"HUF":261.9475,"IDR":13511.580047,"ILS":3.49515,"IMP":0.75815,"INR":65.1141,"IQD":1172.340296,"IRR":34243.946723,"ISK":105.71,"JEP":0.75815,"JMD":127.645593,"JOD":0.709001,"JPY":114.05875,"KES":103.458374,"KGS":68.54748,"KHR":4058.613333,"KMF":417.844177,"KPW":900,"KRW":1134.72,"KWD":0.302339,"KYD":0.834883,"KZT":336.595303,"LAK":8312.95,"LBP":1520.547463,"LKR":153.990818,"LRD":118.723205,"LSL":13.68264,"LYD":1.371949,"MAD":9.43187,"MDL":17.368089,"MGA":3084.880606,"MKD":52.25576,"MMK":1367.33506,"MNT":2451.865814,"MOP":8.052459,"MRO":355.821838,"MUR":34.00192,"MVR":15.409873,"MWK":728.366938,"MXN":19.0082,"MYR":4.225,"MZN":61.028857,"NAD":13.64834,"NGN":360.146861,"NIO":30.758276,"NOK":7.998,"NPR":104.078659,"NZD":1.440968,"OMR":0.3847,"PAB":1,"PEN":3.238138,"PGK":3.216388,"PHP":51.612907,"PKR":105.371372,"PLN":3.600552,"PYG":5688.527124,"QAR":3.78397,"RON":3.90212,"RSD":101.128935,"RUB":57.5795,"RWF":848.67327,"SAR":3.7502,"SBD":7.792911,"SCR":13.646132,"SDG":6.686393,"SEK":8.17895,"SGD":1.363283,"SHP":0.75815,"SLL":7643.328121,"SOS":585.274004,"SRD":7.448,"SSP":130.4107,"STD":20823.05009,"SVC":8.766224,"SYP":514.98999,"SZL":13.699742,"THB":33.2085,"TJS":8.811479,"TMT":3.50998,"TND":2.477309,"TOP":2.236132,"TRY":3.68829,"TTD":6.742681,"TWD":30.235661,"TZS":2248.337374,"UAH":26.598841,"UGX":3651.233069,"USD":1,"UYU":29.589897,"UZS":8064.8,"VEF":9.990025,"VND":22720.586641,"VUV":105.223334,"WST":2.533773,"XAF":558.036461,"XAG":0.05889637,"XAU":0.00078425,"XCD":2.70255,"XDR":0.708683,"XOF":558.036461,"XPD":0.00102725,"XPF":101.518031,"XPT":0.00108934,"YER":250.331642,"ZAR":13.69311,"ZMW":9.753126,"ZWL":322.355011}}

README.md

Lines changed: 1 addition & 1 deletion

__tests__/shared/components/challenge-listing/Listing/__snapshots__/Bucket.jsx.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ exports[`Matches shallow shapshot 1`] = `
5858
},
5959
]
6060
}
61-
communityName={null}
6261
expand={[Function]}
6362
expanded={true}
6463
keepPlaceholders={false}
@@ -199,7 +198,6 @@ exports[`Matches shallow shapshot 2`] = `
199198
},
200199
]
201200
}
202-
communityName={null}
203201
expand={[Function]}
204202
expanded={false}
205203
keepPlaceholders={false}
@@ -227,7 +225,6 @@ exports[`Matches shallow shapshot 3`] = `
227225
}
228226
}
229227
challenges={Array []}
230-
communityName={null}
231228
expand={[Function]}
232229
expanded={false}
233230
keepPlaceholders={false}

__tests__/shared/components/tc-communities/__snapshots__/CommunityStats.jsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ exports[`Snapshot match 1`] = `
77
composeContextTheme="softly"
88
link={null}
99
mapThemrProps={[Function]}
10+
subTitle=""
1011
theme={
1112
Object {
1213
"container": "src-shared-components-tc-communities-CommunityStats-___style__container___3IKHh",

__tests__/shared/components/tc-communities/__snapshots__/NewsSection.jsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ exports[`Matches shallow shapshot 1`] = `
77
composeContextTheme="softly"
88
link={null}
99
mapThemrProps={[Function]}
10+
subTitle=""
1011
theme={Object {}}
1112
themePriority="adhoc-context-default"
1213
title="Latest News"

__tests__/shared/components/tc-communities/communities/community-2/__snapshots__/Home.jsx.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ exports[`Match shadow snapshot 1`] = `
1919
title="Community 2"
2020
/>
2121
<Connect(CommunityStatsContainer) />
22-
<Connect(JoinCommunity) />
22+
<Connect(JoinCommunityContainer) />
2323
<ThemedSection
2424
anchor={null}
2525
composeAdhocTheme="deeply"
2626
composeContextTheme="softly"
2727
link={null}
2828
mapThemrProps={[Function]}
29+
subTitle=""
2930
theme={
3031
Object {
3132
"container": "src-shared-components-tc-communities-communities-community-2-Home-___style__linksContainer___CzMMR",
@@ -75,6 +76,7 @@ exports[`Match shadow snapshot 1`] = `
7576
composeContextTheme="softly"
7677
link={null}
7778
mapThemrProps={[Function]}
79+
subTitle=""
7880
theme={
7981
Object {
8082
"container": "src-shared-components-tc-communities-communities-community-2-Home-___style__resourcesContainer___1Y23p",

__tests__/shared/components/tc-communities/communities/community-2/__snapshots__/Learn.jsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ exports[`Match shadow snapshot 1`] = `
2525
composeContextTheme="softly"
2626
link={null}
2727
mapThemrProps={[Function]}
28+
subTitle=""
2829
theme={
2930
Object {
3031
"container": "src-shared-components-tc-communities-communities-community-2-Learn-___style__learnBasicsContainer___1ZPny",
@@ -95,6 +96,7 @@ exports[`Match shadow snapshot 1`] = `
9596
}
9697
}
9798
mapThemrProps={[Function]}
99+
subTitle=""
98100
theme={
99101
Object {
100102
"container": "src-shared-components-tc-communities-communities-community-2-Learn-___style__coursesContainer___3SRv4",
@@ -158,6 +160,7 @@ exports[`Match shadow snapshot 1`] = `
158160
composeContextTheme="softly"
159161
link={null}
160162
mapThemrProps={[Function]}
163+
subTitle=""
161164
theme={
162165
Object {
163166
"container": "src-shared-components-tc-communities-communities-community-2-Learn-___style__resourcesContainer___dzJCp",

__tests__/shared/components/tc-communities/communities/demo-expert/__snapshots__/Learn.jsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ exports[`Snapshot match 1`] = `
2525
composeContextTheme="softly"
2626
link={null}
2727
mapThemrProps={[Function]}
28+
subTitle=""
2829
theme={
2930
Object {
3031
"container": "src-shared-components-tc-communities-communities-demo-expert-Learn-___style__learnBasicsContainer___aCUEb",
@@ -250,6 +251,7 @@ exports[`Snapshot match 1`] = `
250251
}
251252
}
252253
mapThemrProps={[Function]}
254+
subTitle=""
253255
theme={
254256
Object {
255257
"container": "src-shared-components-tc-communities-communities-demo-expert-Learn-___style__coursesContainer___1l39O",
@@ -313,6 +315,7 @@ exports[`Snapshot match 1`] = `
313315
composeContextTheme="softly"
314316
link={null}
315317
mapThemrProps={[Function]}
318+
subTitle=""
316319
theme={
317320
Object {
318321
"container": "src-shared-components-tc-communities-communities-demo-expert-Learn-___style__resourcesContainer___299NM",

__tests__/shared/components/tc-communities/communities/taskforce/__snapshots__/Home.jsx.snap

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ exports[`Match shadow snapshot 1`] = `
3939
}
4040
}
4141
/>
42-
<Connect(JoinCommunity) />
42+
<Connect(JoinCommunityContainer) />
4343
<ThemedSection
4444
anchor="why-topcoder-taskforce"
4545
composeAdhocTheme="deeply"
4646
composeContextTheme="softly"
4747
link={null}
4848
mapThemrProps={[Function]}
49+
subTitle=""
4950
theme={
5051
Object {
5152
"container": "src-shared-components-tc-communities-communities-taskforce-Home-___style__linksContainer___25Lds",
@@ -99,6 +100,7 @@ exports[`Match shadow snapshot 1`] = `
99100
composeContextTheme="softly"
100101
link={null}
101102
mapThemrProps={[Function]}
103+
subTitle=""
102104
theme={
103105
Object {
104106
"container": "src-shared-components-tc-communities-communities-taskforce-Home-___style__WhatCanYouGetDone___1to7k",
@@ -125,6 +127,7 @@ exports[`Match shadow snapshot 1`] = `
125127
composeContextTheme="softly"
126128
link={null}
127129
mapThemrProps={[Function]}
130+
subTitle=""
128131
theme={
129132
Object {
130133
"container": "src-shared-components-tc-communities-communities-taskforce-Home-___style__resourcesContainer___tnDQ3",

__tests__/shared/components/tc-communities/communities/tc-prod-dev/__snapshots__/Learn.jsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ exports[`Snapshot match 1`] = `
2525
composeContextTheme="softly"
2626
link={null}
2727
mapThemrProps={[Function]}
28+
subTitle=""
2829
theme={
2930
Object {
3031
"container": "src-shared-components-tc-communities-communities-tc-prod-dev-Learn-___style__learnBasicsContainer___1iYDC",
@@ -234,6 +235,7 @@ exports[`Snapshot match 1`] = `
234235
}
235236
}
236237
mapThemrProps={[Function]}
238+
subTitle=""
237239
theme={
238240
Object {
239241
"container": "src-shared-components-tc-communities-communities-tc-prod-dev-Learn-___style__coursesContainer____PCRk",
@@ -297,6 +299,7 @@ exports[`Snapshot match 1`] = `
297299
composeContextTheme="softly"
298300
link={null}
299301
mapThemrProps={[Function]}
302+
subTitle=""
300303
theme={
301304
Object {
302305
"container": "src-shared-components-tc-communities-communities-tc-prod-dev-Learn-___style__resourcesContainer___1uPkY",

__tests__/shared/components/tc-communities/communities/wipro/__snapshots__/Learn.jsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ exports[`Snapshot match 1`] = `
2525
composeContextTheme="softly"
2626
link={null}
2727
mapThemrProps={[Function]}
28+
subTitle=""
2829
theme={Object {}}
2930
themePriority="adhoc-context-default"
3031
title={null}

__tests__/shared/containers/tc-communities/JoinCommunity.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { mount } from 'enzyme';
22
import React from 'react';
3+
import { Provider } from 'react-redux';
34
import configureStore from 'redux-mock-store';
45
import tActions from 'actions/tc-communities';
56
import JoinCommunity from 'components/tc-communities/JoinCommunity';
@@ -25,6 +26,7 @@ describe('full render connnected component and dispatch actions', () => {
2526
data: {
2627
challengeGroupId: '1',
2728
communityName: 'name',
29+
communityId: '1',
2830
},
2931
},
3032
hideJoinButton: true,
@@ -44,6 +46,9 @@ describe('full render connnected component and dispatch actions', () => {
4446
groups: {
4547
groups: {},
4648
},
49+
terms: {
50+
terms: [],
51+
},
4752
};
4853

4954
const mockStore = configureStore();
@@ -56,7 +61,7 @@ describe('full render connnected component and dispatch actions', () => {
5661
json: () => ({ result: { status: 200, metadata: {}, content: [] } }),
5762
});
5863
store = mockStore(initialState);
59-
instance = mount(<ConnectedJoinCommunity store={store} />);
64+
instance = mount(<Provider store={store}><ConnectedJoinCommunity /></Provider>);
6065
joinCommunity = instance.find(JoinCommunity);
6166
store.clearActions();
6267
});
@@ -74,7 +79,7 @@ describe('full render connnected component and dispatch actions', () => {
7479
},
7580
};
7681
store = mockStore(newStore);
77-
instance = mount(<ConnectedJoinCommunity store={store} />);
82+
instance = mount(<Provider store={store}><ConnectedJoinCommunity /></Provider>);
7883
});
7984

8085
test('hideJoinButton', () => {

config/custom-environment-variables.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
{
55
"LOG_ENTRIES_TOKEN": "LOG_ENTRIES_TOKEN",
6-
"MOCK_CHALLENGE_TERMS_SERVICE": "MOCK_CHALLENGE_TERMS_SERVICE"
6+
"MOCK_TERMS_SERVICE": "MOCK_TERMS_SERVICE"
77

88
}

config/default.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
* the setup. To override it use LOG_ENTRIES_TOKEN environment variable. */
3030
"LOG_ENTRIES_TOKEN": "816f5574-0d4a-49f9-ab3b-00d791f7c1f7",
3131

32-
/* When set to true, challenge terms service is short-cut so that each time
33-
* a user goes to challenge details page, it tells that none of challenge
32+
/* When set to true, terms service is short-cut so that each time
33+
* a user goes to challenge details page or community page, it tells that none of
3434
* terms is agrees, and takes care that user is taken through the terms
3535
* agreement flow. */
36-
"MOCK_CHALLENGE_TERMS_SERVICE": false,
36+
"MOCK_TERMS_SERVICE": false,
3737

3838
/* Configuration related to https://openexchangerates.org. This is the
3939
* service which provides currency exchange rates. */

docs/challenge-terms.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/how-to-add-a-new-topcoder-community.md

Lines changed: 4 additions & 1 deletion

docs/mocking-terms.md

Lines changed: 15 additions & 0 deletions
-8.63 KB
7.32 KB
11.1 KB
9.24 KB
10.4 KB
14.8 KB
8.48 KB
10.4 KB
11.2 KB
10.1 KB
10.1 KB
6.34 KB
6.33 KB
7.22 KB
3.37 KB
2.95 KB
4.31 KB
4.76 KB
11.2 KB
55.8 KB
48.4 KB
32.6 KB
108 KB
66.4 KB
-46.5 KB
Binary file not shown.
Binary file not shown.
1.76 KB
1.73 KB
1.51 KB
1.41 KB
1.67 KB

src/server/tc-communities/blockchain/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
"leaderboardApiUrl": "https://api.topcoder.com/v4/looks/458/run/json/",
2626
"newsFeed": "http://www.topcoder.com/feed",
2727
"description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore.",
28-
"image":"1.jpg"
28+
"image": "1.jpg"
2929
}

0 commit comments

Comments
 (0)