WIP: AI Validator

This commit is contained in:
2025-12-15 20:05:26 +01:00
parent 096ff5573e
commit f10dfe629e
16 changed files with 1686 additions and 9 deletions

View File

@@ -503,7 +503,7 @@ public partial class Details : ComponentBase, IDisposable
if (layer?.Records == null) return false;
var typeRecord = layer.Records.FirstOrDefault(x => x.Code == "Type");
return typeRecord?.Desc1 == "ImportWorker" || typeRecord?.Desc1 == "ProcessWorker";
return typeRecord?.Desc1 == "ImportWorker" || typeRecord?.Desc1 == "ProcessWorker" || typeRecord?.Desc1 == "ValidationWorker";
}
private async Task RunNow()
@@ -545,6 +545,18 @@ public partial class Details : ComponentBase, IDisposable
}
}
// Validation tab helper methods
private Severity GetValidationSeverity(string? status)
{
return status?.ToLower() switch
{
"pass" => Severity.Success,
"warning" => Severity.Warning,
"critical" => Severity.Error,
_ => Severity.Info
};
}
public void Dispose()
{
HubService.EntityChanged -= OnEntityChanged;