Skip to content

Commit 43991e1

Browse files
authored
Merge pull request #455 from topcoder-platform/develop
blockchain community and many bug bash fixes/updates
2 parents 741d5bc + 3aa351d commit 43991e1

File tree

139 files changed

+5710
-4031
lines changed

Some content is hidden

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

139 files changed

+5710
-4031
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":1504695600,"base":"USD","rates":{"AED":3.672779,"AFN":68.2505,"ALL":111.5,"AMD":476.96,"ANG":1.776133,"AOA":165.9215,"ARS":17.241,"AUD":1.254317,"AWG":1.794996,"AZN":1.7,"BAM":1.6387,"BBD":2,"BDT":81.268068,"BGN":1.639175,"BHD":0.377014,"BIF":1740.130974,"BMD":1,"BND":1.351895,"BOB":6.959844,"BRL":3.1172,"BSD":1,"BTC":0.000217484975,"BTN":64.108622,"BWP":10.084257,"BYN":1.925217,"BZD":2.011269,"CAD":1.239168,"CDF":1550.480769,"CHF":0.955242,"CLF":0.02317,"CLP":623.059006,"CNH":6.538132,"CNY":6.527375,"COP":2927.93,"CRC":574.39,"CUC":1,"CUP":25.5,"CVE":92.9,"CZK":21.889847,"DJF":178.77,"DKK":6.236562,"DOP":47.571395,"DZD":110.934635,"EGP":17.6687,"ERN":15.343155,"ETB":23.363073,"EUR":0.838304,"FJD":2.008905,"FKP":0.766493,"GBP":0.766493,"GEL":2.481325,"GGP":0.766493,"GHS":4.41,"GIP":0.766493,"GMD":46.075,"GNF":8955.3,"GTQ":7.277677,"GYD":205.722855,"HKD":7.824661,"HNL":23.339155,"HRK":6.230858,"HTG":62.899277,"HUF":256.838255,"IDR":13333.249227,"ILS":3.56109,"IMP":0.766493,"INR":64.1155,"IQD":1165.45,"IRR":33225.5,"ISK":106.326128,"JEP":0.766493,"JMD":127.640593,"JOD":0.709001,"JPY":108.85236939,"KES":103.266953,"KGS":68.494341,"KHR":4038.15,"KMF":413.45,"KPW":900,"KRW":1135.1775,"KWD":0.301489,"KYD":0.831324,"KZT":340.273398,"LAK":8272.1,"LBP":1503.25,"LKR":152.66,"LRD":116.871332,"LSL":12.911059,"LYD":1.359554,"MAD":9.3557,"MDL":17.719587,"MGA":2946.05,"MKD":51.665,"MMK":1355.55,"MNT":2433.207222,"MOP":8.042734,"MRO":364.2,"MUR":33.022,"MVR":15.404937,"MWK":725.5,"MXN":17.8827,"MYR":4.234957,"MZN":61.43,"NAD":12.9375,"NGN":359,"NIO":30.008984,"NOK":7.78973,"NPR":102.338153,"NZD":1.386693,"OMR":0.384977,"PAB":1,"PEN":3.237605,"PGK":3.187598,"PHP":51.116,"PKR":105.157108,"PLN":3.55799,"PYG":5718.954248,"QAR":3.689998,"RON":3.8558,"RSD":100.308668,"RUB":57.468767,"RWF":841.116784,"SAR":3.750123,"SBD":7.725799,"SCR":13.719944,"SDG":6.662159,"SEK":7.964289,"SGD":1.352082,"SHP":0.766493,"SLL":7537.33542,"SOS":576.828119,"SRD":7.438,"SSP":124.9609,"STD":20574.971847,"SVC":8.729131,"SYP":515,"SZL":12.92429,"THB":33.149,"TJS":8.789387,"TMT":3.50998,"TND":2.445803,"TOP":2.201704,"TRY":3.444792,"TTD":6.725713,"TWD":30.087,"TZS":2241.05,"UAH":25.938714,"UGX":3592.75,"USD":1,"UYU":28.781259,"UZS":8081.95,"VEF":10.09029,"VND":22732.614564,"VUV":103.774063,"WST":2.492203,"XAF":549.891587,"XAG":0.05568549,"XAU":0.00074693,"XCD":2.70255,"XDR":0.705231,"XOF":549.891587,"XPD":0.00103628,"XPF":100.036315,"XPT":0.00099099,"YER":250.48907,"ZAR":12.933169,"ZMW":9.125,"ZWL":322.355011}}
1+
{"disclaimer":"Usage subject to terms: https://openexchangerates.org/terms","license":"https://openexchangerates.org/license","timestamp":1505206800,"base":"USD","rates":{"AED":3.673058,"AFN":68.72675,"ALL":111.531389,"AMD":480.095,"ANG":1.788001,"AOA":165.9215,"ARS":17.1325,"AUD":1.245465,"AWG":1.7965,"AZN":1.7,"BAM":1.635829,"BBD":2,"BDT":82.462679,"BGN":1.634334,"BHD":0.377119,"BIF":1751.4,"BMD":1,"BND":1.345455,"BOB":7.005362,"BRL":3.102798,"BSD":1,"BTC":0.000231975022,"BTN":63.935477,"BWP":10.083696,"BYN":1.930583,"BZD":2.0245,"CAD":1.211814,"CDF":1562.881563,"CHF":0.956875,"CLF":0.02315,"CLP":623.059006,"CNH":6.542497,"CNY":6.53625,"COP":2918.68,"CRC":580.015,"CUC":1,"CUP":25.5,"CVE":92.45,"CZK":21.826572,"DJF":178.77,"DKK":6.221366,"DOP":47.855552,"DZD":111.171,"EGP":17.6613,"ERN":15.33154,"ETB":23.707367,"EUR":0.83627,"FJD":2.006049,"FKP":0.75369,"GBP":0.75369,"GEL":2.4577,"GGP":0.75369,"GHS":4.434224,"GIP":0.75369,"GMD":46.1,"GNF":9003.55,"GTQ":7.325494,"GYD":208.905526,"HKD":7.8137,"HNL":23.491844,"HRK":6.223419,"HTG":63.692126,"HUF":256.551,"IDR":13191.943326,"ILS":3.528092,"IMP":0.75369,"INR":64.005,"IQD":1172.1,"IRR":33276.5,"ISK":106.53,"JEP":0.75369,"JMD":128.468141,"JOD":0.708801,"JPY":109.71247508,"KES":102.801361,"KGS":68.539494,"KHR":4067.5,"KMF":411.164675,"KPW":900,"KRW":1128.43,"KWD":0.301407,"KYD":0.836945,"KZT":339.21,"LAK":8322.55,"LBP":1509.637443,"LKR":153.361485,"LRD":117.002232,"LSL":12.9536,"LYD":1.358616,"MAD":9.338,"MDL":17.689816,"MGA":2962.75,"MKD":51.525,"MMK":1358.4,"MNT":2441.517475,"MOP":8.082378,"MRO":365.575,"MUR":33.2325,"MVR":15.409873,"MWK":725.003277,"MXN":17.729,"MYR":4.206454,"MZN":61.168857,"NAD":12.9536,"NGN":361.08,"NIO":30.350097,"NOK":7.847559,"NPR":102.688849,"NZD":1.368246,"OMR":0.384984,"PAB":1,"PEN":3.228906,"PGK":3.208312,"PHP":50.915,"PKR":105.83,"PLN":3.554991,"PYG":5681.9,"QAR":3.714996,"RON":3.846093,"RSD":99.89435,"RUB":57.54745,"RWF":834.34,"SAR":3.7504,"SBD":7.766352,"SCR":13.54984,"SDG":6.70546,"SEK":7.975132,"SGD":1.345969,"SHP":0.75369,"SLL":7537.841265,"SOS":579.965,"SRD":7.438,"SSP":125.2496,"STD":20473.244362,"SVC":8.788235,"SYP":515,"SZL":12.95736,"THB":33.113,"TJS":8.848051,"TMT":3.50998,"TND":2.419595,"TOP":2.210602,"TRY":3.432433,"TTD":6.809439,"TWD":30.034,"TZS":2237.8,"UAH":26.128295,"UGX":3610.7,"USD":1,"UYU":28.939864,"UZS":8133.25,"VEF":10.11485,"VND":22742.153404,"VUV":103.323044,"WST":2.498181,"XAF":548.557367,"XAG":0.05619578,"XAU":0.00075386,"XCD":2.70255,"XDR":0.701262,"XOF":548.557367,"XPD":0.00106501,"XPF":99.793594,"XPT":0.00101318,"YER":250.294142,"ZAR":12.948425,"ZMW":9.300326,"ZWL":322.355011}}

