Skip to content

PR for 4029, 4994, 5102 #5104

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 6 commits into from
Nov 3, 2020
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
3 changes: 3 additions & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ module.exports = {
STUDIO_FONTS_POLICY:
'http://help.topcoder.com/hc/en-us/articles/217959447-Font-Policy-for-Design-Challenges',
TOPCODER_TERMS: 'https://www.topcoder.com/community/how-it-works/terms/',
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',
},

IOS: 'https://ios.topcoder-dev.com',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,28 @@ export default function SideBar({
</div>
);

const usableCodeArticle = (
<div styleName="tctooltiptext tooltiptextapproval">
<h4>
Useable Code Rules
</h4>
<p>
A set of guidelines to help determine if code is acceptable or not.
</p>
</div>
);

const vscodeTip = (
<div styleName="tctooltiptext tooltiptextapproval">
<h4>
Topcoder Extension for VSCode
</h4>
<p>
Shortcuts to perform actions related to Topcoder platform without having to open a browser
</p>
</div>
);

return (
<div styleName="challenge-spec-sidebar">
<div styleName="challenge-sidebar-inner">
Expand Down Expand Up @@ -197,9 +219,45 @@ export default function SideBar({
</span>
)
}
{
!isDesign && (
<span styleName="link-like-paragraph tooltip-container">
<a
href={config.URL.INFO.USABLECODEDEV}
title="Useable Code Rules"
target="_blank"
rel="noreferrer"
>
Useable Code Rules
</a>
<Tooltip id="usablecode-tip" content={usableCodeArticle} className={styles['tooltip-overlay']} trigger={['hover', 'focus']}>
<div styleName="tctooltip" tabIndex="0" role="button" aria-describedby="usablecode-tip">
?
</div>
</Tooltip>
</span>
)
}
</div>
)
}
{ isMM && (
<div>
<h2>
CHALLENGE LINKS:
</h2>
<p styleName="link-like-paragraph">
<a
href={config.URL.INFO.HOWTOCOMPETEINMARATHON}
title="How To Compete in a Marathon Match"
target="_blank"
rel="noreferrer"
>
How To Compete in a Marathon Match
</a>
</p>
</div>
)}
{
isDesign
&& (
Expand Down Expand Up @@ -331,6 +389,26 @@ export default function SideBar({
</div>
)
}
<div>
<h2>
TOOLBOX:
</h2>
<span styleName="link-like-paragraph tooltip-container">
<a
href={config.URL.INFO.EXTENSIONVSCODE}
title="Topcoder Extension for VSCode"
target="_blank"
rel="noreferrer"
>
Topcoder Extension <br /> for VSCode
</a>
<Tooltip id="vscode-tip" content={vscodeTip} className={styles['tooltip-overlay']} trigger={['hover', 'focus']}>
<div styleName="tctooltip" tabIndex="0" role="button" aria-describedby="vscode-tip">
?
</div>
</Tooltip>
</span>
</div>
{ shareable && (
<div>
<h2>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@import "mixins";

.no-margin-top {
margin-top: -10px !important;
}

.challenge-spec-sidebar {
background: $tc-dark-blue-10;
width: 245px;
Expand Down