completion-kit 0.28.2 → 0.28.3
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: cf603335970a8ec820f2d5a40adbc2fc4d0606e59123e9ef7c2241c52e35f607
|
|
4
|
+
data.tar.gz: 6cb5a2156aaf7108fb9fd4ceac400199c0f93774b38c5e8b8be7e746dabb9c36
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c1977cdf2958e1facd7886830386cec116ab5a498337101f87d2d7f93842384e1370790b59d1eead00bff3f804a4990e3cfc36b8a8f20400e7e817632627b5e1
|
|
7
|
+
data.tar.gz: 38e6624b6190e40d4537f07971b2eed96754f95545872709e0788c31a784ad1430977833b0266cac2300ff551471d0dee9d422df547e727f0298afa549979a10
|
|
@@ -3200,7 +3200,58 @@ select.ck-input {
|
|
|
3200
3200
|
.ck-delta--negative { color: var(--ck-danger); background: var(--ck-danger-soft); }
|
|
3201
3201
|
.ck-delta--zero { color: var(--ck-dim); }
|
|
3202
3202
|
|
|
3203
|
-
.ck-run-compare-table td { vertical-align:
|
|
3203
|
+
.ck-run-compare-table td { vertical-align: top; }
|
|
3204
|
+
|
|
3205
|
+
.ck-table-scroll { overflow-x: auto; }
|
|
3206
|
+
|
|
3207
|
+
.ck-run-compare-table th { white-space: nowrap; }
|
|
3208
|
+
.ck-run-compare-table th:nth-child(1) { width: 7rem; }
|
|
3209
|
+
.ck-run-compare-table th:nth-child(2) { width: auto; }
|
|
3210
|
+
.ck-run-compare-table th:nth-child(3) { width: 6rem; }
|
|
3211
|
+
.ck-run-compare-table th:nth-child(4) { width: 6rem; }
|
|
3212
|
+
.ck-run-compare-table th:nth-child(5) { width: 5rem; }
|
|
3213
|
+
.ck-run-compare-table th:nth-child(6) { width: 7rem; }
|
|
3214
|
+
.ck-run-compare-table th:nth-child(7) { width: 7rem; }
|
|
3215
|
+
|
|
3216
|
+
.ck-run-compare-table th.ck-num,
|
|
3217
|
+
.ck-run-compare-table td.ck-num { text-align: right; }
|
|
3218
|
+
.ck-run-compare-table td.ck-num { font-variant-numeric: tabular-nums; }
|
|
3219
|
+
|
|
3220
|
+
.ck-run-compare-table .ck-compare-metric {
|
|
3221
|
+
white-space: nowrap;
|
|
3222
|
+
overflow: hidden;
|
|
3223
|
+
text-overflow: ellipsis;
|
|
3224
|
+
}
|
|
3225
|
+
|
|
3226
|
+
.ck-compare-case { white-space: nowrap; }
|
|
3227
|
+
.ck-compare-case__num {
|
|
3228
|
+
display: block;
|
|
3229
|
+
font-family: var(--ck-mono);
|
|
3230
|
+
font-size: 0.82rem;
|
|
3231
|
+
font-weight: 600;
|
|
3232
|
+
color: var(--ck-text);
|
|
3233
|
+
}
|
|
3234
|
+
.ck-compare-case__runs {
|
|
3235
|
+
display: flex;
|
|
3236
|
+
gap: 0.6rem;
|
|
3237
|
+
margin-top: 0.25rem;
|
|
3238
|
+
}
|
|
3239
|
+
.ck-compare-case__run {
|
|
3240
|
+
font-family: var(--ck-mono);
|
|
3241
|
+
font-size: 0.72rem;
|
|
3242
|
+
letter-spacing: 0.04em;
|
|
3243
|
+
}
|
|
3244
|
+
.ck-compare-case__run--absent {
|
|
3245
|
+
color: var(--ck-dim);
|
|
3246
|
+
cursor: default;
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
.ck-run-compare-table tbody tr:hover { background: transparent; }
|
|
3250
|
+
.ck-run-compare-table tbody tr { border-bottom: none; }
|
|
3251
|
+
.ck-run-compare-table tbody:not(:first-of-type) > tr:first-child > td {
|
|
3252
|
+
border-top: 1px solid var(--ck-line);
|
|
3253
|
+
}
|
|
3254
|
+
.ck-run-compare-table tbody:hover > tr > td { background: var(--ck-surface-hover); }
|
|
3204
3255
|
|
|
3205
3256
|
@media (max-width: 900px) {
|
|
3206
3257
|
.ck-grid--sidebar,
|
|
@@ -3991,10 +4042,11 @@ a.ck-metric-group-pill {
|
|
|
3991
4042
|
|
|
3992
4043
|
.ck-responses-table th:nth-child(1), .ck-responses-table td:nth-child(1) { width: 3.5rem; white-space: nowrap; }
|
|
3993
4044
|
.ck-responses-table th:nth-child(2), .ck-responses-table td:nth-child(2) { width: auto; }
|
|
3994
|
-
.ck-responses-table th:nth-child(3), .ck-responses-table td:nth-child(3) { width:
|
|
4045
|
+
.ck-responses-table th:nth-child(3), .ck-responses-table td:nth-child(3) { width: 8rem; white-space: nowrap; }
|
|
3995
4046
|
.ck-responses-table th:nth-child(4), .ck-responses-table td:nth-child(4) { width: 5.5rem; white-space: nowrap; }
|
|
3996
|
-
.ck-responses-table th:nth-child(5), .ck-responses-table td:nth-child(5) { width:
|
|
4047
|
+
.ck-responses-table th:nth-child(5), .ck-responses-table td:nth-child(5) { width: 7rem; white-space: nowrap; }
|
|
3997
4048
|
.ck-responses-table th:nth-child(6), .ck-responses-table td:nth-child(6) { width: 3rem; }
|
|
4049
|
+
.ck-responses-table .ck-metric-bar--compact { flex-wrap: wrap; row-gap: 3px; }
|
|
3998
4050
|
|
|
3999
4051
|
|
|
4000
4052
|
table.ck-runs-table {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<section class="ck-page-header">
|
|
8
8
|
<div>
|
|
9
9
|
<h1 class="ck-title">Comparing runs</h1>
|
|
10
|
-
<p class="ck-meta-copy"><strong>A</strong>: <%= link_to @run.name, run_path(@run), class: "ck-link" %> · <strong>B</strong>: <%= link_to @other_run.name, run_path(@other_run), class: "ck-link"
|
|
10
|
+
<p class="ck-meta-copy"><strong>A</strong>: <%= link_to @run.name, run_path(@run), class: "ck-link" %> · <strong>B</strong>: <%= link_to @other_run.name, run_path(@other_run), class: "ck-link" %> · <strong>Δ</strong> = B − A</p>
|
|
11
11
|
</div>
|
|
12
12
|
<div class="ck-actions">
|
|
13
13
|
<%= link_to "Pick another", compare_run_path(@run), class: ck_button_classes(:light, variant: :outline) %>
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
<p>No responses to compare yet.</p>
|
|
20
20
|
</div>
|
|
21
21
|
<% else %>
|
|
22
|
+
<div class="ck-table-scroll">
|
|
22
23
|
<table class="ck-results-table ck-run-compare-table">
|
|
23
24
|
<thead>
|
|
24
25
|
<tr>
|
|
@@ -26,26 +27,35 @@
|
|
|
26
27
|
<th scope="col">Metric</th>
|
|
27
28
|
<th scope="col">A score</th>
|
|
28
29
|
<th scope="col">B score</th>
|
|
29
|
-
<th scope="col">Δ</th>
|
|
30
|
+
<th scope="col" class="ck-num">Δ</th>
|
|
30
31
|
<th scope="col">A version</th>
|
|
31
32
|
<th scope="col">B version</th>
|
|
32
33
|
</tr>
|
|
33
34
|
</thead>
|
|
34
|
-
<tbody>
|
|
35
35
|
<% @comparison[:rows].each do |row| %>
|
|
36
36
|
<% case_label = ((row[:left_response].row_index || 0) + 1).to_s %>
|
|
37
|
+
<tbody class="ck-compare-group">
|
|
37
38
|
<% row[:per_metric].each_with_index do |pm, idx| %>
|
|
38
39
|
<tr>
|
|
39
40
|
<% if idx == 0 %>
|
|
40
|
-
<td rowspan="<%= row[:per_metric].size %>">
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
<td rowspan="<%= row[:per_metric].size %>" class="ck-compare-case">
|
|
42
|
+
<span class="ck-compare-case__num">Case <%= case_label %></span>
|
|
43
|
+
<span class="ck-compare-case__runs">
|
|
44
|
+
<%= link_to "A ↗", run_response_path(@run, row[:left_response]),
|
|
45
|
+
class: "ck-link ck-compare-case__run",
|
|
46
|
+
title: "Open this case in run A (#{@run.name})" %>
|
|
47
|
+
<% if row[:right_response] %>
|
|
48
|
+
<%= link_to "B ↗", run_response_path(@other_run, row[:right_response]),
|
|
49
|
+
class: "ck-link ck-compare-case__run",
|
|
50
|
+
title: "Open this case in run B (#{@other_run.name})" %>
|
|
51
|
+
<% else %>
|
|
52
|
+
<span class="ck-compare-case__run ck-compare-case__run--absent" title="No matching response in run B">B</span>
|
|
53
|
+
<% end %>
|
|
54
|
+
</span>
|
|
45
55
|
</td>
|
|
46
56
|
<% end %>
|
|
47
|
-
<td><%= pm[:metric_name] %></td>
|
|
48
|
-
<td>
|
|
57
|
+
<td class="ck-compare-metric" data-label="Metric" title="<%= pm[:metric_name] %>"><%= pm[:metric_name] %></td>
|
|
58
|
+
<td data-label="A score">
|
|
49
59
|
<% if pm[:kind] == "check" %>
|
|
50
60
|
<% if pm[:left_passed].nil? %>
|
|
51
61
|
<span class="ck-meta-copy">—</span>
|
|
@@ -58,7 +68,7 @@
|
|
|
58
68
|
<span class="ck-meta-copy">—</span>
|
|
59
69
|
<% end %>
|
|
60
70
|
</td>
|
|
61
|
-
<td>
|
|
71
|
+
<td data-label="B score">
|
|
62
72
|
<% if pm[:kind] == "check" %>
|
|
63
73
|
<% if pm[:right_passed].nil? %>
|
|
64
74
|
<span class="ck-meta-copy">—</span>
|
|
@@ -71,7 +81,7 @@
|
|
|
71
81
|
<span class="ck-meta-copy">—</span>
|
|
72
82
|
<% end %>
|
|
73
83
|
</td>
|
|
74
|
-
<td>
|
|
84
|
+
<td class="ck-num" data-label="Δ">
|
|
75
85
|
<% if pm[:kind] == "check" %>
|
|
76
86
|
<%= ck_result_change_badge(pm[:result_change]) || content_tag(:span, "—", class: "ck-meta-copy") %>
|
|
77
87
|
<% elsif pm[:delta] %>
|
|
@@ -81,19 +91,12 @@
|
|
|
81
91
|
<span class="ck-meta-copy">—</span>
|
|
82
92
|
<% end %>
|
|
83
93
|
</td>
|
|
84
|
-
<td>
|
|
85
|
-
|
|
86
|
-
<span class="ck-source-chip ck-source-chip--current"><%= pm[:left_version_label] %></span>
|
|
87
|
-
<% end %>
|
|
88
|
-
</td>
|
|
89
|
-
<td>
|
|
90
|
-
<% if pm[:right_version_label] %>
|
|
91
|
-
<span class="ck-source-chip ck-source-chip--current"><%= pm[:right_version_label] %></span>
|
|
92
|
-
<% end %>
|
|
93
|
-
</td>
|
|
94
|
+
<td data-label="A version"><% if pm[:left_version_label] %><span class="ck-source-chip ck-source-chip--current"><%= pm[:left_version_label] %></span><% end %></td>
|
|
95
|
+
<td data-label="B version"><% if pm[:right_version_label] %><span class="ck-source-chip ck-source-chip--current"><%= pm[:right_version_label] %></span><% end %></td>
|
|
94
96
|
</tr>
|
|
95
97
|
<% end %>
|
|
98
|
+
</tbody>
|
|
96
99
|
<% end %>
|
|
97
|
-
</tbody>
|
|
98
100
|
</table>
|
|
101
|
+
</div>
|
|
99
102
|
<% end %>
|