WIP: AI Validator
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user