From 02cc0991046e20402bd763c3e1444fb2c5ccd17e Mon Sep 17 00:00:00 2001 From: mahan Date: Mon, 5 Jan 2026 16:45:59 +0330 Subject: [PATCH 1/4] feat: update time calculation to include minutes in section time setting --- .../Commands/SetTimeProject/SetTimeProjectCommandHandler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Commands/SetTimeProject/SetTimeProjectCommandHandler.cs b/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Commands/SetTimeProject/SetTimeProjectCommandHandler.cs index 2ee2ea7d..fdbadc28 100644 --- a/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Commands/SetTimeProject/SetTimeProjectCommandHandler.cs +++ b/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Commands/SetTimeProject/SetTimeProjectCommandHandler.cs @@ -352,7 +352,8 @@ public class SetTimeProjectCommandHandler : IBaseCommandHandler Date: Mon, 5 Jan 2026 17:52:12 +0330 Subject: [PATCH 2/4] feat: improve project board sorting by current user and task status --- .../ProjectBoardListQueryHandler.cs | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Queries/ProjectBoardList/ProjectBoardListQueryHandler.cs b/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Queries/ProjectBoardList/ProjectBoardListQueryHandler.cs index 0cfd9bac..e6502494 100644 --- a/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Queries/ProjectBoardList/ProjectBoardListQueryHandler.cs +++ b/ProgramManager/src/Application/GozareshgirProgramManager.Application/Modules/Projects/Queries/ProjectBoardList/ProjectBoardListQueryHandler.cs @@ -53,7 +53,8 @@ public class ProjectBoardListQueryHandler : IBaseQueryHandler x.Id, x => x.FullName, cancellationToken); - var result = data + var result = data .OrderByDescending(x => x.CurrentAssignedUserId == currentUserId) + .ThenBy(x => GetStatusOrder(x.Status)) .Select(x => { // محاسبه یکبار برای هر Activity و Cache کردن نتیجه @@ -95,9 +96,6 @@ public class ProjectBoardListQueryHandler : IBaseQueryHandler h.IsCurrentUser).ToList(); - return new ProjectBoardListResponse() { Id = x.Id, @@ -116,19 +114,21 @@ public class ProjectBoardListQueryHandler : IBaseQueryHandler - { - // اگر AssignedUser null نباشد، بررسی کن که برابر current user هست یا نه - if (r.AssignedUser != null) - { - return users.FirstOrDefault(u => u.Value == r.AssignedUser).Key == currentUserId; - } - // اگر AssignedUser null بود، از OriginalUser بررسی کن - return users.FirstOrDefault(u => u.Value == r.OriginalUser).Key == currentUserId; - }) - .ToList(); + }).ToList(); return OperationResult>.Success(result); } + + private static int GetStatusOrder(TaskSectionStatus status) + { + return status switch + { + TaskSectionStatus.InProgress => 0, + TaskSectionStatus.Incomplete => 1, + TaskSectionStatus.NotAssigned => 2, + TaskSectionStatus.ReadyToStart => 2, + TaskSectionStatus.PendingForCompletion => 3, + _ => 99 + }; + } } \ No newline at end of file From 9360dcad710a1998ab62100a58322b58916f2323 Mon Sep 17 00:00:00 2001 From: mahan Date: Mon, 5 Jan 2026 19:14:11 +0330 Subject: [PATCH 3/4] add UserSecretsId to ServiceHost.csproj --- ServiceHost/ServiceHost.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/ServiceHost/ServiceHost.csproj b/ServiceHost/ServiceHost.csproj index 8eb8a743..a6eb425b 100644 --- a/ServiceHost/ServiceHost.csproj +++ b/ServiceHost/ServiceHost.csproj @@ -10,6 +10,7 @@ true + a6049acf-0286-4947-983a-761d06d65f36