Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Cognitive updates, some bash results, some listings #961

Merged
merged 24 commits into from
Jan 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
462ac5f
Asana Task#251570416879588, Add IBM Cognitive opt-in to Skill Picker …
Jan 24, 2017
0e308b7
Merge pull request #941 from appirio-tech/feature/skill_picker_ibm_co…
Jan 24, 2017
e650796
Update CAB members on the Community Overview page
ThomasKranitsas Jan 24, 2017
e587e0f
fixed #904 added check for copilot
shubhendusaurabh Jan 24, 2017
ef6224c
Merge pull request #942 from ThomasKranitsas/issue-939
birdofpreyru Jan 24, 2017
2a130ec
Merge pull request #943 from shubhendusaurabh/issue-904
birdofpreyru Jan 24, 2017
26ff8ed
fixes #940 top menu login/join buttons
shubhendusaurabh Jan 24, 2017
90e0f9a
Merge pull request #945 from shubhendusaurabh/issue-940
birdofpreyru Jan 24, 2017
fb8afa4
Fix #905
Jan 25, 2017
487b3f3
Replace URL %20 to dash
Jan 25, 2017
13b8aa7
fix issue 947
rrandom Jan 25, 2017
d992fc7
Merge pull request #948 from shizhouxing/dev
birdofpreyru Jan 25, 2017
2547ca2
Merge pull request #950 from rrandom/dev
birdofpreyru Jan 25, 2017
734868c
Merge pull request #949 from harimp/competitive-url-fix
birdofpreyru Jan 25, 2017
e8eb632
fixes #912 added predix coder badge
shubhendusaurabh Jan 25, 2017
5bdd757
test changing react-components version in package.json
tladendo Jan 25, 2017
12030b2
Merge pull request #956 from appirio-tech/tom-package-test
tladendo Jan 25, 2017
c1d4784
updated cognitive description
ajefts Jan 26, 2017
568f644
updated display name
ajefts Jan 26, 2017
dfe87e1
Asana Task#251570416879588, Add IBM Cognitive opt-in to Skill Picker …
Jan 27, 2017
dd8ad5b
fixes #912 improved sprite
shubhendusaurabh Jan 27, 2017
e171849
Merge branch 'dev' into feature/skill_picker_ibm_cognitive
Jan 27, 2017
c88f8af
Merge pull request #959 from appirio-tech/feature/skill_picker_ibm_co…
Jan 27, 2017
273d967
Merge pull request #953 from shubhendusaurabh/issue-912
birdofpreyru Jan 27, 2017
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
12 changes: 8 additions & 4 deletions app/layout/header/header.jade
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@
button.btn-close-menu(type="button", ng-if="main.menuVisible", ng-click="main.menuVisible = false")

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

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"))
img(ng-if="!vm.profile.photoURL || !vm.profile.photoURL.length", class="user-avatar", ng-src=require("../../../assets/images/ico-user-default.svg"))

a.tc-btn.tc-btn-s.btn-link(ui-sref="register", ng-if="!vm.isAuth") JOIN

a.tc-btn.tc-btn-s.tc-btn-ghost.btn-link(ui-sref="login", ng-if="!vm.isAuth") LOG IN

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

ul.main-menu
li.menu-item.search-wrapper
Expand Down
6 changes: 6 additions & 0 deletions app/profile/badges/badges.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,12 @@ import moment from 'moment-timezone'
name: 'Crowd for Good',
groupClass: 'Crowd-for-Good',
active: false
},
{
id: 1008,
name: 'Predix Coder',
groupClass: 'Predix-Coder',
active: false
}
]
}
Expand Down
4 changes: 3 additions & 1 deletion app/profile/badges/badges.jade
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.ngdialog-close.close-outside

header.head
.ngdialog-close
.breadcrumbs
.handle
img.profile-circle(fallback-src=require("../../../assets/images/avatarPlaceholder.png"), ng-src="{{vm.profile.photoURL}}")
Expand All @@ -12,6 +13,7 @@ header.head
span.title BADGES

