Skip to content

Commit 50473f3

Browse files
authored
Merge pull request #526 from topcoder-platform/develop
qa site updates
2 parents 0f74858 + 4f2a943 commit 50473f3

File tree

78 files changed

+704
-400
lines changed

Some content is hidden

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

78 files changed

+704
-400
lines changed

.browserslistrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
> 5%
1+
> 1%

.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":1507550400,"base":"USD","rates":{"AED":3.6729,"AFN":68.2075,"ALL":113.85,"AMD":478.645,"ANG":1.785339,"AOA":165.9215,"ARS":17.436,"AUD":1.288479,"AWG":1.790246,"AZN":1.689,"BAM":1.665311,"BBD":2,"BDT":80.822866,"BGN":1.665254,"BHD":0.3771,"BIF":1752.55,"BMD":1,"BND":1.363391,"BOB":6.910552,"BRL":3.156783,"BSD":1,"BTC":0.000217891875,"BTN":65.352897,"BWP":10.418745,"BYN":1.974366,"BZD":2.01585,"CAD":1.254076,"CDF":1562.881563,"CHF":0.979063,"CLF":0.02351,"CLP":633.485,"CNH":6.620496,"CNY":6.6242,"COP":2938.33,"CRC":573.296537,"CUC":1,"CUP":25.5,"CVE":94.4375,"CZK":22.045119,"DJF":178.97,"DKK":6.335954,"DOP":47.328618,"DZD":113.606,"EGP":17.5994,"ERN":15.33,"ETB":23.602752,"EUR":0.851297,"FJD":2.041691,"FKP":0.759101,"GBP":0.759101,"GEL":2.475238,"GGP":0.759101,"GHS":4.397867,"GIP":0.759101,"GMD":46.035,"GNF":8937.75,"GTQ":7.343109,"GYD":207.583977,"HKD":7.80538,"HNL":23.407361,"HRK":6.3859,"HTG":62.969753,"HUF":265.8865,"IDR":13501.989662,"ILS":3.50987,"IMP":0.759101,"INR":65.395,"IQD":1167.15,"IRR":33622,"ISK":105.550774,"JEP":0.759101,"JMD":128.78864,"JOD":0.709001,"JPY":112.66773077,"KES":103.26,"KGS":68.3526,"KHR":4050.25,"KMF":419.69,"KPW":900,"KRW":1143.4675,"KWD":0.302309,"KYD":0.833476,"KZT":341.383916,"LAK":8302.55,"LBP":1508.35,"LKR":153.31297,"LRD":117.853031,"LSL":13.79059,"LYD":1.373504,"MAD":9.45155,"MDL":17.491166,"MGA":3065.25,"MKD":52.419362,"MMK":1349.65,"MNT":2455.966644,"MOP":8.039391,"MRO":365.03565,"MUR":34.151,"MVR":15.409873,"MWK":725.46,"MXN":18.6034,"MYR":4.232268,"MZN":61.28,"NAD":13.790179,"NGN":359.832233,"NIO":30.30846,"NOK":7.984307,"NPR":104.579331,"NZD":1.411791,"OMR":0.384948,"PAB":1,"PEN":3.267809,"PGK":3.194754,"PHP":51.233,"PKR":105.272478,"PLN":3.666297,"PYG":5644,"QAR":3.640877,"RON":3.894694,"RSD":101.65204,"RUB":58.3275,"RWF":833.65494,"SAR":3.749807,"SBD":7.813397,"SCR":13.75769,"SDG":6.67735,"SEK":8.115302,"SGD":1.363278,"SHP":0.759101,"SLL":7662.5,"SOS":578.531731,"SRD":7.448,"SSP":127.8288,"STD":20868.150391,"SVC":8.750584,"SYP":515.00999,"SZL":13.793877,"THB":33.385,"TJS":8.800685,"TMT":3.499986,"TND":2.489652,"TOP":2.22788,"TRY":3.70619,"TTD":6.774952,"TWD":30.400005,"TZS":2244.9,"UAH":26.496777,"UGX":3620.883069,"USD":1,"UYU":29.210081,"UZS":8052.8,"VEF":9.995002,"VND":22707.866667,"VUV":105.428351,"WST":2.515794,"XAF":558.413955,"XAG":0.05902847,"XAU":0.00077934,"XCD":2.70255,"XDR":0.711305,"XOF":558.413955,"XPD":0.00108014,"XPF":101.586705,"XPT":0.0010877,"YER":250.375,"ZAR":13.781913,"ZMW":9.647188,"ZWL":322.355011}}
1+
{"disclaimer":"Usage subject to terms: https://openexchangerates.org/terms","license":"https://openexchangerates.org/license","timestamp":1507723200,"base":"USD","rates":{"AED":3.673158,"AFN":68.232,"ALL":113.02,"AMD":480.26149,"ANG":1.785421,"AOA":165.9215,"ARS":17.4055,"AUD":1.28373,"AWG":1.789995,"AZN":1.7,"BAM":1.654745,"BBD":2,"BDT":82.599323,"BGN":1.654049,"BHD":0.377243,"BIF":1753.5,"BMD":1,"BND":1.356769,"BOB":6.911671,"BRL":3.178293,"BSD":1,"BTC":0.000208274846,"BTN":65.263593,"BWP":10.322628,"BYN":1.969348,"BZD":2.016202,"CAD":1.25108,"CDF":1566.440781,"CHF":0.97434,"CLF":0.02329,"CLP":627.53,"CNH":6.58275,"CNY":6.5909,"COP":2957.7,"CRC":574.855762,"CUC":1,"CUP":25.5,"CVE":93.65,"CZK":21.8771,"DJF":178.77,"DKK":6.292281,"DOP":47.45197,"DZD":113.4595,"EGP":17.6118,"ERN":15.340336,"ETB":23.541937,"EUR":0.845382,"FJD":2.039998,"FKP":0.758174,"GBP":0.758174,"GEL":2.4791,"GGP":0.758174,"GHS":4.394843,"GIP":0.758174,"GMD":46.075,"GNF":8940.35,"GTQ":7.347343,"GYD":207.833351,"HKD":7.80585,"HNL":23.421667,"HRK":6.347,"HTG":62.789,"HUF":261.87,"IDR":13512.770504,"ILS":3.4973,"IMP":0.758174,"INR":65.145,"IQD":1167.3,"IRR":33637.5,"ISK":104.549272,"JEP":0.758174,"JMD":128.463141,"JOD":0.709001,"JPY":112.2282,"KES":103.334508,"KGS":68.380649,"KHR":4041,"KMF":416.9,"KPW":900,"KRW":1132.80625,"KWD":0.30198,"KYD":0.833581,"KZT":335.179792,"LAK":8295.9,"LBP":1508.55,"LKR":153.548466,"LRD":118.1,"LSL":13.667598,"LYD":1.369592,"MAD":9.4085,"MDL":17.543951,"MGA":3058.3,"MKD":52.062743,"MMK":1367.21006,"MNT":2455.744584,"MOP":8.041808,"MRO":365.06815,"MUR":34.0295,"MVR":15.400126,"MWK":726.11,"MXN":18.7269,"MYR":4.2186,"MZN":61.275,"NAD":13.56625,"NGN":359.852233,"NIO":30.325153,"NOK":7.931143,"NPR":104.282226,"NZD":1.413685,"OMR":0.384951,"PAB":1,"PEN":3.264246,"PGK":3.1953,"PHP":51.4495,"PKR":105.172108,"PLN":3.62245,"PYG":5642,"QAR":3.729989,"RON":3.876588,"RSD":101.017082,"RUB":57.81,"RWF":834.095,"SAR":3.75065,"SBD":7.824323,"SCR":13.75684,"SDG":6.678506,"SEK":8.057958,"SGD":1.3563,"SHP":0.758174,"SLL":7652.388383,"SOS":578.528398,"SRD":7.448,"SSP":128.8751,"STD":20773.407268,"SVC":8.752214,"SYP":514.96999,"SZL":13.673284,"THB":33.189,"TJS":8.797402,"TMT":3.50998,"TND":2.46919,"TOP":2.225338,"TRY":3.658465,"TTD":6.727159,"TWD":30.251308,"TZS":2244.8,"UAH":26.524334,"UGX":3630.95,"USD":1,"UYU":29.24392,"UZS":8030.45,"VEF":10.221245,"VND":22720.143686,"VUV":105.447306,"WST":2.513433,"XAF":554.534496,"XAG":0.05825833,"XAU":0.00077496,"XCD":2.70255,"XDR":0.708152,"XOF":554.534496,"XPD":0.00106673,"XPF":100.880953,"XPT":0.00107601,"YER":250.35,"ZAR":13.573368,"ZMW":9.62727,"ZWL":322.355011}}

