Multiple Profiles can now be selected

This commit is contained in:
Peer Hogeterp committed 2026-09-07 16:09:00 +02:00
1 parent d043fbc8f0
commit cefc5464d5
89 files changed
+1360 -503

No files matched your search

@@ -1,4 +1,7 @@
using AIStudio.Assistants.SlideBuilder;
using AIStudio.Settings;
using System.Text.Json.Serialization;
namespace AIStudio.Assistants.VisualBriefing;
@@ -18,9 +21,23 @@ public sealed class VisualBriefingLocalSettings
public string ModelId { get; set; } = string.Empty;
/// <summary>
/// Defines <c>ProfileId</c> for the visual briefing feature.
/// Defines <c>ProfileIds</c> for the visual briefing feature.
/// </summary>
public string ProfileId { get; set; } = string.Empty;
public HashSet<string> ProfileIds { get; set; } = [];
[JsonPropertyName("ProfileId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? LegacyProfileId
{
get => null;
set
{
if (this.ProfileIds.Count == 0 &&
!string.IsNullOrWhiteSpace(value) &&
!value.Equals(Profile.NO_PROFILE.Id, StringComparison.OrdinalIgnoreCase))
this.ProfileIds.Add(value);
}
}
/// <summary>
/// Defines <c>TargetLanguage</c> for the visual briefing feature.
@@ -76,4 +93,4 @@ public sealed class VisualBriefingLocalSettings
/// Defines <c>CustomProtectionLevel</c> for the visual briefing feature.
/// </summary>
public string CustomProtectionLevel { get; set; } = string.Empty;
}
}