diff --git a/src/generated_scene/generator.rs b/src/generated_scene/generator.rs index d8a9282..3ddfe21 100644 --- a/src/generated_scene/generator.rs +++ b/src/generated_scene/generator.rs @@ -325,6 +325,14 @@ function normalizeRows(rawData) {{ }}); }} +function determineArtifactStatus({{ blockedReason = '', fatalError = '', reasons = [], rows = [] }}) {{ + if (blockedReason) return 'blocked'; + if (fatalError) return 'error'; + if (reasons.length > 0) return 'partial'; + if (!rows.length) return 'empty'; + return 'ok'; +}} + function buildArtifact(args, rows) {{ return {{ type: 'report-artifact',