feat(cv): qualify templates and reliable local import processing

This commit is contained in:
cesnimda
2026-10-28 14:36:12 +01:00
parent 73ea888375
commit 3f4db8ca81
69 changed files with 2597 additions and 180 deletions
@@ -9,6 +9,8 @@ namespace JobTrackerApi.Models;
public sealed class CvVariantSettings
{
public string ThemeId { get; set; } = "modern";
// Missing or version 1 retains the original template output.
public int? DesignVersion { get; set; }
// Theme overrides (null => use the theme's own value).
public string? AccentColor { get; set; }
@@ -132,6 +134,7 @@ public static class CvVariantSettingsJson
{
s ??= new CvVariantSettings();
s.ThemeId = string.IsNullOrWhiteSpace(s.ThemeId) ? "modern" : s.ThemeId.Trim().ToLowerInvariant();
s.DesignVersion = s.DesignVersion is 1 or 2 ? s.DesignVersion : null;
s.AccentColor = NormalizeColor(s.AccentColor);
s.TextColor = NormalizeColor(s.TextColor);
s.MutedColor = NormalizeColor(s.MutedColor);