completion-kit 0.28.3 → 0.28.4
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: ff8dc1fe1d84c274b21d8ff9d3dd6e21d547f9c780ba0a071c875abcac3d5459
|
|
4
|
+
data.tar.gz: de30042560e897432acbb192aebb6a3735301b644383b2ba49eb123f77e80607
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abf4fea98a8014b6f8cd7155cc54edfdc40bd23a2d2d08a2a864dcc7764e841a1d2554950aca3b22b48b786151da0f5b8237c4ff82c6924799664d2a6c663cd0
|
|
7
|
+
data.tar.gz: 6fc8a7683d26cad922086fafd56cacdbd762f4bc766078a1bf5c0f2335a429ba4ec1c5ccac509bec7650a60e9d20747f29680d28344161f186fdff4dca2d9f62
|
|
@@ -3206,12 +3206,10 @@ select.ck-input {
|
|
|
3206
3206
|
|
|
3207
3207
|
.ck-run-compare-table th { white-space: nowrap; }
|
|
3208
3208
|
.ck-run-compare-table th:nth-child(1) { width: 7rem; }
|
|
3209
|
-
.ck-run-compare-table th:nth-child(2) { width:
|
|
3210
|
-
.ck-run-compare-table th:nth-child(3) { width:
|
|
3211
|
-
.ck-run-compare-table th:nth-child(4) { width:
|
|
3212
|
-
.ck-run-compare-table th:nth-child(5) { width:
|
|
3213
|
-
.ck-run-compare-table th:nth-child(6) { width: 7rem; }
|
|
3214
|
-
.ck-run-compare-table th:nth-child(7) { width: 7rem; }
|
|
3209
|
+
.ck-run-compare-table th:nth-child(2) { width: 15rem; }
|
|
3210
|
+
.ck-run-compare-table th:nth-child(3) { width: 12rem; }
|
|
3211
|
+
.ck-run-compare-table th:nth-child(4) { width: 8rem; }
|
|
3212
|
+
.ck-run-compare-table th:nth-child(5) { width: auto; }
|
|
3215
3213
|
|
|
3216
3214
|
.ck-run-compare-table th.ck-num,
|
|
3217
3215
|
.ck-run-compare-table td.ck-num { text-align: right; }
|
|
@@ -3221,7 +3219,26 @@ select.ck-input {
|
|
|
3221
3219
|
white-space: nowrap;
|
|
3222
3220
|
overflow: hidden;
|
|
3223
3221
|
text-overflow: ellipsis;
|
|
3222
|
+
color: var(--ck-text);
|
|
3223
|
+
font-weight: 500;
|
|
3224
|
+
}
|
|
3225
|
+
|
|
3226
|
+
.ck-cmp-score__pair { display: inline-flex; align-items: center; gap: 0.45rem; }
|
|
3227
|
+
.ck-cmp-score__arrow { color: var(--ck-dim); font-size: 0.78rem; }
|
|
3228
|
+
.ck-cmp-score__link { display: inline-flex; text-decoration: none; border-radius: 7px; transition: box-shadow 0.12s ease; }
|
|
3229
|
+
.ck-cmp-score__link:hover { box-shadow: 0 0 0 1px var(--ck-accent); }
|
|
3230
|
+
.ck-cmp-score__none { color: var(--ck-dim); }
|
|
3231
|
+
|
|
3232
|
+
.ck-cmp-delta .ck-delta { display: inline-flex; align-items: baseline; gap: 0.2rem; }
|
|
3233
|
+
.ck-delta__arrow { font-size: 0.72rem; }
|
|
3234
|
+
|
|
3235
|
+
.ck-cmp-ver__one, .ck-cmp-ver__pair {
|
|
3236
|
+
font-family: var(--ck-mono);
|
|
3237
|
+
font-size: 0.78rem;
|
|
3238
|
+
color: var(--ck-dim);
|
|
3224
3239
|
}
|
|
3240
|
+
.ck-cmp-ver__pair { color: var(--ck-muted); }
|
|
3241
|
+
.ck-cmp-ver__arrow { color: var(--ck-dim); margin: 0 0.3rem; }
|
|
3225
3242
|
|
|
3226
3243
|
.ck-compare-case { white-space: nowrap; }
|
|
3227
3244
|
.ck-compare-case__num {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<% has_value = kind == "check" ? !passed.nil? : score.present? %>
|
|
2
|
+
<% if has_value && response %>
|
|
3
|
+
<%= link_to run_response_path(run, response), class: "ck-cmp-score__link", title: "#{side}: open this response (#{run.name})" do %>
|
|
4
|
+
<% if kind == "check" %>
|
|
5
|
+
<%= ck_check_badge(passed) %>
|
|
6
|
+
<% else %>
|
|
7
|
+
<span class="<%= ck_badge_classes(ck_score_kind(score.to_f)) %>"><%= score %></span>
|
|
8
|
+
<% end %>
|
|
9
|
+
<% end %>
|
|
10
|
+
<% else %>
|
|
11
|
+
<span class="ck-cmp-score__none">—</span>
|
|
12
|
+
<% end %>
|
|
@@ -25,11 +25,9 @@
|
|
|
25
25
|
<tr>
|
|
26
26
|
<th scope="col">Case</th>
|
|
27
27
|
<th scope="col">Metric</th>
|
|
28
|
-
<th scope="col">A
|
|
29
|
-
<th scope="col">B score</th>
|
|
28
|
+
<th scope="col">A → B</th>
|
|
30
29
|
<th scope="col" class="ck-num">Δ</th>
|
|
31
|
-
<th scope="col">
|
|
32
|
-
<th scope="col">B version</th>
|
|
30
|
+
<th scope="col">Version</th>
|
|
33
31
|
</tr>
|
|
34
32
|
</thead>
|
|
35
33
|
<% @comparison[:rows].each do |row| %>
|
|
@@ -55,44 +53,25 @@
|
|
|
55
53
|
</td>
|
|
56
54
|
<% end %>
|
|
57
55
|
<td class="ck-compare-metric" data-label="Metric" title="<%= pm[:metric_name] %>"><%= pm[:metric_name] %></td>
|
|
58
|
-
<td data-label="A
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
<% end %>
|
|
65
|
-
<% elsif pm[:left_score] %>
|
|
66
|
-
<span class="<%= ck_badge_classes(ck_score_kind(pm[:left_score].to_f)) %>"><%= pm[:left_score] %></span>
|
|
67
|
-
<% else %>
|
|
68
|
-
<span class="ck-meta-copy">—</span>
|
|
69
|
-
<% end %>
|
|
70
|
-
</td>
|
|
71
|
-
<td data-label="B score">
|
|
72
|
-
<% if pm[:kind] == "check" %>
|
|
73
|
-
<% if pm[:right_passed].nil? %>
|
|
74
|
-
<span class="ck-meta-copy">—</span>
|
|
75
|
-
<% else %>
|
|
76
|
-
<%= ck_check_badge(pm[:right_passed]) %>
|
|
77
|
-
<% end %>
|
|
78
|
-
<% elsif pm[:right_score] %>
|
|
79
|
-
<span class="<%= ck_badge_classes(ck_score_kind(pm[:right_score].to_f)) %>"><%= pm[:right_score] %></span>
|
|
80
|
-
<% else %>
|
|
81
|
-
<span class="ck-meta-copy">—</span>
|
|
82
|
-
<% end %>
|
|
56
|
+
<td class="ck-cmp-score" data-label="A → B">
|
|
57
|
+
<span class="ck-cmp-score__pair">
|
|
58
|
+
<%= render "compare_score", kind: pm[:kind], passed: pm[:left_passed], score: pm[:left_score], response: row[:left_response], run: @run, side: "A" %>
|
|
59
|
+
<span class="ck-cmp-score__arrow" aria-hidden="true">→</span>
|
|
60
|
+
<%= render "compare_score", kind: pm[:kind], passed: pm[:right_passed], score: pm[:right_score], response: row[:right_response], run: @other_run, side: "B" %>
|
|
61
|
+
</span>
|
|
83
62
|
</td>
|
|
84
|
-
<td class="ck-num" data-label="Δ">
|
|
63
|
+
<td class="ck-num ck-cmp-delta" data-label="Δ">
|
|
85
64
|
<% if pm[:kind] == "check" %>
|
|
86
|
-
<%= ck_result_change_badge(pm[:result_change]) || content_tag(:span, "—", class: "ck-
|
|
65
|
+
<%= ck_result_change_badge(pm[:result_change]) || content_tag(:span, "—", class: "ck-cmp-score__none") %>
|
|
87
66
|
<% elsif pm[:delta] %>
|
|
88
|
-
<%
|
|
89
|
-
|
|
67
|
+
<% d = pm[:delta] %>
|
|
68
|
+
<% dcls = d > 0 ? "ck-delta--positive" : d < 0 ? "ck-delta--negative" : "ck-delta--zero" %>
|
|
69
|
+
<span class="ck-delta <%= dcls %>"><span class="ck-delta__arrow" aria-hidden="true"><%= d > 0 ? "▲" : d < 0 ? "▼" : "=" %></span><%= d > 0 ? "+#{d}" : d.to_s %></span>
|
|
90
70
|
<% else %>
|
|
91
|
-
<span class="ck-
|
|
71
|
+
<span class="ck-cmp-score__none">—</span>
|
|
92
72
|
<% end %>
|
|
93
73
|
</td>
|
|
94
|
-
<td data-label="
|
|
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>
|
|
74
|
+
<td class="ck-cmp-ver" data-label="Version"><% lv = pm[:left_version_label]; rv = pm[:right_version_label] %><% if lv && rv && lv != rv %><span class="ck-cmp-ver__pair"><%= lv %><span class="ck-cmp-ver__arrow" aria-hidden="true">→</span><%= rv %></span><% elsif lv || rv %><span class="ck-cmp-ver__one"><%= lv || rv %></span><% end %></td>
|
|
96
75
|
</tr>
|
|
97
76
|
<% end %>
|
|
98
77
|
</tbody>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: completion-kit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.28.
|
|
4
|
+
version: 0.28.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Damien Bastin
|
|
@@ -407,6 +407,7 @@ files:
|
|
|
407
407
|
- app/views/completion_kit/provider_credentials/statuses.turbo_stream.erb
|
|
408
408
|
- app/views/completion_kit/responses/show.html.erb
|
|
409
409
|
- app/views/completion_kit/runs/_actions.html.erb
|
|
410
|
+
- app/views/completion_kit/runs/_compare_score.html.erb
|
|
410
411
|
- app/views/completion_kit/runs/_form.html.erb
|
|
411
412
|
- app/views/completion_kit/runs/_response_row.html.erb
|
|
412
413
|
- app/views/completion_kit/runs/_row.html.erb
|