Skip to content

Commit 5017bdb

Browse files
Merge branch 'bug-bash' into issue-5088-gets0ul
2 parents 595ff74 + fc86b83 commit 5017bdb

File tree

10 files changed

+23
-19
lines changed

10 files changed

+23
-19
lines changed

__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
@@ -54,10 +54,10 @@ export default function TopcoderFooter() {
5454
<div styleName="sep-line" />
5555
<ul styleName="navi-col-links">
5656
<Link to={`${base}/thrive/tracks?track=Competitive%20Programming`}>Competitive Programming</Link>
57-
<Link to={`${base}/thrive/tracks?track=Data%20Science`}>Data Science</Link>
58-
<Link to={`${base}/thrive/tracks?track=Design`}>Design</Link>
59-
<Link to={`${base}/thrive/tracks?track=Development`}>Development</Link>
60-
<Link to={`${base}/thrive/tracks?track=QA`}>QA</Link>
57+
<Link to={`${base}/thrive/tracks?track=Data%20Science&tax=`}>Data Science</Link>
58+
<Link to={`${base}/thrive/tracks?track=Design&tax=`}>Design</Link>
59+
<Link to={`${base}/thrive/tracks?track=Development&tax=`}>Development</Link>
60+
<Link to={`${base}/thrive/tracks?track=QA&tax=`}>QA</Link>
6161
</ul>
6262
</div>
6363
<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/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 && (expandable ? expanded : !expanded) ? (
187+
(expanding || expandable) && !loading && loadMore && (expandable ? expanded : !expanded) ? (
188188
<a
189189
// href={`${challengesUrl}?${bucketQuery}`}
190190
href={`${challengesUrl}`}

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,

0 commit comments

Comments
 (0)