From 6e2834f2beadea4ad65db07951cb2f56aa311726 Mon Sep 17 00:00:00 2001 From: James Kolpack Date: Wed, 21 Jan 2026 21:36:39 -0500 Subject: [PATCH] Refactor MeetingSchedule component to enhance time slot selection UI This commit updates the MeetingSchedule component by replacing the numeric field for time slot selection with a more user-friendly interface using MudIconButton components for incrementing and decrementing time slots. The new design improves usability by providing clear visual controls for adjusting the number of time slots, while maintaining the existing functionality of tracking time slot counts. This enhancement contributes to a better user experience in managing meeting schedules. --- .../Features/MeetingSchedule/Index.razor | 43 +++++++++++++++---- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/WebApp/Components/Features/MeetingSchedule/Index.razor b/WebApp/Components/Features/MeetingSchedule/Index.razor index 4b87c5d..764d875 100644 --- a/WebApp/Components/Features/MeetingSchedule/Index.razor +++ b/WebApp/Components/Features/MeetingSchedule/Index.razor @@ -51,14 +51,25 @@ Time Slots - - + + + + @_parameters.TimeSlots + + + @@ -207,6 +218,22 @@ await Task.CompletedTask; } + private async Task IncrementTimeSlots() + { + if (_parameters.TimeSlots < 4) + { + await OnTimeSlotCountChanged(_parameters.TimeSlots + 1); + } + } + + private async Task DecrementTimeSlots() + { + if (_parameters.TimeSlots > 1) + { + await OnTimeSlotCountChanged(_parameters.TimeSlots - 1); + } + } + private void OnExtendedTeamsChanged(IEnumerable teams) { _extendedTeams = teams;