Skip to content

Commit 09f42fb

Browse files
authored
Merge pull request #2687 from topcoder-platform/develop-from-master-23may
Deploy issue #2642 on PROD
2 parents 863bb92 + 9da908f commit 09f42fb

File tree

3 files changed

+34
-14
lines changed

3 files changed

+34
-14
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ workflows:
175175
branches:
176176
only:
177177
- develop-from-master-23may
178+
- hot-fixes-4
178179
# This is alternate dev env for parallel testing
179180
- "build-test":
180181
context : org-global
@@ -189,7 +190,6 @@ workflows:
189190
filters:
190191
branches:
191192
only:
192-
- hot-fixes-2
193193
- develop
194194
- general-features
195195
- develop-from-master-23may

src/shared/components/Settings/Profile/Skills/index.jsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import ConsentComponent from 'components/Settings/ConsentComponent';
2020
import DevFallbackIcon from 'assets/images/profile/skills/id-develop.svg';
2121
import DesignFallbackIcon from 'assets/images/profile/skills/id-design.svg';
2222
import DataFallbackIcon from 'assets/images/profile/skills/id-data.svg';
23+
import VerifiedBadgeIcon from 'assets/images/verified-skill-badge.svg';
2324
import { isomorphy } from 'topcoder-react-utils';
2425

2526
import './styles.scss';
@@ -303,6 +304,7 @@ export default class Skills extends ConsentComponent {
303304
skill.id === arraySkill[i].tagId
304305
));
305306
if (result && result.length > 0) {
307+
result[0].sources = arraySkill[i].sources;
306308
filterUserSkills.push(result[0]);
307309
if (_.some(result[0].categories, category => category.toLowerCase() === 'design')) {
308310
design.push(result[0].name);
@@ -505,10 +507,13 @@ export default class Skills extends ConsentComponent {
505507
<div styleName="hidden-indicator" />
506508
{ imageExist(`id-${skill.id}.svg`) ? getImage(`id-${skill.id}.svg`) : <FallbackIcon /> }
507509
</div>
510+
</a>
511+
<div styleName="name-wrapper">
508512
<div styleName="name">
509513
{_.truncate(skill.name, { length: 18, separator: ' ' })}
510514
</div>
511-
</a>
515+
{_.includes(skill.sources, 'CHALLENGE') && <div styleName="verified-badge"><VerifiedBadgeIcon /></div> }
516+
</div>
512517
</div>
513518
</li>
514519
);

src/shared/components/Settings/Profile/Skills/styles.scss

+27-12
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
}
229229

230230
li {
231-
margin: 0 10px 55px;
231+
margin: 0 10px 10px;
232232
border-radius: 6px;
233233

234234
@include xs-to-lg {
@@ -261,6 +261,32 @@
261261
text-decoration: none;
262262
}
263263

264+
.name-wrapper {
265+
position: relative;
266+
display: flex;
267+
flex-direction: row;
268+
justify-content: center;
269+
align-items: center;
270+
width: 75px;
271+
padding-top: 5px;
272+
padding-bottom: 10px;
273+
flex-shrink: 0;
274+
275+
.name {
276+
@include roboto-regular;
277+
278+
font-size: 12px;
279+
line-height: 15px;
280+
color: #262628;
281+
text-align: center;
282+
}
283+
284+
.verified-badge {
285+
padding-left: 5px;
286+
font-size: 0;
287+
}
288+
}
289+
264290
.skill-icon {
265291
position: relative;
266292
display: flex;
@@ -317,17 +343,6 @@
317343
}
318344
}
319345

320-
.name {
321-
@include roboto-regular;
322-
323-
margin-top: 10px;
324-
font-size: 12px;
325-
line-height: 15px;
326-
color: #262628;
327-
text-align: center;
328-
width: 100%;
329-
}
330-
331346
a.skill-hidden {
332347
img {
333348
opacity: 0.3;

0 commit comments

Comments
 (0)