2020-07-28 16:48:07 +00:00
|
|
|
<ListAccordion data-test-scale-events @source={{@events}} @key="time" as |a|>
|
2022-01-26 16:28:21 +00:00
|
|
|
<a.head
|
|
|
|
@buttonLabel="details"
|
|
|
|
@isExpandable={{a.item.hasMeta}}
|
|
|
|
class="with-columns"
|
|
|
|
>
|
2020-07-28 16:48:07 +00:00
|
|
|
<div class="columns inline-definitions">
|
|
|
|
<div class="column is-3">
|
|
|
|
<span class="icon-field">
|
2022-01-26 16:28:21 +00:00
|
|
|
<span
|
|
|
|
class="icon-container"
|
|
|
|
title="{{if a.item.error "Error event"}}"
|
|
|
|
data-test-error={{a.item.error}}
|
|
|
|
>
|
|
|
|
{{#if a.item.error}}
|
|
|
|
{{x-icon "cancel-circle-fill" class="is-danger"}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
<span data-test-time title="{{format-ts a.item.time}}">
|
|
|
|
{{format-month-ts a.item.time}}
|
2020-07-28 16:48:07 +00:00
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="column is-2">
|
2020-07-28 18:03:47 +00:00
|
|
|
{{#if a.item.hasCount}}
|
2022-01-26 16:28:21 +00:00
|
|
|
<span
|
|
|
|
data-test-count-icon
|
2020-07-30 02:26:18 +00:00
|
|
|
class="tooltip"
|
2022-01-26 16:28:21 +00:00
|
|
|
aria-label="Count
|
|
|
|
{{if a.item.increased "increased" "decreased"}}
|
|
|
|
to
|
|
|
|
{{a.item.count}}"
|
2020-07-30 02:26:18 +00:00
|
|
|
>
|
2020-07-28 16:48:07 +00:00
|
|
|
{{#if a.item.increased}}
|
|
|
|
{{x-icon "arrow-up" class="is-danger"}}
|
|
|
|
{{else}}
|
|
|
|
{{x-icon "arrow-down" class="is-primary"}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
2022-01-26 16:28:21 +00:00
|
|
|
<span data-test-count>
|
|
|
|
{{a.item.count}}
|
|
|
|
</span>
|
2020-07-28 16:48:07 +00:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="column" data-test-message>
|
|
|
|
{{a.item.message}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a.head>
|
|
|
|
<a.body @fullBleed={{true}}>
|
|
|
|
<JsonViewer @json={{a.item.meta}} @fluidHeight={{true}} />
|
|
|
|
</a.body>
|
2022-01-26 16:28:21 +00:00
|
|
|
</ListAccordion>
|