Enhance CareerField and CareerMapping components with descriptions

Added a Description property to the CareerField class to provide a short overview of each career field. Updated the CareerFieldDefinitions to include descriptions for all career fields. Modified the CareerMapping component to display the description of the selected career field or event, improving user experience by providing more context about each node.
This commit is contained in:
2025-12-29 21:31:33 -05:00
parent 3bd076afb3
commit c6fb00c7f4
3 changed files with 215 additions and 176 deletions
+8 -1
View File
@@ -15,6 +15,11 @@ public class CareerField
/// </summary>
public string Name { get; }
/// <summary>
/// Short description of the career field
/// </summary>
public string Description { get; }
/// <summary>
/// Exact career names that belong to this field
/// </summary>
@@ -30,12 +35,14 @@ public class CareerField
/// </summary>
/// <param name="id">Unique identifier</param>
/// <param name="name">Display name</param>
/// <param name="description">Short description of the career field</param>
/// <param name="directCareerMatches">Exact career name matches</param>
/// <param name="patternKeywords">Keywords for pattern matching</param>
public CareerField(int id, string name, IReadOnlyList<string> directCareerMatches, IReadOnlyList<string> patternKeywords)
public CareerField(int id, string name, string description, IReadOnlyList<string> directCareerMatches, IReadOnlyList<string> patternKeywords)
{
Id = id;
Name = name;
Description = description;
DirectCareerMatches = directCareerMatches ?? Array.Empty<string>();
PatternKeywords = patternKeywords ?? Array.Empty<string>();
}