Enhance event definitions and parsing logic for new event types

Added new event definitions for "Meet the Candidates", "Chapter Officer Meeting", "Voting Delegate Meeting", and "Social Gathering". Updated the EventOccurrenceParser to handle these new event types and modified related services and views to accommodate the changes. Improved test coverage for the new event definitions and ensured proper parsing and display in the calendar components.
This commit is contained in:
2025-12-27 19:32:54 -05:00
parent cd34be1f82
commit c462ed4561
10 changed files with 198 additions and 41 deletions
@@ -239,8 +239,14 @@
{
if (eventDefinition == EventDefinition.GeneralSchedule)
return "General Schedule";
if (eventDefinition == EventDefinition.VotingDelegates)
return "Voting Delegates";
if (eventDefinition == EventDefinition.MeetTheCandidates)
return "Meet the Candidates";
if (eventDefinition == EventDefinition.ChapterOfficerMeeting)
return "Chapter Officer Meeting";
if (eventDefinition == EventDefinition.VotingDelegateMeeting)
return "Voting Delegate Meeting";
if (eventDefinition == EventDefinition.SocialGathering)
return "Social Gathering";
return eventDefinition.Name;
}
}
@@ -8,7 +8,7 @@
<PageHeader Title="Event Calendar" Description="View competition schedules and event occurrences">
<ActionButtons>
<MudButton StartIcon="@Icons.Material.Filled.ImportExport" Href="calendar/event-occurrences/import" Variant="Variant.Filled" Color="Color.Primary">Import</MudButton>
<MudButton StartIcon="@Icons.Material.Filled.ImportExport" Href="calendar/event-occurrences/import" Variant="Variant.Filled" Color="Color.Primary">Import</MudButton>
</ActionButtons>
</PageHeader>