Skip to content

Commit e171849

Browse files
author
Vikas Agarwal
committed
Merge branch 'dev' into feature/skill_picker_ibm_cognitive
* dev: updated display name updated cognitive description test changing react-components version in package.json fix issue 947 Replace URL %20 to dash Fix topcoder-archive#905 fixes topcoder-archive#940 top menu login/join buttons fixed topcoder-archive#904 added check for copilot Update CAB members on the Community Overview page Conflicts: app/settings/email/email.controller.js
2 parents dfe87e1 + 568f644 commit e171849

File tree

12 files changed

+71
-25
lines changed

12 files changed

+71
-25
lines changed

app/layout/header/header.jade

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@
1111
button.btn-close-menu(type="button", ng-if="main.menuVisible", ng-click="main.menuVisible = false")
1212

1313
// User link (profile or join)
14-
a(ui-sref="profile.about({userHandle: vm.userHandle})", ng-switch="vm.isAuth" class="user-link" data-ng-if="!main.menuVisible")
15-
img(ng-switch-when="true", ng-if="vm.profile.photoURL && vm.profile.photoURL.length", class="user-avatar", ng-src="{{vm.profile.photoURL}}")
14+
div.user-link(data-ng-if="!main.menuVisible")
15+
a(ui-sref="profile.about({userHandle: vm.userHandle})", ng-if="vm.isAuth")
16+
img(ng-if="vm.profile.photoURL && vm.profile.photoURL.length", class="user-avatar", ng-src="{{vm.profile.photoURL}}")
1617

17-
img(ng-switch-when="true", ng-if="!vm.profile.photoURL || !vm.profile.photoURL.length", class="user-avatar", ng-src=require("../../../assets/images/ico-user-default.svg"))
18+
img(ng-if="!vm.profile.photoURL || !vm.profile.photoURL.length", class="user-avatar", ng-src=require("../../../assets/images/ico-user-default.svg"))
19+
20+
a.tc-btn.tc-btn-s.btn-link(ui-sref="register", ng-if="!vm.isAuth") JOIN
21+
22+
a.tc-btn.tc-btn-s.tc-btn-ghost.btn-link(ui-sref="login", ng-if="!vm.isAuth") LOG IN
1823

19-
span(ng-switch-when="false" class="tc-btn tc-btn-s") JOIN
2024

2125
ul.main-menu
2226
li.menu-item.search-wrapper

app/profile/badges/badges.jade

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
.ngdialog-close.close-outside
2+
13
header.head
2-
.ngdialog-close
34
.breadcrumbs
45
.handle
56
img.profile-circle(fallback-src=require("../../../assets/images/avatarPlaceholder.png"), ng-src="{{vm.profile.photoURL}}")
@@ -12,6 +13,7 @@ header.head
1213
span.title BADGES
1314

1415
aside.badges
16+
.ngdialog-close
1517
.content
1618
.badgeGroups
1719
.groupBadge(ng-repeat='ag in vm.achievementGroups', ng-class='ag.groupClass', ng-show='ag.specificAchievements[0].active')

