From 05c04b1b96a71d0daf4dd7b7e43b646fef8af80d Mon Sep 17 00:00:00 2001 From: VS Date: Wed, 29 Jan 2025 08:58:29 +0000 Subject: [PATCH] message wording changes --- .../Participants/Queries/GetParticipantSummary.cs | 1 - .../Participants/Components/CaseSummary.razor.cs | 14 +++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Application/Features/Participants/Queries/GetParticipantSummary.cs b/src/Application/Features/Participants/Queries/GetParticipantSummary.cs index 867008f4..ef77fab3 100644 --- a/src/Application/Features/Participants/Queries/GetParticipantSummary.cs +++ b/src/Application/Features/Participants/Queries/GetParticipantSummary.cs @@ -66,7 +66,6 @@ public async Task> Handle(Query request, Cancellat summary.IsRightToWorkRequired = rtwSettings.NationalitiesExempted.Any(s => s.Equals(summary.Nationality!, StringComparison.OrdinalIgnoreCase)) == false; - //Should it retrieve for logged in User(Custody SW or Community SW)? summary.Pris = await unitOfWork.DbContext.PRIs .Where(pa => pa.ParticipantId == request.ParticipantId) .ProjectTo(mapper.ConfigurationProvider) diff --git a/src/Server.UI/Pages/Participants/Components/CaseSummary.razor.cs b/src/Server.UI/Pages/Participants/Components/CaseSummary.razor.cs index 3fb2fb18..c139cde1 100644 --- a/src/Server.UI/Pages/Participants/Components/CaseSummary.razor.cs +++ b/src/Server.UI/Pages/Participants/Components/CaseSummary.razor.cs @@ -310,19 +310,19 @@ void SetPriDueWarning() { if(_latestPRI is null) { - string _noPriInfo = ParticipantSummaryDto.LocationType switch + _noPriInfo = ParticipantSummaryDto.LocationType switch { - { IsCustody: true } => "No PRI has been created.", - { IsCommunity: true } => "Pre-Release Inventory is not available in the community.", - _ => string.Empty + { IsCustody: true, IsMapped: true} => "No PRI has been created.", + { IsCommunity: true } => "Not available in the community.", + _ => "Not available in this location." }; } else if (_latestPRI.ActualReleaseDate.HasValue) { - DateOnly _priTTGDueDate = _latestPRI.ActualReleaseDate.Value.AddDays(28); + DateOnly _priTTGDueDate = _latestPRI.ActualReleaseDate.Value.AddMonths(1); _priDueInfo = _priTTGDueDate.Humanize(); - _priDueTooltipText = String.Format("Due {0}", _priTTGDueDate); + _priDueTooltipText = String.Format("Through the Gate (TTG) Due {0}", _priTTGDueDate); int _priTTGDueInDays = _priTTGDueDate.DayNumber - DateOnly.FromDateTime(DateTime.UtcNow.Date).DayNumber; switch (_priTTGDueInDays) @@ -339,7 +339,7 @@ void SetPriDueWarning() } else { - _priDueInfo = "Actual Release date not provided yet.[Or in this case, should we calculate based on Expected Release date]"; + _priDueInfo = "No Actual Release date provided."; } }