Skip to content

I v5 develop 16jul #4651

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 41 commits into from
Jul 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
75bdd5d
#4297 : Add "Practice" to drop down navigation
luizrrodrigues May 13, 2020
699de05
Implement #4374
kkartunov May 29, 2020
5c3b468
ci: removed feature-contenful from deployment config
sushilshinde May 29, 2020
0055da4
Updates for #4439
kkartunov Jun 1, 2020
f692994
Implements #4165
kkartunov Jun 4, 2020
278961a
Update config.yml
kkartunov Jun 5, 2020
d50ce4b
Fixed tests
kkartunov Jun 5, 2020
1dcad20
Update config.yml
kkartunov Jun 5, 2020
a3676b5
Update config.yml
kkartunov Jun 5, 2020
d6ead47
Update `taas` to `Gig Work` tag for MailChimp
kkartunov Jun 11, 2020
12d3203
Merge pull request #4579 from topcoder-platform/develop
sushilshinde Jun 23, 2020
af08b4b
Adds custom link support for navi logo
kkartunov Jun 23, 2020
f5bbd30
Update font-weight on countdown
kkartunov Jun 29, 2020
927276c
Updated tabs undeline color
kkartunov Jun 29, 2020
507c59a
point to dev for navi
kkartunov Jun 30, 2020
d2d1da8
Merge pull request #4364 from topcoder-platform/nav-practice
sushilshinde Jun 30, 2020
0836ae7
Fix lint errors
kkartunov Jun 30, 2020
9afd8d5
Merge pull request #4613 from topcoder-platform/tco21
sushilshinde Jun 30, 2020
26a20c0
Merge pull request #4615 from topcoder-platform/develop
sushilshinde Jun 30, 2020
f3261d3
Fix #4616
kkartunov Jun 30, 2020
924295d
Merge branch 'tco21' of https://github.com/topcoder-platform/communit…
kkartunov Jun 30, 2020
5b59cbd
Relative settings link by default #4616
kkartunov Jun 30, 2020
e07747c
Fix for #4616
kkartunov Jun 30, 2020
dd6037c
Merge pull request #4617 from topcoder-platform/tco21
sushilshinde Jun 30, 2020
4890841
Merge pull request #4618 from topcoder-platform/develop
sushilshinde Jul 1, 2020
2b5c7ea
Merge branch 'master' into feature-contentful
kkartunov Jul 7, 2020
c20a52b
Updates for #4611
kkartunov Jul 7, 2020
16b426b
Merge pull request #4631 from topcoder-platform/feature-contentful
sushilshinde Jul 8, 2020
177c701
Updates for #4626
kkartunov Jul 8, 2020
c561e5e
Fixed snap test for #4626
kkartunov Jul 8, 2020
925d4dd
Merge pull request #4634 from topcoder-platform/develop
sushilshinde Jul 8, 2020
c3875b4
#4626 and #4636
kkartunov Jul 8, 2020
8c2b56c
Merge branch 'master' into feature-contentful
kkartunov Jul 9, 2020
a680471
Update for #4468
kkartunov Jul 9, 2020
0224295
ci: only on dev
kkartunov Jul 9, 2020
229163c
Fix #4635
kkartunov Jul 9, 2020
61880ac
ci: on dev
kkartunov Jul 9, 2020
d141786
Merge pull request #4643 from topcoder-platform/feature-contentful
sushilshinde Jul 13, 2020
7f00784
Merge branch 'develop' into topgear-to-contentful
sushilshinde Jul 13, 2020
536381b
Merge pull request #4644 from topcoder-platform/topgear-to-contentful
sushilshinde Jul 13, 2020
576b294
Merge remote-tracking branch 'origin/develop' into i-v5-develop-16jul
sushilshinde Jul 16, 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 @@ -231,7 +231,7 @@ workflows:
branches:
only:
- develop
- tco21
- feature-contentful
# This is alternate dev env for parallel testing
- "build-test":
context : org-global
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,17 @@ exports[`Default render 1`] = `
"title": "All Challenges",
},
Object {
"href": "https://arena.topcoder-dev.com",
"href": "/community/arena",
"title": "Competitive Programming",
},
Object {
"href": "/community/taas",
"title": "Gig Work",
},
Object {
"href": "/community/practice",
"title": "Practice",
},
],
"title": "Compete",
},
Expand Down Expand Up @@ -204,4 +208,4 @@ exports[`Default render 1`] = `
}
/>
</div>
`;
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`renders email preferences setting page correctly 1`] = `
<div
className="src-shared-components-Settings-Preferences-Email-___styles__EmailPreferences___2FUGT"
>
<h1
className="src-shared-components-Settings-Preferences-Email-___styles__title___1q6eb"
>
E-Mail Preferences
</h1>
<div
className="src-shared-components-Settings-Preferences-Email-___styles__sub-title___2Fh1W"
>
Your preferences
</div>
<div
className="src-shared-components-Settings-Preferences-Email-___styles__preferences-container___38AVF"
>
<ToggleableItem
checked={false}
id="Pipeline"
onToggle={[Function]}
primaryText="Challenge Pipeline"
secondaryText="Subscribe to this newsletter if you want to get updates on the types of challenges coming up in the future. To view these challenges at your leisure you can always visit the <a href=\\"https://www.topcoder.com/community/pipeline\\" style=\\"color:#0d61bf;text-decoration:underline\\">Challenge Pipeline</a> page."
value="Pipeline"
/>
<ToggleableItem
checked={false}
id="Gig Work"
onToggle={[Function]}
primaryText="Gig Work"
secondaryText="This newsletter gets sent out at various times, specifically when we have an opportunity of mass appeal. For more information you can visit the <a href=\\"https://www.topcoder.com/community/taas\\" style=\\"color:#0d61bf;text-decoration:underline\\">Gig Work</a> page."
value="Gig Work"
/>
<ToggleableItem
checked={false}
id="Monthly Newsletter"
onToggle={[Function]}
primaryText="Monthly Newsletter"
secondaryText="This newsletter gets sent out at the end of every month and contains a variety of important information across all of our tracks."
value="Monthly Newsletter"
/>
<ToggleableItem
checked={false}
id="Marathon Match Reminders"
onToggle={[Function]}
primaryText="Marathon Match Reminders"
secondaryText="Receive updates whenever a new marathon match is scheduled."
value="Marathon Match Reminders"
/>
<ToggleableItem
checked={false}
id="Single Round Match Reminders"
onToggle={[Function]}
primaryText="Single Round Match (SRM) Reminders"
secondaryText="Attention Competitive Programmers! If there is any newsletter you are subscribing too, it better be this one. Receive updates when a new SRM event is scheduled."
value="Single Round Match Reminders"
/>
<ToggleableItem
checked={false}
id="TCO Tuesdays"
onToggle={[Function]}
primaryText="TCO Newsletter"
secondaryText="For all the latest updates surrounding the <a href=\\"https://www.topcoder.com/community/member-programs/topcoder-open\\" style=\\"color:#0d61bf;text-decoration:underline\\">Topcoder Open</a> you should definitely be subscribing to this one. Expect an update in your mailbox every Tuesday!"
value="TCO Tuesdays"
/>
</div>
</div>
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react';
import Renderer from 'react-test-renderer/shallow';

