Skip to content

Release v1.10.5 #5641

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 25 commits into from
Jul 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
9e44392
integration navi-tco
kkartunov Jul 2, 2021
bf7562f
Remove console debug and add back link support
kkartunov Jul 6, 2021
7449083
load from repo - dev branch
kkartunov Jul 6, 2021
2801d0c
ci: on beta
kkartunov Jul 6, 2021
adb77fe
fix failing npm i
kkartunov Jul 6, 2021
2a44514
Merge branch 'navi-tco' of https://github.com/topcoder-platform/commu…
kkartunov Jul 6, 2021
ad780c2
use https to load navi modules
kkartunov Jul 6, 2021
afa9778
fixed deps
kkartunov Jul 6, 2021
c66efd5
fix broken package-lock
kkartunov Jul 6, 2021
9e35329
ast: Fix store_artifacts
luizrrodrigues Jul 6, 2021
8dcb53d
ci: Deploy ast-store-artifacts to Stag env
luizrrodrigues Jul 6, 2021
96ee4a0
Run smoke testing only
luizrrodrigues Jul 6, 2021
9568c3f
ast: fix store_artifacts
luizrrodrigues Jul 6, 2021
22115c9
ast: store_artifacts absolute path
luizrrodrigues Jul 6, 2021
04e5395
ast: store_artifacts - use /tmp folder
luizrrodrigues Jul 6, 2021
02cb9d4
ast: /tmp check
luizrrodrigues Jul 6, 2021
299b5d5
ast: store_artifacts - copy results from container
luizrrodrigues Jul 6, 2021
2af0e64
Remove debug code
luizrrodrigues Jul 6, 2021
acdd0e3
ast: revert to use all test cases
luizrrodrigues Jul 6, 2021
9221b13
ast: Revert circleci to run deployment first
luizrrodrigues Jul 6, 2021
27a08a9
navi from new-dev branch
kkartunov Jul 7, 2021
b937c45
conditional require Navis
kkartunov Jul 8, 2021
45bbbd7
Merge branch 'develop' into navi-tco
luizrrodrigues Jul 11, 2021
3803a8f
Merge pull request #5637 from topcoder-platform/navi-tco
luizrrodrigues Jul 11, 2021
98cd7c3
Merge pull request #5629 from topcoder-platform/ast-store-artifacts
luizrrodrigues Jul 12, 2021
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
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ workflows:
branches:
only:
- free
- fix-country-setting-page
# This is alternate dev env for parallel testing
- "build-qa":
context : org-global
Expand All @@ -364,15 +363,15 @@ workflows:
filters:
branches:
only:
- new-tabs-theme
- free
# This is stage env for production QA releases
- "build-prod-staging":
context : org-global
filters: &filters-staging
branches:
only:
- develop
- ast-member-profile
- ast-store-artifacts
# Production builds are exectuted
# when PR is merged to the master
# Don't change anything in this configuration
Expand Down
3 changes: 2 additions & 1 deletion automated-smoke-test/smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ track_error $? "Environment setting"
cp ${APPCONFIGFILENAME} config/config.json

docker build -t comm-smoke:latest .
docker run --shm-size=2g comm-smoke:latest ./testrun.sh -d -p 4444:4444
docker run --name comm-smoke --shm-size=2g comm-smoke:latest ./testrun.sh -d -p 4444:4444
docker cp comm-smoke:./automated-smoke-test/test-results .
track_error $? "Test case Failed"
104 changes: 104 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
"money": "^0.2.0",
"morgan": "^1.9.0",
"multer": "^1.4.2",
"navigation-component": "topcoder-platform/navigation-component#develop",
"navigation-component": "github:topcoder-platform/navigation-component#develop",
"navigation-component-tco": "github:topcoder-platform/navigation-component-tco#new-dev",
"node-forge": "^0.7.5",
"nuka-carousel": "^4.5.3",
"postcss": "^6.0.23",
Expand Down
7 changes: 6 additions & 1 deletion src/shared/components/Contentful/Menu/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,12 @@ export default function ContentfulMenu(props) {
render={(menuData) => {
const { fields } = Object.values(menuData.entries.items)[0];
if (!fields) return null;
if (fields.theme === 'General - light' || fields.theme === 'General - dark') {
if (
fields.theme === 'General - light'
|| fields.theme === 'General - dark'
|| fields.theme === 'TCO22 - dark'
|| fields.theme === 'TCO22 - light'
) {
// New navi style menu
// we deligate to special custom component and lib
return (
Expand Down
47 changes: 40 additions & 7 deletions src/shared/containers/Contentful/MenuLoader/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ class MenuLoaderContainer extends React.Component {
return <LoadingIndicator />;
}
if (isomorphy.isClientSide()) {
// eslint-disable-next-line global-require
const { TopNav, LoginNav } = require('navigation-component');
const logoToUse = !_.isEmpty(menuLogo) ? <img src={menuLogo.fields.file.url} alt="menu logo" /> : <Logo />;
const menuTheme = fields.theme.split('- ');
let normalizedProfile = auth.profile && _.clone(auth.profile);
Expand All @@ -89,12 +87,14 @@ class MenuLoaderContainer extends React.Component {
} else {
normalizedProfile = null;
}
return (
<div>
<TopNav
if (fields.theme.indexOf('TCO22') !== -1) {
// eslint-disable-next-line global-require
const { TopNav: TopNavTCO, LoginNav: LoginNavTCO } = require('navigation-component-tco');
return (
<TopNavTCO
menu={menu}
rightMenu={(
<LoginNav
<LoginNavTCO
loggedIn={!_.isEmpty(auth.profile)}
notificationButtonState="none"
notifications={[]}
Expand All @@ -117,8 +117,41 @@ class MenuLoaderContainer extends React.Component {
loggedIn={!_.isEmpty(auth.profile)}
profileHandle={auth.profile ? auth.profile.handle : ''}
logoLink={fields.logoLink}
backToTcUrl={fields.backToTcUrl}
backToTcUrlText={fields.backToTcUrlText}
/>
</div>
);
}
// eslint-disable-next-line global-require
const { TopNav, LoginNav } = require('navigation-component');
return (
<TopNav
menu={menu}
rightMenu={(
<LoginNav
loggedIn={!_.isEmpty(auth.profile)}
notificationButtonState="none"
notifications={[]}
accountMenu={config.ACCOUNT_MENU}
switchText={config.ACCOUNT_MENU_SWITCH_TEXT}
onSwitch={this.handleSwitchMenu}
onMenuOpen={this.handleCloseOpenMore}
profile={normalizedProfile}
auth={auth}
authURLs={config.HEADER_AUTH_URLS}
/>
)}
logo={logoToUse}
theme={menuTheme[1]}
currentLevel1Id={activeLevel1Id}
onChangeLevel1Id={this.handleChangeLevel1Id}
path={path}
openMore={openMore}
setOpenMore={this.handleChangeOpenMore}
loggedIn={!_.isEmpty(auth.profile)}
profileHandle={auth.profile ? auth.profile.handle : ''}
logoLink={fields.logoLink}
/>
);
}
// no SSR for navi component yet
Expand Down
1 change: 1 addition & 0 deletions src/shared/utils/contentful.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export function menuItemBuilder(baseUrl, item) {
title: item.fields.naviMenuLinkText || item.fields.name,
href: item.fields.viewport ? target(baseUrl, item) : null,
id: item.sys.id,
imageSrc: item.fields.naviMenuLinkImage ? `https:${item.fields.naviMenuLinkImage.fields.file.url}` : null,
};
case 'navigationMenuItem':
return {
Expand Down