diff --git a/library/ws-widget/collection/src/lib/_common/connection-hover-card/connection-hover.servive.ts b/library/ws-widget/collection/src/lib/_common/connection-hover-card/connection-hover.servive.ts index 6aaa741fb..3583154c0 100755 --- a/library/ws-widget/collection/src/lib/_common/connection-hover-card/connection-hover.servive.ts +++ b/library/ws-widget/collection/src/lib/_common/connection-hover-card/connection-hover.servive.ts @@ -10,7 +10,7 @@ import _ from 'lodash' const API_END_POINTS = { // getUserdetailsV2FromRegistry: '/apis/protected/v8/user/profileRegistry/getUserRegistryByUser', - getUserdetailsV2FromRegistry: '/apis/proxies/v8/api/user/v5/read', + getUserdetailsV2FromRegistry: '/apis/proxies/v8/api/user/v2/read', } @Injectable({ diff --git a/library/ws-widget/collection/src/lib/_common/content-progress/content-progress.component.scss b/library/ws-widget/collection/src/lib/_common/content-progress/content-progress.component.scss index 78aaf0f37..940980688 100644 --- a/library/ws-widget/collection/src/lib/_common/content-progress/content-progress.component.scss +++ b/library/ws-widget/collection/src/lib/_common/content-progress/content-progress.component.scss @@ -12,5 +12,5 @@ } ::ng-deep.theme-igot.day-mode .mat-progress-bar-buffer { - background-color: #EDEDED; + background-color: #EDEDED !important; } diff --git a/library/ws-widget/collection/src/lib/_services/widget-content.model.ts b/library/ws-widget/collection/src/lib/_services/widget-content.model.ts index 47af8c1ed..125f68fbe 100644 --- a/library/ws-widget/collection/src/lib/_services/widget-content.model.ts +++ b/library/ws-widget/collection/src/lib/_services/widget-content.model.ts @@ -19,7 +19,8 @@ export namespace NsContent { appIcon: string artifactUrl: string averageRating?: any - batches: any + // this will be used to content form enrollment user list + batch?: any body?: string certificationList?: IRelatedContentMeta[] certificationStatus?: TCertificationStatus @@ -346,6 +347,7 @@ export namespace NsContent { MTF_QUESTION = 'MTF Question', MULTIPLE_CHOICE_QUESTION = 'Multiple Choice Question', SINGLE_CHOICE_QUESTION = 'Single Choice Question', + MANDATORY_COURSE_GOAL = 'Mandatory Course Goal', // following will not be available soon /** * @deprecated The type should not be used diff --git a/library/ws-widget/collection/src/lib/_services/widget-content.service.ts b/library/ws-widget/collection/src/lib/_services/widget-content.service.ts index bcbbee696..344174dda 100644 --- a/library/ws-widget/collection/src/lib/_services/widget-content.service.ts +++ b/library/ws-widget/collection/src/lib/_services/widget-content.service.ts @@ -267,8 +267,9 @@ export class WidgetContentService { return content } if ( - content.primaryCategory === NsContent.EPrimaryCategory.PROGRAM && - !(content.artifactUrl && content.artifactUrl.length) + (content.primaryCategory === NsContent.EPrimaryCategory.PROGRAM && + !(content.artifactUrl && content.artifactUrl.length)) || + content.primaryCategory === NsContent.EPrimaryCategory.MANDATORY_COURSE_GOAL ) { const child = content.children[0] return this.getFirstChildInHierarchy(child) diff --git a/library/ws-widget/collection/src/lib/card-content/card-content.component.html b/library/ws-widget/collection/src/lib/card-content/card-content.component.html index 8711d537c..cb338f47a 100644 --- a/library/ws-widget/collection/src/lib/card-content/card-content.component.html +++ b/library/ws-widget/collection/src/lib/card-content/card-content.component.html @@ -676,6 +676,184 @@

Reply

+ + + +
+ +
+ Newly Added +
+ + +
+ +
+ video_library + + + +
+ +
+ {{ widgetData.content.name }} +
+
+ {{ widgetData.content.description | pipeHtmlTagRemoval }} + + + +
+
+ Deadline : {{ widgetData?.content?.batch?.endDate | date: "d MMM yyyy" }} +
+
+
+ + + + +
+
+ + {{ widgetData.content.duration | pipeDurationTransform: 'hms' }} +
+ +
+

100%

+
+
+

{{ widgetData.content?.completionPercentage }} %

+ +
+ + +
+ + +
+ + +
+
+ + + + + + + + + +
+ + +
+

Reason

+ +
+

+ {{ widgetData.content.reason }} +

+
+ + + + + + + + + + +
+ +
+
+ +
+ + + +
+ + +
+ +
+ + + + Reply
+
+ End date : {{ widgetData?.batch?.end | date: "MMM yyyy" }} +
+
+

Deadline - {{widgetData.content.batch?.endDate | date: "d MMM yyyy"}}

+