Skip to content

Commit

Permalink
Merge pull request #5820 from topcoder-platform/develop
Browse files Browse the repository at this point in the history
Release v1.14.2
  • Loading branch information
luizrrodrigues authored Nov 18, 2021
2 parents 40f4016 + f30d652 commit c53c5bc
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ workflows:
filters:
branches:
only:
- develop
- free
# This is alternate dev env for parallel testing
- "build-test":
context : org-global
Expand All @@ -363,7 +363,7 @@ workflows:
filters:
branches:
only:
- thrive-spooky1-p0-2
- free
# This is stage env for production QA releases
- "build-prod-staging":
context : org-global
Expand Down
4 changes: 0 additions & 4 deletions src/server/services/recruitCRM.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,6 @@ export default class RecruitCRMService {
let isReferred = false;
let referralCookie = req.cookies[config.GROWSURF_COOKIE];
if (referralCookie) referralCookie = JSON.parse(referralCookie);
if (referralCookie) {
logger.info(`The referralCookie is: ${referralCookie}`);
logger.info(`The referralId is: ${referralCookie.referralId}`);
}
const tcHandle = _.findIndex(form.custom_fields, { field_id: 2 });
let growRes;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
border-radius: 10px;
overflow: hidden;
position: relative;
cursor: pointer;

@include xs-to-sm {
background: #f4f4f4;
Expand Down
5 changes: 4 additions & 1 deletion src/shared/components/Contentful/Tabs/Tabs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export default class TabsItemsLoader extends Component {
theme,
tabId,
themeName,
forceRenderTabPanel,
} = this.props;
const { tabIndex, mobileTabsShow } = this.state;

Expand All @@ -102,7 +103,7 @@ export default class TabsItemsLoader extends Component {
selectedIndex={tabIndex}
selectedTabClassName={theme.selected}
onSelect={tIndx => this.setState({ tabIndex: tIndx, mobileTabsShow: false })}
forceRenderTabPanel
forceRenderTabPanel={forceRenderTabPanel}
>
<div className={theme.tabListWrap}>
{
Expand Down Expand Up @@ -230,6 +231,7 @@ TabsItemsLoader.defaultProps = {
selected: 0,
spaceName: null,
environment: null,
forceRenderTabPanel: true,
};

TabsItemsLoader.propTypes = {
Expand All @@ -241,4 +243,5 @@ TabsItemsLoader.propTypes = {
theme: PT.shape().isRequired,
tabId: PT.string.isRequired,
themeName: PT.string.isRequired,
forceRenderTabPanel: PT.bool,
};
1 change: 1 addition & 0 deletions src/shared/components/Contentful/Tabs/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function ContentfulTabs(props) {
theme={TAB_THEMES[fields.theme || 'Default']}
tabId={fields.urlQueryName || id}
themeName={fields.theme}
forceRenderTabPanel={fields.forceRenderTabPanel}
/>
);
}}
Expand Down
6 changes: 4 additions & 2 deletions src/shared/components/Contentful/Tabs/themes/pills.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ $text-color-black: #262628;
border-bottom: none;

@include xs-to-sm {
-webkit-flex-direction: column; /* Safari */
flex-direction: column;
overflow: auto;
align-items: center;
justify-content: flex-start;
}
}

Expand All @@ -38,9 +38,11 @@ $text-color-black: #262628;
cursor: pointer;
border-radius: 15px;
padding: 0 15px;
white-space: nowrap;

@include xs-to-sm {
margin: 2px;
padding: 0 25px;
}

&:hover {
Expand Down
49 changes: 48 additions & 1 deletion src/shared/components/Contentful/Tabs/themes/vertical.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* stylelint-disable no-descending-specificity */
@import '~styles/mixins';

$text-color-black: #262628;
Expand All @@ -11,6 +12,10 @@ $gray-border-color: #e9e9e9;
display: flex;
max-width: $screen-lg;
margin: auto;

@media (max-width: 768px) {
flex-direction: column;
}
}

.tablist {
Expand All @@ -24,9 +29,18 @@ $gray-border-color: #e9e9e9;
border-right: 5px solid $gray-border-color;
margin-right: 58px;
padding: 7px 0;

@media (max-width: 768px) {
flex-direction: row;
border-right: none;
margin-right: 0;
margin-bottom: 15px;
overflow: auto;
padding: 0;
}
}

.tab {
li.tab {
text-align: left;
color: $text-color-black;
font-size: 16px;
Expand All @@ -35,6 +49,16 @@ $gray-border-color: #e9e9e9;
cursor: pointer;
padding-right: 30px;

@media (max-width: 768px) {
padding-right: 20px;
border-bottom: 5px solid $gray-border-color;
min-width: auto !important;

&:first-child {
padding-left: 7px;
}
}

&:hover,
&.selected {
font-weight: 700;
Expand All @@ -52,6 +76,29 @@ $gray-border-color: #e9e9e9;
border-radius: 5px;
border-top: 1px solid white;
border-bottom: 1px solid white;

@media (max-width: 768px) {
display: none;
}
}

p {
position: relative;
display: inline-block;

&::after {
@media (max-width: 768px) {
content: '';
background: $selected-color;
height: 5px;
width: 100%;
display: flex;
position: absolute;
border-radius: 15%;
border-left: 2px solid white;
border-right: 2px solid white;
}
}
}
}

Expand Down
6 changes: 6 additions & 0 deletions src/shared/containers/EDU/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ export default class EDUSearch extends React.Component {
// eslint-disable-next-line no-nested-ternary
urlQuery.tags = _.isArray(urlQuery.tags)
? urlQuery.tags : (urlQuery.tags ? [urlQuery.tags] : []);
if (urlQuery.phrase && urlQuery.phrase.length > 115) {
urlQuery.phrase = urlQuery.phrase.substring(0, 114);
}
if (urlQuery.title && urlQuery.title.length > 115) {
urlQuery.title = urlQuery.title.substring(0, 114);
}
this.setState({
query: urlQuery,
});
Expand Down
6 changes: 3 additions & 3 deletions src/shared/containers/EDU/styles/tracks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
text-transform: uppercase;

@include xs-to-sm {
font-size: 70px;
letter-spacing: 0.44px;
line-height: 60px;
font-size: 42px;
letter-spacing: 0;
line-height: 38px;
margin-top: 533px;
}
}
Expand Down

0 comments on commit c53c5bc

Please sign in to comment.