aside.badges
.ngdialog-close
.content
.badgeGroups
.groupBadge(ng-repeat='ag in vm.achievementGroups', ng-class='ag.groupClass', ng-show='ag.specificAchievements[0].active')
Expand Down
2 changes: 1 addition & 1 deletion app/profile/profile.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import moment from 'moment'
vm.stats = stats
vm.profile.tracks = vm.profile.tracks || []
vm.tracks = ProfileService.getTracks(stats) || vm.profile.tracks
if (stats.COPILOT && stats.COPILOT.contests && vm.profile.tracks.indexOf('COPILOT') == -1) {
if (vm.profile.badges.copilot || (stats.COPILOT && stats.COPILOT.contests && vm.profile.tracks.indexOf('COPILOT') == -1)) {
vm.profile.tracks.push('COPILOT')
}
// flag to indicate if the member has acitivity on topcoder to be shown
Expand Down
26 changes: 16 additions & 10 deletions app/services/communityData.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,38 @@ import angular from 'angular'
var data = {
'memberLeaderboard': [
{
'avatar': '//www.topcoder.com/i/m/callmekatootie.jpeg',
'name': 'callmekatootie',
'avatar': '//www.topcoder.com/i/m/Sky_.jpeg',
'name': 'Sky_',
'contestType': 'Development',
'description': '',
'class': 'develop'
}, {
'avatar': '//www.topcoder.com/i/m/besabestin.jpeg',
'name': 'besabestin',
'avatar': '//topcoder-prod-media.s3.amazonaws.com/member/profile/birdofpreyru-1474623113239.jpeg',
'name': 'birdofpreyru',
'contestType': 'Development',
'description': '',
'class': 'develop'
}, {
'avatar': '//www.topcoder.com/i/m/chekspir.jpeg',
'name': 'chekspir',
'avatar': '//topcoder-prod-media.s3.amazonaws.com/member/profile/thomaskranitsas-1478960109561.jpeg',
'name': 'thomaskranitsas',
'contestType': 'Development',
'description': '',
'class': 'develop'
}, {
'avatar': '//topcoder-prod-media.s3.amazonaws.com/member/profile/Ravijune-1471983063227.jpeg',
'name': 'Ravijune',
'contestType': 'Design',
'description': '',
'class': 'design'
}, {
'avatar': '//www.topcoder.com/i/m/DaraK.png',
'name': 'darak',
'avatar': '//www.topcoder.com/i/m/f0rc0d3r.jpeg',
'name': 'f0rc0d3r',
'contestType': 'Design',
'description': '',
'class': 'design'
}, {
'avatar': '//topcoder-prod-media.s3.amazonaws.com/member/profile/scott_wu-1480977860221.jpeg',
'name': 'scott_wu',
'avatar': '//www.topcoder.com/i/m/ltaravilse.jpeg',
'name': 'ltaravilse',
'contestType': 'Data Science',
'description': '',
'class': 'data-science'
Expand Down
2 changes: 1 addition & 1 deletion app/services/nav.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import angular from 'angular'
{ 'href': '/community/design/', 'text': 'DESIGN', 'icon': require('../../assets/images/nav/book-design.svg') },
{ 'href': '/community/development/', 'text': 'DEVELOPMENT', 'icon': require('../../assets/images/nav/book-develop.svg') },
{ 'href': '/community/data-science/', 'text': 'DATA SCIENCE', 'icon': require('../../assets/images/nav/book-data.svg') },
{ 'href': '/community/competitive%20programming/', 'text': 'COMPETITIVE PROGRAMMING', 'icon': require('../../assets/images/nav/book-cp.svg') }
{ 'href': '/community/competitive-programming/', 'text': 'COMPETITIVE PROGRAMMING', 'icon': require('../../assets/images/nav/book-cp.svg') }
],
'community': [
{ 'sref': 'community.members', 'text': 'OVERVIEW', 'icon': require('../../assets/images/nav/members.svg') },
Expand Down
7 changes: 7 additions & 0 deletions app/settings/email/email.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ import angular from 'angular'
desc: 'Design and development on GE’s platform for the Industrial Internet of Things',
enabled: false,
dirty: false
},
{
id: 'TOPCODER_NL_IBM_COGNITIVE',
name: 'Cognitive Community Newsletter',
desc: 'Never miss out on info about the Topcoder Cognitive Community',
enabled: false,
dirty: false
}
]

Expand Down
2 changes: 1 addition & 1 deletion app/sitemap/sitemap.jade
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
li
a(href="/community/data-science") Data Science
li
a(href="/community/competitive programming") Competitive Programming
a(href="/community/competitive-programming") Competitive Programming

section.sitemap-nav
h2.sitemap-header Community
Expand Down
25 changes: 23 additions & 2 deletions app/skill-picker/skill-picker.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import _ from 'lodash'
vm.ASSET_PREFIX = CONSTANTS.ASSET_PREFIX
vm.IOS_PROGRAM_ID = CONSTANTS.SWIFT_PROGRAM_ID
vm.PREDIX_PROGRAM_ID = CONSTANTS.PREDIX_PROGRAM_ID
vm.IBM_COGNITIVE_PROGRAM_ID = CONSTANTS.IBM_COGNITIVE_PROGRAM_ID
vm.submitSkills = submitSkills
vm.featuredSkills = featuredSkills
vm.userId = userProfile.userId
Expand Down Expand Up @@ -63,10 +64,30 @@ import _ from 'lodash'
* Initializes the communities to show in the communities section.
*/
function initCommunities() {
vm.communities['ios'] = { displayName: 'iOS', programId: vm.IOS_PROGRAM_ID, status: false, dirty: false, display: true}
vm.communities['predix'] = { displayName: 'Predix', programId: vm.PREDIX_PROGRAM_ID, status: false, dirty: false, display: true}
vm.communities['ios'] = {
displayName: 'iOS',
programId: vm.IOS_PROGRAM_ID,
status: false,
dirty: false,
display: true
}
vm.communities['predix'] = {
displayName: 'Predix',
programId: vm.PREDIX_PROGRAM_ID,
status: false,
dirty: false,
display: true
}
vm.communities['ibm_cognitive'] = {
displayName: 'Cognitive',
programId: vm.IBM_COGNITIVE_PROGRAM_ID,
status: false,
dirty: false,
display: true
}
_addWatchToCommunity(vm.communities['ios'])
_addWatchToCommunity(vm.communities['predix'])
_addWatchToCommunity(vm.communities['ibm_cognitive'])
}

/**
Expand Down
3 changes: 3 additions & 0 deletions app/skill-picker/skill-picker.jade
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
img(ng-if="communityKey == 'ios' && !community.status", src=require("../../assets/images/ico-ios-community-grey.svg"))
img(ng-if="communityKey == 'predix' && community.status", src=require("../../assets/images/ico-predix-community.svg"))
img(ng-if="communityKey == 'predix' && !community.status", src=require("../../assets/images/ico-predix-community-grey.svg"))
img(ng-if="communityKey == 'ibm_cognitive' && community.status", src=require("../../assets/images/ico-ibm_cognitive-community.svg"))
img(ng-if="communityKey == 'ibm_cognitive' && !community.status", src=require("../../assets/images/ico-ibm_cognitive-community-grey.svg"))

.community__text
span.community__title(class="{{!community.status && 'disabled'}}") {{community.displayName}}
.community__description
span(ng-if="communityKey == 'ios'") Mobile app design and development for iOS, with Swift emphasis
span(ng-if="communityKey == 'predix'") Design and development on GE’s platform for the Industrial Internet of Things
span(ng-if="communityKey == 'ibm_cognitive'") Cognitive Community

onoff-switch(model="community.status", unique-id="'community-' + communityKey")

Expand Down
1 change: 1 addition & 0 deletions app/topcoder.constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ angular.module('CONSTANTS', []).constant('CONSTANTS', {
'NEW_CHALLENGES_URL' : 'https://www.topcoder.com/challenges/develop/upcoming/',
'SWIFT_PROGRAM_ID' : 3445,
'PREDIX_PROGRAM_ID' : process.env.PREDIX_PROGRAM_ID || 3448,
'IBM_COGNITIVE_PROGRAM_ID' : process.env.IBM_COGNITIVE_PROGRAM_ID || 3449,
'UPCOMING_SRMS_URL' : 'https://www.topcoder.com/challenges/data/upcoming/',
'EVENT_USER_LOGGED_IN' : 'user_logged_in',
'EVENT_USER_LOGGED_OUT' : 'user_logged_out',
Expand Down
12 changes: 12 additions & 0 deletions assets/css/community/members.scss
Original file line number Diff line number Diff line change
Expand Up @@ -631,4 +631,16 @@
}
}
}

.members-of-month-container {

.user-tile {
min-width: 150px;
padding: 20px 0 0;

.user-name {
font-size: 15px;
}
}
}
}
3 changes: 3 additions & 0 deletions assets/css/directives/badge-tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@
.Crowd-for-Good {
background-position: 0px -672px;
}
.Predix-Coder {
background-position: -50px -672px;
}
.Wireframe {
width: 31px;
background-position: 0px -1009px !important;
Expand Down
4 changes: 2 additions & 2 deletions assets/css/layout/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}
.bottom-footer .menu-item {
display: none;
margin-top: 30px;
margin-top: 10px;
}

.menu-visible .bottom-footer .menu-item {
Expand Down Expand Up @@ -76,7 +76,7 @@

.bottom-footer nav {
position: absolute;
top: 997px;
top: 1047px;
left: 0;
width: 100%;
padding: 20px;
Expand Down
4 changes: 4 additions & 0 deletions assets/css/layout/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
right: 10px;
top: 0;
text-decoration: none;

a + a {
margin-left: 12px;
}
}

.btn-link {
Expand Down
24 changes: 21 additions & 3 deletions assets/css/profile/badges.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
padding: 0;
.ngdialog-content {
padding: 30px;
background: white;
opacity: 0.95;
background: rgba(255,255,255,0.85);
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border-radius: 0;

header.head {
@include sofia-pro-extra-light;
Expand All @@ -32,7 +32,6 @@
margin-bottom: -5px;
margin-right: 13px;
}

}

.badges {
Expand All @@ -44,6 +43,7 @@
display: flex;
flex-direction: column;
justify-content: center;
position: relative;

.content {
overflow: auto;
Expand All @@ -58,7 +58,25 @@
justify-content: center;
}
}
.ngdialog-close {
display: block;
}
}

.ngdialog-close {
display: none;
}

.ngdialog-close.close-outside {
display: block;
height: 100%;
width: 100%;
cursor: default;
}

.ngdialog-close.close-outside:before {
display: none;
}
}
}

Expand Down
Binary file modified assets/images/badge.grid.large.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions assets/images/ico-ibm_cognitive-community-grey.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions assets/images/ico-ibm_cognitive-community.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"appirio-styles": "0.x.x",
"appirio-tech-ng-iso-constants": "^1.0.6",
"appirio-tech-ng-ui-components": "^2.1.2",
"appirio-tech-react-components": "appirio-tech/react-components.git#challenge-listings",
"appirio-tech-react-components": "appirio-tech/react-components.git#cl-styles-1",
"auth0-angular": "^4.1.0",
"auth0-js": "^6.8.0",
"d3": "^3.5.14",
Expand Down