You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -49,10 +51,28 @@ To add a new community with the name **demo**, we should follow the following pr
49
51
```
50
52
Its fields serve the following purposes:
51
53
- `authorizedGroupIds` - *String Array* - Optional. Array of group IDs. If specified, access to the community will be restricted only to authenticated visitors, included into, at least, one of the groups listed in this array. If undefined, community will be accessible to any visitors (including non-authenticated ones).
52
-
- `challengeGroupId` - *String* - Optional. ID of the group holding challenges related to this community. If undefined, challenge listing in this community will show all public challenges.
53
-
- `challengeFilterTag` - *String* - Optional. If specified, and not an empty string, only challenges having this technology tag will be shown inside the community (it acts as an additional filter after the group-based filtering).
54
+
- `challengeFilter` - *Object* - Challenge filter matching challenges related to the community. This object can include any options known to the `/src/utils/challenge-listing/filter.js` module, though in many cases you want to use just one of these:
55
+
```js
56
+
/* Matches challenges belonging to any of the groups listed by ID. */
57
+
{
58
+
"groupIds": ["12345"]
59
+
}
60
+
61
+
/* Matches challenges tagged with at least one of the tags. */
62
+
{
63
+
"tags": ["JavaScript"]
64
+
}
65
+
66
+
/* Matches challenges belonging to any of the groups AND tagged with
67
+
* at least one of the tags. */
68
+
{
69
+
"groupIds": ["12345"],
70
+
"tags": ["JavaScript"]
71
+
}
72
+
```
54
73
- `communityId` - *String* - Unique ID of this community.
55
74
- `communitySelector` - *Object Array* - Specifies data for the community selection dropdown inside the community header. Each object MUST HAVE `label` and `value` string fields, and MAY HAVE `redirect` field. If `redirect` field is specified, a click on that option in the dropdown will redirect user to the specified URL.
75
+
- `groupId` - *String* - This value of group ID is now used to fetch community statistics. Probably, it makes sense to use this value everywhere where `authorizedGroupIds` array is used, however, at the moment, these two are independent.
56
76
- `leaderboardApiUrl` - *String* - Endpoint from where the leaderboard data should be loaded.
57
77
- `logo` - *String Array* - Array of image URLs to insert as logos into the left corner of community's header.
58
78
- `menuItems` - *Object Array* - Specifies options for the community navigation menu (both in the header and footer). Each object MUST HAVE `title` and `url` fields. For now, `url` field should be a relative link inside the community, within the same path segment.
0 commit comments