__tests__/shared/actions/challenge-listing/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,5 +218,9 @@ describe('challengeListing.getPastChallengesDone', () => {
218218
});
219219

220220
test('payload is a promise which resolves to the expected object', () =>
221-
a.payload.then(res => expect(res).toEqual({ challenges: [], uuid: 'uuid' })));
221+
a.payload.then(res => expect(res).toEqual({
222+
challenges: [],
223+
frontFilter: {},
224+
uuid: 'uuid',
225+
})));
222226
});

__tests__/shared/components/__snapshots__/Select.jsx.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ exports[`Matches shallow shapshot 1`] = `
44
<Select
55
addLabelText="Add \\"{label}\\"?"
66
arrowRenderer={[Function]}
7-
autosize={true}
7+
autosize={false}
88
backspaceRemoves={true}
99
backspaceToRemoveMessage="Press backspace to remove {label}"
10+
className="src-shared-components-Select-___style__select___oXBnl"
1011
clearAllText="Clear all"
1112
clearRenderer={[Function]}
1213
clearValueText="Clear value"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Wrapper extends React.Component {
6565
}
6666
}
6767

68-
test('handle events', () => {
68+
test.skip('handle events', () => {
6969
const instance = TU.renderIntoDocument((<Wrapper {...mockDatas[0]} />));
7070
const matches = TU.scryRenderedDOMComponentsWithTag(instance, 'button');
7171
expect(matches).toHaveLength(2);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ exports[`Matches shallow shapshot shapshot 1`] = `
4949
]
5050
}
5151
communityName="name"
52+
defaultCommunityId={undefined}
5253
filterState={Object {}}
5354
hidden={true}
5455
isSavingFilter={false}
@@ -189,6 +190,7 @@ exports[`Matches shallow shapshot shapshot 2`] = `
189190
]
190191
}
191192
communityName="name"
193+
defaultCommunityId={undefined}
192194
filterState={
193195
Object {
194196
"endDate": "2019-12-31T23:00:00.000Z",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exports[`Matches shallow shapshot 1`] = `
1515
endDatePlaceholderText="End Date"
1616
firstDayOfWeek={null}
1717
focusedInput={null}
18-
hideKeyboardShortcutsPanel={false}
18+
hideKeyboardShortcutsPanel={true}
1919
horizontalMargin={0}
2020
initialVisibleMonth={null}
2121
inputIconPosition="before"

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

