completion-kit 0.28.39 → 0.28.40
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: ecdbb9977e07a943af3309aa8e1353ebaa16e7556a7bd362c5d2b7a63812d15e
|
|
4
|
+
data.tar.gz: 9b3ff099f006237a04d26040c3cfeab2fe331ac7b07e4f5aa3fb016839182800
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 549b39f898a3951b4426bc71f8b2665fa88ccea18bd21e290fd91ee60ca80cec64deff6de6654d0037ccf20b4a3e929b44fde79a74965bf3e5bb859721307f9d
|
|
7
|
+
data.tar.gz: efa593027d5439bd970f6cbb74479bd2d59063ebff99a5cc0b767788661fdf9605e55f7fdc1a652eef101f845d3367031fc089a168c8583a4f4ca556de525366
|
|
@@ -1214,27 +1214,6 @@ tr:hover .ck-chip--publish {
|
|
|
1214
1214
|
border-top: 1px dashed var(--ck-line);
|
|
1215
1215
|
}
|
|
1216
1216
|
|
|
1217
|
-
.ck-run-status__retry {
|
|
1218
|
-
appearance: none;
|
|
1219
|
-
font-family: var(--ck-mono);
|
|
1220
|
-
font-size: 0.74rem;
|
|
1221
|
-
font-weight: 600;
|
|
1222
|
-
letter-spacing: 0.12em;
|
|
1223
|
-
text-transform: uppercase;
|
|
1224
|
-
padding: 0.7rem 1.1rem;
|
|
1225
|
-
border: 1px solid rgba(248, 113, 113, 0.5);
|
|
1226
|
-
background: rgba(248, 113, 113, 0.08);
|
|
1227
|
-
color: var(--ck-danger);
|
|
1228
|
-
border-radius: var(--ck-radius);
|
|
1229
|
-
cursor: pointer;
|
|
1230
|
-
transition: background 0.15s, border-color 0.15s;
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
.ck-run-status__retry:hover {
|
|
1234
|
-
background: rgba(248, 113, 113, 0.16);
|
|
1235
|
-
border-color: var(--ck-danger);
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
1217
|
.ck-run-status__cells {
|
|
1239
1218
|
display: flex;
|
|
1240
1219
|
align-items: stretch;
|
|
@@ -25,6 +25,14 @@ module CompletionKit
|
|
|
25
25
|
render partial, runs: runs
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
+
def ck_retry_failures_label(generated_failed, judged_failed)
|
|
29
|
+
if generated_failed.zero?
|
|
30
|
+
"Retry scoring on #{pluralize(judged_failed, "response")}"
|
|
31
|
+
else
|
|
32
|
+
"Retry #{pluralize(generated_failed + judged_failed, "failed response")}"
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
28
36
|
def ck_button_classes(tone = :dark, variant: :solid)
|
|
29
37
|
base = "ck-button"
|
|
30
38
|
|
|
@@ -111,9 +111,10 @@
|
|
|
111
111
|
</div>
|
|
112
112
|
|
|
113
113
|
<% if failed_count > 0 %>
|
|
114
|
-
<%= button_to
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
<%= button_to ck_retry_failures_label(snap[:generated_failed], snap[:judged_failed]),
|
|
115
|
+
retry_failures_run_path(run), method: :post,
|
|
116
|
+
class: ck_button_classes(:light, variant: :outline),
|
|
117
|
+
form_class: "ck-run-status__action" %>
|
|
117
118
|
<% end %>
|
|
118
119
|
</section>
|
|
119
120
|
<% end %>
|