From dbc9e6511d6aca6e7ae0daf5c12bee527ecf7654 Mon Sep 17 00:00:00 2001 From: Tobi Awe Date: Mon, 5 Jan 2026 13:35:57 +0000 Subject: [PATCH] Course Casing at the API and report notification upate --- .../Scripts/vuesrc/notification/notifications.vue | 2 ++ .../Services/DatabricksService.cs | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/LearningHub.Nhs.WebUI/Scripts/vuesrc/notification/notifications.vue b/LearningHub.Nhs.WebUI/Scripts/vuesrc/notification/notifications.vue index 30adc00e..2df32d39 100644 --- a/LearningHub.Nhs.WebUI/Scripts/vuesrc/notification/notifications.vue +++ b/LearningHub.Nhs.WebUI/Scripts/vuesrc/notification/notifications.vue @@ -180,6 +180,8 @@ return [{ text: 'Action required', className: 'fa-solid fa-triangle-exclamation text-warning' }]; case NotificationType.AccessRequest: return [{ text: 'Access request', className: 'fas fa-lock-alt text-dark pt-1' }]; + case NotificationType.ReportProcessed: + return [{ text: 'Report processed', className: 'fa-solid fa-circle-check text-success' }]; default: return [{ text: 'unknown', className: '' }]; } diff --git a/OpenAPI/LearningHub.Nhs.OpenApi.Services/Services/DatabricksService.cs b/OpenAPI/LearningHub.Nhs.OpenApi.Services/Services/DatabricksService.cs index 17c3325b..922c739e 100644 --- a/OpenAPI/LearningHub.Nhs.OpenApi.Services/Services/DatabricksService.cs +++ b/OpenAPI/LearningHub.Nhs.OpenApi.Services/Services/DatabricksService.cs @@ -400,7 +400,7 @@ public async Task UpdateDatabricksReport(int userId, DatabricksUpdateRequest dat if (string.IsNullOrWhiteSpace(reportHistory.CourseFilter)) { - firstCourse = "all courses"; + firstCourse = "All courses"; } else { @@ -422,7 +422,7 @@ public async Task UpdateDatabricksReport(int userId, DatabricksUpdateRequest dat try { - var notificationId = await this.notificationService.CreateReportNotificationAsync(userId, "course progress", firstCourse); + var notificationId = await this.notificationService.CreateReportNotificationAsync(userId, "Course progress", firstCourse); if (notificationId > 0) { @@ -433,7 +433,7 @@ public async Task UpdateDatabricksReport(int userId, DatabricksUpdateRequest dat new ReportSucessEmailModel { UserFirstName = user.FirstName, - ReportName = "course progress", + ReportName = "Course progress", ReportTitle = firstCourse, ReportUrl = $"{this.learningHubConfig.Value.BaseUrl.TrimEnd('/')}/{this.learningHubConfig.Value.ReportUrl.TrimStart('/')}" });