Skip to content

Smoke Testing 2021/01/26 - Bug Bash #5463

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 14 commits into from
Apr 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,14 @@ workflows:
filters:
branches:
only:
- free
- bug-bash
# This is beta env for production soft releases
- "build-prod-beta":
context : org-global
filters:
branches:
only:
- develop
- bug-bash
# This is stage env for production QA releases
- "build-prod-staging":
context : org-global
Expand Down
1 change: 1 addition & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ module.exports = {
HOWTOCOMPETEINMARATHON: 'https://www.topcoder.com/thrive/articles/How%20To%20Compete%20in%20a%20Marathon%20Match',
USABLECODEDEV: 'https://www.topcoder.com/thrive/articles/Usable%20Code%20in%20Dev%20Challenges',
EXTENSIONVSCODE: 'https://marketplace.visualstudio.com/items?itemName=Topcoder.topcoder-workflow&ssr=false#overview',
TEMPLATES_REPO: 'https://github.com/topcoder-platform-templates',
},

IOS: 'https://ios.topcoder-dev.com',
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/Settings/Preferences/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default class Preferences extends React.Component {
case 'e-mail':
return <NewsletterPreferencesContainer email={email} />;
case 'forum':
return (window.location.href = `${config.URL.FORUMS}/?module=Settings`) && <LoadingIndicator />;
return (window.location.href = `${config.URL.FORUMS_VANILLA}/profile/preferences`) && <LoadingIndicator />;
case 'payment':
return (window.location.href = `${config.URL.COMMUNITY}/tc?module=EditPaymentPreferences`) && <LoadingIndicator />;
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,16 @@ export default function SideBar({
</div>
</Tooltip>
</span>
<span styleName="link-like-paragraph tooltip-container">
<a
href={config.URL.INFO.TEMPLATES_REPO}
title="Topcoder Templates repository"
target="_blank"
rel="noreferrer"
>
Topcoder Templates <br /> repository
</a>
</span>
</div>
{ shareable && (
<div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Avatar } from 'topcoder-react-ui-kit';
import PT from 'prop-types';
import React from 'react';
import React, { useEffect, useState } from 'react';
import _ from 'lodash';
import { config } from 'topcoder-react-utils';

Expand All @@ -20,6 +20,11 @@ export default function Winner({
viewable,
winner,
}) {
const [windowOrigin, setWindowOrigin] = useState();
useEffect(() => {
setWindowOrigin(window.origin);
}, []);

const submissionId = viewable && getId(submissions, winner.placement);

let placeStyle = winner.placement < 4 ? `place-${winner.placement}` : '';
Expand Down Expand Up @@ -69,9 +74,9 @@ export default function Winner({
/>
<div>
<a
href={`${window.origin}/members/${winner.handle}`}
href={`${windowOrigin}/members/${winner.handle}`}
styleName="handle"
target={`${_.includes(window.origin, 'www') ? '_self' : '_blank'}`}
target={`${_.includes(windowOrigin, 'www') ? '_self' : '_blank'}`}
>
{winner.handle}
</a>
Expand Down