Skip to content

Commit 96fd7f6

Browse files
Merge pull request #5150 from topcoder-platform/bug-bash
Smoke Testing 2020-11-03 - First2Bash
2 parents 3c8a337 + 6a7c9e6 commit 96fd7f6

File tree

14 files changed

+43
-25
lines changed

14 files changed

+43
-25
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ workflows:
245245
filters:
246246
branches:
247247
only:
248-
- listing-develop-sync
248+
- develop
249249
# This is beta env for production soft releases
250250
- "build-prod-beta":
251251
context : org-global

__tests__/shared/components/Dashboard/SRM/__snapshots__/index.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ exports[`Matches shallow shapshot 1`] = `
4949
</a>
5050
<a
5151
className="tc-btn tc-btn-s tc-btn-wide tc-btn-ghost src-shared-components-Dashboard-SRM-___styles__tc-btn___3no83"
52-
href="https://www.topcoder-dev.com/member-onboarding/learning-practicing-skills/"
52+
href="https://www.topcoder-dev.com/thrive/articles/How%20To%20Compete%20in%20SRMs"
5353
>
5454
Learn More
5555
</a>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ exports[`Matches shallow shapshot 1`] = `
106106
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
107107
>
108108
<a
109-
href="https://www.topcoder-dev.com/thrive/tracks?track=Data%20Science"
109+
href="https://www.topcoder-dev.com/thrive/tracks?track=Data%20Science&tax="
110110
>
111111
Data Science
112112
</a>
@@ -115,7 +115,7 @@ exports[`Matches shallow shapshot 1`] = `
115115
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
116116
>
117117
<a
118-
href="https://www.topcoder-dev.com/thrive/tracks?track=Design"
118+
href="https://www.topcoder-dev.com/thrive/tracks?track=Design&tax="
119119
>
120120
Design
121121
</a>
@@ -124,7 +124,7 @@ exports[`Matches shallow shapshot 1`] = `
124124
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
125125
>
126126
<a
127-
href="https://www.topcoder-dev.com/thrive/tracks?track=Development"
127+
href="https://www.topcoder-dev.com/thrive/tracks?track=Development&tax="
128128
>
129129
Development
130130
</a>
@@ -133,7 +133,7 @@ exports[`Matches shallow shapshot 1`] = `
133133
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
134134
>
135135
<a
136-
href="https://www.topcoder-dev.com/thrive/tracks?track=QA"
136+
href="https://www.topcoder-dev.com/thrive/tracks?track=QA&tax="
137137
>
138138
QA
139139
</a>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ exports[`Matches shallow shapshot 1`] = `
1616
/>
1717
</div>
1818
<Footer
19-
hideTcLinksInFooter={false}
19+
hideTcLinksInFooter={true}
2020
/>
2121
</div>
2222
`;
@@ -37,7 +37,7 @@ exports[`Matches shallow shapshot 2`] = `
3737
/>
3838
</div>
3939
<Footer
40-
hideTcLinksInFooter={false}
40+
hideTcLinksInFooter={true}
4141
/>
4242
</div>
4343
`;

src/shared/components/Dashboard/SRM/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const SRM = (props) => {
3535
<a href={`${config.URL.COMMUNITY}/tc?module=ProblemArchive`} className="tc-btn tc-btn-s tc-btn-wide tc-btn-ghost" styleName="tc-btn">
3636
Problem Archive
3737
</a>
38-
<a href={`${config.URL.BASE}/member-onboarding/learning-practicing-skills/`} className="tc-btn tc-btn-s tc-btn-wide tc-btn-ghost" styleName="tc-btn">
38+
<a href={`${config.URL.BASE}/thrive/articles/How%20To%20Compete%20in%20SRMs`} className="tc-btn tc-btn-s tc-btn-wide tc-btn-ghost" styleName="tc-btn">
3939
Learn More
4040
</a>
4141
</div>

src/shared/components/TopcoderFooter/index.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ export default function TopcoderFooter() {
5858
<div styleName="sep-line" />
5959
<ul styleName="navi-col-links">
6060
<Link to={`${base}/thrive/tracks?track=Competitive%20Programming`}>Competitive Programming</Link>
61-
<Link to={`${base}/thrive/tracks?track=Data%20Science`}>Data Science</Link>
62-
<Link to={`${base}/thrive/tracks?track=Design`}>Design</Link>
63-
<Link to={`${base}/thrive/tracks?track=Development`}>Development</Link>
64-
<Link to={`${base}/thrive/tracks?track=QA`}>QA</Link>
61+
<Link to={`${base}/thrive/tracks?track=Data%20Science&tax=`}>Data Science</Link>
62+
<Link to={`${base}/thrive/tracks?track=Design&tax=`}>Design</Link>
63+
<Link to={`${base}/thrive/tracks?track=Development&tax=`}>Development</Link>
64+
<Link to={`${base}/thrive/tracks?track=QA&tax=`}>QA</Link>
6565
</ul>
6666
</div>
6767
<div styleName="navi-col">

src/shared/components/challenge-detail/Header/DeadlinesPanel/Card/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import './style.scss';
1010

1111
/* Date/time format to use in the card. */
1212
const FORMAT = 'MMM DD, HH:mm';
13+
const FORMAT_YEAR = 'MMM DD YYYY, HH:mm';
1314

1415
export default function Card({ past, time, title }) {
1516
const time2 = moment(time);
@@ -20,7 +21,7 @@ export default function Card({ past, time, title }) {
2021
{title}
2122
</p>
2223
<p styleName="date">
23-
{time2.format(FORMAT)}
24+
{time2.format(time2.year() !== moment().year() ? FORMAT_YEAR : FORMAT)}
2425
</p>
2526
</div>
2627
);

src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import SwitchWithLabel from 'components/SwitchWithLabel';
77
import { challenge as challengeUtils } from 'topcoder-react-lib';
88
// import { COMPETITION_TRACKS as TRACKS } from 'utils/tc';
99
import _ from 'lodash';
10+
import { BUCKETS } from 'utils/challenge-listing/buckets';
1011

1112
// import localStorage from 'localStorage';
1213
import ChallengeSearchBar from './ChallengeSearchBar';
@@ -49,6 +50,7 @@ export default function ChallengeFilters({
4950
if (filterState.events && filterState.events.length) filterRulesCount += 1;
5051
if (filterState.tags && filterState.tags.length) filterRulesCount += 1;
5152
if (filterState.types && filterState.types.length) filterRulesCount += 1;
53+
if (activeBucket === BUCKETS.ALL && filterState.status && filterState.status !== 'All') filterRulesCount += 1;
5254
if (filterState.endDateStart || filterState.startDateEnd) {
5355
filterRulesCount += 1;
5456
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export default function FiltersPanel({
359359
}}
360360
options={['Active', 'Completed', 'All'].map(mapOps)}
361361
simpleValue
362-
value={filterState.status || 'Active'}
362+
value={filterState.status || 'All'}
363363
/>
364364
</div>
365365
) : null
@@ -433,6 +433,7 @@ export default function FiltersPanel({
433433
events: [],
434434
endDateStart: null,
435435
startDateEnd: null,
436+
status: 'All',
436437
});
437438
selectCommunity(defaultCommunityId);
438439
setSearchText('');

src/shared/components/challenge-listing/Filters/FiltersPanel/style.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,11 @@ $panel-radius-4: $corner-radius * 2;
293293

294294
.filter-row {
295295
display: flex;
296+
flex-direction: row;
296297
align-items: center;
298+
flex-wrap: wrap;
297299
margin-right: $panel-space-100 + 17;
300+
width: auto;
298301

299302
@include xs-to-md {
300303
display: block;
@@ -397,6 +400,7 @@ $panel-radius-4: $corner-radius * 2;
397400
z-index: 3;
398401
}
399402

403+
min-width: 206px;
400404
margin-right: $panel-space-30;
401405

402406
:global(.Select-value) {
@@ -407,6 +411,17 @@ $panel-radius-4: $corner-radius * 2;
407411
color: $tc-gray-50;
408412
line-height: $panel-space-30 - 2;
409413
}
414+
415+
@media screen and (max-width: 1024px) {
416+
width: 100%;
417+
margin-top: 15px;
418+
}
419+
420+
@media screen and (min-width: 1025px) and (max-width: 1346px) {
421+
margin-top: 15px;
422+
423+
@include calc(width, '50% - 30px');
424+
}
410425
}
411426
}
412427
}

src/shared/components/challenge-listing/Listing/Bucket/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default function Bucket({
184184
{placeholders}
185185
{
186186
// (expandable || loadMore) && (expandable || !keepPlaceholders) && !loading && !expanded ? (
187-
(expanding || expandable || loadMore) && !loading && !expanded ? (
187+
(expanding || expandable) && !loading && loadMore && (expandable ? expanded : !expanded) ? (
188188
<a
189189
// href={`${challengesUrl}?${bucketQuery}`}
190190
href={`${challengesUrl}`}

src/shared/components/challenge-listing/Listing/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ function Listing({
182182
);
183183
};
184184

185-
if (!expanding && (activeBucket !== BUCKETS.ALL)
186-
&& (activeBucket !== BUCKETS.SAVED_FILTER)) {
185+
if ((activeBucket !== BUCKETS.SAVED_FILTER)) {
187186
return (
188187
<div styleName="challengeCardContainer">
189188
{getBucket(activeBucket, true)}
@@ -207,7 +206,8 @@ function Listing({
207206
// }
208207
const loading = loadingMyChallenges
209208
|| loadingOpenForRegistrationChallenges
210-
|| loadingOnGoingChallenges;
209+
|| loadingOnGoingChallenges
210+
|| loadingAllChallenges;
211211
const placeholders = [];
212212
if (challenges.length > 0 || (activeBucket === BUCKETS.ALL && allChallenges.length > 0)) {
213213
return (

src/shared/components/challenge-listing/Sidebar/index.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function SideBarFilters({
3939
// editSavedFiltersMode,
4040
// extraBucket,
4141
// filterState,
42-
hideTcLinksInFooter,
42+
// hideTcLinksInFooter,
4343
isAuth,
4444
// resetFilterName,
4545
// savedFilters,
@@ -84,7 +84,7 @@ export default function SideBarFilters({
8484
/>
8585
{/* )} */}
8686
</div>
87-
<Footer hideTcLinksInFooter={hideTcLinksInFooter} />
87+
<Footer hideTcLinksInFooter />
8888
</div>
8989
);
9090
}
@@ -94,7 +94,7 @@ SideBarFilters.defaultProps = {
9494
disabled: false,
9595
// dragState: {},
9696
// extraBucket: null,
97-
hideTcLinksInFooter: false,
97+
// hideTcLinksInFooter: false,
9898
isAuth: false,
9999
expanding: false,
100100
};
@@ -116,7 +116,7 @@ SideBarFilters.propTypes = {
116116
// editSavedFiltersMode: PT.bool.isRequired,
117117
// extraBucket: PT.string,
118118
// filterState: PT.shape().isRequired,
119-
hideTcLinksInFooter: PT.bool,
119+
// hideTcLinksInFooter: PT.bool,
120120
isAuth: PT.bool,
121121
// resetFilterName: PT.func.isRequired,
122122
// savedFilters: PT.arrayOf(PT.shape()).isRequired,

src/shared/containers/Dashboard/index.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ export class DashboardPageContainer extends React.Component {
150150
// if (now - tcBlogTimestamp > CACHE_MAX_AGE
151151
// && !tcBlogLoading) getTopcoderBlogFeed();
152152

153-
if (now - communitiesTimestamp < CACHE_MAX_AGE
154-
&& now - activeChallengesTimestamp < CACHE_MAX_AGE) {
153+
if (now - communitiesTimestamp < CACHE_MAX_AGE) {
155154
updateCommunityStats(this.props);
156155
}
157156
}

0 commit comments

Comments
 (0)