Skip to content

Commit 462ac5f

Browse files
author
Vikas Agarwal
committed
Asana Task#251570416879588, Add IBM Cognitive opt-in to Skill Picker upon account activation and preferences page
-- Front end changes for supporting new community, IBM Cognitive community
1 parent 9343e7d commit 462ac5f

File tree

6 files changed

+70
-2
lines changed

6 files changed

+70
-2
lines changed

app/settings/email/email.controller.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ import angular from 'angular'
6666
desc: 'Design and development on GE’s platform for the Industrial Internet of Things',
6767
enabled: false,
6868
dirty: false
69+
},
70+
{
71+
id: 'TOPCODER_NL_IBM_COGNITIVE',
72+
name: 'IBM Cognitive Community Newsletter',
73+
desc: 'IBM Cognitive Community Newsletter',
74+
enabled: false,
75+
dirty: false
6976
}
7077
]
7178

app/skill-picker/skill-picker.controller.js

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import _ from 'lodash'
1313
vm.ASSET_PREFIX = CONSTANTS.ASSET_PREFIX
1414
vm.IOS_PROGRAM_ID = CONSTANTS.SWIFT_PROGRAM_ID
1515
vm.PREDIX_PROGRAM_ID = CONSTANTS.PREDIX_PROGRAM_ID
16+
vm.IBM_COGNITIVE_PROGRAM_ID = CONSTANTS.IBM_COGNITIVE_PROGRAM_ID
1617
vm.submitSkills = submitSkills
1718
vm.featuredSkills = featuredSkills
1819
vm.userId = userProfile.userId
@@ -63,10 +64,30 @@ import _ from 'lodash'
6364
* Initializes the communities to show in the communities section.
6465
*/
6566
function initCommunities() {
66-
vm.communities['ios'] = { displayName: 'iOS', programId: vm.IOS_PROGRAM_ID, status: false, dirty: false, display: true}
67-
vm.communities['predix'] = { displayName: 'Predix', programId: vm.PREDIX_PROGRAM_ID, status: false, dirty: false, display: true}
67+
vm.communities['ios'] = {
68+
displayName: 'iOS',
69+
programId: vm.IOS_PROGRAM_ID,
70+
status: false,
71+
dirty: false,
72+
display: true
73+
}
74+
vm.communities['predix'] = {
75+
displayName: 'Predix',
76+
programId: vm.PREDIX_PROGRAM_ID,
77+
status: false,
78+
dirty: false,
79+
display: true
80+
}
81+
vm.communities['ibm_cognitive'] = {
82+
displayName: 'IBM Cognitive',
83+
programId: vm.IBM_COGNITIVE_PROGRAM_ID,
84+
status: false,
85+
dirty: false,
86+
display: true
87+
}
6888
_addWatchToCommunity(vm.communities['ios'])
6989
_addWatchToCommunity(vm.communities['predix'])
90+
_addWatchToCommunity(vm.communities['ibm_cognitive'])
7091
}
7192

7293
/**

app/skill-picker/skill-picker.jade

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@
1414
img(ng-if="communityKey == 'ios' && !community.status", src=require("../../assets/images/ico-ios-community-grey.svg"))
1515
img(ng-if="communityKey == 'predix' && community.status", src=require("../../assets/images/ico-predix-community.svg"))
1616
img(ng-if="communityKey == 'predix' && !community.status", src=require("../../assets/images/ico-predix-community-grey.svg"))
17+
img(ng-if="communityKey == 'ibm_cognitive' && community.status", src=require("../../assets/images/ico-ibm_cognitive-community.svg"))
18+
img(ng-if="communityKey == 'ibm_cognitive' && !community.status", src=require("../../assets/images/ico-ibm_cognitive-community-grey.svg"))
1719

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

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

app/topcoder.constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ angular.module('CONSTANTS', []).constant('CONSTANTS', {
2929
'NEW_CHALLENGES_URL' : 'https://www.topcoder.com/challenges/develop/upcoming/',
3030
'SWIFT_PROGRAM_ID' : 3445,
3131
'PREDIX_PROGRAM_ID' : process.env.PREDIX_PROGRAM_ID || 3448,
32+
'IBM_COGNITIVE_PROGRAM_ID' : process.env.IBM_COGNITIVE_PROGRAM_ID || 3449,
3233
'UPCOMING_SRMS_URL' : 'https://www.topcoder.com/challenges/data/upcoming/',
3334
'EVENT_USER_LOGGED_IN' : 'user_logged_in',
3435
'EVENT_USER_LOGGED_OUT' : 'user_logged_out',
Lines changed: 18 additions & 0 deletions
Loading
Lines changed: 18 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy