Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
776b6e4
console Error Fix
AnjuJose011 Nov 20, 2024
4fa9c0a
TD-4934: Rewording of General Users introduction sentence
ArunimaGeorge Nov 28, 2024
d3853cb
TD-4964: Rewording of list of additional required information
ArunimaGeorge Nov 28, 2024
037d308
TD-4967: Rewording of "Enter your work email address"
ArunimaGeorge Nov 28, 2024
4717e7c
TD-4968: Reword statement "Ideally you should provide a work email ad…
ArunimaGeorge Nov 28, 2024
6f900d6
Merge pull request #764 from TechnologyEnhancedLearning/Develop/Featu…
ArunimaGeorge Nov 28, 2024
3a4023e
TD-5001: Word "Support" placement
ArunimaGeorge Nov 29, 2024
a9383f5
TD-5237: After requesting access to restricted catalogue, you can sti…
Swapnamol Jan 27, 2025
8a2549e
TD-5048: Issue showing multiple entries for service updates/releases …
Swapnamol Jan 29, 2025
942f5d7
Merge pull request #954 from TechnologyEnhancedLearning/RC
AnjuJose011 Jan 31, 2025
a2fb42c
fixes
AnjuJose011 Jan 31, 2025
bc5d15d
Intial commit-Fix
AnjuJose011 Feb 2, 2025
32ce7c4
fix on appsetting
AnjuJose011 Feb 2, 2025
883b70c
TD-5300: Landing Page - Video player buttons focus right to left
Swapnamol Feb 3, 2025
1a550e8
Merge pull request #955 from TechnologyEnhancedLearning/TD-5304-Notif…
AnjuJose011 Feb 3, 2025
2601fdf
Merge pull request #957 from TechnologyEnhancedLearning/Develop/Fixes…
swapnamol-abraham Feb 3, 2025
c45072a
fixes
AnjuJose011 Feb 4, 2025
489cef3
TD-5299: Removed focus on visually hidden content
ArunimaGeorge Feb 4, 2025
271d3f7
TD-5298: Header Page - Menu button receives focus but is not interact…
Swapnamol Feb 4, 2025
58a801a
Merge pull request #956 from TechnologyEnhancedLearning/TD-4794-ViewA…
AnjuJose011 Feb 4, 2025
958953e
Merge pull request #959 from TechnologyEnhancedLearning/Develop/Fixes…
ArunimaGeorge Feb 4, 2025
7e73523
Merge pull request #960 from TechnologyEnhancedLearning/Develop/Fixes…
swapnamol-abraham Feb 4, 2025
f2cc66d
Merge pull request #952 from TechnologyEnhancedLearning/Develop/Fixes…
swapnamol-abraham Feb 4, 2025
5a319b2
Merge pull request #945 from TechnologyEnhancedLearning/Develop/Fixes…
swapnamol-abraham Feb 4, 2025
4dc4f56
Merge pull request #748 from TechnologyEnhancedLearning/fix-TD-4465-C…
AnjuJose011 Feb 5, 2025
0a927c1
TD-5303: Restructured Acceptable use policy page
ArunimaGeorge Feb 7, 2025
af8b985
Merge pull request #762 from TechnologyEnhancedLearning/Develop/Featu…
ArunimaGeorge Feb 17, 2025
5b7c8ac
Merge pull request #763 from TechnologyEnhancedLearning/Develop/Featu…
ArunimaGeorge Feb 17, 2025
048685e
Merge pull request #765 from TechnologyEnhancedLearning/Develop/Featu…
ArunimaGeorge Feb 17, 2025
6036852
Merge pull request #766 from TechnologyEnhancedLearning/Develop/Featu…
ArunimaGeorge Feb 17, 2025
a5d5d54
Changes from User-Registration-Journey to Dahila
ArunimaGeorge Feb 17, 2025
e45cd2b
Merge pull request #988 from TechnologyEnhancedLearning/Test-Dahila
ArunimaGeorge Feb 17, 2025
242d65e
TD-5348 azure file download service
OluwatobiAwe Feb 17, 2025
040ef8d
TD-5301: Select Your Grade Page (Registration Process) - Error messag…
Swapnamol Feb 17, 2025
a4f1eca
Merge pull request #991 from TechnologyEnhancedLearning/Develop/Fixes…
OluwatobiAwe Feb 17, 2025
7eed17f
Merge pull request #968 from TechnologyEnhancedLearning/Develop/Fixes…
ArunimaGeorge Feb 18, 2025
805820f
Merge pull request #958 from TechnologyEnhancedLearning/TD-5302-Conta…
AnjuJose011 Feb 18, 2025
5480e91
Merge branch 'release-v1.2.0-Dahila' into Develop/Fixes/TD-5301-Selec…
swapnamol-abraham Feb 18, 2025
6dd48c9
Merge pull request #990 from TechnologyEnhancedLearning/Develop/Fixes…
swapnamol-abraham Feb 18, 2025
4427ea0
Fixed the formatter issues
Swapnamol Feb 18, 2025
c07874e
Merge pull request #995 from TechnologyEnhancedLearning/release-v1.2.…
AnjuJose011 Feb 20, 2025
61cc7ff
Td-5048: Issue showing multiple entries for service updates/releases …
Swapnamol Feb 24, 2025
a073246
Merge pull request #1000 from TechnologyEnhancedLearning/Develop/Fixe…
swapnamol-abraham Feb 24, 2025
dffaa67
Fixe for the .net core runtime issue
Swapnamol Feb 26, 2025
4c6cab0
fixes
AnjuJose011 Feb 26, 2025
34705b1
Merge pull request #1006 from TechnologyEnhancedLearning/TD-5304-Anch…
AnjuJose011 Feb 27, 2025
7e51396
TD-4967: Rewording on email verification page.
ArunimaGeorge Feb 27, 2025
2c44e04
fixes
AnjuJose011 Feb 27, 2025
d913f48
Merge pull request #1009 from TechnologyEnhancedLearning/TD-5304-Fix
AnjuJose011 Feb 27, 2025
63f2f9a
Merge pull request #1008 from TechnologyEnhancedLearning/Develop/Fixe…
AnjuJose011 Feb 27, 2025
cca8e10
TD-5304-Fix
AnjuJose011 Feb 27, 2025
f38fc15
TD-5001: Word support placement
ArunimaGeorge Feb 28, 2025
607b531
Merge pull request #1011 from TechnologyEnhancedLearning/Develop/Fixe…
ArunimaGeorge Feb 28, 2025
cfd4772
fixes
AnjuJose011 Mar 3, 2025
30b7e00
Merge pull request #1016 from TechnologyEnhancedLearning/TD-5001-Upda…
AnjuJose011 Mar 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions AdminUI/LearningHub.Nhs.AdminUI/Controllers/RoadmapController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public async Task<IActionResult> AddUpdate(UpdateViewModel update)
RoadmapTypeId = update.RoadmapTypeId,
};
var roadmapId = await this.roadmapService.AddRoadmap(roadmap);
return this.RedirectToAction("EditUpdate", new { id = roadmapId });
return this.RedirectToAction("Details", new { id = roadmapId });
}

