File tree Expand file tree Collapse file tree 14 files changed +10389
-1659
lines changed
__tests__/shared/reducers/challenge-listing
challenge-listing/Listing
reducers/challenge-listing Expand file tree Collapse file tree 14 files changed +10389
-1659
lines changed Original file line number Diff line number Diff line change 1
1
const defaultReducer = require ( 'reducers/challenge-listing/sidebar' ) . default ;
2
2
3
3
const expectedState = {
4
- activeBucket : 'all ' ,
4
+ activeBucket : 'openForRegistration ' ,
5
5
} ;
6
6
7
7
function testReducer ( reducer ) {
Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ function mapDispatchToProps(dispatch) {
445
445
const cl = challengeListingActions . challengeListing ;
446
446
const cls = challengeListingSidebarActions . challengeListing . sidebar ;
447
447
dispatch ( cl . setFilter ( filter ) ) ;
448
- dispatch ( cls . selectBucket ( BUCKETS . ALL ) ) ;
448
+ dispatch ( cls . selectBucket ( BUCKETS . OPEN_FOR_REGISTRATION ) ) ;
449
449
} ,
450
450
showXlBadge : name => dispatch ( dash . showXlBadge ( name ) ) ,
451
451
switchChallengeFilter : filter => dispatch ( dash . switchChallengeFilter ( filter ) ) ,
Original file line number Diff line number Diff line change @@ -879,7 +879,7 @@ const mapDispatchToProps = (dispatch) => {
879
879
const cl = challengeListingActions . challengeListing ;
880
880
const cls = challengeListingSidebarActions . challengeListing . sidebar ;
881
881
dispatch ( cl . setFilter ( filter ) ) ;
882
- dispatch ( cls . selectBucket ( BUCKETS . ALL ) ) ;
882
+ dispatch ( cls . selectBucket ( BUCKETS . OPEN_FOR_REGISTRATION ) ) ;
883
883
} ,
884
884
setSpecsTabState : state => dispatch ( pageActions . page . challengeDetails . setSpecsTabState ( state ) ) ,
885
885
unregisterFromChallenge : ( auth , challengeId ) => {
Original file line number Diff line number Diff line change @@ -521,7 +521,7 @@ export class ListingContainer extends React.Component {
521
521
setFilter ( state ) ;
522
522
setSearchText ( state . name || '' ) ;
523
523
// if (activeBucket === BUCKETS.SAVED_FILTER) {
524
- // selectBucket(BUCKETS.ALL );
524
+ // selectBucket(BUCKETS.OPEN_FOR_REGISTRATION );
525
525
// } else if (activeBucket === BUCKETS.SAVED_REVIEW_OPPORTUNITIES_FILTER) {
526
526
// selectBucket(BUCKETS.REVIEW_OPPORTUNITIES);
527
527
// }
@@ -558,7 +558,7 @@ ListingContainer.defaultProps = {
558
558
openChallengesInNewTabs : false ,
559
559
preListingMsg : null ,
560
560
prizeMode : 'money-usd' ,
561
- queryBucket : BUCKETS . ALL ,
561
+ queryBucket : BUCKETS . OPEN_FOR_REGISTRATION ,
562
562
meta : { } ,
563
563
expanding : false ,
564
564
// isBucketSwitching: false,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ function mapDispatchToProps(dispatch) {
11
11
const sa = challengeListingSidebarActions . challengeListing . sidebar ;
12
12
dispatch ( a . selectCommunity ( '' ) ) ;
13
13
dispatch ( a . setFilter ( { } ) ) ;
14
- dispatch ( sa . selectBucket ( BUCKETS . ALL ) ) ;
14
+ dispatch ( sa . selectBucket ( BUCKETS . OPEN_FOR_REGISTRATION ) ) ;
15
15
} ,
16
16
} ;
17
17
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function mapDispatchToProps(dispatch) {
18
18
const sa = challengeListingSidebarActions . challengeListing . sidebar ;
19
19
dispatch ( a . selectCommunity ( '' ) ) ;
20
20
dispatch ( a . setFilter ( { } ) ) ;
21
- dispatch ( sa . selectBucket ( BUCKETS . ALL ) ) ;
21
+ dispatch ( sa . selectBucket ( BUCKETS . OPEN_FOR_REGISTRATION ) ) ;
22
22
} ,
23
23
} ;
24
24
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function mapDispatchToProps(dispatch) {
20
20
const sa = challengeListingSidebarActions . challengeListing . sidebar ;
21
21
dispatch ( a . selectCommunity ( '' ) ) ;
22
22
dispatch ( a . setFilter ( { } ) ) ;
23
- dispatch ( sa . selectBucket ( BUCKETS . ALL ) ) ;
23
+ dispatch ( sa . selectBucket ( BUCKETS . OPEN_FOR_REGISTRATION ) ) ;
24
24
} ,
25
25
} ;
26
26
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function mapDispatchToProps(dispatch) {
20
20
const sa = challengeListingSidebarActions . challengeListing . sidebar ;
21
21
dispatch ( a . selectCommunity ( '' ) ) ;
22
22
dispatch ( a . setFilter ( { } ) ) ;
23
- dispatch ( sa . selectBucket ( BUCKETS . ALL ) ) ;
23
+ dispatch ( sa . selectBucket ( BUCKETS . OPEN_FOR_REGISTRATION ) ) ;
24
24
} ,
25
25
toggleGrid : ( ) => {
26
26
const a = actions . page . communities . iot . assets ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function mapDispatchToProps(dispatch) {
18
18
const sa = challengeListingSidebarActions . challengeListing . sidebar ;
19
19
dispatch ( a . selectCommunity ( '' ) ) ;
20
20
dispatch ( a . setFilter ( { } ) ) ;
21
- dispatch ( sa . selectBucket ( BUCKETS . ALL ) ) ;
21
+ dispatch ( sa . selectBucket ( BUCKETS . OPEN_FOR_REGISTRATION ) ) ;
22
22
} ,
23
23
} ;
24
24
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function mapDispatchToProps(dispatch) {
18
18
const sa = challengeListingSidebarActions . challengeListing . sidebar ;
19
19
dispatch ( a . selectCommunity ( '' ) ) ;
20
20
dispatch ( a . setFilter ( { } ) ) ;
21
- dispatch ( sa . selectBucket ( BUCKETS . ALL ) ) ;
21
+ dispatch ( sa . selectBucket ( BUCKETS . OPEN_FOR_REGISTRATION ) ) ;
22
22
} ,
23
23
} ;
24
24
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function mapDispatchToProps(dispatch) {
18
18
const sa = challengeListingSidebarActions . challengeListing . sidebar ;
19
19
dispatch ( a . selectCommunity ( '' ) ) ;
20
20
dispatch ( a . setFilter ( { } ) ) ;
21
- dispatch ( sa . selectBucket ( BUCKETS . ALL ) ) ;
21
+ dispatch ( sa . selectBucket ( BUCKETS . OPEN_FOR_REGISTRATION ) ) ;
22
22
} ,
23
23
} ;
24
24
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ function mapDispatchToProps(dispatch) {
11
11
const sa = challengeListingSidebarActions . challengeListing . sidebar ;
12
12
dispatch ( a . selectCommunity ( '' ) ) ;
13
13
dispatch ( a . setFilter ( { } ) ) ;
14
- dispatch ( sa . selectBucket ( BUCKETS . ALL ) ) ;
14
+ dispatch ( sa . selectBucket ( BUCKETS . OPEN_FOR_REGISTRATION ) ) ;
15
15
} ,
16
16
} ;
17
17
}
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ function create(initialState = {}) {
201
201
// }),
202
202
// [a.updateSavedFilter]: onUpdateSavedFilter,
203
203
} , _ . defaults ( initialState , {
204
- activeBucket : BUCKETS . ALL ,
204
+ activeBucket : BUCKETS . OPEN_FOR_REGISTRATION ,
205
205
// activeSavedFilter: 0,
206
206
// editSavedFiltersMode: false,
207
207
// savedFilters: [],
You can’t perform that action at this time.
0 commit comments