Skip to content

I v5 develop #4593

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 57 commits into from
Jun 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
abc831e
Fix for #4286
kkartunov Apr 27, 2020
f65488a
Fixes for #3972
kkartunov Apr 28, 2020
bdd4fd5
Fix addon for #3972
kkartunov Apr 28, 2020
13cc538
Fix for #3960
kkartunov Apr 28, 2020
4b8016a
Implement #4050
kkartunov Apr 29, 2020
7178975
Merge branch 'master' into feature-contentful
kkartunov Apr 30, 2020
2fd6475
Implements #4058
kkartunov Apr 30, 2020
6dce16f
Fix TCO Points to Points
kkartunov Apr 30, 2020
6b184b5
Update config.yml
kkartunov Apr 30, 2020
7a6adee
Merge branch 'hotfix/change-CF-dist'
mtwomey May 1, 2020
e0b2ad9
Merge branch 'master' into feature-contentful
kkartunov May 3, 2020
40498d4
Merge branch 'feature-contentful' of https://github.com/topcoder-plat…
kkartunov May 5, 2020
2f96b2a
Fix #4344
kkartunov May 5, 2020
a8f25bf
Implements #4353
kkartunov May 7, 2020
2e2a0ed
Implement #4165
kkartunov May 7, 2020
7cf1c6d
Implements #4354
kkartunov May 7, 2020
10774e0
Revert "Implement #4165"
kkartunov May 8, 2020
1684fae
Merge pull request #4357 from topcoder-platform/develop
sushilshinde May 12, 2020
57847ba
Merge pull request #4362 from topcoder-platform/develop
sushilshinde May 13, 2020
4b0957b
Change cdn to cname
mtwomey May 17, 2020
41ffd2d
Merge branch 'hotfix/change-CF-to-cname'
mtwomey May 17, 2020
ff9f642
Merge branch 'develop' into feature-contentful
sushilshinde May 19, 2020
4556736
Merge pull request #4313 from topcoder-platform/feature-contentful
sushilshinde May 19, 2020
13bc261
Merge branch 'feature-contentful' of https://github.com/topcoder-plat…
kkartunov May 21, 2020
b904d12
Merge pull request #4388 from topcoder-platform/feature-contentful
sushilshinde May 21, 2020
27b7570
Merge pull request #4387 from topcoder-platform/develop
sushilshinde May 21, 2020
44b3571
ci: deploying on qa env
sushilshinde May 22, 2020
6cc1260
ci: fixed config file
sushilshinde May 22, 2020
11c2c27
ci: fixed config file
sushilshinde May 22, 2020
19d9265
ci: fixed file format
sushilshinde May 22, 2020
4ec7b03
ci: fixing file
sushilshinde May 22, 2020
1a8aacb
ci: fixing file
sushilshinde May 22, 2020
9c40ac5
ci: fixed config file
sushilshinde May 22, 2020
6999d78
ci: fixed file scheme
sushilshinde May 22, 2020
80dc2ef
Merge pull request #4395 from topcoder-platform/develop-on-qa-env
sushilshinde May 22, 2020
52788d3
ci: disable SW and deploy on beta env
sushilshinde May 26, 2020
275ccd0
Merge pull request #4419 from topcoder-platform/hot-fix-disable-sw
sushilshinde May 26, 2020
97051bf
ci: deploying on beta
sushilshinde May 26, 2020
b1f1d08
Merge pull request #4421 from topcoder-platform/develop
sushilshinde May 26, 2020
c5b00ad
ci: deploy only on dev and qa
sushilshinde May 27, 2020
c236857
Init TCO21 #4467
kkartunov Jun 5, 2020
796d112
Update config.yml
kkartunov Jun 8, 2020
84a523f
Use state data for loaded menus
kkartunov Jun 8, 2020
fa8cad9
Merge branch 'tco21' of https://github.com/topcoder-platform/communit…
kkartunov Jun 8, 2020
0179a62
Dump menu for debug
kkartunov Jun 8, 2020
a7e6e65
Update package.json
kkartunov Jun 11, 2020
00b302e
Remove TC footer
kkartunov Jun 15, 2020
f242250
New theme for counter
kkartunov Jun 17, 2020
1d10df6
Add empty routes support for Navi
kkartunov Jun 18, 2020
7550f71
Themed buttons fixes and grid
kkartunov Jun 18, 2020
a9d3461
Remove grid align
kkartunov Jun 18, 2020
12ce76a
Leaderbord headers fixes
kkartunov Jun 19, 2020
b6ea43f
More tables style fixes
kkartunov Jun 19, 2020
bf372cd
Merge pull request #4576 from topcoder-platform/tco21
sushilshinde Jun 22, 2020
64b377e
fix: added develop branch
sushilshinde Jun 22, 2020
446aa56
ci: deploy on beta
sushilshinde Jun 22, 2020
c6fac11
Merge remote-tracking branch 'origin/develop' into i-v5-develop
sushilshinde Jun 24, 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
39 changes: 38 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,35 @@ jobs:
source awsenvconf
source buildenvvar
./master_deploy.sh -d ECS -e DEV -t latest -s test_communityapp_taskvar -i communityapp


