Skip to content

Commit 8472d1d

Browse files
Merge pull request #5054 from topcoder-platform/issue-5048
Hide cognitive and blockchain from dropdown filter
2 parents 0a5c95c + b9ff0f5 commit 8472d1d

File tree

13 files changed

+4
-12
lines changed

13 files changed

+4
-12
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
}]
77
},
88
"communityId": "blockchain",
9-
"hidden": true,
109
"communityName": "Blockchain Community",
1110
"groupIds": ["20000010"],
1211
"hideSearch": true,
12+
"hideFilter": true,
1313
"logos": [{
1414
"img": "/community-app-assets/themes/blockchain/logo_topcoder_with_name.svg",
1515
"url": "https://www.topcoder.com"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
"openChallengesInNewTabs": false
1010
},
1111
"communityId": "cognitive",
12-
"hidden": true,
1312
"communityName": "Topcoder Cognitive Community",
1413
"groupIds": ["20000015"],
1514
"logos": [{
1615
"img": "/community-app-assets/themes/cognitive/logo_topcoder_with_name.svg",
1716
"url": "https://www.topcoder.com"
1817
}],
1918
"hideSearch": true,
19+
"hideFilter": true,
2020
"menuItems": [
2121
{
2222
"title": "Home",

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
}]
1010
},
1111
"communityId": "comcast",
12-
"hidden": true,
1312
"communityName": "Comcast Community",
1413
"groupIds": ["20000867"],
1514
"hideSearch": true,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"openChallengesInNewTabs": false
1111
},
1212
"communityId": "cs",
13-
"hidden": true,
1413
"communityName": "CS Community",
1514
"groupIds": ["20000044"],
1615
"hideSearch": true,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
}]
88
},
99
"communityId": "iot",
10-
"hidden": true,
1110
"communityName": "IoT Community",
1211
"groupIds": ["20000045"],
1312
"hideSearch": true,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"openChallengesInNewTabs": false
1212
},
1313
"communityId": "mobile",
14-
"hidden": true,
1514
"communityName": "Mobile Community",
1615
"groupIds": ["20000047"],
1716
"hideSearch": true,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"challengeFilter": {
33
"events": ["tco19"]
44
},
5+
"hidden": true,
56
"communityId": "tco19",
67
"communityName": "TCO19",
78
"groupIds": ["20000078"],

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"events": ["tco20"]
44
},
55
"communityId": "tco20",
6-
"hidden": true,
76
"communityName": "TCO20",
87
"groupIds": [],
98
"hideSearch": true,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"events": ["tco21"]
44
},
55
"communityId": "tco21",
6-
"hidden": true,
76
"communityName": "TCO21",
87
"groupIds": [],
98
"hideSearch": true,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"ignoreCommunityFilterByDefault": true
77
},
88
"communityId": "veterans",
9-
"hidden": true,
109
"communityName": "Veterans Community",
1110
"groupIds": ["20000013"],
1211
"terms": [21193, 21263],

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"openChallengesInNewTabs": false
1111
},
1212
"communityId": "wipro",
13-
"hidden": true,
1413
"communityName": "TopGear Community",
1514
"groupIds": ["20000000"],
1615
"leaderboardApiUrl": "https://api.topcoder.com/v4/looks/458/run/json/",

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"openChallengesInNewTabs": false
1111
},
1212
"communityId": "zurich",
13-
"hidden": true,
1413
"communityName": "Zurich Community",
1514
"groupIds": ["20000145"],
1615
"authorizedGroupIdsCatalog": ["c40767a9-e02e-4872-87eb-d50dcb946055", "a1bcb865-7235-481f-ae62-b82dd958fc4c"],

src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export default function FiltersPanel({
181181
};
182182

183183
const communityOps = communityFilters.filter(community => (
184-
(!community.hidden && community.groupIds && community.groupIds.length > 0) || community.communityName === 'All'
184+
(!community.hidden && !community.hideFilter && !_.isEmpty(community.groupIds)) || community.communityName === 'All'
185185
))
186186
.map(community => ({
187187
label: community.communityName,

0 commit comments

Comments
 (0)