/// <summary>
Expand Down Expand Up @@ -160,7 +160,7 @@ public async Task<IActionResult> EditUpdate(UpdateViewModel update)
Id = update.Id,
};
await this.roadmapService.UpdateRoadmap(roadmap);
return this.RedirectToAction("EditUpdate", new { roadmap.Id });
return this.RedirectToAction("Details", new { roadmap.Id });
}

/// <summary>
Expand Down Expand Up @@ -202,6 +202,18 @@ public async Task<IActionResult> Updates(string searchTerm = null)
return this.View(model);
}

/// <summary>
/// The Details.
/// </summary>
/// <param name="id">The id<see cref="int"/>.</param>
/// <returns>The <see cref="Task{IActionResult}"/>.</returns>
[HttpGet]
public async Task<IActionResult> Details(int id)
{
var roadmap = await this.roadmapService.GetIdAsync(id);
return this.View(roadmap);
}

/// <summary>
/// The UploadFile.
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions AdminUI/LearningHub.Nhs.AdminUI/Interfaces/IRoadmapService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using LearningHub.Nhs.Models.Entities;
using LearningHub.Nhs.Models.RoadMap;

/// <summary>
/// Defines the <see cref="IRoadmapService" />.
Expand Down Expand Up @@ -36,6 +37,13 @@ public interface IRoadmapService
/// <returns>The <see cref="List{Roadmap}"/>.</returns>
Task<List<Roadmap>> GetUpdates();

/// <summary>
/// The GetIdAsync.
/// </summary>
/// <param name="id">The id<see cref="int"/>.</param>
/// <returns>The <see cref="Task{Roadmap}"/>.</returns>
Task<RoadMapViewModel> GetIdAsync(int id);

/// <summary>
/// The UpdateRoadmap.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<PackageReference Include="HtmlSanitizer" Version="6.0.453" />
<PackageReference Include="IdentityModel" Version="4.6.0" />
<PackageReference Include="LearningHub.Nhs.Caching" Version="2.0.2" />
<PackageReference Include="LearningHub.Nhs.Models" Version="3.0.46" />
<PackageReference Include="LearningHub.Nhs.Models" Version="3.0.47" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.19.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.36" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.36" />
Expand Down
29 changes: 29 additions & 0 deletions AdminUI/LearningHub.Nhs.AdminUI/Services/RoadmapService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Threading.Tasks;
using LearningHub.Nhs.AdminUI.Interfaces;
using LearningHub.Nhs.Models.Entities;
using LearningHub.Nhs.Models.RoadMap;
using Newtonsoft.Json;

/// <summary>
Expand Down Expand Up @@ -134,6 +135,34 @@ public async Task<List<Roadmap>> GetUpdates()
return viewmodel;
}

/// <summary>
/// The GetIdAsync.
/// </summary>
/// <param name="id">The id<see cref="int"/>.</param>
/// <returns>The <see cref="Task{Roadmap}"/>.</returns>
public async Task<RoadMapViewModel> GetIdAsync(int id)
{
RoadMapViewModel viewmodel = null;

var client = await this.LearningHubHttpClient.GetClientAsync();
var request = $"Roadmap/GetRoadMapsById/{id}";
var response = await client.GetAsync(request).ConfigureAwait(false);

if (response.IsSuccessStatusCode)
{
var result = response.Content.ReadAsStringAsync().Result;
viewmodel = JsonConvert.DeserializeObject<RoadMapViewModel>(result);
}
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized
||
response.StatusCode == System.Net.HttpStatusCode.Forbidden)
{
throw new Exception("AccessDenied");
}

return viewmodel;
}

/// <summary>
/// The UpdateRoadmap.
/// </summary>
Expand Down
Loading
Loading