Skip to content

Commit 0c50571

Browse files
authored
Merge pull request #4593 from topcoder-platform/i-v5-develop
I v5 develop
2 parents e153f32 + c6fac11 commit 0c50571

File tree

33 files changed

+863
-401
lines changed

33 files changed

+863
-401
lines changed

.circleci/config.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,35 @@ jobs:
9191
source awsenvconf
9292
source buildenvvar
9393
./master_deploy.sh -d ECS -e DEV -t latest -s test_communityapp_taskvar -i communityapp
94-
94+
95+
# Build & Deploy against testing backend
96+
"build-qa":
97+
<<: *defaults
98+
steps:
99+
# Initialization.
100+
- checkout
101+
- setup_remote_docker
102+
- run: *install_dependency
103+
- run: *install_deploysuite
104+
# Restoration of node_modules from cache.
105+
- restore_cache: *restore_cache_settings_for_build
106+
- run:
107+
name: "configuring environment"
108+
command: |
109+
./awsconfiguration.sh DEV
110+
./buildenv.sh -e DEV -b qa_communityapp_buildvar,qa_communityapp_deployvar
111+
# Build of Docker image.
112+
- run: *build_docker_image
113+
# Caching node modules.
114+
- save_cache: *save_cache_settings
115+
# Deployment.
116+
- deploy:
117+
name: Running MasterScript
118+
command: |
119+
source awsenvconf
120+
source buildenvvar
121+
./master_deploy.sh -d ECS -e DEV -t latest -s qa_communityapp_taskvar -i communityapp
122+
95123
# Build & Deploy against prod api backend
96124
"build-prod-beta":
97125
<<: *defaults
@@ -203,13 +231,22 @@ workflows:
203231
branches:
204232
only:
205233
- develop
234+
- tco21
206235
# This is alternate dev env for parallel testing
207236
- "build-test":
237+
context : org-global
238+
filters:
239+
branches:
240+
only:
241+
- feature-contentful
242+
# This is alternate dev env for parallel testing
243+
- "build-qa":
208244
context : org-global
209245
filters:
210246
branches:
211247
only:
212248
- integration-v5-challenge-api
249+
- develop
213250
# This is beta env for production soft releases
214251
- "build-prod-beta":
215252
context : org-global

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,15 @@ exports[`Matches shallow shapshot 1`] = `
321321
Talk to Sales
322322
</a>
323323
</li>
324+
<li
325+
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
326+
>
327+
<a
328+
href="https://www.topcoder-dev.com/community/terms"
329+
>
330+
Terms
331+
</a>
332+
</li>
324333
</ul>
325334
</div>
326335
<div

config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module.exports = {
5757
/**
5858
* Disable PWA service worker.
5959
*/
60-
DISABLE_SERVICE_WORKER: false,
60+
DISABLE_SERVICE_WORKER: true,
6161

6262
/* API token for logentries.com. The token below is just for local testing of
6363
* the setup. To override it use LOG_ENTRIES_TOKEN environment variable. */

config/production.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
DOMAIN: 'topcoder.auth0.com',
1010
},
1111
CDN: {
12-
PUBLIC: 'https://dlxczxztayxv6.cloudfront.net',
12+
PUBLIC: 'https://community-app-cdn.topcoder.com',
1313
},
1414
COOKIES: {
1515
MAXAGE: 7,

deploy.sh

Lines changed: 0 additions & 119 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"challengeFilter": {
3+
"tags": ["TCO", "TCO21"]
4+
},
5+
"communityId": "tco21",
6+
"communityName": "TCO21",
7+
"groupIds": [],
8+
"hideSearch": true,
9+
"logos": [{
10+
"img": "/community-app-assets/themes/tco/TCO21.svg",
11+
"url": "https://tco21.topcoder.com"
12+
}],
13+
"menuItems": [{
14+
"navigationMenu": "3UBKZJ0qMHAkqrobue73NB"
15+
}],
16+
"newsFeed": "http://www.topcoder.com/feed",
17+
"subdomains": ["tco21"],
18+
"description": "2021 Topcoder Open. The Ultimate Programming & Design Tournament",
19+
"image": "tco21.jpg"
20+
}

src/shared/actions/contentful.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,13 @@ async function getMenuDone(menuProps) {
181181
cR2.fields.childRoutes,
182182
cR3 => service.getEntry(cR3.sys.id).then(
183183
async (c3) => {
184-
const sI3 = menuItemBuilder(url2, c3);
184+
const url3 = urlTarget(url2, cR2);
185+
const sI3 = menuItemBuilder(url3, c3);
185186
if (c3.fields.childRoutes) {
186187
sI3.subMenu = await Promise.all(_.map(
187188
c3.fields.childRoutes,
188189
cR4 => service.getEntry(cR4.sys.id).then(
189-
c4 => menuItemBuilder(urlTarget(url2, c3), c4),
190+
c4 => menuItemBuilder(url3, c4),
190191
),
191192
));
192193
}
@@ -239,9 +240,10 @@ async function getMenuDone(menuProps) {
239240
} else {
240241
menu = menuData;
241242
}
242-
// add the preconfigured secondary menus
243-
menu[0].secondaryMenuForLoggedInUser = config.SECONDARY_MENU_FOR_LOGGED_USER;
244-
menu[0].secondaryMenuForGuest = config.SECONDARY_MENU_FOR_GUEST;
243+
// add the preconfigured secondary menus?
244+
if (fields.showSecondaryNaviMenu) {
245+
menu[0].secondaryMenu = config.HEADER_MENU[1].secondaryMenu;
246+
}
245247

246248
return {
247249
id: menuProps.id,

src/shared/components/Contentful/Article/Article.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export default class Article extends React.Component {
250250
{subData.entries.items[rec.sys.id].fields.title}
251251
</a>
252252
) : (
253-
<a href={`${config.TC_EDU_BASE_PATH}${config.TC_EDU_ARTICLES_PATH}/${subData.entries.items[rec.sys.id].fields.title}`}>
253+
<a href={`${config.TC_EDU_BASE_PATH}${config.TC_EDU_ARTICLES_PATH}/${subData.entries.items[rec.sys.id].fields.slug || subData.entries.items[rec.sys.id].fields.title}`}>
254254
{subData.entries.items[rec.sys.id].fields.title}
255255
</a>
256256
)
@@ -278,7 +278,7 @@ export default class Article extends React.Component {
278278
Read More <ReadMoreArrow />
279279
</a>
280280
) : (
281-
<a href={`${config.TC_EDU_BASE_PATH}${config.TC_EDU_ARTICLES_PATH}/${subData.entries.items[rec.sys.id].fields.title}`} className={theme.readMore}>
281+
<a href={`${config.TC_EDU_BASE_PATH}${config.TC_EDU_ARTICLES_PATH}/${subData.entries.items[rec.sys.id].fields.slug || subData.entries.items[rec.sys.id].fields.title}`} className={theme.readMore}>
282282
Read More <ReadMoreArrow />
283283
</a>
284284
)

src/shared/components/Contentful/ArticleCard/ArticleCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class ArticleCard extends React.Component {
6767
// determine if article cards will redirect to external link or article details page
6868
const articlePageUrl = article.externalArticle && article.contentUrl
6969
? article.contentUrl
70-
: `${config.TC_EDU_BASE_PATH}${config.TC_EDU_ARTICLES_PATH}/${article.title}`;
70+
: `${config.TC_EDU_BASE_PATH}${config.TC_EDU_ARTICLES_PATH}/${article.slug || article.title}`;
7171
const articlePageTarget = article.externalArticle && article.contentUrl
7272
? '_blank'
7373
: '_self';

src/shared/components/Contentful/ContentBlock/themes/TCO19.scss

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
}
1414
}
1515

16+
strong a {
17+
font-weight: 600 !important;
18+
}
19+
1620
.container {
1721
align-content: center;
1822
background: white;
@@ -74,13 +78,13 @@
7478
th {
7579
@include roboto-regular;
7680

77-
color: #808080;
81+
color: #2a2a2a;
7882
font-size: 15px;
7983
font-weight: bold;
80-
line-height: 25px;
84+
line-height: 18px;
8185
text-align: left;
8286
text-transform: uppercase;
83-
padding: 7px 10px 7px 0;
87+
padding: 18px 10px 14px 0;
8488

8589
@include md-to-xl {
8690
white-space: nowrap;
@@ -98,8 +102,8 @@
98102
line-height: 25px;
99103
text-align: left;
100104
color: $tc-gray-80;
101-
border-top: 1px solid #ededf2;
102-
border-bottom: 1px solid #ededf2;
105+
border-top: 1px solid #d4d4d4;
106+
border-bottom: 1px solid #d4d4d4;
103107
padding: 20px 50px 20px 0;
104108
min-height: 51px;
105109

0 commit comments

Comments
 (0)