# Build & Deploy against testing backend
"build-qa":
<<: *defaults
steps:
# Initialization.
- checkout
- setup_remote_docker
- run: *install_dependency
- run: *install_deploysuite
# Restoration of node_modules from cache.
- restore_cache: *restore_cache_settings_for_build
- run:
name: "configuring environment"
command: |
./awsconfiguration.sh DEV
./buildenv.sh -e DEV -b qa_communityapp_buildvar,qa_communityapp_deployvar
# Build of Docker image.
- run: *build_docker_image
# Caching node modules.
- save_cache: *save_cache_settings
# Deployment.
- deploy:
name: Running MasterScript
command: |
source awsenvconf
source buildenvvar
./master_deploy.sh -d ECS -e DEV -t latest -s qa_communityapp_taskvar -i communityapp

# Build & Deploy against prod api backend
"build-prod-beta":
<<: *defaults
Expand Down Expand Up @@ -203,13 +231,22 @@ workflows:
branches:
only:
- develop
- tco21
# This is alternate dev env for parallel testing
- "build-test":
context : org-global
filters:
branches:
only:
- feature-contentful
# This is alternate dev env for parallel testing
- "build-qa":
context : org-global
filters:
branches:
only:
- integration-v5-challenge-api
- develop
# This is beta env for production soft releases
- "build-prod-beta":
context : org-global
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,15 @@ exports[`Matches shallow shapshot 1`] = `
Talk to Sales
</a>
</li>
<li
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
>
<a
href="https://www.topcoder-dev.com/community/terms"
>
Terms
</a>
</li>
</ul>
</div>
<div
Expand Down
2 changes: 1 addition & 1 deletion config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = {
/**
* Disable PWA service worker.
*/
DISABLE_SERVICE_WORKER: false,
DISABLE_SERVICE_WORKER: true,

/* API token for logentries.com. The token below is just for local testing of
* the setup. To override it use LOG_ENTRIES_TOKEN environment variable. */
Expand Down
2 changes: 1 addition & 1 deletion config/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
DOMAIN: 'topcoder.auth0.com',
},
CDN: {
PUBLIC: 'https://dlxczxztayxv6.cloudfront.net',
PUBLIC: 'https://community-app-cdn.topcoder.com',
},
COOKIES: {
MAXAGE: 7,
Expand Down
119 changes: 0 additions & 119 deletions deploy.sh

This file was deleted.

20 changes: 20 additions & 0 deletions src/server/tc-communities/tco21/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"challengeFilter": {
"tags": ["TCO", "TCO21"]
},
"communityId": "tco21",
"communityName": "TCO21",
"groupIds": [],
"hideSearch": true,
"logos": [{
"img": "/community-app-assets/themes/tco/TCO21.svg",
"url": "https://tco21.topcoder.com"
}],
"menuItems": [{
"navigationMenu": "3UBKZJ0qMHAkqrobue73NB"
}],
"newsFeed": "http://www.topcoder.com/feed",
"subdomains": ["tco21"],
"description": "2021 Topcoder Open. The Ultimate Programming & Design Tournament",
"image": "tco21.jpg"
}
12 changes: 7 additions & 5 deletions src/shared/actions/contentful.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,13 @@ async function getMenuDone(menuProps) {
cR2.fields.childRoutes,
cR3 => service.getEntry(cR3.sys.id).then(
async (c3) => {
const sI3 = menuItemBuilder(url2, c3);
const url3 = urlTarget(url2, cR2);
const sI3 = menuItemBuilder(url3, c3);
if (c3.fields.childRoutes) {
sI3.subMenu = await Promise.all(_.map(
c3.fields.childRoutes,
cR4 => service.getEntry(cR4.sys.id).then(
c4 => menuItemBuilder(urlTarget(url2, c3), c4),
c4 => menuItemBuilder(url3, c4),
),
));
}
Expand Down Expand Up @@ -239,9 +240,10 @@ async function getMenuDone(menuProps) {
} else {
menu = menuData;
}
// add the preconfigured secondary menus
menu[0].secondaryMenuForLoggedInUser = config.SECONDARY_MENU_FOR_LOGGED_USER;
menu[0].secondaryMenuForGuest = config.SECONDARY_MENU_FOR_GUEST;
// add the preconfigured secondary menus?
if (fields.showSecondaryNaviMenu) {
menu[0].secondaryMenu = config.HEADER_MENU[1].secondaryMenu;
}

return {
id: menuProps.id,
Expand Down
4 changes: 2 additions & 2 deletions src/shared/components/Contentful/Article/Article.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export default class Article extends React.Component {
{subData.entries.items[rec.sys.id].fields.title}
</a>
) : (
<a href={`${config.TC_EDU_BASE_PATH}${config.TC_EDU_ARTICLES_PATH}/${subData.entries.items[rec.sys.id].fields.title}`}>
<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}`}>
{subData.entries.items[rec.sys.id].fields.title}
</a>
)
Expand Down Expand Up @@ -278,7 +278,7 @@ export default class Article extends React.Component {
Read More <ReadMoreArrow />
</a>
) : (
<a href={`${config.TC_EDU_BASE_PATH}${config.TC_EDU_ARTICLES_PATH}/${subData.entries.items[rec.sys.id].fields.title}`} className={theme.readMore}>
<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}>
Read More <ReadMoreArrow />
</a>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ArticleCard extends React.Component {
// determine if article cards will redirect to external link or article details page
const articlePageUrl = article.externalArticle && article.contentUrl
? article.contentUrl
: `${config.TC_EDU_BASE_PATH}${config.TC_EDU_ARTICLES_PATH}/${article.title}`;
: `${config.TC_EDU_BASE_PATH}${config.TC_EDU_ARTICLES_PATH}/${article.slug || article.title}`;
const articlePageTarget = article.externalArticle && article.contentUrl
? '_blank'
: '_self';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
}
}

strong a {
font-weight: 600 !important;
}

.container {
align-content: center;
background: white;
Expand Down Expand Up @@ -74,13 +78,13 @@
th {
@include roboto-regular;

color: #808080;
color: #2a2a2a;
font-size: 15px;
font-weight: bold;
line-height: 25px;
line-height: 18px;
text-align: left;
text-transform: uppercase;
padding: 7px 10px 7px 0;
padding: 18px 10px 14px 0;

@include md-to-xl {
white-space: nowrap;
Expand All @@ -98,8 +102,8 @@
line-height: 25px;
text-align: left;
color: $tc-gray-80;
border-top: 1px solid #ededf2;
border-bottom: 1px solid #ededf2;
border-top: 1px solid #d4d4d4;
border-bottom: 1px solid #d4d4d4;
padding: 20px 50px 20px 0;
min-height: 51px;

Expand Down
Loading