Skip to content

Smoke Testing 2020-11-03 - First2Bash #5150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
Nov 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
1aa1e01
Update index.jsx
PrakashDurlabhji Oct 15, 2020
e8b6b89
Update ChallengeFilters.jsx
PrakashDurlabhji Oct 15, 2020
ae99333
Update index.jsx
PrakashDurlabhji Oct 15, 2020
d18b2b1
Update index.jsx
PrakashDurlabhji Oct 15, 2020
312d56b
Update index.jsx
PrakashDurlabhji Oct 15, 2020
fa753ae
Update index.jsx.snap
PrakashDurlabhji Oct 15, 2020
595ff74
fix: no challenges message when sorting all challenges
gets0ul Oct 15, 2020
e2b07f2
Update ChallengeFilters.jsx
PrakashDurlabhji Oct 15, 2020
1ba0692
Update index.jsx
PrakashDurlabhji Oct 15, 2020
33220f7
Merge pull request #5109 from topcoder-platform/issue-5093-pkdurlabhji
luizrrodrigues Oct 15, 2020
41e0490
Update TopcoderFooter.jsx.snap
PrakashDurlabhji Oct 15, 2020
c36f75c
Merge pull request #5112 from topcoder-platform/issue-3215-pkdurlabhji
luizrrodrigues Oct 15, 2020
7213ca8
fix: empty values in dashboard sub-community
gets0ul Oct 15, 2020
b25dd09
Update ChallengeFilters.jsx
PrakashDurlabhji Oct 15, 2020
b99c9ad
Update index.jsx
PrakashDurlabhji Oct 15, 2020
9858be2
Merge pull request #5115 from topcoder-platform/issue-5035-pkdurlabhji
luizrrodrigues Oct 15, 2020
5d3c3aa
Update ChallengeFilters.jsx
PrakashDurlabhji Oct 15, 2020
2719939
Update ChallengeFilters.jsx
PrakashDurlabhji Oct 15, 2020
fa78ea7
Update index.jsx
PrakashDurlabhji Oct 15, 2020
06e9f93
Update index.jsx.snap
PrakashDurlabhji Oct 15, 2020
865a898
Update index.jsx.snap
PrakashDurlabhji Oct 15, 2020
345e915
Update index.jsx
PrakashDurlabhji Oct 15, 2020
032c5cf
Merge pull request #5111 from topcoder-platform/issue-5071-pkdurlabhji
luizrrodrigues Oct 16, 2020
1605740
fix: #5081 hide view more button when result is less than 10
gets0ul Oct 16, 2020
1ced930
Merge pull request #5117 from topcoder-platform/issue-4252-pkdurlabhji
luizrrodrigues Oct 16, 2020
bf4c5f8
Merge pull request #5110 from topcoder-platform/issue-5083-pkdurlabhji
luizrrodrigues Oct 16, 2020
169c172
issue-5072
Oct 17, 2020
fc86b83
Merge pull request #5122 from topcoder-platform/issue-5081-gets0ul
luizrrodrigues Oct 17, 2020
5017bdb
Merge branch 'bug-bash' into issue-5088-gets0ul
luizrrodrigues Oct 18, 2020
d1b40f6
Merge branch 'issue-5088-gets0ul' into bug-bash
luizrrodrigues Oct 18, 2020
74efb44
Merge pull request #5124 from topcoder-platform/issue-5072-Lieutenant…
luizrrodrigues Oct 18, 2020
fe857a9
ci: Deploy develop to Stag and QA env
luizrrodrigues Oct 18, 2020
039cdd7
Merge pull request #5116 from topcoder-platform/issue-5046-gets0ul
luizrrodrigues Oct 19, 2020
0a9a473
Merge branch 'develop' into bug-bash
luizrrodrigues Nov 3, 2020
6a7c9e6
ci: remove bug-bash from QA env
luizrrodrigues Nov 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ workflows:
filters:
branches:
only:
- listing-develop-sync
- develop
# This is beta env for production soft releases
- "build-prod-beta":
context : org-global
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ exports[`Matches shallow shapshot 1`] = `
</a>
<a
className="tc-btn tc-btn-s tc-btn-wide tc-btn-ghost src-shared-components-Dashboard-SRM-___styles__tc-btn___3no83"
href="https://www.topcoder-dev.com/member-onboarding/learning-practicing-skills/"
href="https://www.topcoder-dev.com/thrive/articles/How%20To%20Compete%20in%20SRMs"
>
Learn More
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ exports[`Matches shallow shapshot 1`] = `
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
>
<a
href="https://www.topcoder-dev.com/thrive/tracks?track=Data%20Science"
href="https://www.topcoder-dev.com/thrive/tracks?track=Data%20Science&tax="
>
Data Science
</a>
Expand All @@ -115,7 +115,7 @@ exports[`Matches shallow shapshot 1`] = `
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
>
<a
href="https://www.topcoder-dev.com/thrive/tracks?track=Design"
href="https://www.topcoder-dev.com/thrive/tracks?track=Design&tax="
>
Design
</a>
Expand All @@ -124,7 +124,7 @@ exports[`Matches shallow shapshot 1`] = `
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
>
<a
href="https://www.topcoder-dev.com/thrive/tracks?track=Development"
href="https://www.topcoder-dev.com/thrive/tracks?track=Development&tax="
>
Development
</a>
Expand All @@ -133,7 +133,7 @@ exports[`Matches shallow shapshot 1`] = `
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
>
<a
href="https://www.topcoder-dev.com/thrive/tracks?track=QA"
href="https://www.topcoder-dev.com/thrive/tracks?track=QA&tax="
>
QA
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports[`Matches shallow shapshot 1`] = `
/>
</div>
<Footer
hideTcLinksInFooter={false}
hideTcLinksInFooter={true}
/>
</div>
`;
Expand All @@ -37,7 +37,7 @@ exports[`Matches shallow shapshot 2`] = `
/>
</div>
<Footer
hideTcLinksInFooter={false}
hideTcLinksInFooter={true}
/>
</div>
`;
2 changes: 1 addition & 1 deletion src/shared/components/Dashboard/SRM/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const SRM = (props) => {
<a href={`${config.URL.COMMUNITY}/tc?module=ProblemArchive`} className="tc-btn tc-btn-s tc-btn-wide tc-btn-ghost" styleName="tc-btn">
Problem Archive
</a>
<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">
<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">
Learn More
</a>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/shared/components/TopcoderFooter/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ export default function TopcoderFooter() {
<div styleName="sep-line" />
<ul styleName="navi-col-links">
<Link to={`${base}/thrive/tracks?track=Competitive%20Programming`}>Competitive Programming</Link>
<Link to={`${base}/thrive/tracks?track=Data%20Science`}>Data Science</Link>
<Link to={`${base}/thrive/tracks?track=Design`}>Design</Link>
<Link to={`${base}/thrive/tracks?track=Development`}>Development</Link>
<Link to={`${base}/thrive/tracks?track=QA`}>QA</Link>
<Link to={`${base}/thrive/tracks?track=Data%20Science&tax=`}>Data Science</Link>
<Link to={`${base}/thrive/tracks?track=Design&tax=`}>Design</Link>
<Link to={`${base}/thrive/tracks?track=Development&tax=`}>Development</Link>
<Link to={`${base}/thrive/tracks?track=QA&tax=`}>QA</Link>
</ul>
</div>
<div styleName="navi-col">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import './style.scss';

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

export default function Card({ past, time, title }) {
const time2 = moment(time);
Expand All @@ -20,7 +21,7 @@ export default function Card({ past, time, title }) {
{title}
</p>
<p styleName="date">
{time2.format(FORMAT)}
{time2.format(time2.year() !== moment().year() ? FORMAT_YEAR : FORMAT)}
</p>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import SwitchWithLabel from 'components/SwitchWithLabel';
import { challenge as challengeUtils } from 'topcoder-react-lib';
// import { COMPETITION_TRACKS as TRACKS } from 'utils/tc';
import _ from 'lodash';
import { BUCKETS } from 'utils/challenge-listing/buckets';

// import localStorage from 'localStorage';
import ChallengeSearchBar from './ChallengeSearchBar';
Expand Down Expand Up @@ -49,6 +50,7 @@ export default function ChallengeFilters({
if (filterState.events && filterState.events.length) filterRulesCount += 1;
if (filterState.tags && filterState.tags.length) filterRulesCount += 1;
if (filterState.types && filterState.types.length) filterRulesCount += 1;
if (activeBucket === BUCKETS.ALL && filterState.status && filterState.status !== 'All') filterRulesCount += 1;
if (filterState.endDateStart || filterState.startDateEnd) {
filterRulesCount += 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export default function FiltersPanel({
}}
options={['Active', 'Completed', 'All'].map(mapOps)}
simpleValue
value={filterState.status || 'Active'}
value={filterState.status || 'All'}
/>
</div>
) : null
Expand Down Expand Up @@ -433,6 +433,7 @@ export default function FiltersPanel({
events: [],
endDateStart: null,
startDateEnd: null,
status: 'All',
});
selectCommunity(defaultCommunityId);
setSearchText('');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,11 @@ $panel-radius-4: $corner-radius * 2;

.filter-row {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
margin-right: $panel-space-100 + 17;
width: auto;

@include xs-to-md {
display: block;
Expand Down Expand Up @@ -397,6 +400,7 @@ $panel-radius-4: $corner-radius * 2;
z-index: 3;
}

min-width: 206px;
margin-right: $panel-space-30;

:global(.Select-value) {
Expand All @@ -407,6 +411,17 @@ $panel-radius-4: $corner-radius * 2;
color: $tc-gray-50;
line-height: $panel-space-30 - 2;
}

@media screen and (max-width: 1024px) {
width: 100%;
margin-top: 15px;
}

@media screen and (min-width: 1025px) and (max-width: 1346px) {
margin-top: 15px;

@include calc(width, '50% - 30px');
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default function Bucket({
{placeholders}
{
// (expandable || loadMore) && (expandable || !keepPlaceholders) && !loading && !expanded ? (
(expanding || expandable || loadMore) && !loading && !expanded ? (
(expanding || expandable) && !loading && loadMore && (expandable ? expanded : !expanded) ? (
<a
// href={`${challengesUrl}?${bucketQuery}`}
href={`${challengesUrl}`}
Expand Down
6 changes: 3 additions & 3 deletions src/shared/components/challenge-listing/Listing/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ function Listing({
);
};

if (!expanding && (activeBucket !== BUCKETS.ALL)
&& (activeBucket !== BUCKETS.SAVED_FILTER)) {
if ((activeBucket !== BUCKETS.SAVED_FILTER)) {
return (
<div styleName="challengeCardContainer">
{getBucket(activeBucket, true)}
Expand All @@ -207,7 +206,8 @@ function Listing({
// }
const loading = loadingMyChallenges
|| loadingOpenForRegistrationChallenges
|| loadingOnGoingChallenges;
|| loadingOnGoingChallenges
|| loadingAllChallenges;
const placeholders = [];
if (challenges.length > 0 || (activeBucket === BUCKETS.ALL && allChallenges.length > 0)) {
return (
Expand Down
8 changes: 4 additions & 4 deletions src/shared/components/challenge-listing/Sidebar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function SideBarFilters({
// editSavedFiltersMode,
// extraBucket,
// filterState,
hideTcLinksInFooter,
// hideTcLinksInFooter,
isAuth,
// resetFilterName,
// savedFilters,
Expand Down Expand Up @@ -84,7 +84,7 @@ export default function SideBarFilters({
/>
{/* )} */}
</div>
<Footer hideTcLinksInFooter={hideTcLinksInFooter} />
<Footer hideTcLinksInFooter />
</div>
);
}
Expand All @@ -94,7 +94,7 @@ SideBarFilters.defaultProps = {
disabled: false,
// dragState: {},
// extraBucket: null,
hideTcLinksInFooter: false,
// hideTcLinksInFooter: false,
isAuth: false,
expanding: false,
};
Expand All @@ -116,7 +116,7 @@ SideBarFilters.propTypes = {
// editSavedFiltersMode: PT.bool.isRequired,
// extraBucket: PT.string,
// filterState: PT.shape().isRequired,
hideTcLinksInFooter: PT.bool,
// hideTcLinksInFooter: PT.bool,
isAuth: PT.bool,
// resetFilterName: PT.func.isRequired,
// savedFilters: PT.arrayOf(PT.shape()).isRequired,
Expand Down
3 changes: 1 addition & 2 deletions src/shared/containers/Dashboard/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ export class DashboardPageContainer extends React.Component {
// if (now - tcBlogTimestamp > CACHE_MAX_AGE
// && !tcBlogLoading) getTopcoderBlogFeed();

if (now - communitiesTimestamp < CACHE_MAX_AGE
&& now - activeChallengesTimestamp < CACHE_MAX_AGE) {
if (now - communitiesTimestamp < CACHE_MAX_AGE) {
updateCommunityStats(this.props);
}
}
Expand Down