8183c0200d
This commit introduces a new SchoolLevel enum and updates the EventOccurrenceParser to filter event occurrences based on the specified school level (Middle School or High School). The EventOccurrenceParseResult and EventOccurrenceParserResult classes have been updated to track skipped section headers and counts for both school levels. Additionally, the EventOccurrenceParserService has been modified to read the school level from configuration, and the UI has been updated to allow users to select the school level for event imports. This enhancement improves the accuracy of event parsing and provides better user feedback on skipped occurrences.
45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using Core.Models;
|
|
|
|
namespace WebApp.Models;
|
|
|
|
/// <summary>
|
|
/// Configuration for chapter-specific information
|
|
/// </summary>
|
|
public class ChapterSettings
|
|
{
|
|
/// <summary>
|
|
/// Full chapter name (e.g., "Your Chapter Name")
|
|
/// </summary>
|
|
public string Name { get; set; } = "Your Chapter Name";
|
|
|
|
/// <summary>
|
|
/// Short chapter name abbreviation (e.g., "YCN")
|
|
/// </summary>
|
|
public string ShortName { get; set; } = "YCN";
|
|
|
|
/// <summary>
|
|
/// National chapter ID (4 digits, e.g., "0000")
|
|
/// </summary>
|
|
public string NationalId { get; set; } = "0000";
|
|
|
|
/// <summary>
|
|
/// State chapter ID (5 digits, e.g., "00000")
|
|
/// </summary>
|
|
public string StateId { get; set; } = "00000";
|
|
|
|
/// <summary>
|
|
/// Regional chapter ID (5 digits, e.g., "00000")
|
|
/// </summary>
|
|
public string RegionalId { get; set; } = "00000";
|
|
|
|
/// <summary>
|
|
/// Competition year (e.g., "2026")
|
|
/// </summary>
|
|
public string CompetitionYear { get; set; } = "2026";
|
|
|
|
/// <summary>
|
|
/// School level for the chapter (null = import both MS and HS events)
|
|
/// </summary>
|
|
public SchoolLevel? SchoolLevel { get; set; }
|
|
}
|