README.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
11
![Dev Build Status](https://img.shields.io/circleci/project/github/topcoder-platform/community-app/develop.svg?label=develop)
2+
![Master Build Status](https://img.shields.io/circleci/project/github/topcoder-platform/community-app/master.svg?label=master)
23

34
# Topcoder Community App
45
New version of Topcoder Community website.
56

7+
### Knowledgebase
8+
- [Challenge Terms - Mocking for Testing and Development](docs/challenge-terms.md)
9+
- [Code Splitting](docs/code-splitting.md)
10+
- [Coding Standards](docs/coding-standards.md)
11+
- [How to Add a New Topcoder Community?](docs/how-to-add-a-new-topcoder-community.md)
12+
- [How To Deep-Link (Correct Use of URL Query Params Within The App)](docs/how-to-deep-link.md)
13+
- [Why Reducer Factories and How to Use Them?](docs/why-reducer-factories-and-how-to-use-them.md)
14+
15+
### Misc Development Notes
16+
17+
- [Challenge Listing - Notes from winning submission](docs/challenge-listing-notes.md)
18+
- [Leaderboard - Notes from the winning submission](docs/leaderboard-notes.md)
19+
20+
### .exchange-rates.cache
21+
22+
Often you may note that the file named `.exchange-rates.cache`, located in the root folder of the app, got updated without you touching it. In such case, please, don't hesitate to keep and commit its updated version. It is a cache of real-world currency exchange rates. Keeping it up-to-date, and preserving between restarts of the app (no matter in which mode) saves a lot of calls to [https://openexchangerates.com](https://openexchangerates.com), thus allowing us to stay within the limits of their free plan.
23+
24+
In case of merge conflicts, just commit the version of cache file that has a more recent `timestamp` among its data fields.
25+
26+
If you need any operations related to currency conversions, pay attention to the `/src/shared/services/money.js` service.
27+
628
### Deployment and Execution
729

830
*Disclaimer:* Current instructions are biased towards Ubuntu 16.04. Hovewer, similar recipies should work for other OS. Should you encounter and overcome any tricky issues on other OS, you are welcome to add notes/hints into this file.
@@ -33,7 +55,7 @@ New version of Topcoder Community website.
3355
- `$ npm start` To run the App in normal mode. The frontend will be served from `/build` folder. The Topcoder backend to use will be chosen depending on `NODE_ENV` value;
3456
- `$ npm run dev` To run the App with development tools. In this case the frontend is build in memory by server and uses dev tools like redux-devtools. The Topcoder backend to use will be chosen depending on `NODE_ENV` value. This demands dev dependencies installed at the firts step.
3557

36-
If you run the App locally against development Topcoder backend you should access the App as `local.topcoder-dev.com:3000`. Prior doing this you should add into your `/etc/hosts` the line `127.0.0.1 local.topcoder-dev.com:3000`. To login into development Topcoder backend use `accounts.topcoder-dev.com/members` to login. Log out at `www.topcoder-dev.com`, or just wipe out auth cookies.
58+
If you run the App locally against development Topcoder backend you should access the App as `local.topcoder-dev.com:3000`. Prior doing this you should add into your `/etc/hosts` the line `127.0.0.1 local.topcoder-dev.com`. To login into development Topcoder backend use `accounts.topcoder-dev.com/members` to login. Log out at `www.topcoder-dev.com`, or just wipe out auth cookies.
3759

3860
If you run the App locally against production Topcoder backend you should run it at the port 80 and access the App as `local.topcoder.com`. Prior doing this you should add into your `/etc/hosts` the line `127.0.0.1 local.topcoder.com`. The easiest way to allow the App to listen at the port 80 on Ubuntu 16.04 is (no guarantees, how safe is it):
3961
- `$ sudo apt install libcap2-bin`;
@@ -61,14 +83,6 @@ It is intended that Wipro community is accessed as `wipro.topcoder-dev.com` in d
6183

6284
We use [https://logentries.com](https://logentries.com) to track the logs. Log Entries API token should be provided via the `LOG_ENTRIES_TOKEN` environment variable, which will override the default values set in `/config/default.json` (sample account for local setup testing), and in `/config/production.json` (empty token) - with empty token Log Entries will not be used.
6385

64-
### Development Notes
65-
- [Challenge Listing - Notes from winning submission](docs/challenge-listing-notes.md)
66-
- [**Code Splitting**](docs/code-splitting.md)
67-
- [**How to Add a New Topcoder Community?**](docs/how-to-add-a-new-topcoder-community.md)
68-
- [**How To Deep-Link (Correct Use of URL Query Params Within The App)**](docs/how-to-deep-link.md)
69-
- [Leaderboard - Notes from the winning submission](docs/leaderboard-notes.md)
70-
- [**Why Reducer Factories and How to Use Them?**](docs/why-reducer-factories-and-how-to-use-them.md)
71-
7286
### Current Status
7387

7488
*Note:* Server-side rendering is supported. It means, if you go to `/src/server/App.jsx` and remove the line `<_script type="application/javascript" src="/bundle.js"></script>`, which loads JS bundle in the page, when you start the App and load any page, you'll still see a properly rendered page (without any interactivity). It means that loading of JS bundle and initialization of ReactJS do not block the proper rendering of the page.

__tests__/shared/components/Dashboard/MyChallenges/__snapshots__/ChallengeLinks.jsx.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ exports[`Matches shallow shapshot 2`] = `
4747
<div
4848
className="src-shared-components-Dashboard-MyChallenges-ChallengeLinks-___style__icon___3IZGz src-shared-components-Dashboard-MyChallenges-ChallengeLinks-___style__registrants-icon___tm0l6"
4949
/>
50-
<p />
50+
<p>
51+
0
52+
</p>
5153
</a>
5254
<a
5355
className="src-shared-components-Dashboard-MyChallenges-ChallengeLinks-___style__submissions___3TDly"

__tests__/shared/components/Dashboard/MyChallenges/__snapshots__/ChallengeTile.jsx.snap

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,9 @@ exports[`Matches shallow shapshot 7`] = `
633633
<span>
634634
Role:
635635
</span>
636-
<span />
636+
<span>
637+
638+
</span>
637639
</p>
638640
</div>
639641
</div>
@@ -669,7 +671,9 @@ exports[`Matches shallow shapshot 8`] = `
669671
<span>
670672
Role:
671673
</span>
672-
<span />
674+
<span>
675+
676+
</span>
673677
</p>
674678
</header>
675679
<div

__tests__/shared/components/Dashboard/Program/__snapshots__/IosCard.jsx.snap

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ exports[`Matches shallow shapshot 1`] = `
1919
</a>
2020
<p
2121
className="src-shared-components-Dashboard-Program-___IosCard__subtrack-color___2axPS"
22-
/>
22+
>
23+
24+
</p>
2325
</div>
2426
<div
2527
className="src-shared-components-Dashboard-Program-___IosCard__challenge-links___2nxNN"
@@ -101,7 +103,9 @@ exports[`Matches shallow shapshot 2`] = `
101103
</a>
102104
<p
103105
className="src-shared-components-Dashboard-Program-___IosCard__subtrack-color___2axPS"
104-
/>
106+
>
107+
108+
</p>
105109
</div>
106110
<div
107111
className="src-shared-components-Dashboard-Program-___IosCard__challenge-links___2nxNN"
@@ -195,7 +199,9 @@ exports[`Matches shallow shapshot 3`] = `
195199
</a>
196200
<p
197201
className="src-shared-components-Dashboard-Program-___IosCard__subtrack-color___2axPS"
198-
/>
202+
>
203+
204+
</p>
199205
</div>
200206
<div
201207
className="src-shared-components-Dashboard-Program-___IosCard__challenge-links___2nxNN"

__tests__/shared/components/Dashboard/SRM/__snapshots__/SRMTile.jsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exports[`Matches shallow shapshot 1`] = `
2222
Starts in
2323
<span>
2424
1d
25-
1d
25+
1d
2626
</span>
2727
</p>
2828
<div
@@ -85,7 +85,7 @@ exports[`Matches shallow shapshot 2`] = `
8585
Starts in
8686
<span>
8787
1d
88-
1d
88+
1d
8989
</span>
9090
</p>
9191
<div

__tests__/shared/components/Dashboard/__snapshots__/SubtrackStats.jsx.snap

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ exports[`Matches shallow shapshot 1`] = `
2323
<p
2424
className="src-shared-components-Dashboard-SubtrackStats-___styles__subtrack___2TXRB"
2525
title=""
26-
/>
26+
>
27+
28+
</p>
2729
<p
2830
className="src-shared-components-Dashboard-SubtrackStats-___styles__rating___9uUVx"
2931
style={
@@ -54,7 +56,9 @@ exports[`Matches shallow shapshot 1`] = `
5456
<p
5557
className="src-shared-components-Dashboard-SubtrackStats-___styles__subtrack___2TXRB"
5658
title=""
57-
/>
59+
>
60+
61+
</p>
5862
<p
5963
className="src-shared-components-Dashboard-SubtrackStats-___styles__rating___9uUVx"
6064
style={
@@ -97,7 +101,9 @@ exports[`Matches shallow shapshot 1`] = `
97101
<p
98102
className="src-shared-components-Dashboard-SubtrackStats-___styles__subtrack___2TXRB"
99103
title=""
100-
/>
104+
>
105+
106+
</p>
101107
<p
102108
className="src-shared-components-Dashboard-SubtrackStats-___styles__rating___9uUVx"
103109
style={
@@ -128,7 +134,9 @@ exports[`Matches shallow shapshot 1`] = `
128134
<p
129135
className="src-shared-components-Dashboard-SubtrackStats-___styles__subtrack___2TXRB"
130136
title=""
131-
/>
137+
>
138+
139+
</p>
132140
<p
133141
className="src-shared-components-Dashboard-SubtrackStats-___styles__rating___9uUVx"
134142
style={

__tests__/shared/components/Leaderboard/__snapshots__/LeaderboardTable.jsx.snap

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,14 @@ exports[`Matches shallow shapshot 1`] = `
8080
</td>
8181
<td
8282
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-challenges___29htm"
83-
/>
83+
>
84+
0
85+
</td>
8486
<td
8587
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-points___10Lis"
86-
/>
88+
>
89+
0
90+
</td>
8791
</tr>
8892
<tr>
8993
<td
@@ -133,10 +137,14 @@ exports[`Matches shallow shapshot 1`] = `
133137
</td>
134138
<td
135139
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-challenges___29htm"
136-
/>
140+
>
141+
0
142+
</td>
137143
<td
138144
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-points___10Lis"
139-
/>
145+
>
146+
0
147+
</td>
140148
</tr>
141149
<tr>
142150
<td
@@ -186,10 +194,14 @@ exports[`Matches shallow shapshot 1`] = `
186194
</td>
187195
<td
188196
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-challenges___29htm"
189-
/>
197+
>
198+
0
199+
</td>
190200
<td
191201
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-points___10Lis"
192-
/>
202+
>
203+
0
204+
</td>
193205
</tr>
194206
<tr>
195207
<td
@@ -239,10 +251,14 @@ exports[`Matches shallow shapshot 1`] = `
239251
</td>
240252
<td
241253
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-challenges___29htm"
242-
/>
254+
>
255+
0
256+
</td>
243257
<td
244258
className="src-shared-components-Leaderboard-LeaderboardTable-___styles__col-points___10Lis"
245-
/>
259+
>
260+
0
261+
</td>
246262
</tr>
247263
</tbody>
248264
</table>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ exports[`Snapshot match 1`] = `
99
>
1010
<p
1111
className="src-shared-components-SubmissionManagement-ScreeningDetails-___styles__status-title___3HTbG"
12-
/>
12+
>
13+
14+
</p>
1315
</div>
1416
<p>
1517
Your submission has been received, and will be evaluated during Review phase.

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ exports[`Snapshot match 6`] = `
105105
>
106106
<span
107107
className="src-shared-components-SubmissionManagement-ScreeningStatus-___styles__status___1CCjJ"
108-
/>
108+
>
109+
110+
</span>
109111
<span
110112
className="src-shared-components-SubmissionManagement-ScreeningStatus-___styles__warning___6tSHD"
111113
>

0 commit comments

Comments
 (0)