Enhance CareerMapping component to reflect career fields instead of careers
Updated the CareerMapping component to improve clarity by changing terminology from "careers" to "career fields" throughout the UI. Enhanced the diagram generation logic to filter events based on related career fields, ensuring accurate representation of relationships. Added styling for event and field nodes in the Mermaid diagram for better visual distinction.
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
namespace Core.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a career field cluster that groups related careers together.
|
||||
/// </summary>
|
||||
public class CareerField
|
||||
{
|
||||
/// <summary>
|
||||
/// Unique identifier for the career field (1-25)
|
||||
/// </summary>
|
||||
public int Id { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Display name of the career field
|
||||
/// </summary>
|
||||
public string Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Exact career names that belong to this field
|
||||
/// </summary>
|
||||
public IReadOnlyList<string> DirectCareerMatches { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Keywords for pattern matching (case-insensitive substring matching)
|
||||
/// </summary>
|
||||
public IReadOnlyList<string> PatternKeywords { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new CareerField instance
|
||||
/// </summary>
|
||||
/// <param name="id">Unique identifier</param>
|
||||
/// <param name="name">Display name</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)
|
||||
{
|
||||
Id = id;
|
||||
Name = name;
|
||||
DirectCareerMatches = directCareerMatches ?? Array.Empty<string>();
|
||||
PatternKeywords = patternKeywords ?? Array.Empty<string>();
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user