import Email from 'components/Settings/Preferences/Email';

const rnd = new Renderer();

it('renders email preferences setting page correctly', () => {
rnd.render((<Email email="test@test.com" preferences={[]} />));
expect(rnd.getRenderOutput()).toMatchSnapshot();
});

This file was deleted.

11 changes: 0 additions & 11 deletions __tests__/shared/components/Settings/Preferences/index.jsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ exports[`Matches shallow shapshot 1`] = `
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
>
<a
href="https://arena.topcoder.com/"
href="https://www.topcoder-dev.com/community/arena"
>
Competitive Programming
</a>
Expand All @@ -68,6 +68,15 @@ exports[`Matches shallow shapshot 1`] = `
Gig Work
</a>
</li>
<li
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
>
<a
href="https://www.topcoder-dev.com/community/practice"
>
Practice
</a>
</li>
</ul>
</div>
<div
Expand Down Expand Up @@ -149,18 +158,27 @@ exports[`Matches shallow shapshot 1`] = `
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
>
<a
href="https://www.topcoder-dev.com/community/member-programs/topcoder-open"
href="https://www.topcoder-dev.com/blog"
>
TCO
Blog
</a>
</li>
<li
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
>
<a
href="https://www.topcoder-dev.com/community/member-programs"
href="https://www.topcoder-dev.com/community/pipeline"
>
Programs
Challenge Pipeline
</a>
</li>
<li
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
>
<a
href="https://www.topcoder-dev.com/community/events"
>
Events Calendar
</a>
</li>
<li
Expand All @@ -172,6 +190,15 @@ exports[`Matches shallow shapshot 1`] = `
Forums
</a>
</li>
<li
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
>
<a
href="https://www.topcoder-dev.com/community/member-programs"
>
Programs
</a>
</li>
<li
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
>
Expand All @@ -185,9 +212,9 @@ exports[`Matches shallow shapshot 1`] = `
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
>
<a
href="https://www.topcoder-dev.com/blog"
href="https://www.topcoder-dev.com/community/member-programs/topcoder-open"
>
Blog
TCO
</a>
</li>
<li
Expand Down
7 changes: 6 additions & 1 deletion config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ module.exports = {

/* Holds params to signup for different newsletters. */
NEWSLETTER_SIGNUP: {
DEFAUL_LIST_ID: '28bfd3c062',
COGNITIVE: {
APIKEY: '',
URL: '',
Expand Down Expand Up @@ -308,12 +309,16 @@ module.exports = {
},
{
title: 'Competitive Programming',
href: 'https://arena.topcoder-dev.com',
href: '/community/arena',
},
{
title: 'Gig Work',
href: '/community/taas',
},
{
title: 'Practice',
href: '/community/practice',
},
],
},
{
Expand Down
6 changes: 5 additions & 1 deletion config/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,16 @@ module.exports = {
},
{
title: 'Competitive Programming',
href: 'https://arena.topcoder.com',
href: '/community/arena',
},
{
title: 'Gig Work',
href: '/community/taas',
},
{
title: 'Practice',
href: '/community/practice',
},
],
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ other types too.
| --- | --- | --- |
| label | Subscribe for Newsletter | Optional. Custom label to show on the button. |
| listId | | ID of MailChimp list to subscribe. |
| interests | empty string | Optional. commas separated string of group ids to which user should be subscribed |

| tags | | ID of MailChimp tags to subscribe. |
| buttonTheme | primary-green-md | Theme key(`tc-` is omitted) for the button. See https://community-app.topcoder.com/examples/contentful/contentblock/3k7k1JpnSvIRrJYWs4izYi |
| title | Sign up for the Topcoder Newsletter | Modal title |
| desc | Do you want to subscribe to this newsletter? | Modal description |

- #### VideoModalButton
*Example:* `<VideoModalButton videoTitle="Video Title" videoUrl="Video URL" />`
Expand Down
2 changes: 1 addition & 1 deletion src/server/tc-communities/wipro/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"url": "/leaderboard"
}, {
"title": "FAQ",
"url": "/faq"
"url": "https://topgear-app.wipro.com/faq-categories"
}
],
"newsFeed": "http://www.topcoder.com/feed",
Expand Down
Loading