mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-05-13 14:04:12 +00:00
removed replaced and therefor unused methods
This commit is contained in:
parent
d094f38dc7
commit
a59e10ea14
@ -172,30 +172,6 @@ public partial class AssistantPluginAuditDialog : MSGComponentBase
|
|||||||
_ => Severity.Normal,
|
_ => Severity.Normal,
|
||||||
};
|
};
|
||||||
|
|
||||||
private Severity GetFindingSeverity(AssistantAuditLevel severity) => severity switch
|
|
||||||
{
|
|
||||||
AssistantAuditLevel.DANGEROUS => Severity.Error,
|
|
||||||
AssistantAuditLevel.CAUTION => Severity.Warning,
|
|
||||||
AssistantAuditLevel.SAFE => Severity.Success,
|
|
||||||
_ => Severity.Normal,
|
|
||||||
};
|
|
||||||
|
|
||||||
private string GetFindingIcon(AssistantAuditLevel severity) => severity switch
|
|
||||||
{
|
|
||||||
AssistantAuditLevel.DANGEROUS => Icons.Material.Filled.Dangerous,
|
|
||||||
AssistantAuditLevel.CAUTION => Icons.Material.Filled.WarningAmber,
|
|
||||||
AssistantAuditLevel.SAFE => Icons.Material.Filled.Verified,
|
|
||||||
_ => Icons.Material.Filled.Info,
|
|
||||||
};
|
|
||||||
|
|
||||||
private Color GetFindingColor(AssistantAuditLevel severity) => severity switch
|
|
||||||
{
|
|
||||||
AssistantAuditLevel.DANGEROUS => Color.Error,
|
|
||||||
AssistantAuditLevel.CAUTION => Color.Warning,
|
|
||||||
AssistantAuditLevel.SAFE => Color.Success,
|
|
||||||
_ => Color.Default,
|
|
||||||
};
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates the full audit tree for the assistant component hierarchy.
|
/// Creates the full audit tree for the assistant component hierarchy.
|
||||||
/// The dialog owns this mapping because it is pure presentation logic for the audit UI.
|
/// The dialog owns this mapping because it is pure presentation logic for the audit UI.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user