app/profile/profile.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import moment from 'moment'
4444
vm.stats = stats
4545
vm.profile.tracks = vm.profile.tracks || []
4646
vm.tracks = ProfileService.getTracks(stats) || vm.profile.tracks
47-
if (stats.COPILOT && stats.COPILOT.contests && vm.profile.tracks.indexOf('COPILOT') == -1) {
47+
if (vm.profile.badges.copilot || (stats.COPILOT && stats.COPILOT.contests && vm.profile.tracks.indexOf('COPILOT') == -1)) {
4848
vm.profile.tracks.push('COPILOT')
4949
}
5050
// flag to indicate if the member has acitivity on topcoder to be shown

app/services/communityData.service.js

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,38 @@ import angular from 'angular'
2121
var data = {
2222
'memberLeaderboard': [
2323
{
24-
'avatar': '//www.topcoder.com/i/m/callmekatootie.jpeg',
25-
'name': 'callmekatootie',
24+
'avatar': '//www.topcoder.com/i/m/Sky_.jpeg',
25+
'name': 'Sky_',
2626
'contestType': 'Development',
2727
'description': '',
2828
'class': 'develop'
2929
}, {
30-
'avatar': '//www.topcoder.com/i/m/besabestin.jpeg',
31-
'name': 'besabestin',
30+
'avatar': '//topcoder-prod-media.s3.amazonaws.com/member/profile/birdofpreyru-1474623113239.jpeg',
31+
'name': 'birdofpreyru',
3232
'contestType': 'Development',
3333
'description': '',
3434
'class': 'develop'
3535
}, {
36-
'avatar': '//www.topcoder.com/i/m/chekspir.jpeg',
37-
'name': 'chekspir',
36+
'avatar': '//topcoder-prod-media.s3.amazonaws.com/member/profile/thomaskranitsas-1478960109561.jpeg',
37+
'name': 'thomaskranitsas',
38+
'contestType': 'Development',
39+
'description': '',
40+
'class': 'develop'
41+
}, {
42+
'avatar': '//topcoder-prod-media.s3.amazonaws.com/member/profile/Ravijune-1471983063227.jpeg',
43+
'name': 'Ravijune',
3844
'contestType': 'Design',
3945
'description': '',
4046
'class': 'design'
4147
}, {
42-
'avatar': '//www.topcoder.com/i/m/DaraK.png',
43-
'name': 'darak',
48+
'avatar': '//www.topcoder.com/i/m/f0rc0d3r.jpeg',
49+
'name': 'f0rc0d3r',
4450
'contestType': 'Design',
4551
'description': '',
4652
'class': 'design'
4753
}, {
48-
'avatar': '//topcoder-prod-media.s3.amazonaws.com/member/profile/scott_wu-1480977860221.jpeg',
49-
'name': 'scott_wu',
54+
'avatar': '//www.topcoder.com/i/m/ltaravilse.jpeg',
55+
'name': 'ltaravilse',
5056
'contestType': 'Data Science',
5157
'description': '',
5258
'class': 'data-science'

app/services/nav.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import angular from 'angular'
2626
{ 'href': '/community/design/', 'text': 'DESIGN', 'icon': require('../../assets/images/nav/book-design.svg') },
2727
{ 'href': '/community/development/', 'text': 'DEVELOPMENT', 'icon': require('../../assets/images/nav/book-develop.svg') },
2828
{ 'href': '/community/data-science/', 'text': 'DATA SCIENCE', 'icon': require('../../assets/images/nav/book-data.svg') },
29-
{ 'href': '/community/competitive%20programming/', 'text': 'COMPETITIVE PROGRAMMING', 'icon': require('../../assets/images/nav/book-cp.svg') }
29+
{ 'href': '/community/competitive-programming/', 'text': 'COMPETITIVE PROGRAMMING', 'icon': require('../../assets/images/nav/book-cp.svg') }
3030
],
3131
'community': [
3232
{ 'sref': 'community.members', 'text': 'OVERVIEW', 'icon': require('../../assets/images/nav/members.svg') },

app/settings/email/email.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ import angular from 'angular'
7070
{
7171
id: 'TOPCODER_NL_IBM_COGNITIVE',
7272
name: 'Cognitive Community Newsletter',
73-
desc: 'Cognitive Community Newsletter',
73+
desc: 'Never miss out on info about the Topcoder Cognitive Community',
7474
enabled: false,
7575
dirty: false
7676
}

app/sitemap/sitemap.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
li
2828
a(href="/community/data-science") Data Science
2929
li
30-
a(href="/community/competitive programming") Competitive Programming
30+
a(href="/community/competitive-programming") Competitive Programming
3131

3232
section.sitemap-nav
3333
h2.sitemap-header Community

assets/css/community/members.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,4 +631,16 @@
631631
}
632632
}
633633
}
634+
635+
.members-of-month-container {
636+
637+
.user-tile {
638+
min-width: 150px;
639+
padding: 20px 0 0;
640+
641+
.user-name {
642+
font-size: 15px;
643+
}
644+
}
645+
}
634646
}

assets/css/layout/footer.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
}
4242
.bottom-footer .menu-item {
4343
display: none;
44-
margin-top: 30px;
44+
margin-top: 10px;
4545
}
4646

4747
.menu-visible .bottom-footer .menu-item {
@@ -76,7 +76,7 @@
7676

7777
.bottom-footer nav {
7878
position: absolute;
79-
top: 997px;
79+
top: 1047px;
8080
left: 0;
8181
width: 100%;
8282
padding: 20px;

assets/css/layout/header.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@
8888
right: 10px;
8989
top: 0;
9090
text-decoration: none;
91+
92+
a + a {
93+
margin-left: 12px;
94+
}
9195
}
9296

9397
.btn-link {

assets/css/profile/badges.scss

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
padding: 0;
55
.ngdialog-content {
66
padding: 30px;
7-
background: white;
8-
opacity: 0.95;
7+
background: rgba(255,255,255,0.85);
98
width: 100%;
109
height: 100%;
1110
display: flex;
1211
flex-direction: column;
1312
justify-content: center;
1413
align-items: center;
14+
border-radius: 0;
1515

1616
header.head {
1717
@include sofia-pro-extra-light;
@@ -32,7 +32,6 @@
3232
margin-bottom: -5px;
3333
margin-right: 13px;
3434
}
35-
3635
}
3736

3837
.badges {
@@ -44,6 +43,7 @@
4443
display: flex;
4544
flex-direction: column;
4645
justify-content: center;
46+
position: relative;
4747

4848
.content {
4949
overflow: auto;
@@ -58,7 +58,25 @@
5858
justify-content: center;
5959
}
6060
}
61+
.ngdialog-close {
62+
display: block;
63+
}
64+
}
65+
66+
.ngdialog-close {
67+
display: none;
68+
}
69+
70+
.ngdialog-close.close-outside {
71+
display: block;
72+
height: 100%;
73+
width: 100%;
74+
cursor: default;
6175
}
76+
77+
.ngdialog-close.close-outside:before {
78+
display: none;
79+
}
6280
}
6381
}
6482

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"appirio-styles": "0.x.x",
5757
"appirio-tech-ng-iso-constants": "^1.0.6",
5858
"appirio-tech-ng-ui-components": "^2.1.2",
59-
"appirio-tech-react-components": "appirio-tech/react-components.git#challenge-listings",
59+
"appirio-tech-react-components": "appirio-tech/react-components.git#cl-styles-1",
6060
"auth0-angular": "^4.1.0",
6161
"auth0-js": "^6.8.0",
6262
"d3": "^3.5.14",

0 commit comments

Comments
 (0)