diff --git a/src/shared/actions/challenge-listing/index.js b/src/shared/actions/challenge-listing/index.js index 72333035ab..fa1cb8e21d 100644 --- a/src/shared/actions/challenge-listing/index.js +++ b/src/shared/actions/challenge-listing/index.js @@ -24,7 +24,7 @@ const PAGE_SIZE = 50; /** * The maximum number of review opportunities to fetch in a single API call. */ -const REVIEW_OPPORTUNITY_PAGE_SIZE = 10; +const REVIEW_OPPORTUNITY_PAGE_SIZE = 1000; /** * Private. Loads from the backend all challenges matching some conditions. diff --git a/src/shared/components/Contentful/Accordion/Accordion/style.scss b/src/shared/components/Contentful/Accordion/Accordion/style.scss index b4a1188819..2d2b1a31f9 100644 --- a/src/shared/components/Contentful/Accordion/Accordion/style.scss +++ b/src/shared/components/Contentful/Accordion/Accordion/style.scss @@ -58,8 +58,8 @@ .titleListItem { color: #a3a3ae; cursor: pointer; - font-size: 36px; - line-height: 45px; + font-size: 20px; + line-height: 30px; padding: 15px 0; position: relative; diff --git a/src/shared/components/challenge-listing/Listing/ReviewOpportunityBucket/index.jsx b/src/shared/components/challenge-listing/Listing/ReviewOpportunityBucket/index.jsx index 2a1dd46b23..87cb5eef0a 100644 --- a/src/shared/components/challenge-listing/Listing/ReviewOpportunityBucket/index.jsx +++ b/src/shared/components/challenge-listing/Listing/ReviewOpportunityBucket/index.jsx @@ -62,7 +62,7 @@ export default function ReviewOpportunityBucket({ )); const placeholders = []; - if (loading || keepPlaceholders) { + if ((loading || keepPlaceholders) && cards.length === 0) { for (let i = 0; i < 8; i += 1) { placeholders.push(); } diff --git a/src/shared/containers/SubmissionPage.jsx b/src/shared/containers/SubmissionPage.jsx index bc017f3e83..0e63928042 100644 --- a/src/shared/containers/SubmissionPage.jsx +++ b/src/shared/containers/SubmissionPage.jsx @@ -6,7 +6,6 @@ * Connects the Redux store to the Challenge Submissions display components. * Passes the relevent state and setters as properties to the UI components. */ -import _ from 'lodash'; import actions from 'actions/page/submission'; import communityActions from 'actions/tc-communities'; import shortId from 'shortid'; @@ -15,7 +14,6 @@ import PT from 'prop-types'; import { connect } from 'react-redux'; import SubmissionsPage from 'components/SubmissionPage'; import AccessDenied, { CAUSE as ACCESS_DENIED_REASON } from 'components/tc-communities/AccessDenied'; -import { USER_GROUP_MAXAGE } from 'config'; /** * SubmissionsPage Container @@ -29,18 +27,10 @@ class SubmissionsPageContainer extends React.Component { componentDidMount() { const { auth, - groups, - communitiesList, getCommunitiesList, } = this.props; - // check if challenge belongs to any groups - // and the communitiesList is not up-to-date - // then will load the communitiesList - if (!_.isEmpty(groups) && !communitiesList.loadingUuid - && (Date.now() - communitiesList.timestamp > USER_GROUP_MAXAGE)) { - getCommunitiesList(auth); - } + getCommunitiesList(auth); } /* A child component has called their submitForm() prop, prepare the passed diff --git a/src/shared/containers/challenge-detail/index.jsx b/src/shared/containers/challenge-detail/index.jsx index 32fbc5fc79..335208aa6d 100644 --- a/src/shared/containers/challenge-detail/index.jsx +++ b/src/shared/containers/challenge-detail/index.jsx @@ -31,7 +31,6 @@ import { BUCKETS } from 'utils/challenge-listing/buckets'; import { CHALLENGE_PHASE_TYPES, COMPETITION_TRACKS_V3, SUBTRACKS } from 'utils/tc'; import { config, MetaTags } from 'topcoder-react-utils'; import { actions } from 'topcoder-react-lib'; -import { USER_GROUP_MAXAGE } from 'config'; import ogWireframe from '../../../assets/images/open-graph/challenges/01-wireframe.jpg'; @@ -127,7 +126,6 @@ class ChallengeDetailPageContainer extends React.Component { const { auth, challenge, - communitiesList, getCommunitiesList, loadChallengeDetails, challengeId, @@ -161,10 +159,7 @@ class ChallengeDetailPageContainer extends React.Component { loadChallengeDetails(auth, challengeId); } - if (!communitiesList.loadingUuid - && (Date.now() - communitiesList.timestamp > USER_GROUP_MAXAGE)) { - getCommunitiesList(auth); - } + getCommunitiesList(auth); if (_.isEmpty(challengeSubtracksMap)) { getSubtracks();