Lines changed: 68 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -153,20 +153,46 @@ exports[`Matches shallow shapshot 1`] = `
153153
<div
154154
className="src-shared-components-challenge-listing-Filters-FiltersPanel-___style__buttons___2r3xW"
155155
>
156-
<button
157-
className="tc-outline-btn src-shared-components-challenge-listing-Filters-FiltersPanel-___style__white___AWGFv"
158-
disabled={true}
156+
<ThemedGenericButton
157+
composeAdhocTheme="deeply"
158+
composeContextTheme="softly"
159+
disabled={false}
160+
enforceA={false}
161+
mapThemrProps={[Function]}
159162
onClick={[Function]}
163+
openNewTab={false}
164+
replace={false}
165+
theme={
166+
Object {
167+
"button": "src-shared-components-challenge-listing-Filters-FiltersPanel-___style__button___22bzJ",
168+
"disabled": "src-shared-components-challenge-listing-Filters-FiltersPanel-___style__buttonDisabled___dIkxB",
169+
}
170+
}
171+
themePriority="adhoc-default-context"
172+
to={null}
160173
>
161174
Clear filters
162-
</button>
163-
<button
164-
className="tc-blue-btn src-shared-components-challenge-listing-Filters-FiltersPanel-___style__blue___3L4J6"
165-
disabled={true}
175+
</ThemedGenericButton>
176+
<ThemedGenericButton
177+
composeAdhocTheme="deeply"
178+
composeContextTheme="softly"
179+
disabled={false}
180+
enforceA={false}
181+
mapThemrProps={[Function]}
166182
onClick={[Function]}
183+
openNewTab={false}
184+
replace={false}
185+
theme={
186+
Object {
187+
"button": "src-shared-components-challenge-listing-Filters-FiltersPanel-___style__button___22bzJ",
188+
"disabled": "src-shared-components-challenge-listing-Filters-FiltersPanel-___style__buttonDisabled___dIkxB",
189+
}
190+
}
191+
themePriority="adhoc-context-default"
192+
to={null}
167193
>
168194
Save filter
169-
</button>
195+
</ThemedGenericButton>
170196
</div>
171197
</div>
172198
`;
@@ -302,20 +328,46 @@ exports[`Matches shallow shapshot 2`] = `
302328
<div
303329
className="src-shared-components-challenge-listing-Filters-FiltersPanel-___style__buttons___2r3xW"
304330
>
305-
<button
306-
className="tc-outline-btn src-shared-components-challenge-listing-Filters-FiltersPanel-___style__white___AWGFv"
307-
disabled={true}
331+
<ThemedGenericButton
332+
composeAdhocTheme="deeply"
333+
composeContextTheme="softly"
334+
disabled={false}
335+
enforceA={false}
336+
mapThemrProps={[Function]}
308337
onClick={[Function]}
338+
openNewTab={false}
339+
replace={false}
340+
theme={
341+
Object {
342+
"button": "src-shared-components-challenge-listing-Filters-FiltersPanel-___style__button___22bzJ",
343+
"disabled": "src-shared-components-challenge-listing-Filters-FiltersPanel-___style__buttonDisabled___dIkxB",
344+
}
345+
}
346+
themePriority="adhoc-default-context"
347+
to={null}
309348
>
310349
Clear filters
311-
</button>
312-
<button
313-
className="tc-blue-btn src-shared-components-challenge-listing-Filters-FiltersPanel-___style__blue___3L4J6"
314-
disabled={true}
350+
</ThemedGenericButton>
351+
<ThemedGenericButton
352+
composeAdhocTheme="deeply"
353+
composeContextTheme="softly"
354+
disabled={false}
355+
enforceA={false}
356+
mapThemrProps={[Function]}
315357
onClick={[Function]}
358+
openNewTab={false}
359+
replace={false}
360+
theme={
361+
Object {
362+
"button": "src-shared-components-challenge-listing-Filters-FiltersPanel-___style__button___22bzJ",
363+
"disabled": "src-shared-components-challenge-listing-Filters-FiltersPanel-___style__buttonDisabled___dIkxB",
364+
}
365+
}
366+
themePriority="adhoc-context-default"
367+
to={null}
316368
>
317369
Save filter
318-
</button>
370+
</ThemedGenericButton>
319371
</div>
320372
</div>
321373
`;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ exports[`Matches shallow shapshot 1`] = `
5959
communityName={null}
6060
expand={[Function]}
6161
expanded={true}
62+
keepPlaceholders={false}
6263
loadMore={[Function]}
6364
loading={false}
6465
newChallengeDetails={false}
@@ -187,6 +188,7 @@ exports[`Matches shallow shapshot 2`] = `
187188
communityName={null}
188189
expand={[Function]}
189190
expanded={false}
191+
keepPlaceholders={false}
190192
loadMore={[Function]}
191193
loading={true}
192194
newChallengeDetails={false}
@@ -213,6 +215,7 @@ exports[`Matches shallow shapshot 3`] = `
213215
communityName={null}
214216
expand={[Function]}
215217
expanded={false}
218+
keepPlaceholders={false}
216219
loadMore={null}
217220
loading={true}
218221
newChallengeDetails={false}

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ exports[`Matches shallow shapshot 1`] = `
1313
expand={[Function]}
1414
expanded={false}
1515
filterState={undefined}
16+
keepPlaceholders={false}
1617
loadMore={null}
1718
loading={false}
1819
newChallengeDetails={false}
@@ -33,6 +34,7 @@ exports[`Matches shallow shapshot 1`] = `
3334
expand={[Function]}
3435
expanded={false}
3536
filterState={undefined}
37+
keepPlaceholders={false}
3638
loadMore={null}
3739
loading={false}
3840
newChallengeDetails={false}
@@ -53,6 +55,7 @@ exports[`Matches shallow shapshot 1`] = `
5355
expand={[Function]}
5456
expanded={false}
5557
filterState={undefined}
58+
keepPlaceholders={false}
5659
loadMore={null}
5760
loading={false}
5861
newChallengeDetails={false}
@@ -73,6 +76,7 @@ exports[`Matches shallow shapshot 1`] = `
7376
expand={[Function]}
7477
expanded={false}
7578
filterState={undefined}
79+
keepPlaceholders={false}
7680
loadMore={[Function]}
7781
loading={false}
7882
newChallengeDetails={false}
@@ -100,6 +104,7 @@ exports[`Matches shallow shapshot 2`] = `
100104
expand={[Function]}
101105
expanded={true}
102106
filterState={undefined}
107+
keepPlaceholders={false}
103108
loadMore={[Function]}
104109
loading={false}
105110
newChallengeDetails={false}
@@ -127,6 +132,7 @@ exports[`Matches shallow shapshot 3`] = `
127132
expand={[Function]}
128133
expanded={true}
129134
filterState={undefined}
135+
keepPlaceholders={false}
130136
loadMore={[Function]}
131137
loading={false}
132138
newChallengeDetails={false}
@@ -154,6 +160,7 @@ exports[`Matches shallow shapshot 4`] = `
154160
expand={[Function]}
155161
expanded={false}
156162
filterState={undefined}
163+
keepPlaceholders={false}
157164
loadMore={null}
158165
loading={false}
159166
newChallengeDetails={false}
@@ -174,6 +181,7 @@ exports[`Matches shallow shapshot 4`] = `
174181
expand={[Function]}
175182
expanded={false}
176183
filterState={undefined}
184+
keepPlaceholders={false}
177185
loadMore={null}
178186
loading={false}
179187
newChallengeDetails={false}
@@ -194,6 +202,7 @@ exports[`Matches shallow shapshot 4`] = `
194202
expand={[Function]}
195203
expanded={false}
196204
filterState={undefined}
205+
keepPlaceholders={false}
197206
loadMore={[Function]}
198207
loading={false}
199208
newChallengeDetails={false}
@@ -221,6 +230,7 @@ exports[`Matches shallow shapshot 5`] = `
221230
expand={[Function]}
222231
expanded={true}
223232
filterState={undefined}
233+
keepPlaceholders={false}
224234
loadMore={null}
225235
loading={false}
226236
newChallengeDetails={false}

__tests__/shared/components/challenge-listing/__snapshots__/index.jsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ exports[`Matches shallow shapshot 1 shapshot 1 1`] = `
77
>
88
<Connect(Container)
99
communityName={null}
10+
defaultCommunityId={undefined}
1011
isCardTypeSet="Challenges"
1112
setCardType={[Function]}
1213
/>
@@ -76,6 +77,7 @@ exports[`Matches shallow shapshot 1 shapshot 1 1`] = `
7677
currentFilterName=""
7778
expanded={false}
7879
filterState={Object {}}
80+
keepPastPlaceholders={undefined}
7981
loadMoreDraft={null}
8082
loadMorePast={null}
8183
loadingDraftChallenges={false}
@@ -121,6 +123,7 @@ exports[`Matches shallow shapshot 2 shapshot 2 1`] = `
121123
>
122124
<Connect(Container)
123125
communityName={null}
126+
defaultCommunityId={undefined}
124127
isCardTypeSet="Challenges"
125128
setCardType={[Function]}
126129
/>

0 commit comments

Comments
 (0)