Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
738f6ec7
Commit
738f6ec7
authored
Jul 23, 2020
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go back & diversity save issue fixed
parent
9b553f13
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
107 additions
and
52 deletions
+107
-52
diversity-profile.component.ts
...sessment/diversity-profile/diversity-profile.component.ts
+2
-0
work-preference.component.html
...assessment/work-preference/work-preference.component.html
+3
-0
work-preference.component.ts
...b/assessment/work-preference/work-preference.component.ts
+2
-0
work-style.component.html
...areer-web/assessment/work-style/work-style.component.html
+3
-0
work-style.component.ts
...-career-web/assessment/work-style/work-style.component.ts
+3
-0
career-history.routing.ts
...pp/my-career-web/career-history/career-history.routing.ts
+5
-0
career-history.component.html
...reer-history/career-history/career-history.component.html
+14
-14
career-history.component.ts
...career-history/career-history/career-history.component.ts
+1
-1
publish.component.html
...eer-history/career-history/publish/publish.component.html
+27
-4
publish.component.ts
...areer-history/career-history/publish/publish.component.ts
+2
-1
dashboard.routing.ts
...ular/src/app/my-career-web/dashboard/dashboard.routing.ts
+1
-1
home.component.html
.../src/app/my-career-web/dashboard/home/home.component.html
+38
-29
home.component.ts
...ar/src/app/my-career-web/dashboard/home/home.component.ts
+2
-0
left-sidebar.component.html
...er-web/dashboard/left-sidebar/left-sidebar.component.html
+2
-2
career-profile.model.ts
...ular/src/app/my-career-web/models/career-profile.model.ts
+2
-0
No files found.
frontend/angular/src/app/my-career-web/assessment/diversity-profile/diversity-profile.component.ts
View file @
738f6ec7
...
...
@@ -74,8 +74,10 @@ export class DiversityProfileComponent extends BaseComponent implements OnInit {
if
(
div
.
MultipleAnswers
)
{
answers
.
push
(...
this
.
selectedAnswers
[
div
.
ObjectID
]);
}
else
{
if
(
this
.
selectedAnswers
[
div
.
ObjectID
])
{
answers
.
push
(
this
.
selectedAnswers
[
div
.
ObjectID
])
}
}
});
this
.
assessmentService
.
saveDiversityProfile
({
Answers
:
answers
})
.
pipe
(
takeUntil
(
this
.
componentInView
))
...
...
frontend/angular/src/app/my-career-web/assessment/work-preference/work-preference.component.html
View file @
738f6ec7
...
...
@@ -41,11 +41,14 @@
</div>
</div>
<ng-container
*
ngIf=
"!isBack"
>
<hr
class=
"mt-5"
>
<div
class=
"d-flex justify-content-center mt-5"
>
<button
class=
"ui-button-info mc-btn-primary"
(
click
)="
initiateWorkPreference
(
true
)"
*
ngIf=
"workPreferenceQuestion.QuestionNo > 1"
pButton
label=
"Go Back"
></button>
</div>
</ng-container>
</div>
</div>
...
...
frontend/angular/src/app/my-career-web/assessment/work-preference/work-preference.component.ts
View file @
738f6ec7
...
...
@@ -24,6 +24,7 @@ export class WorkPreferenceComponent extends BaseComponent implements OnInit, On
autoSavedOn
;
autoSaveLabel
=
'a few seconds ago'
;
selectedAns
;
isBack
;
constructor
(
private
assessmentService
:
AssessmentService
,
...
...
@@ -40,6 +41,7 @@ export class WorkPreferenceComponent extends BaseComponent implements OnInit, On
}
initiateWorkPreference
(
previousQuestion
=
false
):
void
{
this
.
isBack
=
previousQuestion
;
this
.
isLoading
=
true
;
this
.
assessmentService
.
getWorkPreferences
(
this
.
assocs
,
previousQuestion
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
...
...
frontend/angular/src/app/my-career-web/assessment/work-style/work-style.component.html
View file @
738f6ec7
...
...
@@ -58,11 +58,14 @@
</div>
<ng-container
*
ngIf=
"!isBack"
>
<hr
class=
"mt-5"
>
<div
class=
"d-flex justify-content-center mt-5"
>
<button
class=
"ui-button-info mc-btn-primary"
(
click
)="
initiateWorkStyle
(
true
)"
*
ngIf=
"workStyleQuestion.QuestionNo > 1"
pButton
label=
"Go Back"
></button>
</div>
</ng-container>
</div>
</div>
...
...
frontend/angular/src/app/my-career-web/assessment/work-style/work-style.component.ts
View file @
738f6ec7
...
...
@@ -22,6 +22,7 @@ export class WorkStyleComponent extends BaseComponent implements OnInit, OnDestr
autoSavedOn
;
autoSaveLabel
=
'a few seconds ago'
;
wasUpdated
=
false
;
isBack
=
false
;
selectedAns
;
constructor
(
...
...
@@ -39,6 +40,7 @@ export class WorkStyleComponent extends BaseComponent implements OnInit, OnDestr
}
initiateWorkStyle
(
previousQuestion
=
false
):
void
{
this
.
isBack
=
previousQuestion
;
this
.
isLoading
=
true
;
this
.
assessmentService
.
getWorkStyle
(
this
.
assocs
,
previousQuestion
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
...
...
@@ -71,6 +73,7 @@ export class WorkStyleComponent extends BaseComponent implements OnInit, OnDestr
submitAnswer
(
scale
):
void
{
this
.
selectedAns
=
scale
;
this
.
isBack
=
false
;
const
formData
=
{
Question
:
this
.
workStyleQuestion
.
Question
.
ObjectID
,
Answer
:
scale
,
...
...
frontend/angular/src/app/my-career-web/career-history/career-history.routing.ts
View file @
738f6ec7
import
{
NgModule
}
from
'@angular/core'
;
import
{
Routes
,
RouterModule
}
from
'@angular/router'
;
import
{
CareerHistoryComponent
}
from
'./career-history/career-history.component'
;
import
{
PublishComponent
}
from
'./career-history/publish/publish.component'
;
const
routes
:
Routes
=
[
{
path
:
'update'
,
component
:
PublishComponent
},
{
path
:
':screen'
,
component
:
CareerHistoryComponent
}
...
...
frontend/angular/src/app/my-career-web/career-history/career-history/career-history.component.html
View file @
738f6ec7
...
...
@@ -29,28 +29,28 @@
<div
class=
"assessment-body-tabs mc-card career-builder position-relative"
*
ngIf=
"careerProfile"
>
<p-tabView
(
onChange
)="
tabChanged
($
event
)"
>
<p-tabPanel
header=
"1{{isMobileView ? '' : '. Templates'}}"
[
selected
]="
activeTab =
==
'
templates
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
TEMPLATES
?
'
completed
'
:
''"
>
<app-templates></app-templates>
</p-tabPanel>
<p-tabPanel
header=
"2{{isMobileView ? '' : '. Personal Data'}}"
[
selected
]="
activeTab =
==
'
personal-data
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
PERSONAL_DATA
?
'
completed
'
:
''"
>
<app-personal-details
#
personalDetailsComponent
[
asChildComponent
]="
true
"
(
detailsSaved
)="
tabChanged
({
index:
2
})"
>
<p-tabPanel
header=
"1{{isMobileView ? '' : '. Personal Data'}}"
[
selected
]="
activeTab =
==
'
personal-data
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
PERSONAL_DATA
?
'
completed
'
:
''"
>
<app-personal-details
#
personalDetailsComponent
[
asChildComponent
]="
true
"
(
detailsSaved
)="
tabChanged
({
index:
1
})"
>
</app-personal-details>
</p-tabPanel>
<p-tabPanel
header=
"
3
{{isMobileView ? '' : '. Work History'}}"
[
selected
]="
activeTab =
==
'
work-history
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
WORK_HISTORY
?
'
completed
'
:
''"
>
<app-work-history
#
workHistoryComponent
(
workSaved
)="
tabChanged
({
index:
3
})"
>
<p-tabPanel
header=
"
2
{{isMobileView ? '' : '. Work History'}}"
[
selected
]="
activeTab =
==
'
work-history
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
WORK_HISTORY
?
'
completed
'
:
''"
>
<app-work-history
#
workHistoryComponent
(
workSaved
)="
tabChanged
({
index:
2
})"
>
</app-work-history>
</p-tabPanel>
<p-tabPanel
header=
"
4
{{isMobileView ? '' : '. Education'}}"
[
selected
]="
activeTab =
==
'
education
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
EDUCATION
?
'
completed
'
:
''"
>
<app-education
#
educationComponent
(
educationSaved
)="
tabChanged
({
index:
4
})"
></app-education>
<p-tabPanel
header=
"
3
{{isMobileView ? '' : '. Education'}}"
[
selected
]="
activeTab =
==
'
education
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
EDUCATION
?
'
completed
'
:
''"
>
<app-education
#
educationComponent
(
educationSaved
)="
tabChanged
({
index:
3
})"
></app-education>
</p-tabPanel>
<p-tabPanel
header=
"
5
{{isMobileView ? '' : '. Skills'}}"
[
selected
]="
activeTab =
==
'
skills
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
SKILLS
?
'
completed
'
:
''"
>
<app-skills
#
skillsComponent
(
skillsSaved
)="
tabChanged
({
index:
5
})"
></app-skills>
<p-tabPanel
header=
"
4
{{isMobileView ? '' : '. Skills'}}"
[
selected
]="
activeTab =
==
'
skills
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
SKILLS
?
'
completed
'
:
''"
>
<app-skills
#
skillsComponent
(
skillsSaved
)="
tabChanged
({
index:
4
})"
></app-skills>
</p-tabPanel>
<p-tabPanel
header=
"6{{isMobileView ? '' : '. References'}}"
[
selected
]="
activeTab =
==
'
references
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
REFERENCES
?
'
completed
'
:
''"
>
<app-references
#
referencesComponent
(
refereeSaved
)="
tabChanged
({
index:
6
})"
></app-references>
<p-tabPanel
header=
"5{{isMobileView ? '' : '. References'}}"
[
selected
]="
activeTab =
==
'
references
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
REFERENCES
?
'
completed
'
:
''"
>
<app-references
#
referencesComponent
(
refereeSaved
)="
tabChanged
({
index:
5
})"
></app-references>
</p-tabPanel>
<p-tabPanel
header=
"6{{isMobileView ? '' : '. Templates'}}"
[
selected
]="
activeTab =
==
'
templates
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
TEMPLATES
?
'
completed
'
:
''"
>
<app-templates></app-templates>
</p-tabPanel>
<p-tabPanel
header=
"7{{isMobileView ? '' : '. Publish'}}"
[
selected
]="
activeTab =
==
'
publish
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
PUBLISH
?
'
completed
'
:
''"
>
<app-publish></app-publish>
<app-publish
[
asChild
]="
true
"
></app-publish>
</p-tabPanel>
</p-tabView>
</div>
...
...
frontend/angular/src/app/my-career-web/career-history/career-history/career-history.component.ts
View file @
738f6ec7
...
...
@@ -18,7 +18,7 @@ import { UtilsService } from '../../../oneit/services/utils.service';
})
export
class
CareerHistoryComponent
extends
BaseComponent
implements
OnInit
{
tabs
=
[
'
templates'
,
'personal-data'
,
'work-history'
,
'education'
,
'skills'
,
'referenc
es'
,
'publish'
];
tabs
=
[
'
personal-data'
,
'work-history'
,
'education'
,
'skills'
,
'references'
,
'templat
es'
,
'publish'
];
careerProfile
:
CareerProfileModel
;
activeTab
=
''
;
isExiting
=
false
;
...
...
frontend/angular/src/app/my-career-web/career-history/career-history/publish/publish.component.html
View file @
738f6ec7
<div
class=
"position-relative"
>
<div
class=
"mc-page"
*
ngIf=
"!asChild"
>
<div
class=
"mc-page-header"
>
<div
class=
"mc-page-header-logo"
>
<img
src=
"assets/my-career-web/images/MATCHD_LOGO.jpg"
alt=
""
>
</div>
</div>
<div
class=
"mc-page-body container"
>
<ng-container
*
ngTemplateOutlet=
"publishTemplate"
></ng-container>
</div>
</div>
<ng-container
*
ngIf=
"asChild"
>
<ng-container
*
ngTemplateOutlet=
"publishTemplate"
></ng-container>
</ng-container>
<ng-template
#
publishTemplate
>
<div
class=
"position-relative"
>
<app-overlay
[
isActive
]="
isLoading
||
isSaving
"
></app-overlay>
<h4
class=
"tab-heading"
>
Your Career Profile is ready, click the preview profile button to see a preview.
</h4>
<h4
*
ngIf=
"asChild"
class=
"tab-heading"
>
Your Career Profile is ready, click the preview profile button to see a preview.
</h4>
<div
class=
"d-flex justify-content-center mt-3"
>
<div
*
ngIf=
"asChild"
class=
"d-flex justify-content-center mt-3"
>
<button
class=
"mc-btn-primary"
pButton
label=
"Preview Profile"
></button>
</div>
...
...
@@ -58,4 +80,5 @@
<div
class=
"d-flex justify-content-center mt-5"
>
<button
class=
"mc-btn-primary"
pButton
label=
"Complete"
(
click
)="
saveProfile
(
true
)"
></button>
</div>
</div>
</div>
</ng-template>
frontend/angular/src/app/my-career-web/career-history/career-history/publish/publish.component.ts
View file @
738f6ec7
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
Input
,
OnInit
}
from
'@angular/core'
;
import
{
PersonalDetailsService
}
from
'../../../services/personal-details.service'
;
import
{
CareerProfileModel
}
from
'../../../models/career-profile.model'
;
import
{
UtilsService
}
from
'../../../../oneit/services/utils.service'
;
...
...
@@ -17,6 +17,7 @@ export class PublishComponent extends BaseComponent implements OnInit {
assocs
=
[];
careerProfile
=
new
CareerProfileModel
();
@
Input
()
asChild
=
false
;
constructor
(
private
personalDetailsService
:
PersonalDetailsService
,
...
...
frontend/angular/src/app/my-career-web/dashboard/dashboard.routing.ts
View file @
738f6ec7
...
...
@@ -24,7 +24,7 @@ const routes: Routes = [
component
:
GoPremiumComponent
},
{
path
:
'
reports
'
,
path
:
'
summary-report
'
,
component
:
SummaryReportComponent
},
{
...
...
frontend/angular/src/app/my-career-web/dashboard/home/home.component.html
View file @
738f6ec7
...
...
@@ -24,20 +24,25 @@
</div>
<!-- <div class="home-body-heading">-->
<!-- Get to know yourself-->
<!-- </div>-->
<!-- <div class="home-body-extra-features" style="min-height: 240px;">-->
<!-- <div class="extra-feature">-->
<!-- <div class="feature-heading">Development Reports</div>-->
<!-- <div class="feature-content">Information about feature that gives user context as to why to upgrade.</div>-->
<!-- <div class="feature-action">View my summary report</div>-->
<!-- </div>-->
<!-- <div class="extra-feature-image" style="position: relative;">-->
<!-- <img src="assets/my-career-web/svgs/summary-report.svg" style="position: absolute; top: -54px; right: -26px;">-->
<!-- </div>-->
<!-- </div>-->
<ng-container
*
ngIf=
"careerProfile?.CompletedPercentageWP === 100 && careerProfile?.CompletedPercentageWS === 100"
>
<div
class=
"home-body-heading"
>
Get to know yourself
</div>
<div
class=
"home-body-extra-features"
style=
"min-height: 240px;"
>
<div
class=
"extra-feature"
>
<div
class=
"feature-heading"
>
Development Reports
</div>
<div
class=
"feature-content"
>
Information about feature that gives user context as to why to upgrade.
</div>
<div
class=
"feature-action"
>
View my summary report
</div>
</div>
<div
class=
"extra-feature-image"
style=
"position: relative;"
routerLink=
"/my-career-web/dashboard/summary-report"
>
<img
src=
"assets/my-career-web/svgs/summary-report.svg"
style=
"position: absolute; top: -54px; right: -26px;"
>
</div>
</div>
</ng-container>
<div
class=
"home-body-heading"
>
...
...
@@ -106,21 +111,25 @@
<div
class=
"home-mobile-body"
>
<!-- <div class="mobile-body-heading">-->
<!-- Get to know yourself-->
<!-- </div>-->
<!-- <div class="home-mobile-body-features">-->
<!-- <div class="feature">-->
<!-- <div class="feature-heading">Development Reports</div>-->
<!-- <div class="feature-content">Information about feature that gives user context as to why to upgrade.</div>-->
<!-- <div class="feature-action">Get this feature</div>-->
<!-- <div class="extra-feature-image" style="position: relative;">-->
<!-- <img src="assets/my-career-web/svgs/summary-report.svg" style="margin-top: 10px;">-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<ng-container
*
ngIf=
"careerProfile?.CompletedPercentageWP === 100 && careerProfile?.CompletedPercentageWS === 100"
>
<div
class=
"mobile-body-heading"
>
Get to know yourself
</div>
<div
class=
"home-mobile-body-features"
>
<div
class=
"feature"
>
<div
class=
"feature-heading"
>
Development Reports
</div>
<div
class=
"feature-content"
>
Information about feature that gives user context as to why to upgrade.
</div>
<div
class=
"feature-action"
>
Get this feature
</div>
<div
class=
"extra-feature-image"
style=
"position: relative;"
>
<img
src=
"assets/my-career-web/svgs/summary-report.svg"
style=
"margin-top: 10px;"
>
</div>
</div>
</div>
</ng-container>
<div
class=
"mobile-body-heading"
>
...
...
frontend/angular/src/app/my-career-web/dashboard/home/home.component.ts
View file @
738f6ec7
...
...
@@ -38,6 +38,8 @@ export class HomeComponent extends BaseComponent implements OnInit {
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
profile
=>
{
this
.
careerProfile
=
this
.
utilsService
.
cloneObject
(
profile
);
console
.
log
(
this
.
careerProfile
);
});
this
.
personalDetailsService
.
currentTab$
.
pipe
(
takeUntil
(
this
.
componentInView
))
...
...
frontend/angular/src/app/my-career-web/dashboard/left-sidebar/left-sidebar.component.html
View file @
738f6ec7
...
...
@@ -13,7 +13,7 @@
</span>
</div>
<div
class=
"sidebar-navigation-item
disabled
"
>
<div
class=
"sidebar-navigation-item
"
routerLink=
"/my-career-web/career-history/update
"
>
<span
class=
"sidebar-navigation-item-icon"
>
<i
class=
"fa fa-lock"
></i>
</span>
...
...
@@ -22,7 +22,7 @@
</span>
</div>
<div
class=
"sidebar-navigation-item"
routerLink=
"/my-career-web/dashboard/reports"
routerLinkActive=
"active"
>
<div
class=
"sidebar-navigation-item"
>
<span
class=
"sidebar-navigation-item-icon"
>
<i
class=
"fa fa-clipboard"
></i>
</span>
...
...
frontend/angular/src/app/my-career-web/models/career-profile.model.ts
View file @
738f6ec7
...
...
@@ -14,6 +14,8 @@ export class CareerProfileModel extends BaseModel {
Candidate
=
new
CandidateModel
();
CompletedPercentage
:
number
;
CompletedPercentageCH
:
number
;
CompletedPercentageWP
:
number
;
CompletedPercentageWS
:
number
;
PersonalStatement
:
string
;
Achievements
:
string
;
IsGoogleConnected
:
boolean
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment