Skip to content

Commit 26f0aee

Browse files
committed
Merge branch 'master' into feature-policy-pages
2 parents feff64e + c295a2d commit 26f0aee

File tree

25 files changed

+584
-191
lines changed

25 files changed

+584
-191
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ workflows:
259259
filters:
260260
branches:
261261
only:
262-
- staging-env-setup
262+
- develop
263263
# Production builds are exectuted
264264
# when PR is merged to the master
265265
# Don't change anything in this configuration

__tests__/shared/components/Header/__snapshots__/index.jsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ exports[`Default render 1`] = `
5858
"title": "All Challenges",
5959
},
6060
Object {
61-
"href": "https://arena.topcoder-dev.com",
61+
"href": "/community/arena",
6262
"title": "Competitive Programming",
6363
},
6464
Object {
@@ -208,4 +208,4 @@ exports[`Default render 1`] = `
208208
}
209209
/>
210210
</div>
211-
`;
211+
`;
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`renders email preferences setting page correctly 1`] = `
4+
<div
5+
className="src-shared-components-Settings-Preferences-Email-___styles__EmailPreferences___2FUGT"
6+
>
7+
<h1
8+
className="src-shared-components-Settings-Preferences-Email-___styles__title___1q6eb"
9+
>
10+
E-Mail Preferences
11+
</h1>
12+
<div
13+
className="src-shared-components-Settings-Preferences-Email-___styles__sub-title___2Fh1W"
14+
>
15+
Your preferences
16+
</div>
17+
<div
18+
className="src-shared-components-Settings-Preferences-Email-___styles__preferences-container___38AVF"
19+
>
20+
<ToggleableItem
21+
checked={false}
22+
id="Pipeline"
23+
onToggle={[Function]}
24+
primaryText="Challenge Pipeline"
25+
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."
26+
value="Pipeline"
27+
/>
28+
<ToggleableItem
29+
checked={false}
30+
id="Gig Work"
31+
onToggle={[Function]}
32+
primaryText="Gig Work"
33+
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."
34+
value="Gig Work"
35+
/>
36+
<ToggleableItem
37+
checked={false}
38+
id="Monthly Newsletter"
39+
onToggle={[Function]}
40+
primaryText="Monthly Newsletter"
41+
secondaryText="This newsletter gets sent out at the end of every month and contains a variety of important information across all of our tracks."
42+
value="Monthly Newsletter"
43+
/>
44+
<ToggleableItem
45+
checked={false}
46+
id="Marathon Match Reminders"
47+
onToggle={[Function]}
48+
primaryText="Marathon Match Reminders"
49+
secondaryText="Receive updates whenever a new marathon match is scheduled."
50+
value="Marathon Match Reminders"
51+
/>
52+
<ToggleableItem
53+
checked={false}
54+
id="Single Round Match Reminders"
55+
onToggle={[Function]}
56+
primaryText="Single Round Match (SRM) Reminders"
57+
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."
58+
value="Single Round Match Reminders"
59+
/>
60+
<ToggleableItem
61+
checked={false}
62+
id="TCO Tuesdays"
63+
onToggle={[Function]}
64+
primaryText="TCO Newsletter"
65+
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!"
66+
value="TCO Tuesdays"
67+
/>
68+
</div>
69+
</div>
70+
`;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react';
2+
import Renderer from 'react-test-renderer/shallow';
3+
4+
import Email from 'components/Settings/Preferences/Email';
5+
6+
const rnd = new Renderer();
7+
8+
it('renders email preferences setting page correctly', () => {
9+
rnd.render((<Email email="[email protected]" preferences={[]} />));
10+
expect(rnd.getRenderOutput()).toMatchSnapshot();
11+
});

__tests__/shared/components/Settings/Preferences/__snapshots__/index.jsx.snap

Lines changed: 0 additions & 50 deletions
This file was deleted.

__tests__/shared/components/Settings/Preferences/index.jsx

Lines changed: 0 additions & 11 deletions
This file was deleted.

__tests__/shared/components/__snapshots__/TopcoderFooter.jsx.snap

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ exports[`Matches shallow shapshot 1`] = `
5454
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
5555
>
5656
<a
57-
href="https://arena.topcoder.com/"
57+
href="https://www.topcoder-dev.com/community/arena"
5858
>
5959
Competitive Programming
6060
</a>
@@ -68,6 +68,15 @@ exports[`Matches shallow shapshot 1`] = `
6868
Gig Work
6969
</a>
7070
</li>
71+
<li
72+
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
73+
>
74+
<a
75+
href="https://www.topcoder-dev.com/community/practice"
76+
>
77+
Practice
78+
</a>
79+
</li>
7180
</ul>
7281
</div>
7382
<div
@@ -149,18 +158,27 @@ exports[`Matches shallow shapshot 1`] = `
149158
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
150159
>
151160
<a
152-
href="https://www.topcoder-dev.com/community/member-programs/topcoder-open"
161+
href="https://www.topcoder-dev.com/blog"
153162
>
154-
TCO
163+
Blog
155164
</a>
156165
</li>
157166
<li
158167
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
159168
>
160169
<a
161-
href="https://www.topcoder-dev.com/community/member-programs"
170+
href="https://www.topcoder-dev.com/community/pipeline"
162171
>
163-
Programs
172+
Challenge Pipeline
173+
</a>
174+
</li>
175+
<li
176+
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
177+
>
178+
<a
179+
href="https://www.topcoder-dev.com/community/events"
180+
>
181+
Events Calendar
164182
</a>
165183
</li>
166184
<li
@@ -172,6 +190,15 @@ exports[`Matches shallow shapshot 1`] = `
172190
Forums
173191
</a>
174192
</li>
193+
<li
194+
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
195+
>
196+
<a
197+
href="https://www.topcoder-dev.com/community/member-programs"
198+
>
199+
Programs
200+
</a>
201+
</li>
175202
<li
176203
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
177204
>
@@ -185,9 +212,9 @@ exports[`Matches shallow shapshot 1`] = `
185212
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
186213
>
187214
<a
188-
href="https://www.topcoder-dev.com/blog"
215+
href="https://www.topcoder-dev.com/community/member-programs/topcoder-open"
189216
>
190-
Blog
217+
TCO
191218
</a>
192219
</li>
193220
<li

config/default.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ module.exports = {
7171

7272
/* Holds params to signup for different newsletters. */
7373
NEWSLETTER_SIGNUP: {
74+
DEFAUL_LIST_ID: '28bfd3c062',
7475
COGNITIVE: {
7576
APIKEY: '',
7677
URL: '',
@@ -307,7 +308,7 @@ module.exports = {
307308
},
308309
{
309310
title: 'Competitive Programming',
310-
href: 'https://arena.topcoder-dev.com',
311+
href: '/community/arena',
311312
},
312313
{
313314
title: 'Gig Work',

config/production.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ module.exports = {
111111
},
112112
{
113113
title: 'Competitive Programming',
114-
href: 'https://arena.topcoder.com',
114+
href: '/community/arena',
115115
},
116116
{
117117
title: 'Gig Work',

docs/contentful/custom-inline-components-in-markdown-fields.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,10 @@ other types too.
8080
| --- | --- | --- |
8181
| label | Subscribe for Newsletter | Optional. Custom label to show on the button. |
8282
| listId | | ID of MailChimp list to subscribe. |
83-
| interests | empty string | Optional. commas separated string of group ids to which user should be subscribed |
84-
83+
| tags | | ID of MailChimp tags to subscribe. |
84+
| buttonTheme | primary-green-md | Theme key(`tc-` is omitted) for the button. See https://community-app.topcoder.com/examples/contentful/contentblock/3k7k1JpnSvIRrJYWs4izYi |
85+
| title | Sign up for the Topcoder Newsletter | Modal title |
86+
| desc | Do you want to subscribe to this newsletter? | Modal description |
8587

8688
- #### VideoModalButton
8789
*Example:* `<VideoModalButton videoTitle="Video Title" videoUrl="Video URL" />`

src/server/tc-communities/wipro/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"url": "/leaderboard"
4343
}, {
4444
"title": "FAQ",
45-
"url": "/faq"
45+
"url": "https://topgear-app.wipro.com/faq-categories"
4646
}
4747
],
4848
"newsFeed": "http://www.topcoder.com/feed",

0 commit comments

Comments
 (0)