Skip to content

Commit 4886991

Browse files
Merge pull request #73 from rahulramakrishnan3/KB-release-3.1.2
Kb release 3.1.2
2 parents a5c1ebb + 32886c7 commit 4886991

24 files changed

+1161
-195
lines changed

forms.json

Lines changed: 691 additions & 0 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"cordova-plugin-screen-orientation": "^3.0.3",
6464
"cordova-sqlite-storage": "^6.1.0",
6565
"es6-promise-plugin": "^4.2.2",
66+
"generic-chart": "^1.0.3",
6667
"ionic-plugin-deeplinks": "^1.0.24",
6768
"jwt-decode": "^3.1.2",
6869
"lodash-es": "^4.17.21",
@@ -72,6 +73,7 @@
7273
"papaparse": "^5.4.1",
7374
"rxjs": "~6.6.0",
7475
"rxjs-compat": "^6.6.7",
76+
"sl-generic-table": "^1.1.6",
7577
"tslib": "^2.2.0",
7678
"yargs": "^17.7.2",
7779
"zone.js": "~0.11.4"

src/app/core/constants/formConstant.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ export const MANAGERS_CREATE_SESSION_FORM: IFORM = {
5050
"sub_type": "managersSessionForm",
5151
}
5252

53+
export const BIG_NUMBER_DASHBOARD_FORM: IFORM = {
54+
"type": "bignumberDashboard",
55+
"sub_type": "bignumberDashboardForm"
56+
}
5357
export const DASHBOARD: IFORM = {
5458
"type": "dashboard",
5559
"sub_type": "dashboardForm",

src/app/core/constants/urlConstants.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ export const urlConstants = {
6464
CHANGE_PASSWORD: "/user/v1/account/changePassword",
6565
UPDATE_LANGUAGE: "/user/v1/user/setLanguagePreference",
6666
LOGIN_ACTIVITY: "/user/v1/account/sessions",
67-
ENTITY_LIST: "/mentoring/v1/entity/list?"
67+
ENTITY_LIST: "/mentoring/v1/entity/list?",
68+
DASHBOARD_REPORT_FILTER: "/mentoring/v1/reports/filterList?",
69+
DASHBOARD_REPORT_DATA: "/mentoring/v1/reports/reportData?"
6870
}
6971
};

src/app/core/services/profile/profile.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ export class ProfileService {
176176
var roles = userDetails.user_roles.map(function(item) {
177177
return item['title'];
178178
});
179+
this.isMentor = roles.includes('mentor')?true:false;
180+
if (!roles.includes("mentee")) {
181+
roles.unshift("mentee");
182+
}
179183
this.isMentor = roles.map(s => s.toLowerCase()).includes('mentor')?true:false;
180184
return roles
181185
}

src/app/modules/private/private.page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div class="usr-div">
1515
<ion-label class="username"><strong>{{user?.name}}</strong></ion-label>
1616
<div class="user-role-labels">
17-
<ion-label *ngIf="userRoles">{{ userRoles[0] | snakeCaseToUpperCase}}
17+
<ion-label *ngIf="userRoles">{{ isMentor ? ('MENTOR' | translate): ('MENTEE' | translate)}}
1818
</ion-label>
1919
<ion-label class="view-roles" (click)="viewRoles()">{{"VIEW_ROLES" | translate}}</ion-label>
2020
</div>

src/app/modules/private/private.page.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export class PrivatePage implements OnInit {
118118
this.db.init();
119119
setTimeout(async ()=>{
120120
this.userRoles = await this.localStorage.getLocalData(localKeys.USER_ROLES);
121+
this.isMentor = this.userRoles.includes('mentor')?true:false;
121122
},1000);
122123
setTimeout(() => {
123124
document.querySelector('ion-menu')?.shadowRoot?.querySelector('.menu-inner')?.setAttribute('style', 'border-radius:8px 8px 0px 0px');

src/app/pages/home-search/home-search.page.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@
22
<div class="d-flex flex-justify-center my-8">
33
<ion-searchbar class="search-bar" [debounce]="1000" placeholder="{{'HOME_SEARCH_PLACEHOLDER' | translate}}"
44
#event [value]="searchText"
5-
(ionChange)="search(event.value)"
5+
(keydown.enter)="search(event.value)"
66
type="search"
77
inputmode="search"
88
cdkOverlayOrigin #trigger="cdkOverlayOrigin" (click)="isOpen = !isOpen">
99
</ion-searchbar>
1010
</div>
11-
<div [ngClass]="{'information_circle_is_mobile': isMobile}" style="text-align: center;">
12-
<ion-icon style="vertical-align: middle;" name="information-circle-outline"></ion-icon>
13-
{{"ENTER_MIN_CHARACTER" | translate}}
14-
</div>
1511
</app-page-header>
1612
<ion-toolbar>
1713
<ng-template

src/app/pages/home-search/home-search.page.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,4 @@ ion-content {
9595
background-color: var(--ion-color-primary);
9696
color: white;
9797
}
98-
}
99-
.information_circle_is_mobile{
100-
font-size: x-small;
101-
}
98+
}

0 commit comments

Comments
 (0)