{{#let (group-by "Status" (or @items (array))) as |grouped|}} {{! Check the status of each Status of checks in order }} {{! First one to have more than one check wins }} {{! Otherwise we are empty }} {{#let (or (if (gt grouped.critical.length 0) grouped.critical) (if (gt grouped.warning.length 0) grouped.warning) (if (gt grouped.passing.length 0) grouped.passing) (array) ) as |checks|}} {{#let checks.firstObject.Status as |status|}}