completion-kit 0.5.15 → 0.5.17
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 +4 -4
- data/app/assets/stylesheets/completion_kit/application.css +76 -24
- data/app/helpers/completion_kit/application_helper.rb +3 -3
- data/app/views/completion_kit/datasets/index.html.erb +1 -1
- data/app/views/completion_kit/metric_groups/index.html.erb +1 -1
- data/app/views/completion_kit/prompts/show.html.erb +2 -2
- data/app/views/completion_kit/runs/show.html.erb +2 -2
- data/lib/completion_kit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ce9123debaea45400d854ccca1cef4ca1c93a486bb397213f7e7998c8748ca2
|
|
4
|
+
data.tar.gz: 4fc585bef631af5ee454a8e86bfd7cbdf95303d0e100e5405a644b1ca85fae2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 37321a08941fbdc87e43698a18db78ef3adb100831449e128a5487004e93714ea494361b07a2aec4b55b8b723aae39e0a8c38f5f7b82f377e365269eeb3ffa0c
|
|
7
|
+
data.tar.gz: 8744ac203aeb30e7dceda1fad9cd70b5f1b31c8f4eed156ed66b7ed8e33a8be92955d4d025fbfd313d0c8389c117ca0ac44f551dd7251da4148c00430da75ec4
|
|
@@ -1080,10 +1080,13 @@ tr:hover .ck-chip--publish {
|
|
|
1080
1080
|
|
|
1081
1081
|
.ck-model-table {
|
|
1082
1082
|
width: 100%;
|
|
1083
|
+
table-layout: fixed;
|
|
1083
1084
|
border-collapse: collapse;
|
|
1084
1085
|
font-family: var(--ck-mono);
|
|
1085
1086
|
font-size: 0.8rem;
|
|
1086
1087
|
}
|
|
1088
|
+
.ck-model-table th.ck-model-table__name,
|
|
1089
|
+
.ck-model-table td.ck-model-table__name { width: auto; }
|
|
1087
1090
|
|
|
1088
1091
|
.ck-model-table thead th {
|
|
1089
1092
|
position: sticky;
|
|
@@ -1998,6 +2001,7 @@ select.ck-input {
|
|
|
1998
2001
|
|
|
1999
2002
|
.ck-results-table {
|
|
2000
2003
|
width: 100%;
|
|
2004
|
+
table-layout: fixed;
|
|
2001
2005
|
border-collapse: separate;
|
|
2002
2006
|
border-spacing: 0;
|
|
2003
2007
|
border: 1px solid var(--ck-line);
|
|
@@ -3055,11 +3059,12 @@ select.ck-input {
|
|
|
3055
3059
|
white-space: nowrap;
|
|
3056
3060
|
}
|
|
3057
3061
|
|
|
3058
|
-
.ck-prompts-table th:nth-child(
|
|
3059
|
-
.ck-prompts-table td:nth-child(
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
}
|
|
3062
|
+
.ck-prompts-table th:nth-child(1), .ck-prompts-table td:nth-child(1) { width: auto; }
|
|
3063
|
+
.ck-prompts-table th:nth-child(2), .ck-prompts-table td:nth-child(2) { width: 6rem; white-space: nowrap; }
|
|
3064
|
+
.ck-prompts-table th:nth-child(3), .ck-prompts-table td:nth-child(3) { width: 12rem; white-space: nowrap; }
|
|
3065
|
+
.ck-prompts-table th:nth-child(4), .ck-prompts-table td:nth-child(4) { width: 7.5rem; white-space: nowrap; }
|
|
3066
|
+
.ck-prompts-table th:nth-child(5), .ck-prompts-table td:nth-child(5) { width: 7.5rem; white-space: nowrap; }
|
|
3067
|
+
.ck-prompts-table th:nth-child(6), .ck-prompts-table td:nth-child(6) { width: 3rem; }
|
|
3063
3068
|
|
|
3064
3069
|
.ck-prompts-table__runs {
|
|
3065
3070
|
display: flex;
|
|
@@ -3113,14 +3118,9 @@ select.ck-input {
|
|
|
3113
3118
|
overflow: hidden;
|
|
3114
3119
|
}
|
|
3115
3120
|
|
|
3116
|
-
.ck-tags-table th:
|
|
3117
|
-
.ck-tags-table td:
|
|
3118
|
-
|
|
3119
|
-
}
|
|
3120
|
-
.ck-tags-table th:nth-child(2),
|
|
3121
|
-
.ck-tags-table td:nth-child(2) {
|
|
3122
|
-
width: 60%;
|
|
3123
|
-
}
|
|
3121
|
+
.ck-tags-table th:nth-child(1), .ck-tags-table td:nth-child(1) { width: 14rem; }
|
|
3122
|
+
.ck-tags-table th:nth-child(2), .ck-tags-table td:nth-child(2) { width: auto; }
|
|
3123
|
+
.ck-tags-table th:nth-child(3), .ck-tags-table td:nth-child(3) { width: 3rem; }
|
|
3124
3124
|
.tag-mark.tag-mark--lg {
|
|
3125
3125
|
padding: 4px 10px;
|
|
3126
3126
|
font-size: 0.8rem;
|
|
@@ -3172,6 +3172,34 @@ select.ck-input {
|
|
|
3172
3172
|
cursor: pointer;
|
|
3173
3173
|
}
|
|
3174
3174
|
|
|
3175
|
+
.ck-metrics-table th:nth-child(1), .ck-metrics-table td:nth-child(1) { width: 18rem; white-space: normal; }
|
|
3176
|
+
.ck-metrics-table th:nth-child(2), .ck-metrics-table td:nth-child(2) { width: auto; }
|
|
3177
|
+
.ck-metrics-table th:nth-child(3), .ck-metrics-table td:nth-child(3) { width: 16rem; }
|
|
3178
|
+
.ck-metrics-table th:nth-child(4), .ck-metrics-table td:nth-child(4) { width: 3rem; }
|
|
3179
|
+
.ck-metrics-table td:nth-child(1) strong { overflow-wrap: anywhere; }
|
|
3180
|
+
|
|
3181
|
+
.ck-datasets-table th:nth-child(1), .ck-datasets-table td:nth-child(1) { width: auto; }
|
|
3182
|
+
.ck-datasets-table th:nth-child(2), .ck-datasets-table td:nth-child(2) { width: 5rem; white-space: nowrap; }
|
|
3183
|
+
.ck-datasets-table th:nth-child(3), .ck-datasets-table td:nth-child(3) { width: 8rem; white-space: nowrap; }
|
|
3184
|
+
.ck-datasets-table th:nth-child(4), .ck-datasets-table td:nth-child(4) { width: 9rem; white-space: nowrap; }
|
|
3185
|
+
.ck-datasets-table th:nth-child(5), .ck-datasets-table td:nth-child(5) { width: 3rem; }
|
|
3186
|
+
|
|
3187
|
+
.ck-metric-groups-table th:nth-child(1), .ck-metric-groups-table td:nth-child(1) { width: 16rem; white-space: nowrap; }
|
|
3188
|
+
.ck-metric-groups-table th:nth-child(2), .ck-metric-groups-table td:nth-child(2) { width: auto; }
|
|
3189
|
+
.ck-metric-groups-table th:nth-child(3), .ck-metric-groups-table td:nth-child(3) { width: 12rem; }
|
|
3190
|
+
.ck-metric-groups-table th:nth-child(4), .ck-metric-groups-table td:nth-child(4) { width: 3rem; }
|
|
3191
|
+
|
|
3192
|
+
.ck-prompt-versions-table th:nth-child(1), .ck-prompt-versions-table td:nth-child(1) { width: 14rem; }
|
|
3193
|
+
.ck-prompt-versions-table th:nth-child(2), .ck-prompt-versions-table td:nth-child(2) { width: 16rem; white-space: nowrap; }
|
|
3194
|
+
.ck-prompt-versions-table th:nth-child(3), .ck-prompt-versions-table td:nth-child(3) { width: 8rem; white-space: nowrap; }
|
|
3195
|
+
.ck-prompt-versions-table th:nth-child(4), .ck-prompt-versions-table td:nth-child(4) { width: auto; }
|
|
3196
|
+
|
|
3197
|
+
.ck-suggestions-table th:nth-child(1), .ck-suggestions-table td:nth-child(1) { width: 16rem; white-space: nowrap; }
|
|
3198
|
+
.ck-suggestions-table th:nth-child(2), .ck-suggestions-table td:nth-child(2) { width: auto; }
|
|
3199
|
+
.ck-suggestions-table th:nth-child(3), .ck-suggestions-table td:nth-child(3) { width: 6rem; white-space: nowrap; }
|
|
3200
|
+
.ck-suggestions-table th:nth-child(4), .ck-suggestions-table td:nth-child(4) { width: 9rem; white-space: nowrap; }
|
|
3201
|
+
.ck-suggestions-table th:nth-child(5), .ck-suggestions-table td:nth-child(5) { width: 3rem; }
|
|
3202
|
+
|
|
3175
3203
|
.ck-metrics-table__groups {
|
|
3176
3204
|
display: flex;
|
|
3177
3205
|
flex-wrap: wrap;
|
|
@@ -3195,12 +3223,18 @@ a.ck-metric-group-pill {
|
|
|
3195
3223
|
padding-right: 0.85rem;
|
|
3196
3224
|
}
|
|
3197
3225
|
|
|
3198
|
-
.ck-responses-table th:
|
|
3199
|
-
.ck-responses-table
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
}
|
|
3226
|
+
.ck-responses-table th:nth-child(1), .ck-responses-table td:nth-child(1) { width: 3.5rem; white-space: nowrap; }
|
|
3227
|
+
.ck-responses-table th:nth-child(2), .ck-responses-table td:nth-child(2) { width: auto; }
|
|
3228
|
+
.ck-responses-table th:nth-child(3), .ck-responses-table td:nth-child(3) { width: 14rem; white-space: nowrap; }
|
|
3229
|
+
.ck-responses-table th:nth-child(4), .ck-responses-table td:nth-child(4) { width: 5.5rem; white-space: nowrap; }
|
|
3230
|
+
.ck-responses-table th:nth-child(5), .ck-responses-table td:nth-child(5) { width: 8rem; white-space: nowrap; }
|
|
3231
|
+
.ck-responses-table th:nth-child(6), .ck-responses-table td:nth-child(6) { width: 3rem; }
|
|
3232
|
+
|
|
3203
3233
|
|
|
3234
|
+
table.ck-runs-table {
|
|
3235
|
+
table-layout: fixed;
|
|
3236
|
+
width: 100%;
|
|
3237
|
+
}
|
|
3204
3238
|
|
|
3205
3239
|
.ck-runs-table th {
|
|
3206
3240
|
vertical-align: middle;
|
|
@@ -3215,18 +3249,36 @@ a.ck-metric-group-pill {
|
|
|
3215
3249
|
|
|
3216
3250
|
.ck-runs-table th:first-child,
|
|
3217
3251
|
.ck-runs-table td:first-child {
|
|
3218
|
-
width:
|
|
3252
|
+
width: 27rem;
|
|
3219
3253
|
}
|
|
3220
3254
|
|
|
3221
|
-
.ck-runs-table th:nth-child(
|
|
3222
|
-
.ck-runs-table td:nth-child(
|
|
3223
|
-
width:
|
|
3255
|
+
.ck-runs-table th:nth-child(2),
|
|
3256
|
+
.ck-runs-table td:nth-child(2) {
|
|
3257
|
+
width: 6rem;
|
|
3258
|
+
white-space: nowrap;
|
|
3259
|
+
}
|
|
3260
|
+
|
|
3261
|
+
.ck-runs-table th:nth-child(3),
|
|
3262
|
+
.ck-runs-table td:nth-child(3) {
|
|
3263
|
+
width: auto;
|
|
3264
|
+
white-space: nowrap;
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
.ck-runs-table th:nth-child(4),
|
|
3268
|
+
.ck-runs-table td:nth-child(4) {
|
|
3269
|
+
width: 5.5rem;
|
|
3270
|
+
white-space: nowrap;
|
|
3271
|
+
}
|
|
3272
|
+
|
|
3273
|
+
.ck-runs-table th:nth-child(5),
|
|
3274
|
+
.ck-runs-table td:nth-child(5) {
|
|
3275
|
+
width: 9rem;
|
|
3224
3276
|
white-space: nowrap;
|
|
3225
3277
|
}
|
|
3226
3278
|
|
|
3227
3279
|
.ck-runs-table th:last-child,
|
|
3228
3280
|
.ck-runs-table td:last-child {
|
|
3229
|
-
width:
|
|
3281
|
+
width: 3rem;
|
|
3230
3282
|
}
|
|
3231
3283
|
|
|
3232
3284
|
.ck-runs-table__identity {
|
|
@@ -3848,7 +3900,7 @@ a.tag:hover, label.tag:hover { filter: brightness(1.12); }
|
|
|
3848
3900
|
letter-spacing: 0.02em;
|
|
3849
3901
|
text-transform: lowercase;
|
|
3850
3902
|
white-space: nowrap;
|
|
3851
|
-
background: color-mix(in srgb, var(--mark-color)
|
|
3903
|
+
background: color-mix(in srgb, var(--mark-color) 38%, transparent);
|
|
3852
3904
|
color: color-mix(in srgb, var(--mark-color) 88%, var(--ck-text));
|
|
3853
3905
|
}
|
|
3854
3906
|
|
|
@@ -180,15 +180,15 @@ module CompletionKit
|
|
|
180
180
|
end
|
|
181
181
|
|
|
182
182
|
def ck_run_path(run)
|
|
183
|
-
CompletionKit::Engine.routes.url_helpers.run_path(run)
|
|
183
|
+
CompletionKit::Engine.routes.url_helpers.run_path(run, **url_options.except(:host, :protocol, :script_name))
|
|
184
184
|
end
|
|
185
185
|
|
|
186
186
|
def ck_prompt_path(prompt)
|
|
187
|
-
CompletionKit::Engine.routes.url_helpers.prompt_path(prompt)
|
|
187
|
+
CompletionKit::Engine.routes.url_helpers.prompt_path(prompt, **url_options.except(:host, :protocol, :script_name))
|
|
188
188
|
end
|
|
189
189
|
|
|
190
190
|
def ck_dataset_path(dataset)
|
|
191
|
-
CompletionKit::Engine.routes.url_helpers.dataset_path(dataset)
|
|
191
|
+
CompletionKit::Engine.routes.url_helpers.dataset_path(dataset, **url_options.except(:host, :protocol, :script_name))
|
|
192
192
|
end
|
|
193
193
|
|
|
194
194
|
def ck_format_maybe_json(text)
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<% if versions.size > 1 %>
|
|
54
54
|
<section class="ck-card--spaced">
|
|
55
55
|
<p class="ck-kicker">Versions</p>
|
|
56
|
-
<table class="ck-results-table" style="margin-top: 0.5rem;">
|
|
56
|
+
<table class="ck-results-table ck-prompt-versions-table" style="margin-top: 0.5rem;">
|
|
57
57
|
<thead>
|
|
58
58
|
<tr>
|
|
59
59
|
<th>Version</th>
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
<% if suggestions.any? %>
|
|
148
148
|
<section class="ck-card--spaced">
|
|
149
149
|
<p class="ck-kicker">Suggestions</p>
|
|
150
|
-
<table class="ck-results-table" style="margin-top: 0.5rem;">
|
|
150
|
+
<table class="ck-results-table ck-suggestions-table" style="margin-top: 0.5rem;">
|
|
151
151
|
<thead>
|
|
152
152
|
<tr>
|
|
153
153
|
<th>Run</th>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<% if @run.dataset %>
|
|
29
29
|
<span class="ck-run-config__dataset">
|
|
30
30
|
<%= link_to @run.dataset.name, dataset_path(@run.dataset), class: "ck-link" %>
|
|
31
|
-
<span class="ck-run-config__dataset-meta"><%=
|
|
31
|
+
<span class="ck-run-config__dataset-meta"><%= @run.dataset.row_count %> rows</span>
|
|
32
32
|
<button type="button" class="ck-run-config__dataset-preview" onclick="document.getElementById('dataset-preview-<%= @run.id %>').showModal()">Preview</button>
|
|
33
33
|
</span>
|
|
34
34
|
<% else %>
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
<header class="ck-modal__header">
|
|
94
94
|
<div class="ck-modal__heading">
|
|
95
95
|
<h2 class="ck-modal__title"><%= @run.dataset.name %></h2>
|
|
96
|
-
<span class="ck-modal__meta"><%=
|
|
96
|
+
<span class="ck-modal__meta"><%= @run.dataset.row_count %> rows</span>
|
|
97
97
|
</div>
|
|
98
98
|
<button type="button" class="ck-modal__close" aria-label="Close" onclick="this.closest('dialog').close()">×</button>
|
|
99
99
|
</header>
|