feat(cv): redesign document editing with revision-safe letters and writing tools

This commit is contained in:
cesnimda
2026-10-25 22:44:14 +01:00
parent 01e10996c5
commit 2bfaf6c14b
57 changed files with 2859 additions and 118 deletions
@@ -17,6 +17,7 @@ public sealed class CoverLetterVersion
public int Version { get; set; }
public string Text { get; set; } = string.Empty;
public string? DocumentSettingsJson { get; set; }
// manual | ai | template | restore — how this text came to exist, so the history list can show
// whether the user wrote it or approved it from a suggestion.
@@ -35,6 +36,7 @@ public static class CoverLetterSources
public const string Ai = "ai";
public const string Template = "template";
public const string Restore = "restore";
public const string Legacy = "legacy";
public static bool IsValid(string? value) =>
value is Manual or Ai or Template or Restore;