completion-kit 0.28.40 → 0.28.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 583f0f5e833a1bed64382f77e94cccaa23f20fa8bac261c3285aa325af16b8db
|
|
4
|
+
data.tar.gz: 998112e971d09135c8689b8b303b234e04a0e20968095efe29bed170ff562f56
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7449b786887e20f2843389449b1e989c3a29b8c2845e5bd0f52cc15e0c7dec36df614b9eb4e7bbfef19a3cfcde907a2964f740fabcd8c96414baf8c88a8b4442
|
|
7
|
+
data.tar.gz: 25641e586eb6047cc3b8a23ab7ba2051b45e9f931903999e63f79d02cdaeb8108340d0a5522377b8891e1f1ad707359296c42740105f569ad6c1dadd0c530564
|
|
@@ -12,15 +12,17 @@
|
|
|
12
12
|
<% end %>
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<%
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
<% if resolved.positive? %>
|
|
16
|
+
<div class="ck-sparkline ck-sparkline--compact" role="img"
|
|
17
|
+
aria-label="Daily check pass rate over the last 14 days">
|
|
18
|
+
<% check_activity.each do |day| %>
|
|
19
|
+
<% kind = day[:rate] && ck_pass_rate_kind(day[:rate]) %>
|
|
20
|
+
<span class="ck-sparkline__bar<%= " is-#{kind}" if kind && kind != :high %>"
|
|
21
|
+
style="height: <%= day[:rate] ? [(day[:rate] * 100).round, 6].max : 0 %>%;"
|
|
22
|
+
title="<%= day[:date].strftime('%b %-d') %>: <%= day[:rate] ? "#{(day[:rate] * 100).round}% of #{day[:resolved]}" : 'no checks' %>"></span>
|
|
23
|
+
<% end %>
|
|
24
|
+
</div>
|
|
25
|
+
<% end %>
|
|
24
26
|
|
|
25
27
|
<% if failing_checks[:items].any? %>
|
|
26
28
|
<% worst = failing_checks[:items].group_by { |item| item[:metric_name] }
|
|
@@ -37,13 +37,15 @@
|
|
|
37
37
|
<span class="ck-stat-card__count"><%= activity_total %></span>
|
|
38
38
|
<span class="ck-stat-card__unit"><%= "run".pluralize(activity_total) %></span>
|
|
39
39
|
</div>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
<% if activity_total.positive? %>
|
|
41
|
+
<div class="ck-sparkline ck-sparkline--compact" role="img" aria-label="<%= activity_total %> runs over the last 14 days">
|
|
42
|
+
<% @activity.each do |day| %>
|
|
43
|
+
<span class="ck-sparkline__bar<%= ' is-peak' if day[:count] == activity_max %>"
|
|
44
|
+
style="height: <%= [(day[:count] * 100.0 / activity_max).round, 6].max %>%"
|
|
45
|
+
title="<%= day[:date].strftime('%b %-d') %>: <%= day[:count] %> run<%= 's' unless day[:count] == 1 %>"></span>
|
|
46
|
+
<% end %>
|
|
47
|
+
</div>
|
|
48
|
+
<% end %>
|
|
47
49
|
<div class="ck-stat-card__foot">
|
|
48
50
|
<% if activity_total.positive? %>
|
|
49
51
|
<% peak = @activity.max_by { |d| d[:count] } %>
|