From 9ab241ed77e98a98eef17b44bdeecf2778d06f2e Mon Sep 17 00:00:00 2001 From: James Kolpack Date: Sun, 25 Jan 2026 21:40:04 -0500 Subject: [PATCH] Update MeetingSchedule and related components for improved UI and data handling This commit modifies the MeetingSchedule component to change the page header title to "Meeting Scheduler Planner" for better clarity. Additionally, it refines the MeetingHistoryDetailDialog by removing unnecessary UI elements to streamline the display of meeting history details. In the Printout component, null checks are added to ensure safe access to LevelOfEffort properties, enhancing data integrity. The Home component's title is also updated to "Meeting Schedule Planner" for consistency across the application. These changes collectively enhance the user experience and maintain data accuracy in the meeting scheduling feature. --- WebApp/Components/Features/MeetingSchedule/Index.razor | 2 +- .../MeetingSchedule/MeetingHistoryDetailDialog.razor | 10 ---------- WebApp/Components/Features/Teams/Printout.razor | 6 +++--- WebApp/Components/Pages/Home.razor | 2 +- 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/WebApp/Components/Features/MeetingSchedule/Index.razor b/WebApp/Components/Features/MeetingSchedule/Index.razor index 764d875..66ab8fa 100644 --- a/WebApp/Components/Features/MeetingSchedule/Index.razor +++ b/WebApp/Components/Features/MeetingSchedule/Index.razor @@ -18,7 +18,7 @@ @inject IMeetingScheduleClipboardService ClipboardFormatService @inject LocalStorageService LocalStorage - + - - - - Date: @_meetingHistory.MeetingDate.ToString("MM/dd/yyyy") - - - - - - Teams That Met (@_meetingHistory.Teams.Count) diff --git a/WebApp/Components/Features/Teams/Printout.razor b/WebApp/Components/Features/Teams/Printout.razor index 6d3eea2..7c4c84d 100644 --- a/WebApp/Components/Features/Teams/Printout.razor +++ b/WebApp/Components/Features/Teams/Printout.razor @@ -1,4 +1,4 @@ -@page "/teams/printout" +@page "/teams/printout" @attribute [Authorize] @using Microsoft.EntityFrameworkCore @using WebApp.Models @@ -110,7 +110,7 @@ else @context.Name - @context.Teams.Sum(e => e.Event.LevelOfEffort) + @context.Teams.Sum(e => e.Event?.LevelOfEffort ?? 0) @{ var teams = context.Teams .OrderBy(e => @@ -169,7 +169,7 @@ else @context.Name @AppIcons.GetOrdinal(context.Grade), @context.TsaYear - @context.Teams.Sum(e => e.Event.LevelOfEffort) + @context.Teams.Sum(e => e.Event?.LevelOfEffort ?? 0) @if (!context.Teams.Select(e => e.Event).Any(re => re.OnSiteActivity)) { No On-Site Activity diff --git a/WebApp/Components/Pages/Home.razor b/WebApp/Components/Pages/Home.razor index b6fcf2e..91256dd 100644 --- a/WebApp/Components/Pages/Home.razor +++ b/WebApp/Components/Pages/Home.razor @@ -123,7 +123,7 @@ else