@devqubit/ui 0.1.10-beta-1 → 0.1.10-beta-2
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.
- package/dist/index.cjs +8 -8
- package/dist/index.js +847 -840
- package/dist/pages/DiffPage.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useLocation as
|
|
1
|
+
import ws, { useState as O, useEffect as xe, useContext as Rs, useCallback as be, createContext as Es, useRef as bs, forwardRef as He } from "react";
|
|
2
|
+
import { useLocation as lr, Link as q, useSearchParams as Oe, useParams as Xe, useNavigate as or, Navigate as dr, createBrowserRouter as ur, RouterProvider as hr } from "react-router-dom";
|
|
3
3
|
var ke = { exports: {} }, pe = {};
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
function m(
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
for (
|
|
13
|
-
if (
|
|
14
|
-
return { $$typeof: n, type:
|
|
4
|
+
var Ns;
|
|
5
|
+
function xr() {
|
|
6
|
+
if (Ns) return pe;
|
|
7
|
+
Ns = 1;
|
|
8
|
+
var r = ws, n = /* @__PURE__ */ Symbol.for("react.element"), a = /* @__PURE__ */ Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, d = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
9
|
+
function m(t, h, f) {
|
|
10
|
+
var x, p = {}, w = null, K = null;
|
|
11
|
+
f !== void 0 && (w = "" + f), h.key !== void 0 && (w = "" + h.key), h.ref !== void 0 && (K = h.ref);
|
|
12
|
+
for (x in h) i.call(h, x) && !o.hasOwnProperty(x) && (p[x] = h[x]);
|
|
13
|
+
if (t && t.defaultProps) for (x in h = t.defaultProps, h) p[x] === void 0 && (p[x] = h[x]);
|
|
14
|
+
return { $$typeof: n, type: t, key: w, ref: K, props: p, _owner: d.current };
|
|
15
15
|
}
|
|
16
|
-
return pe.Fragment =
|
|
16
|
+
return pe.Fragment = a, pe.jsx = m, pe.jsxs = m, pe;
|
|
17
17
|
}
|
|
18
18
|
var ge = {};
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
return
|
|
22
|
-
var
|
|
23
|
-
function J(
|
|
24
|
-
if (
|
|
19
|
+
var ys;
|
|
20
|
+
function mr() {
|
|
21
|
+
return ys || (ys = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
22
|
+
var r = ws, n = /* @__PURE__ */ Symbol.for("react.element"), a = /* @__PURE__ */ Symbol.for("react.portal"), i = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), m = /* @__PURE__ */ Symbol.for("react.provider"), t = /* @__PURE__ */ Symbol.for("react.context"), h = /* @__PURE__ */ Symbol.for("react.forward_ref"), f = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), w = /* @__PURE__ */ Symbol.for("react.lazy"), K = /* @__PURE__ */ Symbol.for("react.offscreen"), R = Symbol.iterator, Q = "@@iterator";
|
|
23
|
+
function J(s) {
|
|
24
|
+
if (s === null || typeof s != "object")
|
|
25
25
|
return null;
|
|
26
|
-
var l =
|
|
26
|
+
var l = R && s[R] || s[Q];
|
|
27
27
|
return typeof l == "function" ? l : null;
|
|
28
28
|
}
|
|
29
|
-
var H =
|
|
30
|
-
function P(
|
|
29
|
+
var H = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
30
|
+
function P(s) {
|
|
31
31
|
{
|
|
32
|
-
for (var l = arguments.length,
|
|
33
|
-
|
|
34
|
-
le("error",
|
|
32
|
+
for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), g = 1; g < l; g++)
|
|
33
|
+
u[g - 1] = arguments[g];
|
|
34
|
+
le("error", s, u);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function le(
|
|
37
|
+
function le(s, l, u) {
|
|
38
38
|
{
|
|
39
|
-
var
|
|
40
|
-
E !== "" && (l += "%s",
|
|
41
|
-
var T =
|
|
39
|
+
var g = H.ReactDebugCurrentFrame, E = g.getStackAddendum();
|
|
40
|
+
E !== "" && (l += "%s", u = u.concat([E]));
|
|
41
|
+
var T = u.map(function(_) {
|
|
42
42
|
return String(_);
|
|
43
43
|
});
|
|
44
|
-
T.unshift("Warning: " + l), Function.prototype.apply.call(console[
|
|
44
|
+
T.unshift("Warning: " + l), Function.prototype.apply.call(console[s], console, T);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
var oe = !1, Z = !1,
|
|
47
|
+
var oe = !1, Z = !1, we = !1, Re = !1, de = !1, me;
|
|
48
48
|
me = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
49
|
-
function Le(
|
|
50
|
-
return !!(typeof
|
|
49
|
+
function Le(s) {
|
|
50
|
+
return !!(typeof s == "string" || typeof s == "function" || s === i || s === o || de || s === d || s === f || s === x || Re || s === K || oe || Z || we || typeof s == "object" && s !== null && (s.$$typeof === w || s.$$typeof === p || s.$$typeof === m || s.$$typeof === t || s.$$typeof === h || // This needs to include all possible module reference object
|
|
51
51
|
// types supported by any Flight configuration anywhere since
|
|
52
52
|
// we don't know which Flight build this will end up being used
|
|
53
53
|
// with.
|
|
54
|
-
|
|
54
|
+
s.$$typeof === me || s.getModuleId !== void 0));
|
|
55
55
|
}
|
|
56
|
-
function Ie(
|
|
57
|
-
var
|
|
58
|
-
if (
|
|
59
|
-
return
|
|
56
|
+
function Ie(s, l, u) {
|
|
57
|
+
var g = s.displayName;
|
|
58
|
+
if (g)
|
|
59
|
+
return g;
|
|
60
60
|
var E = l.displayName || l.name || "";
|
|
61
|
-
return E !== "" ?
|
|
61
|
+
return E !== "" ? u + "(" + E + ")" : u;
|
|
62
62
|
}
|
|
63
|
-
function Ee(
|
|
64
|
-
return
|
|
63
|
+
function Ee(s) {
|
|
64
|
+
return s.displayName || "Context";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
if (
|
|
66
|
+
function N(s) {
|
|
67
|
+
if (s == null)
|
|
68
68
|
return null;
|
|
69
|
-
if (typeof
|
|
70
|
-
return
|
|
71
|
-
if (typeof
|
|
72
|
-
return
|
|
73
|
-
switch (
|
|
69
|
+
if (typeof s.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
|
|
70
|
+
return s.displayName || s.name || null;
|
|
71
|
+
if (typeof s == "string")
|
|
72
|
+
return s;
|
|
73
|
+
switch (s) {
|
|
74
74
|
case i:
|
|
75
75
|
return "Fragment";
|
|
76
|
-
case
|
|
76
|
+
case a:
|
|
77
77
|
return "Portal";
|
|
78
78
|
case o:
|
|
79
79
|
return "Profiler";
|
|
80
80
|
case d:
|
|
81
81
|
return "StrictMode";
|
|
82
|
-
case
|
|
82
|
+
case f:
|
|
83
83
|
return "Suspense";
|
|
84
|
-
case
|
|
84
|
+
case x:
|
|
85
85
|
return "SuspenseList";
|
|
86
86
|
}
|
|
87
|
-
if (typeof
|
|
88
|
-
switch (
|
|
89
|
-
case
|
|
90
|
-
var l =
|
|
87
|
+
if (typeof s == "object")
|
|
88
|
+
switch (s.$$typeof) {
|
|
89
|
+
case t:
|
|
90
|
+
var l = s;
|
|
91
91
|
return Ee(l) + ".Consumer";
|
|
92
92
|
case m:
|
|
93
|
-
var
|
|
94
|
-
return Ee(
|
|
95
|
-
case
|
|
96
|
-
return Ie(
|
|
97
|
-
case
|
|
98
|
-
var
|
|
99
|
-
return
|
|
100
|
-
case
|
|
101
|
-
var E =
|
|
93
|
+
var u = s;
|
|
94
|
+
return Ee(u._context) + ".Provider";
|
|
95
|
+
case h:
|
|
96
|
+
return Ie(s, s.render, "ForwardRef");
|
|
97
|
+
case p:
|
|
98
|
+
var g = s.displayName || null;
|
|
99
|
+
return g !== null ? g : N(s.type) || "Memo";
|
|
100
|
+
case w: {
|
|
101
|
+
var E = s, T = E._payload, _ = E._init;
|
|
102
102
|
try {
|
|
103
|
-
return
|
|
103
|
+
return N(_(T));
|
|
104
104
|
} catch {
|
|
105
105
|
return null;
|
|
106
106
|
}
|
|
@@ -108,101 +108,101 @@ function ms() {
|
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
111
|
-
var C = Object.assign,
|
|
112
|
-
function
|
|
111
|
+
var C = Object.assign, re = 0, fe, Te, ne, es, ss, rs, ns;
|
|
112
|
+
function ts() {
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
function
|
|
114
|
+
ts.__reactDisabledLog = !0;
|
|
115
|
+
function Os() {
|
|
116
116
|
{
|
|
117
|
-
if (
|
|
118
|
-
|
|
119
|
-
var
|
|
117
|
+
if (re === 0) {
|
|
118
|
+
fe = console.log, Te = console.info, ne = console.warn, es = console.error, ss = console.group, rs = console.groupCollapsed, ns = console.groupEnd;
|
|
119
|
+
var s = {
|
|
120
120
|
configurable: !0,
|
|
121
121
|
enumerable: !0,
|
|
122
|
-
value:
|
|
122
|
+
value: ts,
|
|
123
123
|
writable: !0
|
|
124
124
|
};
|
|
125
125
|
Object.defineProperties(console, {
|
|
126
|
-
info:
|
|
127
|
-
log:
|
|
128
|
-
warn:
|
|
129
|
-
error:
|
|
130
|
-
group:
|
|
131
|
-
groupCollapsed:
|
|
132
|
-
groupEnd:
|
|
126
|
+
info: s,
|
|
127
|
+
log: s,
|
|
128
|
+
warn: s,
|
|
129
|
+
error: s,
|
|
130
|
+
group: s,
|
|
131
|
+
groupCollapsed: s,
|
|
132
|
+
groupEnd: s
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
re++;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function $
|
|
138
|
+
function $s() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
141
|
-
var
|
|
140
|
+
if (re--, re === 0) {
|
|
141
|
+
var s = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
147
|
-
log: C({},
|
|
148
|
-
value:
|
|
147
|
+
log: C({}, s, {
|
|
148
|
+
value: fe
|
|
149
149
|
}),
|
|
150
|
-
info: C({},
|
|
150
|
+
info: C({}, s, {
|
|
151
151
|
value: Te
|
|
152
152
|
}),
|
|
153
|
-
warn: C({},
|
|
153
|
+
warn: C({}, s, {
|
|
154
154
|
value: ne
|
|
155
155
|
}),
|
|
156
|
-
error: C({},
|
|
157
|
-
value:
|
|
156
|
+
error: C({}, s, {
|
|
157
|
+
value: es
|
|
158
158
|
}),
|
|
159
|
-
group: C({},
|
|
160
|
-
value:
|
|
159
|
+
group: C({}, s, {
|
|
160
|
+
value: ss
|
|
161
161
|
}),
|
|
162
|
-
groupCollapsed: C({},
|
|
163
|
-
value:
|
|
162
|
+
groupCollapsed: C({}, s, {
|
|
163
|
+
value: rs
|
|
164
164
|
}),
|
|
165
|
-
groupEnd: C({},
|
|
166
|
-
value:
|
|
165
|
+
groupEnd: C({}, s, {
|
|
166
|
+
value: ns
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
re < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
var Ue = H.ReactCurrentDispatcher, Me;
|
|
174
|
-
function Ce(
|
|
174
|
+
function Ce(s, l, u) {
|
|
175
175
|
{
|
|
176
176
|
if (Me === void 0)
|
|
177
177
|
try {
|
|
178
178
|
throw Error();
|
|
179
179
|
} catch (E) {
|
|
180
|
-
var
|
|
181
|
-
Me =
|
|
180
|
+
var g = E.stack.trim().match(/\n( *(at )?)/);
|
|
181
|
+
Me = g && g[1] || "";
|
|
182
182
|
}
|
|
183
183
|
return `
|
|
184
|
-
` + Me +
|
|
184
|
+
` + Me + s;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
var qe = !1, Pe;
|
|
188
188
|
{
|
|
189
|
-
var
|
|
190
|
-
Pe = new
|
|
189
|
+
var Bs = typeof WeakMap == "function" ? WeakMap : Map;
|
|
190
|
+
Pe = new Bs();
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
if (!
|
|
192
|
+
function as(s, l) {
|
|
193
|
+
if (!s || qe)
|
|
194
194
|
return "";
|
|
195
195
|
{
|
|
196
|
-
var
|
|
197
|
-
if (
|
|
198
|
-
return
|
|
196
|
+
var u = Pe.get(s);
|
|
197
|
+
if (u !== void 0)
|
|
198
|
+
return u;
|
|
199
199
|
}
|
|
200
|
-
var
|
|
200
|
+
var g;
|
|
201
201
|
qe = !0;
|
|
202
202
|
var E = Error.prepareStackTrace;
|
|
203
203
|
Error.prepareStackTrace = void 0;
|
|
204
204
|
var T;
|
|
205
|
-
T = Ue.current, Ue.current = null,
|
|
205
|
+
T = Ue.current, Ue.current = null, Os();
|
|
206
206
|
try {
|
|
207
207
|
if (l) {
|
|
208
208
|
var _ = function() {
|
|
@@ -216,29 +216,29 @@ function ms() {
|
|
|
216
216
|
try {
|
|
217
217
|
Reflect.construct(_, []);
|
|
218
218
|
} catch (M) {
|
|
219
|
-
|
|
219
|
+
g = M;
|
|
220
220
|
}
|
|
221
|
-
Reflect.construct(
|
|
221
|
+
Reflect.construct(s, [], _);
|
|
222
222
|
} else {
|
|
223
223
|
try {
|
|
224
224
|
_.call();
|
|
225
225
|
} catch (M) {
|
|
226
|
-
|
|
226
|
+
g = M;
|
|
227
227
|
}
|
|
228
|
-
|
|
228
|
+
s.call(_.prototype);
|
|
229
229
|
}
|
|
230
230
|
} else {
|
|
231
231
|
try {
|
|
232
232
|
throw Error();
|
|
233
233
|
} catch (M) {
|
|
234
|
-
|
|
234
|
+
g = M;
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
s();
|
|
237
237
|
}
|
|
238
238
|
} catch (M) {
|
|
239
|
-
if (M &&
|
|
239
|
+
if (M && g && typeof M.stack == "string") {
|
|
240
240
|
for (var v = M.stack.split(`
|
|
241
|
-
`), U =
|
|
241
|
+
`), U = g.stack.split(`
|
|
242
242
|
`), S = v.length - 1, A = U.length - 1; S >= 1 && A >= 0 && v[S] !== U[A]; )
|
|
243
243
|
A--;
|
|
244
244
|
for (; S >= 1 && A >= 0; S--, A--)
|
|
@@ -248,160 +248,160 @@ function ms() {
|
|
|
248
248
|
if (S--, A--, A < 0 || v[S] !== U[A]) {
|
|
249
249
|
var Y = `
|
|
250
250
|
` + v[S].replace(" at new ", " at ");
|
|
251
|
-
return
|
|
251
|
+
return s.displayName && Y.includes("<anonymous>") && (Y = Y.replace("<anonymous>", s.displayName)), typeof s == "function" && Pe.set(s, Y), Y;
|
|
252
252
|
}
|
|
253
253
|
while (S >= 1 && A >= 0);
|
|
254
254
|
break;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
} finally {
|
|
258
|
-
qe = !1, Ue.current = T, $
|
|
258
|
+
qe = !1, Ue.current = T, $s(), Error.prepareStackTrace = E;
|
|
259
259
|
}
|
|
260
|
-
var he =
|
|
261
|
-
return typeof
|
|
260
|
+
var he = s ? s.displayName || s.name : "", te = he ? Ce(he) : "";
|
|
261
|
+
return typeof s == "function" && Pe.set(s, te), te;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
263
|
+
function Ls(s, l, u) {
|
|
264
|
+
return as(s, !1);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
var l =
|
|
266
|
+
function Is(s) {
|
|
267
|
+
var l = s.prototype;
|
|
268
268
|
return !!(l && l.isReactComponent);
|
|
269
269
|
}
|
|
270
|
-
function Se(
|
|
271
|
-
if (
|
|
270
|
+
function Se(s, l, u) {
|
|
271
|
+
if (s == null)
|
|
272
272
|
return "";
|
|
273
|
-
if (typeof
|
|
274
|
-
return
|
|
275
|
-
if (typeof
|
|
276
|
-
return Ce(
|
|
277
|
-
switch (
|
|
278
|
-
case
|
|
273
|
+
if (typeof s == "function")
|
|
274
|
+
return as(s, Is(s));
|
|
275
|
+
if (typeof s == "string")
|
|
276
|
+
return Ce(s);
|
|
277
|
+
switch (s) {
|
|
278
|
+
case f:
|
|
279
279
|
return Ce("Suspense");
|
|
280
|
-
case
|
|
280
|
+
case x:
|
|
281
281
|
return Ce("SuspenseList");
|
|
282
282
|
}
|
|
283
|
-
if (typeof
|
|
284
|
-
switch (
|
|
285
|
-
case
|
|
286
|
-
return
|
|
287
|
-
case
|
|
288
|
-
return Se(
|
|
289
|
-
case
|
|
290
|
-
var
|
|
283
|
+
if (typeof s == "object")
|
|
284
|
+
switch (s.$$typeof) {
|
|
285
|
+
case h:
|
|
286
|
+
return Ls(s.render);
|
|
287
|
+
case p:
|
|
288
|
+
return Se(s.type, l, u);
|
|
289
|
+
case w: {
|
|
290
|
+
var g = s, E = g._payload, T = g._init;
|
|
291
291
|
try {
|
|
292
|
-
return Se(T(E), l,
|
|
292
|
+
return Se(T(E), l, u);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
return "";
|
|
298
298
|
}
|
|
299
|
-
var
|
|
300
|
-
function De(
|
|
301
|
-
if (
|
|
302
|
-
var l =
|
|
303
|
-
|
|
299
|
+
var je = Object.prototype.hasOwnProperty, is = {}, cs = H.ReactDebugCurrentFrame;
|
|
300
|
+
function De(s) {
|
|
301
|
+
if (s) {
|
|
302
|
+
var l = s._owner, u = Se(s.type, s._source, l ? l.type : null);
|
|
303
|
+
cs.setExtraStackFrame(u);
|
|
304
304
|
} else
|
|
305
|
-
|
|
305
|
+
cs.setExtraStackFrame(null);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function Us(s, l, u, g, E) {
|
|
308
308
|
{
|
|
309
|
-
var T = Function.call.bind(
|
|
310
|
-
for (var _ in
|
|
311
|
-
if (T(
|
|
309
|
+
var T = Function.call.bind(je);
|
|
310
|
+
for (var _ in s)
|
|
311
|
+
if (T(s, _)) {
|
|
312
312
|
var v = void 0;
|
|
313
313
|
try {
|
|
314
|
-
if (typeof
|
|
315
|
-
var U = Error((
|
|
314
|
+
if (typeof s[_] != "function") {
|
|
315
|
+
var U = Error((g || "React class") + ": " + u + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
316
316
|
throw U.name = "Invariant Violation", U;
|
|
317
317
|
}
|
|
318
|
-
v =
|
|
318
|
+
v = s[_](l, _, g, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
319
319
|
} catch (S) {
|
|
320
320
|
v = S;
|
|
321
321
|
}
|
|
322
|
-
v && !(v instanceof Error) && (De(E), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
|
|
322
|
+
v && !(v instanceof Error) && (De(E), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", u, _, typeof v), De(null)), v instanceof Error && !(v.message in is) && (is[v.message] = !0, De(E), P("Failed %s type: %s", u, v.message), De(null));
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
var
|
|
327
|
-
function Ge(
|
|
328
|
-
return
|
|
326
|
+
var Ms = Array.isArray;
|
|
327
|
+
function Ge(s) {
|
|
328
|
+
return Ms(s);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function qs(s) {
|
|
331
331
|
{
|
|
332
|
-
var l = typeof Symbol == "function" && Symbol.toStringTag,
|
|
333
|
-
return
|
|
332
|
+
var l = typeof Symbol == "function" && Symbol.toStringTag, u = l && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
333
|
+
return u;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Gs(s) {
|
|
337
337
|
try {
|
|
338
|
-
return
|
|
338
|
+
return ls(s), !1;
|
|
339
339
|
} catch {
|
|
340
340
|
return !0;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
return "" +
|
|
343
|
+
function ls(s) {
|
|
344
|
+
return "" + s;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
if (
|
|
348
|
-
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
346
|
+
function os(s) {
|
|
347
|
+
if (Gs(s))
|
|
348
|
+
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qs(s)), ls(s);
|
|
349
349
|
}
|
|
350
|
-
var
|
|
350
|
+
var ds = H.ReactCurrentOwner, Vs = {
|
|
351
351
|
key: !0,
|
|
352
352
|
ref: !0,
|
|
353
353
|
__self: !0,
|
|
354
354
|
__source: !0
|
|
355
|
-
},
|
|
356
|
-
function
|
|
357
|
-
if (
|
|
358
|
-
var l = Object.getOwnPropertyDescriptor(
|
|
355
|
+
}, us, hs;
|
|
356
|
+
function Ws(s) {
|
|
357
|
+
if (je.call(s, "ref")) {
|
|
358
|
+
var l = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
359
359
|
if (l && l.isReactWarning)
|
|
360
360
|
return !1;
|
|
361
361
|
}
|
|
362
|
-
return
|
|
362
|
+
return s.ref !== void 0;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
if (
|
|
366
|
-
var l = Object.getOwnPropertyDescriptor(
|
|
364
|
+
function Ys(s) {
|
|
365
|
+
if (je.call(s, "key")) {
|
|
366
|
+
var l = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
367
367
|
if (l && l.isReactWarning)
|
|
368
368
|
return !1;
|
|
369
369
|
}
|
|
370
|
-
return
|
|
370
|
+
return s.key !== void 0;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
typeof
|
|
372
|
+
function zs(s, l) {
|
|
373
|
+
typeof s.ref == "string" && ds.current;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Ks(s, l) {
|
|
376
376
|
{
|
|
377
|
-
var
|
|
378
|
-
|
|
377
|
+
var u = function() {
|
|
378
|
+
us || (us = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
379
379
|
};
|
|
380
|
-
|
|
381
|
-
get:
|
|
380
|
+
u.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
381
|
+
get: u,
|
|
382
382
|
configurable: !0
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Js(s, l) {
|
|
387
387
|
{
|
|
388
|
-
var
|
|
389
|
-
|
|
388
|
+
var u = function() {
|
|
389
|
+
hs || (hs = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
390
390
|
};
|
|
391
|
-
|
|
392
|
-
get:
|
|
391
|
+
u.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
392
|
+
get: u,
|
|
393
393
|
configurable: !0
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
var
|
|
397
|
+
var Hs = function(s, l, u, g, E, T, _) {
|
|
398
398
|
var v = {
|
|
399
399
|
// This tag allows us to uniquely identify this as a React Element
|
|
400
400
|
$$typeof: n,
|
|
401
401
|
// Built-in properties that belong on the element
|
|
402
|
-
type:
|
|
402
|
+
type: s,
|
|
403
403
|
key: l,
|
|
404
|
-
ref:
|
|
404
|
+
ref: u,
|
|
405
405
|
props: _,
|
|
406
406
|
// Record the component responsible for creating this element.
|
|
407
407
|
_owner: T
|
|
@@ -415,7 +415,7 @@ function ms() {
|
|
|
415
415
|
configurable: !1,
|
|
416
416
|
enumerable: !1,
|
|
417
417
|
writable: !1,
|
|
418
|
-
value:
|
|
418
|
+
value: g
|
|
419
419
|
}), Object.defineProperty(v, "_source", {
|
|
420
420
|
configurable: !1,
|
|
421
421
|
enumerable: !1,
|
|
@@ -423,200 +423,200 @@ function ms() {
|
|
|
423
423
|
value: E
|
|
424
424
|
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
|
|
425
425
|
};
|
|
426
|
-
function
|
|
426
|
+
function Xs(s, l, u, g, E) {
|
|
427
427
|
{
|
|
428
428
|
var T, _ = {}, v = null, U = null;
|
|
429
|
-
|
|
429
|
+
u !== void 0 && (os(u), v = "" + u), Ys(l) && (os(l.key), v = "" + l.key), Ws(l) && (U = l.ref, zs(l, E));
|
|
430
430
|
for (T in l)
|
|
431
|
-
|
|
432
|
-
if (
|
|
433
|
-
var S =
|
|
431
|
+
je.call(l, T) && !Vs.hasOwnProperty(T) && (_[T] = l[T]);
|
|
432
|
+
if (s && s.defaultProps) {
|
|
433
|
+
var S = s.defaultProps;
|
|
434
434
|
for (T in S)
|
|
435
435
|
_[T] === void 0 && (_[T] = S[T]);
|
|
436
436
|
}
|
|
437
437
|
if (v || U) {
|
|
438
|
-
var A = typeof
|
|
439
|
-
v &&
|
|
438
|
+
var A = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
439
|
+
v && Ks(_, A), U && Js(_, A);
|
|
440
440
|
}
|
|
441
|
-
return
|
|
441
|
+
return Hs(s, v, U, E, g, ds.current, _);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
var Ve = H.ReactCurrentOwner,
|
|
445
|
-
function ue(
|
|
446
|
-
if (
|
|
447
|
-
var l =
|
|
448
|
-
|
|
444
|
+
var Ve = H.ReactCurrentOwner, xs = H.ReactDebugCurrentFrame;
|
|
445
|
+
function ue(s) {
|
|
446
|
+
if (s) {
|
|
447
|
+
var l = s._owner, u = Se(s.type, s._source, l ? l.type : null);
|
|
448
|
+
xs.setExtraStackFrame(u);
|
|
449
449
|
} else
|
|
450
|
-
|
|
450
|
+
xs.setExtraStackFrame(null);
|
|
451
451
|
}
|
|
452
452
|
var We;
|
|
453
453
|
We = !1;
|
|
454
|
-
function Ye(
|
|
455
|
-
return typeof
|
|
454
|
+
function Ye(s) {
|
|
455
|
+
return typeof s == "object" && s !== null && s.$$typeof === n;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function ms() {
|
|
458
458
|
{
|
|
459
459
|
if (Ve.current) {
|
|
460
|
-
var
|
|
461
|
-
if (
|
|
460
|
+
var s = N(Ve.current.type);
|
|
461
|
+
if (s)
|
|
462
462
|
return `
|
|
463
463
|
|
|
464
|
-
Check the render method of \`` +
|
|
464
|
+
Check the render method of \`` + s + "`.";
|
|
465
465
|
}
|
|
466
466
|
return "";
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Qs(s) {
|
|
470
470
|
return "";
|
|
471
471
|
}
|
|
472
|
-
var
|
|
473
|
-
function
|
|
472
|
+
var fs = {};
|
|
473
|
+
function Zs(s) {
|
|
474
474
|
{
|
|
475
|
-
var l =
|
|
475
|
+
var l = ms();
|
|
476
476
|
if (!l) {
|
|
477
|
-
var
|
|
478
|
-
|
|
477
|
+
var u = typeof s == "string" ? s : s.displayName || s.name;
|
|
478
|
+
u && (l = `
|
|
479
479
|
|
|
480
|
-
Check the top-level render call using <` +
|
|
480
|
+
Check the top-level render call using <` + u + ">.");
|
|
481
481
|
}
|
|
482
482
|
return l;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function js(s, l) {
|
|
486
486
|
{
|
|
487
|
-
if (!
|
|
487
|
+
if (!s._store || s._store.validated || s.key != null)
|
|
488
488
|
return;
|
|
489
|
-
|
|
490
|
-
var
|
|
491
|
-
if (
|
|
489
|
+
s._store.validated = !0;
|
|
490
|
+
var u = Zs(l);
|
|
491
|
+
if (fs[u])
|
|
492
492
|
return;
|
|
493
|
-
|
|
494
|
-
var
|
|
495
|
-
|
|
493
|
+
fs[u] = !0;
|
|
494
|
+
var g = "";
|
|
495
|
+
s && s._owner && s._owner !== Ve.current && (g = " It was passed a child from " + N(s._owner.type) + "."), ue(s), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, g), ue(null);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function ps(s, l) {
|
|
499
499
|
{
|
|
500
|
-
if (typeof
|
|
500
|
+
if (typeof s != "object")
|
|
501
501
|
return;
|
|
502
|
-
if (Ge(
|
|
503
|
-
for (var
|
|
504
|
-
var
|
|
505
|
-
Ye(
|
|
502
|
+
if (Ge(s))
|
|
503
|
+
for (var u = 0; u < s.length; u++) {
|
|
504
|
+
var g = s[u];
|
|
505
|
+
Ye(g) && js(g, l);
|
|
506
506
|
}
|
|
507
|
-
else if (Ye(
|
|
508
|
-
|
|
509
|
-
else if (
|
|
510
|
-
var E = J(
|
|
511
|
-
if (typeof E == "function" && E !==
|
|
512
|
-
for (var T = E.call(
|
|
513
|
-
Ye(_.value) &&
|
|
507
|
+
else if (Ye(s))
|
|
508
|
+
s._store && (s._store.validated = !0);
|
|
509
|
+
else if (s) {
|
|
510
|
+
var E = J(s);
|
|
511
|
+
if (typeof E == "function" && E !== s.entries)
|
|
512
|
+
for (var T = E.call(s), _; !(_ = T.next()).done; )
|
|
513
|
+
Ye(_.value) && js(_.value, l);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function er(s) {
|
|
518
518
|
{
|
|
519
|
-
var l =
|
|
519
|
+
var l = s.type;
|
|
520
520
|
if (l == null || typeof l == "string")
|
|
521
521
|
return;
|
|
522
|
-
var
|
|
522
|
+
var u;
|
|
523
523
|
if (typeof l == "function")
|
|
524
|
-
|
|
525
|
-
else if (typeof l == "object" && (l.$$typeof ===
|
|
524
|
+
u = l.propTypes;
|
|
525
|
+
else if (typeof l == "object" && (l.$$typeof === h || // Note: Memo only checks outer props here.
|
|
526
526
|
// Inner props are checked in the reconciler.
|
|
527
|
-
l.$$typeof ===
|
|
528
|
-
|
|
527
|
+
l.$$typeof === p))
|
|
528
|
+
u = l.propTypes;
|
|
529
529
|
else
|
|
530
530
|
return;
|
|
531
|
-
if (
|
|
532
|
-
var
|
|
533
|
-
|
|
531
|
+
if (u) {
|
|
532
|
+
var g = N(l);
|
|
533
|
+
Us(u, s.props, "prop", g, s);
|
|
534
534
|
} else if (l.PropTypes !== void 0 && !We) {
|
|
535
535
|
We = !0;
|
|
536
|
-
var E =
|
|
536
|
+
var E = N(l);
|
|
537
537
|
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
|
|
538
538
|
}
|
|
539
539
|
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function sr(s) {
|
|
543
543
|
{
|
|
544
|
-
for (var l = Object.keys(
|
|
545
|
-
var
|
|
546
|
-
if (
|
|
547
|
-
ue(
|
|
544
|
+
for (var l = Object.keys(s.props), u = 0; u < l.length; u++) {
|
|
545
|
+
var g = l[u];
|
|
546
|
+
if (g !== "children" && g !== "key") {
|
|
547
|
+
ue(s), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), ue(null);
|
|
548
548
|
break;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
|
|
551
|
+
s.ref !== null && (ue(s), P("Invalid attribute `ref` supplied to `React.Fragment`."), ue(null));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
var
|
|
555
|
-
function
|
|
554
|
+
var gs = {};
|
|
555
|
+
function vs(s, l, u, g, E, T) {
|
|
556
556
|
{
|
|
557
|
-
var _ = Le(
|
|
557
|
+
var _ = Le(s);
|
|
558
558
|
if (!_) {
|
|
559
559
|
var v = "";
|
|
560
|
-
(
|
|
561
|
-
var U =
|
|
562
|
-
U ? v += U : v +=
|
|
560
|
+
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
561
|
+
var U = Qs();
|
|
562
|
+
U ? v += U : v += ms();
|
|
563
563
|
var S;
|
|
564
|
-
|
|
564
|
+
s === null ? S = "null" : Ge(s) ? S = "array" : s !== void 0 && s.$$typeof === n ? (S = "<" + (N(s.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : S = typeof s, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, v);
|
|
565
565
|
}
|
|
566
|
-
var A =
|
|
566
|
+
var A = Xs(s, l, u, E, T);
|
|
567
567
|
if (A == null)
|
|
568
568
|
return A;
|
|
569
569
|
if (_) {
|
|
570
570
|
var Y = l.children;
|
|
571
571
|
if (Y !== void 0)
|
|
572
|
-
if (
|
|
572
|
+
if (g)
|
|
573
573
|
if (Ge(Y)) {
|
|
574
574
|
for (var he = 0; he < Y.length; he++)
|
|
575
|
-
|
|
575
|
+
ps(Y[he], s);
|
|
576
576
|
Object.freeze && Object.freeze(Y);
|
|
577
577
|
} else
|
|
578
578
|
P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
579
579
|
else
|
|
580
|
-
|
|
580
|
+
ps(Y, s);
|
|
581
581
|
}
|
|
582
|
-
if (
|
|
583
|
-
var te =
|
|
584
|
-
return
|
|
582
|
+
if (je.call(l, "key")) {
|
|
583
|
+
var te = N(s), M = Object.keys(l).filter(function(cr) {
|
|
584
|
+
return cr !== "key";
|
|
585
585
|
}), ze = M.length > 0 ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
586
|
-
if (!
|
|
587
|
-
var
|
|
586
|
+
if (!gs[te + ze]) {
|
|
587
|
+
var ir = M.length > 0 ? "{" + M.join(": ..., ") + ": ...}" : "{}";
|
|
588
588
|
P(`A props object containing a "key" prop is being spread into JSX:
|
|
589
589
|
let props = %s;
|
|
590
590
|
<%s {...props} />
|
|
591
591
|
React keys must be passed directly to JSX without using spread:
|
|
592
592
|
let props = %s;
|
|
593
|
-
<%s key={someKey} {...props} />`, ze, te,
|
|
593
|
+
<%s key={someKey} {...props} />`, ze, te, ir, te), gs[te + ze] = !0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
return
|
|
596
|
+
return s === i ? sr(A) : er(A), A;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
return
|
|
599
|
+
function rr(s, l, u) {
|
|
600
|
+
return vs(s, l, u, !0);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
return
|
|
602
|
+
function nr(s, l, u) {
|
|
603
|
+
return vs(s, l, u, !1);
|
|
604
604
|
}
|
|
605
|
-
var
|
|
606
|
-
ge.Fragment = i, ge.jsx =
|
|
605
|
+
var tr = nr, ar = rr;
|
|
606
|
+
ge.Fragment = i, ge.jsx = tr, ge.jsxs = ar;
|
|
607
607
|
})()), ge;
|
|
608
608
|
}
|
|
609
|
-
var
|
|
610
|
-
function
|
|
611
|
-
return
|
|
609
|
+
var _s;
|
|
610
|
+
function fr() {
|
|
611
|
+
return _s || (_s = 1, process.env.NODE_ENV === "production" ? ke.exports = xr() : ke.exports = mr()), ke.exports;
|
|
612
612
|
}
|
|
613
|
-
var e =
|
|
613
|
+
var e = fr();
|
|
614
614
|
class Ne extends Error {
|
|
615
|
-
constructor(n,
|
|
616
|
-
super(
|
|
615
|
+
constructor(n, a) {
|
|
616
|
+
super(a), this.status = n, this.name = "ApiError";
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
class
|
|
619
|
+
class jr {
|
|
620
620
|
baseUrl;
|
|
621
621
|
headers;
|
|
622
622
|
constructor(n = {}) {
|
|
@@ -625,15 +625,15 @@ class fs {
|
|
|
625
625
|
...n.headers
|
|
626
626
|
};
|
|
627
627
|
}
|
|
628
|
-
async request(n,
|
|
629
|
-
let d = `${this.baseUrl}${
|
|
628
|
+
async request(n, a, i = {}) {
|
|
629
|
+
let d = `${this.baseUrl}${a}`;
|
|
630
630
|
if (i.params) {
|
|
631
631
|
const m = new URLSearchParams();
|
|
632
|
-
Object.entries(i.params).forEach(([
|
|
633
|
-
|
|
632
|
+
Object.entries(i.params).forEach(([h, f]) => {
|
|
633
|
+
f != null && f !== "" && m.set(h, String(f));
|
|
634
634
|
});
|
|
635
|
-
const
|
|
636
|
-
|
|
635
|
+
const t = m.toString();
|
|
636
|
+
t && (d += `?${t}`);
|
|
637
637
|
}
|
|
638
638
|
const o = await fetch(d, {
|
|
639
639
|
method: n,
|
|
@@ -659,8 +659,8 @@ class fs {
|
|
|
659
659
|
async deleteRun(n) {
|
|
660
660
|
await this.request("DELETE", `/api/runs/${n}`);
|
|
661
661
|
}
|
|
662
|
-
async setBaseline(n,
|
|
663
|
-
return this.request("POST", `/api/projects/${n}/baseline/${
|
|
662
|
+
async setBaseline(n, a) {
|
|
663
|
+
return this.request("POST", `/api/projects/${n}/baseline/${a}`, {
|
|
664
664
|
params: { redirect: "false" }
|
|
665
665
|
});
|
|
666
666
|
}
|
|
@@ -673,138 +673,138 @@ class fs {
|
|
|
673
673
|
async getGroup(n) {
|
|
674
674
|
return this.request("GET", `/api/groups/${n}`);
|
|
675
675
|
}
|
|
676
|
-
async getDiff(n,
|
|
676
|
+
async getDiff(n, a) {
|
|
677
677
|
return this.request("GET", "/api/diff", {
|
|
678
|
-
params: { a: n, b:
|
|
678
|
+
params: { a: n, b: a }
|
|
679
679
|
});
|
|
680
680
|
}
|
|
681
|
-
async getArtifact(n,
|
|
682
|
-
return this.request("GET", `/api/runs/${n}/artifacts/${
|
|
681
|
+
async getArtifact(n, a) {
|
|
682
|
+
return this.request("GET", `/api/runs/${n}/artifacts/${a}`);
|
|
683
683
|
}
|
|
684
|
-
getArtifactDownloadUrl(n,
|
|
685
|
-
return `${this.baseUrl}/api/runs/${n}/artifacts/${
|
|
684
|
+
getArtifactDownloadUrl(n, a) {
|
|
685
|
+
return `${this.baseUrl}/api/runs/${n}/artifacts/${a}/raw`;
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
|
-
const
|
|
689
|
-
function
|
|
690
|
-
children:
|
|
691
|
-
api: n =
|
|
692
|
-
initialWorkspace:
|
|
688
|
+
const pr = new jr(), Ts = Es(null);
|
|
689
|
+
function gr({
|
|
690
|
+
children: r,
|
|
691
|
+
api: n = pr,
|
|
692
|
+
initialWorkspace: a = null
|
|
693
693
|
}) {
|
|
694
|
-
const [i, d] = O(null), [o, m] = O(
|
|
694
|
+
const [i, d] = O(null), [o, m] = O(a);
|
|
695
695
|
return xe(() => {
|
|
696
696
|
n.getCapabilities().then(d).catch(console.error);
|
|
697
|
-
}, [n]), /* @__PURE__ */ e.jsx(
|
|
697
|
+
}, [n]), /* @__PURE__ */ e.jsx(Ts.Provider, { value: { api: n, capabilities: i, currentWorkspace: o, setCurrentWorkspace: m }, children: r });
|
|
698
698
|
}
|
|
699
699
|
function W() {
|
|
700
|
-
const
|
|
701
|
-
if (!
|
|
702
|
-
return
|
|
700
|
+
const r = Rs(Ts);
|
|
701
|
+
if (!r) throw new Error("useApp must be used within AppProvider");
|
|
702
|
+
return r;
|
|
703
703
|
}
|
|
704
|
-
function ie(
|
|
705
|
-
const [
|
|
704
|
+
function ie(r, n = []) {
|
|
705
|
+
const [a, i] = O({
|
|
706
706
|
data: null,
|
|
707
707
|
loading: !0,
|
|
708
708
|
error: null
|
|
709
|
-
}), d =
|
|
710
|
-
o.current =
|
|
709
|
+
}), d = bs(!0), o = bs(r);
|
|
710
|
+
o.current = r;
|
|
711
711
|
const m = be(async () => {
|
|
712
|
-
i((
|
|
712
|
+
i((t) => ({ ...t, loading: !0, error: null }));
|
|
713
713
|
try {
|
|
714
|
-
const
|
|
715
|
-
d.current && i({ data:
|
|
716
|
-
} catch (
|
|
714
|
+
const t = await o.current();
|
|
715
|
+
d.current && i({ data: t, loading: !1, error: null });
|
|
716
|
+
} catch (t) {
|
|
717
717
|
d.current && i({
|
|
718
718
|
data: null,
|
|
719
719
|
loading: !1,
|
|
720
|
-
error:
|
|
720
|
+
error: t instanceof Ne ? t : new Ne(500, String(t))
|
|
721
721
|
});
|
|
722
722
|
}
|
|
723
723
|
}, []);
|
|
724
724
|
return xe(() => (d.current = !0, m(), () => {
|
|
725
725
|
d.current = !1;
|
|
726
|
-
}), n), { ...
|
|
726
|
+
}), n), { ...a, refetch: m };
|
|
727
727
|
}
|
|
728
|
-
function
|
|
729
|
-
const { api: n, currentWorkspace:
|
|
728
|
+
function Cs(r) {
|
|
729
|
+
const { api: n, currentWorkspace: a } = W();
|
|
730
730
|
return ie(
|
|
731
|
-
() => n.listRuns({ ...
|
|
732
|
-
[n,
|
|
731
|
+
() => n.listRuns({ ...r, workspace: a?.id }),
|
|
732
|
+
[n, a?.id, r?.project, r?.status, r?.q, r?.limit]
|
|
733
733
|
);
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function Ps(r) {
|
|
736
736
|
const { api: n } = W();
|
|
737
737
|
return ie(
|
|
738
738
|
async () => {
|
|
739
|
-
const { run:
|
|
740
|
-
return
|
|
739
|
+
const { run: a } = await n.getRun(r);
|
|
740
|
+
return a;
|
|
741
741
|
},
|
|
742
|
-
[n,
|
|
742
|
+
[n, r]
|
|
743
743
|
);
|
|
744
744
|
}
|
|
745
745
|
function $e() {
|
|
746
|
-
const { api:
|
|
746
|
+
const { api: r, currentWorkspace: n } = W();
|
|
747
747
|
return ie(
|
|
748
748
|
async () => {
|
|
749
|
-
const { projects:
|
|
750
|
-
return
|
|
749
|
+
const { projects: a } = await r.listProjects({ workspace: n?.id });
|
|
750
|
+
return a;
|
|
751
751
|
},
|
|
752
|
-
[
|
|
752
|
+
[r, n?.id]
|
|
753
753
|
);
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
const { api: n, currentWorkspace:
|
|
755
|
+
function vr(r) {
|
|
756
|
+
const { api: n, currentWorkspace: a } = W();
|
|
757
757
|
return ie(
|
|
758
758
|
async () => {
|
|
759
|
-
const { groups: i } = await n.listGroups({ ...
|
|
759
|
+
const { groups: i } = await n.listGroups({ ...r, workspace: a?.id });
|
|
760
760
|
return i;
|
|
761
761
|
},
|
|
762
|
-
[n,
|
|
762
|
+
[n, a?.id, r?.project]
|
|
763
763
|
);
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function br(r) {
|
|
766
766
|
const { api: n } = W();
|
|
767
767
|
return ie(
|
|
768
|
-
() => n.getGroup(
|
|
769
|
-
[n,
|
|
768
|
+
() => n.getGroup(r),
|
|
769
|
+
[n, r]
|
|
770
770
|
);
|
|
771
771
|
}
|
|
772
|
-
function
|
|
773
|
-
const { api:
|
|
772
|
+
function Nr(r, n) {
|
|
773
|
+
const { api: a } = W();
|
|
774
774
|
return ie(
|
|
775
|
-
() =>
|
|
776
|
-
[
|
|
775
|
+
() => a.getDiff(r, n),
|
|
776
|
+
[a, r, n]
|
|
777
777
|
);
|
|
778
778
|
}
|
|
779
|
-
function
|
|
780
|
-
const { api:
|
|
779
|
+
function yr(r, n) {
|
|
780
|
+
const { api: a } = W();
|
|
781
781
|
return ie(
|
|
782
|
-
() =>
|
|
783
|
-
[
|
|
782
|
+
() => a.getArtifact(r, n),
|
|
783
|
+
[a, r, n]
|
|
784
784
|
);
|
|
785
785
|
}
|
|
786
|
-
function ye(
|
|
787
|
-
const [n,
|
|
786
|
+
function ye(r) {
|
|
787
|
+
const [n, a] = O(!1), [i, d] = O(null);
|
|
788
788
|
return { mutate: be(async (...m) => {
|
|
789
|
-
|
|
789
|
+
a(!0), d(null);
|
|
790
790
|
try {
|
|
791
|
-
return await
|
|
792
|
-
} catch (
|
|
793
|
-
const
|
|
794
|
-
throw d(
|
|
791
|
+
return await r(...m);
|
|
792
|
+
} catch (t) {
|
|
793
|
+
const h = t instanceof Ne ? t : new Ne(500, String(t));
|
|
794
|
+
throw d(h), h;
|
|
795
795
|
} finally {
|
|
796
|
-
|
|
796
|
+
a(!1);
|
|
797
797
|
}
|
|
798
|
-
}, [
|
|
798
|
+
}, [r]), loading: n, error: i };
|
|
799
799
|
}
|
|
800
|
-
function z(
|
|
801
|
-
return
|
|
800
|
+
function z(r) {
|
|
801
|
+
return r?.slice(0, 8) ?? "";
|
|
802
802
|
}
|
|
803
|
-
function Ke(
|
|
804
|
-
return
|
|
803
|
+
function Ke(r) {
|
|
804
|
+
return r?.slice(0, 12) ?? "N/A";
|
|
805
805
|
}
|
|
806
|
-
function Fe(
|
|
807
|
-
const n = new Date(
|
|
806
|
+
function Fe(r) {
|
|
807
|
+
const n = new Date(r), i = Math.floor(((/* @__PURE__ */ new Date()).getTime() - n.getTime()) / 1e3);
|
|
808
808
|
if (i < 60) return "just now";
|
|
809
809
|
if (i < 3600) {
|
|
810
810
|
const o = Math.floor(i / 60);
|
|
@@ -825,152 +825,152 @@ function Fe(s) {
|
|
|
825
825
|
const d = Math.floor(i / 31536e3);
|
|
826
826
|
return `${d} year${d !== 1 ? "s" : ""} ago`;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
829
|
-
return typeof
|
|
828
|
+
function _r(r, n = 6) {
|
|
829
|
+
return typeof r != "number" || isNaN(r) ? String(r) : Number(r.toPrecision(n)).toString();
|
|
830
830
|
}
|
|
831
|
-
function Ae(
|
|
832
|
-
return
|
|
831
|
+
function Ae(r) {
|
|
832
|
+
return r < 1024 ? `${r} bytes` : r < 1048576 ? `${(r / 1024).toFixed(1)} KB` : `${(r / 1048576).toFixed(1)} MB`;
|
|
833
833
|
}
|
|
834
|
-
function
|
|
835
|
-
return JSON.stringify(
|
|
834
|
+
function wr(r) {
|
|
835
|
+
return JSON.stringify(r, null, 2);
|
|
836
836
|
}
|
|
837
|
-
function
|
|
838
|
-
return
|
|
837
|
+
function Rr(r, n = 60) {
|
|
838
|
+
return r ? r.length <= n ? r : r.slice(0, n - 3) + "..." : "";
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
const
|
|
840
|
+
function Vr(r, n) {
|
|
841
|
+
const a = new URLSearchParams();
|
|
842
842
|
Object.entries(n).forEach(([d, o]) => {
|
|
843
|
-
o != null && o !== "" &&
|
|
843
|
+
o != null && o !== "" && a.set(d, String(o));
|
|
844
844
|
});
|
|
845
|
-
const i =
|
|
846
|
-
return i ? `${
|
|
845
|
+
const i = a.toString();
|
|
846
|
+
return i ? `${r}?${i}` : r;
|
|
847
847
|
}
|
|
848
|
-
function $(...
|
|
849
|
-
return
|
|
848
|
+
function $(...r) {
|
|
849
|
+
return r.filter(Boolean).join(" ");
|
|
850
850
|
}
|
|
851
|
-
const
|
|
851
|
+
const Er = [
|
|
852
852
|
{ href: "/runs", label: "Runs", matchPaths: ["/runs"] },
|
|
853
853
|
{ href: "/projects", label: "Projects", matchPaths: ["/projects"] },
|
|
854
854
|
{ href: "/groups", label: "Groups", matchPaths: ["/groups"] },
|
|
855
855
|
{ href: "/diff", label: "Compare", matchPaths: ["/diff"] },
|
|
856
856
|
{ href: "/search", label: "Search", matchPaths: ["/search"] }
|
|
857
|
-
],
|
|
858
|
-
function
|
|
859
|
-
config:
|
|
857
|
+
], Ss = Es(null);
|
|
858
|
+
function Wr({
|
|
859
|
+
config: r,
|
|
860
860
|
children: n
|
|
861
861
|
}) {
|
|
862
|
-
return /* @__PURE__ */ e.jsx(
|
|
862
|
+
return /* @__PURE__ */ e.jsx(Ss.Provider, { value: r, children: n });
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
return
|
|
864
|
+
function Tr() {
|
|
865
|
+
return Rs(Ss);
|
|
866
866
|
}
|
|
867
|
-
function G({ children:
|
|
868
|
-
const
|
|
867
|
+
function G({ children: r, config: n }) {
|
|
868
|
+
const a = lr(), d = { ...Tr(), ...n }, o = d?.navLinks ?? Er, m = [
|
|
869
869
|
...d?.prependNavLinks ?? [],
|
|
870
870
|
...o,
|
|
871
871
|
...d?.appendNavLinks ?? []
|
|
872
|
-
],
|
|
872
|
+
], t = d?.logo ?? { text: "devqubit", icon: "⚛" }, h = (f) => f.matchPaths ? f.matchPaths.some((x) => a.pathname.startsWith(x)) : a.pathname === f.href;
|
|
873
873
|
return /* @__PURE__ */ e.jsxs("div", { className: "min-h-screen bg-gray-50", children: [
|
|
874
|
-
/* @__PURE__ */ e.jsx("header", { className: "bg-gray-900 h-14 sticky top-0 z-50
|
|
874
|
+
/* @__PURE__ */ e.jsx("header", { className: "bg-gray-900 h-14 sticky top-0 z-50 shadow-sm", children: /* @__PURE__ */ e.jsxs("div", { className: "max-w-container mx-auto px-6 h-full flex items-center justify-between", children: [
|
|
875
875
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
876
|
-
/* @__PURE__ */ e.jsxs(q, { to: "/", className: "text-lg font-semibold text-primary hover:text-primary-light flex items-center gap-2 transition-colors
|
|
877
|
-
|
|
878
|
-
|
|
876
|
+
/* @__PURE__ */ e.jsxs(q, { to: "/", className: "text-lg font-semibold text-primary hover:text-primary-light flex items-center gap-2 transition-colors", children: [
|
|
877
|
+
t.icon && /* @__PURE__ */ e.jsx("span", { className: "text-xl", children: t.icon }),
|
|
878
|
+
t.text
|
|
879
879
|
] }),
|
|
880
|
-
/* @__PURE__ */ e.jsx("nav", { className: "flex gap-1", children: m.map((
|
|
880
|
+
/* @__PURE__ */ e.jsx("nav", { className: "flex gap-1", children: m.map((f) => /* @__PURE__ */ e.jsx(
|
|
881
881
|
q,
|
|
882
882
|
{
|
|
883
|
-
to:
|
|
883
|
+
to: f.href,
|
|
884
884
|
className: $(
|
|
885
|
-
"px-3 py-
|
|
886
|
-
|
|
885
|
+
"px-3 py-2 rounded-md text-sm font-medium transition-colors duration-150",
|
|
886
|
+
h(f) ? "text-white bg-white/10" : "text-gray-400 hover:text-white hover:bg-white/5"
|
|
887
887
|
),
|
|
888
|
-
children:
|
|
888
|
+
children: f.label
|
|
889
889
|
},
|
|
890
|
-
|
|
890
|
+
f.href
|
|
891
891
|
)) })
|
|
892
892
|
] }),
|
|
893
893
|
/* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-4", children: d?.headerRight })
|
|
894
894
|
] }) }),
|
|
895
|
-
/* @__PURE__ */ e.jsx("main", { className: "max-w-container mx-auto p-6 fade-in", children:
|
|
895
|
+
/* @__PURE__ */ e.jsx("main", { className: "max-w-container mx-auto p-6 fade-in", children: r })
|
|
896
896
|
] });
|
|
897
897
|
}
|
|
898
|
-
function _e({ title:
|
|
898
|
+
function _e({ title: r, subtitle: n, actions: a }) {
|
|
899
899
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between mb-6 gap-4 flex-wrap", children: [
|
|
900
900
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
901
|
-
/* @__PURE__ */ e.jsx("h1", { className: "text-2xl font-semibold text-gray-900 flex items-center gap-2 flex-wrap", children:
|
|
901
|
+
/* @__PURE__ */ e.jsx("h1", { className: "text-2xl font-semibold text-gray-900 flex items-center gap-2 flex-wrap", children: r }),
|
|
902
902
|
n && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted mt-1", children: n })
|
|
903
903
|
] }),
|
|
904
|
-
|
|
904
|
+
a && /* @__PURE__ */ e.jsx("div", { className: "flex gap-2", children: a })
|
|
905
905
|
] });
|
|
906
906
|
}
|
|
907
|
-
function
|
|
908
|
-
return /* @__PURE__ */ e.jsx("span", { className: $("badge", `badge-${
|
|
907
|
+
function I({ variant: r = "gray", className: n, children: a, ...i }) {
|
|
908
|
+
return /* @__PURE__ */ e.jsx("span", { className: $("badge", `badge-${r}`, n), ...i, children: a });
|
|
909
909
|
}
|
|
910
910
|
const F = He(
|
|
911
|
-
({ variant:
|
|
911
|
+
({ variant: r = "secondary", size: n = "default", loading: a, className: i, children: d, disabled: o, ...m }, t) => /* @__PURE__ */ e.jsxs(
|
|
912
912
|
"button",
|
|
913
913
|
{
|
|
914
|
-
ref:
|
|
914
|
+
ref: t,
|
|
915
915
|
className: $(
|
|
916
916
|
"btn",
|
|
917
|
-
|
|
917
|
+
r === "ghost-danger" ? "btn-ghost-danger" : `btn-${r}`,
|
|
918
918
|
n === "sm" && "btn-sm",
|
|
919
919
|
i
|
|
920
920
|
),
|
|
921
|
-
disabled: o ||
|
|
921
|
+
disabled: o || a,
|
|
922
922
|
...m,
|
|
923
923
|
children: [
|
|
924
|
-
|
|
924
|
+
a && /* @__PURE__ */ e.jsx(V, {}),
|
|
925
925
|
d
|
|
926
926
|
]
|
|
927
927
|
}
|
|
928
928
|
)
|
|
929
929
|
);
|
|
930
930
|
F.displayName = "Button";
|
|
931
|
-
function
|
|
932
|
-
return /* @__PURE__ */ e.jsx("div", { className: $("card",
|
|
931
|
+
function b({ className: r, children: n, ...a }) {
|
|
932
|
+
return /* @__PURE__ */ e.jsx("div", { className: $("card", r), ...a, children: n });
|
|
933
933
|
}
|
|
934
|
-
function D({ className:
|
|
935
|
-
return /* @__PURE__ */ e.jsx("div", { className: $("card-header",
|
|
934
|
+
function D({ className: r, children: n, ...a }) {
|
|
935
|
+
return /* @__PURE__ */ e.jsx("div", { className: $("card-header", r), ...a, children: n });
|
|
936
936
|
}
|
|
937
|
-
function k({ className:
|
|
938
|
-
return /* @__PURE__ */ e.jsx("h3", { className: $("card-title",
|
|
937
|
+
function k({ className: r, children: n, ...a }) {
|
|
938
|
+
return /* @__PURE__ */ e.jsx("h3", { className: $("card-title", r), ...a, children: n });
|
|
939
939
|
}
|
|
940
|
-
function
|
|
941
|
-
return /* @__PURE__ */ e.jsx("div", { className: $("alert", `alert-${
|
|
940
|
+
function Yr({ variant: r = "info", className: n, children: a, ...i }) {
|
|
941
|
+
return /* @__PURE__ */ e.jsx("div", { className: $("alert", `alert-${r}`, n), ...i, children: a });
|
|
942
942
|
}
|
|
943
|
-
function V({ className:
|
|
944
|
-
return /* @__PURE__ */ e.jsx("span", { className: $("spinner",
|
|
943
|
+
function V({ className: r, ...n }) {
|
|
944
|
+
return /* @__PURE__ */ e.jsx("span", { className: $("spinner", r), ...n });
|
|
945
945
|
}
|
|
946
|
-
function ce({ message:
|
|
947
|
-
return /* @__PURE__ */ e.jsxs("div", { className: $("empty-state",
|
|
948
|
-
/* @__PURE__ */ e.jsx("p", { children:
|
|
946
|
+
function ce({ message: r, hint: n, className: a, ...i }) {
|
|
947
|
+
return /* @__PURE__ */ e.jsxs("div", { className: $("empty-state", a), ...i, children: [
|
|
948
|
+
/* @__PURE__ */ e.jsx("p", { children: r }),
|
|
949
949
|
n && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted mt-2", children: n })
|
|
950
950
|
] });
|
|
951
951
|
}
|
|
952
|
-
function Je({ items:
|
|
953
|
-
return /* @__PURE__ */ e.jsx("dl", { className: $("kv-list", n), ...
|
|
952
|
+
function Je({ items: r, className: n, ...a }) {
|
|
953
|
+
return /* @__PURE__ */ e.jsx("dl", { className: $("kv-list", n), ...a, children: r.map(({ label: i, value: d }) => /* @__PURE__ */ e.jsxs("div", { className: "contents", children: [
|
|
954
954
|
/* @__PURE__ */ e.jsx("dt", { children: i }),
|
|
955
955
|
/* @__PURE__ */ e.jsx("dd", { children: d })
|
|
956
956
|
] }, i)) });
|
|
957
957
|
}
|
|
958
|
-
function
|
|
959
|
-
return
|
|
958
|
+
function Ds({ open: r, onClose: n, title: a, children: i, actions: d }) {
|
|
959
|
+
return r ? /* @__PURE__ */ e.jsx(
|
|
960
960
|
"div",
|
|
961
961
|
{
|
|
962
|
-
className: $("modal-backdrop",
|
|
962
|
+
className: $("modal-backdrop", r && "active"),
|
|
963
963
|
onClick: (o) => o.target === o.currentTarget && n(),
|
|
964
964
|
children: /* @__PURE__ */ e.jsxs("div", { className: "modal", onClick: (o) => o.stopPropagation(), children: [
|
|
965
|
-
/* @__PURE__ */ e.jsx("h3", { className: "modal-title", children:
|
|
965
|
+
/* @__PURE__ */ e.jsx("h3", { className: "modal-title", children: a }),
|
|
966
966
|
/* @__PURE__ */ e.jsx("div", { className: "modal-body", children: i }),
|
|
967
967
|
d && /* @__PURE__ */ e.jsx("div", { className: "modal-actions", children: d })
|
|
968
968
|
] })
|
|
969
969
|
}
|
|
970
970
|
) : null;
|
|
971
971
|
}
|
|
972
|
-
function Be({ message:
|
|
973
|
-
if (!
|
|
972
|
+
function Be({ message: r, variant: n = "info", visible: a, onClose: i }) {
|
|
973
|
+
if (!a) return null;
|
|
974
974
|
const d = {
|
|
975
975
|
success: "✓",
|
|
976
976
|
error: "✕",
|
|
@@ -982,59 +982,59 @@ function Be({ message: s, variant: n = "info", visible: t, onClose: i }) {
|
|
|
982
982
|
}[n];
|
|
983
983
|
return /* @__PURE__ */ e.jsxs("div", { className: "toast", onClick: i, children: [
|
|
984
984
|
/* @__PURE__ */ e.jsx("span", { className: $("mr-2 font-bold", o), children: d }),
|
|
985
|
-
|
|
985
|
+
r
|
|
986
986
|
] });
|
|
987
987
|
}
|
|
988
|
-
function X({ children:
|
|
989
|
-
return /* @__PURE__ */ e.jsx("div", { className: $("form-group", n), children:
|
|
988
|
+
function X({ children: r, className: n }) {
|
|
989
|
+
return /* @__PURE__ */ e.jsx("div", { className: $("form-group", n), children: r });
|
|
990
990
|
}
|
|
991
|
-
function
|
|
992
|
-
return /* @__PURE__ */ e.jsx("label", { className: $("form-label",
|
|
991
|
+
function se({ className: r, children: n, ...a }) {
|
|
992
|
+
return /* @__PURE__ */ e.jsx("label", { className: $("form-label", r), ...a, children: n });
|
|
993
993
|
}
|
|
994
994
|
const Qe = He(
|
|
995
|
-
({ className:
|
|
995
|
+
({ className: r, ...n }, a) => /* @__PURE__ */ e.jsx("input", { ref: a, className: $("form-input", r), ...n })
|
|
996
996
|
);
|
|
997
997
|
Qe.displayName = "Input";
|
|
998
998
|
const ae = He(
|
|
999
|
-
({ className:
|
|
999
|
+
({ className: r, children: n, ...a }, i) => /* @__PURE__ */ e.jsx("select", { ref: i, className: $("form-input", r), ...a, children: n })
|
|
1000
1000
|
);
|
|
1001
1001
|
ae.displayName = "Select";
|
|
1002
|
-
function
|
|
1003
|
-
return /* @__PURE__ */ e.jsx("div", { className: $("form-row", n), children:
|
|
1002
|
+
function ks({ children: r, className: n }) {
|
|
1003
|
+
return /* @__PURE__ */ e.jsx("div", { className: $("form-row", n), children: r });
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1006
|
-
return /* @__PURE__ */ e.jsx("table", { className: $("table",
|
|
1005
|
+
function B({ className: r, children: n, ...a }) {
|
|
1006
|
+
return /* @__PURE__ */ e.jsx("table", { className: $("table", r), ...a, children: n });
|
|
1007
1007
|
}
|
|
1008
|
-
function ee({ className:
|
|
1009
|
-
return /* @__PURE__ */ e.jsx("thead", { className:
|
|
1008
|
+
function ee({ className: r, children: n, ...a }) {
|
|
1009
|
+
return /* @__PURE__ */ e.jsx("thead", { className: r, ...a, children: n });
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return /* @__PURE__ */ e.jsx("tbody", { className:
|
|
1011
|
+
function L({ className: r, children: n, ...a }) {
|
|
1012
|
+
return /* @__PURE__ */ e.jsx("tbody", { className: r, ...a, children: n });
|
|
1013
1013
|
}
|
|
1014
|
-
function j({ className:
|
|
1015
|
-
return /* @__PURE__ */ e.jsx("tr", { className:
|
|
1014
|
+
function j({ className: r, children: n, ...a }) {
|
|
1015
|
+
return /* @__PURE__ */ e.jsx("tr", { className: r, ...a, children: n });
|
|
1016
1016
|
}
|
|
1017
|
-
function y({ className:
|
|
1018
|
-
return /* @__PURE__ */ e.jsx("th", { className:
|
|
1017
|
+
function y({ className: r, children: n, ...a }) {
|
|
1018
|
+
return /* @__PURE__ */ e.jsx("th", { className: r, ...a, children: n });
|
|
1019
1019
|
}
|
|
1020
|
-
function c({ className:
|
|
1021
|
-
return /* @__PURE__ */ e.jsx("td", { className:
|
|
1020
|
+
function c({ className: r, children: n, ...a }) {
|
|
1021
|
+
return /* @__PURE__ */ e.jsx("td", { className: r, ...a, children: n });
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function As({ status: r }) {
|
|
1024
1024
|
const n = {
|
|
1025
1025
|
FINISHED: "success",
|
|
1026
1026
|
FAILED: "danger",
|
|
1027
1027
|
RUNNING: "warning",
|
|
1028
1028
|
UNKNOWN: "gray"
|
|
1029
|
-
}[
|
|
1030
|
-
return /* @__PURE__ */ e.jsx(
|
|
1029
|
+
}[r];
|
|
1030
|
+
return /* @__PURE__ */ e.jsx(I, { variant: n, children: r });
|
|
1031
1031
|
}
|
|
1032
|
-
function Ze({ runs:
|
|
1033
|
-
const [o, m] = O(null),
|
|
1032
|
+
function Ze({ runs: r, onDelete: n, loading: a, emptyHint: i, baselineRunId: d }) {
|
|
1033
|
+
const [o, m] = O(null), t = () => {
|
|
1034
1034
|
o && n && (n(o.run_id), m(null));
|
|
1035
1035
|
};
|
|
1036
|
-
return
|
|
1037
|
-
/* @__PURE__ */ e.jsxs(
|
|
1036
|
+
return r.length ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1037
|
+
/* @__PURE__ */ e.jsxs(B, { children: [
|
|
1038
1038
|
/* @__PURE__ */ e.jsx(ee, { children: /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1039
1039
|
/* @__PURE__ */ e.jsx(y, { children: "Run ID" }),
|
|
1040
1040
|
/* @__PURE__ */ e.jsx(y, { children: "Name" }),
|
|
@@ -1043,40 +1043,40 @@ function Ze({ runs: s, onDelete: n, loading: t, emptyHint: i, baselineRunId: d }
|
|
|
1043
1043
|
/* @__PURE__ */ e.jsx(y, { children: "Created" }),
|
|
1044
1044
|
/* @__PURE__ */ e.jsx(y, { children: "Actions" })
|
|
1045
1045
|
] }) }),
|
|
1046
|
-
/* @__PURE__ */ e.jsx(
|
|
1046
|
+
/* @__PURE__ */ e.jsx(L, { children: r.map((h) => /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1047
1047
|
/* @__PURE__ */ e.jsxs(c, { children: [
|
|
1048
|
-
/* @__PURE__ */ e.jsx(q, { to: `/runs/${
|
|
1049
|
-
|
|
1048
|
+
/* @__PURE__ */ e.jsx(q, { to: `/runs/${h.run_id}`, className: "font-mono", children: z(h.run_id) }),
|
|
1049
|
+
h.run_id === d && /* @__PURE__ */ e.jsx(I, { variant: "info", className: "ml-2", children: "Baseline" })
|
|
1050
1050
|
] }),
|
|
1051
|
-
/* @__PURE__ */ e.jsx(c, { children:
|
|
1052
|
-
/* @__PURE__ */ e.jsx(c, { children:
|
|
1053
|
-
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(
|
|
1054
|
-
/* @__PURE__ */ e.jsx(c, { className: "text-muted", children: Fe(
|
|
1051
|
+
/* @__PURE__ */ e.jsx(c, { children: h.run_name || "—" }),
|
|
1052
|
+
/* @__PURE__ */ e.jsx(c, { children: h.project }),
|
|
1053
|
+
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(As, { status: h.status }) }),
|
|
1054
|
+
/* @__PURE__ */ e.jsx(c, { className: "text-muted", children: Fe(h.created_at) }),
|
|
1055
1055
|
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
|
|
1056
|
-
/* @__PURE__ */ e.jsx(q, { to: `/runs/${
|
|
1056
|
+
/* @__PURE__ */ e.jsx(q, { to: `/runs/${h.run_id}`, children: /* @__PURE__ */ e.jsx(F, { variant: "secondary", size: "sm", children: "View" }) }),
|
|
1057
1057
|
n && /* @__PURE__ */ e.jsx(
|
|
1058
1058
|
F,
|
|
1059
1059
|
{
|
|
1060
1060
|
variant: "ghost-danger",
|
|
1061
1061
|
size: "sm",
|
|
1062
|
-
onClick: () => m(
|
|
1063
|
-
disabled:
|
|
1062
|
+
onClick: () => m(h),
|
|
1063
|
+
disabled: a,
|
|
1064
1064
|
children: "Delete"
|
|
1065
1065
|
}
|
|
1066
1066
|
)
|
|
1067
1067
|
] }) })
|
|
1068
|
-
] },
|
|
1068
|
+
] }, h.run_id)) })
|
|
1069
1069
|
] }),
|
|
1070
1070
|
/* @__PURE__ */ e.jsxs(
|
|
1071
|
-
|
|
1071
|
+
Ds,
|
|
1072
1072
|
{
|
|
1073
1073
|
open: !!o,
|
|
1074
1074
|
onClose: () => m(null),
|
|
1075
1075
|
title: "Delete Run",
|
|
1076
1076
|
actions: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1077
1077
|
/* @__PURE__ */ e.jsx(F, { variant: "secondary", onClick: () => m(null), children: "Cancel" }),
|
|
1078
|
-
/* @__PURE__ */ e.jsxs(F, { variant: "danger", onClick:
|
|
1079
|
-
|
|
1078
|
+
/* @__PURE__ */ e.jsxs(F, { variant: "danger", onClick: t, disabled: a, children: [
|
|
1079
|
+
a && /* @__PURE__ */ e.jsx(V, {}),
|
|
1080
1080
|
"Delete"
|
|
1081
1081
|
] })
|
|
1082
1082
|
] }),
|
|
@@ -1095,56 +1095,56 @@ function Ze({ runs: s, onDelete: n, loading: t, emptyHint: i, baselineRunId: d }
|
|
|
1095
1095
|
}
|
|
1096
1096
|
);
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1099
|
-
const [
|
|
1100
|
-
project:
|
|
1101
|
-
status:
|
|
1102
|
-
q:
|
|
1103
|
-
limit: parseInt(
|
|
1104
|
-
}), { data:
|
|
1098
|
+
function Cr() {
|
|
1099
|
+
const [r, n] = Oe(), { api: a } = W(), { data: i } = $e(), [d, o] = O(null), [m, t] = O({
|
|
1100
|
+
project: r.get("project") || "",
|
|
1101
|
+
status: r.get("status") || "",
|
|
1102
|
+
q: r.get("q") || "",
|
|
1103
|
+
limit: parseInt(r.get("limit") || "25", 10)
|
|
1104
|
+
}), { data: h, loading: f, refetch: x } = Cs(m), p = ye((R) => a.deleteRun(R));
|
|
1105
1105
|
xe(() => {
|
|
1106
1106
|
if (d) {
|
|
1107
|
-
const
|
|
1108
|
-
return () => clearTimeout(
|
|
1107
|
+
const R = setTimeout(() => o(null), 3e3);
|
|
1108
|
+
return () => clearTimeout(R);
|
|
1109
1109
|
}
|
|
1110
1110
|
}, [d]);
|
|
1111
|
-
const
|
|
1112
|
-
|
|
1113
|
-
const J = new URLSearchParams(
|
|
1114
|
-
Q ? J.set(
|
|
1115
|
-
}, [
|
|
1111
|
+
const w = be((R, Q) => {
|
|
1112
|
+
t((H) => ({ ...H, [R]: Q }));
|
|
1113
|
+
const J = new URLSearchParams(r);
|
|
1114
|
+
Q ? J.set(R, String(Q)) : J.delete(R), n(J, { replace: !0 });
|
|
1115
|
+
}, [r, n]), K = be(async (R) => {
|
|
1116
1116
|
try {
|
|
1117
|
-
await
|
|
1117
|
+
await p.mutate(R), o({ message: "Run deleted", variant: "success" }), x();
|
|
1118
1118
|
} catch {
|
|
1119
1119
|
o({ message: "Failed to delete run", variant: "error" });
|
|
1120
1120
|
}
|
|
1121
|
-
}, [
|
|
1121
|
+
}, [p, x]);
|
|
1122
1122
|
return /* @__PURE__ */ e.jsxs(G, { children: [
|
|
1123
1123
|
/* @__PURE__ */ e.jsx(_e, { title: "Runs" }),
|
|
1124
|
-
/* @__PURE__ */ e.jsx(
|
|
1124
|
+
/* @__PURE__ */ e.jsx(b, { className: "mb-4", children: /* @__PURE__ */ e.jsxs(ks, { children: [
|
|
1125
1125
|
/* @__PURE__ */ e.jsxs(X, { children: [
|
|
1126
|
-
/* @__PURE__ */ e.jsx(
|
|
1126
|
+
/* @__PURE__ */ e.jsx(se, { htmlFor: "project", children: "Project" }),
|
|
1127
1127
|
/* @__PURE__ */ e.jsxs(
|
|
1128
1128
|
ae,
|
|
1129
1129
|
{
|
|
1130
1130
|
id: "project",
|
|
1131
1131
|
value: m.project,
|
|
1132
|
-
onChange: (
|
|
1132
|
+
onChange: (R) => w("project", R.target.value),
|
|
1133
1133
|
children: [
|
|
1134
1134
|
/* @__PURE__ */ e.jsx("option", { value: "", children: "All projects" }),
|
|
1135
|
-
i?.map((
|
|
1135
|
+
i?.map((R) => /* @__PURE__ */ e.jsx("option", { value: R.name, children: R.name }, R.name))
|
|
1136
1136
|
]
|
|
1137
1137
|
}
|
|
1138
1138
|
)
|
|
1139
1139
|
] }),
|
|
1140
1140
|
/* @__PURE__ */ e.jsxs(X, { children: [
|
|
1141
|
-
/* @__PURE__ */ e.jsx(
|
|
1141
|
+
/* @__PURE__ */ e.jsx(se, { htmlFor: "status", children: "Status" }),
|
|
1142
1142
|
/* @__PURE__ */ e.jsxs(
|
|
1143
1143
|
ae,
|
|
1144
1144
|
{
|
|
1145
1145
|
id: "status",
|
|
1146
1146
|
value: m.status,
|
|
1147
|
-
onChange: (
|
|
1147
|
+
onChange: (R) => w("status", R.target.value),
|
|
1148
1148
|
children: [
|
|
1149
1149
|
/* @__PURE__ */ e.jsx("option", { value: "", children: "All" }),
|
|
1150
1150
|
/* @__PURE__ */ e.jsx("option", { value: "FINISHED", children: "Finished" }),
|
|
@@ -1155,25 +1155,25 @@ function Cs() {
|
|
|
1155
1155
|
)
|
|
1156
1156
|
] }),
|
|
1157
1157
|
/* @__PURE__ */ e.jsxs(X, { children: [
|
|
1158
|
-
/* @__PURE__ */ e.jsx(
|
|
1158
|
+
/* @__PURE__ */ e.jsx(se, { htmlFor: "q", children: "Query" }),
|
|
1159
1159
|
/* @__PURE__ */ e.jsx(
|
|
1160
1160
|
Qe,
|
|
1161
1161
|
{
|
|
1162
1162
|
id: "q",
|
|
1163
1163
|
value: m.q,
|
|
1164
|
-
onChange: (
|
|
1164
|
+
onChange: (R) => w("q", R.target.value),
|
|
1165
1165
|
placeholder: "metric.fidelity > 0.9"
|
|
1166
1166
|
}
|
|
1167
1167
|
)
|
|
1168
1168
|
] }),
|
|
1169
1169
|
/* @__PURE__ */ e.jsxs(X, { children: [
|
|
1170
|
-
/* @__PURE__ */ e.jsx(
|
|
1170
|
+
/* @__PURE__ */ e.jsx(se, { htmlFor: "limit", children: "Limit" }),
|
|
1171
1171
|
/* @__PURE__ */ e.jsxs(
|
|
1172
1172
|
ae,
|
|
1173
1173
|
{
|
|
1174
1174
|
id: "limit",
|
|
1175
1175
|
value: m.limit,
|
|
1176
|
-
onChange: (
|
|
1176
|
+
onChange: (R) => w("limit", parseInt(R.target.value, 10)),
|
|
1177
1177
|
children: [
|
|
1178
1178
|
/* @__PURE__ */ e.jsx("option", { value: "25", children: "25" }),
|
|
1179
1179
|
/* @__PURE__ */ e.jsx("option", { value: "50", children: "50" }),
|
|
@@ -1183,17 +1183,17 @@ function Cs() {
|
|
|
1183
1183
|
)
|
|
1184
1184
|
] }),
|
|
1185
1185
|
/* @__PURE__ */ e.jsxs(X, { className: "flex items-end gap-2", children: [
|
|
1186
|
-
/* @__PURE__ */ e.jsx(F, { variant: "primary", onClick: () =>
|
|
1187
|
-
|
|
1186
|
+
/* @__PURE__ */ e.jsx(F, { variant: "primary", onClick: () => x(), children: "Filter" }),
|
|
1187
|
+
f && /* @__PURE__ */ e.jsx(V, {})
|
|
1188
1188
|
] })
|
|
1189
1189
|
] }) }),
|
|
1190
|
-
/* @__PURE__ */ e.jsx(
|
|
1190
|
+
/* @__PURE__ */ e.jsx(b, { children: f && !h ? /* @__PURE__ */ e.jsx("div", { className: "flex justify-center py-8", children: /* @__PURE__ */ e.jsx(V, {}) }) : /* @__PURE__ */ e.jsx(
|
|
1191
1191
|
Ze,
|
|
1192
1192
|
{
|
|
1193
|
-
runs:
|
|
1193
|
+
runs: h?.runs ?? [],
|
|
1194
1194
|
onDelete: K,
|
|
1195
|
-
loading:
|
|
1196
|
-
baselineRunId: m.project ? i?.find((
|
|
1195
|
+
loading: p.loading,
|
|
1196
|
+
baselineRunId: m.project ? i?.find((R) => R.name === m.project)?.baseline?.run_id : void 0
|
|
1197
1197
|
}
|
|
1198
1198
|
) }),
|
|
1199
1199
|
d && /* @__PURE__ */ e.jsx(
|
|
@@ -1207,8 +1207,8 @@ function Cs() {
|
|
|
1207
1207
|
)
|
|
1208
1208
|
] });
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1211
|
-
if (!
|
|
1210
|
+
function Pr({ projects: r, currentWorkspace: n }) {
|
|
1211
|
+
if (!r.length)
|
|
1212
1212
|
return /* @__PURE__ */ e.jsx(
|
|
1213
1213
|
ce,
|
|
1214
1214
|
{
|
|
@@ -1216,33 +1216,33 @@ function Ps({ projects: s, currentWorkspace: n }) {
|
|
|
1216
1216
|
hint: "Projects are created automatically when you log runs"
|
|
1217
1217
|
}
|
|
1218
1218
|
);
|
|
1219
|
-
const
|
|
1219
|
+
const a = (i) => {
|
|
1220
1220
|
const d = new URLSearchParams({ project: i });
|
|
1221
1221
|
return n && d.set("workspace", n.id), `/runs?${d}`;
|
|
1222
1222
|
};
|
|
1223
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1223
|
+
return /* @__PURE__ */ e.jsxs(B, { children: [
|
|
1224
1224
|
/* @__PURE__ */ e.jsx(ee, { children: /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1225
1225
|
/* @__PURE__ */ e.jsx(y, { children: "Project" }),
|
|
1226
1226
|
/* @__PURE__ */ e.jsx(y, { children: "Runs" }),
|
|
1227
1227
|
/* @__PURE__ */ e.jsx(y, { children: "Baseline" }),
|
|
1228
1228
|
/* @__PURE__ */ e.jsx(y, {})
|
|
1229
1229
|
] }) }),
|
|
1230
|
-
/* @__PURE__ */ e.jsx(
|
|
1230
|
+
/* @__PURE__ */ e.jsx(L, { children: r.map((i) => /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1231
1231
|
/* @__PURE__ */ e.jsxs(c, { children: [
|
|
1232
1232
|
/* @__PURE__ */ e.jsx("span", { className: "font-medium", children: i.name }),
|
|
1233
|
-
i.description && /* @__PURE__ */ e.jsx("p", { className: "text-muted text-sm", children:
|
|
1233
|
+
i.description && /* @__PURE__ */ e.jsx("p", { className: "text-muted text-sm", children: Rr(i.description) })
|
|
1234
1234
|
] }),
|
|
1235
|
-
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(
|
|
1235
|
+
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(I, { variant: "gray", children: i.run_count ?? 0 }) }),
|
|
1236
1236
|
/* @__PURE__ */ e.jsx(c, { children: i.baseline ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1237
1237
|
/* @__PURE__ */ e.jsx(q, { to: `/runs/${i.baseline.run_id}`, className: "font-mono text-sm", children: z(i.baseline.run_id) }),
|
|
1238
1238
|
i.baseline.run_name && /* @__PURE__ */ e.jsx("p", { className: "text-muted text-sm", children: i.baseline.run_name })
|
|
1239
1239
|
] }) : /* @__PURE__ */ e.jsx("span", { className: "text-muted", children: "—" }) }),
|
|
1240
|
-
/* @__PURE__ */ e.jsx(c, { className: "text-right", children: /* @__PURE__ */ e.jsx(q, { to:
|
|
1240
|
+
/* @__PURE__ */ e.jsx(c, { className: "text-right", children: /* @__PURE__ */ e.jsx(q, { to: a(i.name), children: /* @__PURE__ */ e.jsx(F, { variant: "secondary", size: "sm", children: "View Runs" }) }) })
|
|
1241
1241
|
] }, i.name)) })
|
|
1242
1242
|
] });
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return
|
|
1244
|
+
function Sr({ groups: r }) {
|
|
1245
|
+
return r.length ? /* @__PURE__ */ e.jsxs(B, { children: [
|
|
1246
1246
|
/* @__PURE__ */ e.jsx(ee, { children: /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1247
1247
|
/* @__PURE__ */ e.jsx(y, { children: "Group ID" }),
|
|
1248
1248
|
/* @__PURE__ */ e.jsx(y, { children: "Name" }),
|
|
@@ -1250,11 +1250,11 @@ function Ss({ groups: s }) {
|
|
|
1250
1250
|
/* @__PURE__ */ e.jsx(y, { children: "Runs" }),
|
|
1251
1251
|
/* @__PURE__ */ e.jsx(y, { children: "Actions" })
|
|
1252
1252
|
] }) }),
|
|
1253
|
-
/* @__PURE__ */ e.jsx(
|
|
1253
|
+
/* @__PURE__ */ e.jsx(L, { children: r.map((n) => /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1254
1254
|
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: z(n.group_id) }),
|
|
1255
1255
|
/* @__PURE__ */ e.jsx(c, { children: n.group_name || "—" }),
|
|
1256
1256
|
/* @__PURE__ */ e.jsx(c, { children: n.project }),
|
|
1257
|
-
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(
|
|
1257
|
+
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(I, { variant: "gray", children: n.run_count }) }),
|
|
1258
1258
|
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(q, { to: `/groups/${n.group_id}`, children: /* @__PURE__ */ e.jsx(F, { variant: "secondary", size: "sm", children: "View Runs" }) }) })
|
|
1259
1259
|
] }, n.group_id)) })
|
|
1260
1260
|
] }) : /* @__PURE__ */ e.jsx(
|
|
@@ -1265,52 +1265,52 @@ function Ss({ groups: s }) {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
);
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1269
|
-
const { runId:
|
|
1270
|
-
() =>
|
|
1268
|
+
function Dr() {
|
|
1269
|
+
const { runId: r } = Xe(), n = or(), { api: a } = W(), { data: i, loading: d, error: o, refetch: m } = Ps(r), { data: t, refetch: h } = $e(), [f, x] = O(!1), [p, w] = O(null), { mutate: K, loading: R } = ye(
|
|
1270
|
+
() => a.setBaseline(i.project, i.run_id)
|
|
1271
1271
|
), { mutate: Q, loading: J } = ye(
|
|
1272
|
-
() =>
|
|
1273
|
-
), P =
|
|
1272
|
+
() => a.deleteRun(r)
|
|
1273
|
+
), P = t?.find((N) => N.name === i?.project)?.baseline?.run_id === r;
|
|
1274
1274
|
if (xe(() => {
|
|
1275
|
-
if (
|
|
1276
|
-
const
|
|
1277
|
-
return () => clearTimeout(
|
|
1275
|
+
if (p) {
|
|
1276
|
+
const N = setTimeout(() => w(null), 3e3);
|
|
1277
|
+
return () => clearTimeout(N);
|
|
1278
1278
|
}
|
|
1279
|
-
}, [
|
|
1279
|
+
}, [p]), d)
|
|
1280
1280
|
return /* @__PURE__ */ e.jsx(G, { children: /* @__PURE__ */ e.jsx("div", { className: "flex justify-center py-12", children: /* @__PURE__ */ e.jsx(V, {}) }) });
|
|
1281
1281
|
if (o || !i)
|
|
1282
|
-
return /* @__PURE__ */ e.jsx(G, { children: /* @__PURE__ */ e.jsx(
|
|
1282
|
+
return /* @__PURE__ */ e.jsx(G, { children: /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsx(
|
|
1283
1283
|
ce,
|
|
1284
1284
|
{
|
|
1285
1285
|
message: "Run not found",
|
|
1286
|
-
hint: o?.message || `Run ${
|
|
1286
|
+
hint: o?.message || `Run ${r} does not exist`
|
|
1287
1287
|
}
|
|
1288
1288
|
) }) });
|
|
1289
|
-
const le = i.backend || {}, oe = i.fingerprints || {}, Z = i.data?.params || {},
|
|
1289
|
+
const le = i.backend || {}, oe = i.fingerprints || {}, Z = i.data?.params || {}, we = i.data?.metrics || {}, Re = i.data?.tags || {}, de = i.artifacts || [], me = i.errors || [], Le = async () => {
|
|
1290
1290
|
try {
|
|
1291
|
-
await K(), await
|
|
1291
|
+
await K(), await h(), m(), w({ message: "Baseline updated", variant: "success" });
|
|
1292
1292
|
} catch {
|
|
1293
|
-
|
|
1293
|
+
w({ message: "Failed to set baseline", variant: "error" });
|
|
1294
1294
|
}
|
|
1295
1295
|
}, Ie = async () => {
|
|
1296
1296
|
try {
|
|
1297
|
-
await Q(),
|
|
1297
|
+
await Q(), x(!1), w({ message: "Run deleted", variant: "success" }), setTimeout(() => n("/runs"), 1e3);
|
|
1298
1298
|
} catch {
|
|
1299
|
-
|
|
1299
|
+
w({ message: "Failed to delete run", variant: "error" }), x(!1);
|
|
1300
1300
|
}
|
|
1301
|
-
}, Ee = async (
|
|
1302
|
-
const C = de[
|
|
1301
|
+
}, Ee = async (N) => {
|
|
1302
|
+
const C = de[N];
|
|
1303
1303
|
try {
|
|
1304
|
-
const
|
|
1305
|
-
if (!
|
|
1306
|
-
const Te = await
|
|
1307
|
-
ne.href = URL.createObjectURL(Te), ne.download = C?.kind || `artifact-${
|
|
1304
|
+
const re = a.getArtifactDownloadUrl(i.run_id, N), fe = await fetch(re);
|
|
1305
|
+
if (!fe.ok) throw new Error("Download failed");
|
|
1306
|
+
const Te = await fe.blob(), ne = document.createElement("a");
|
|
1307
|
+
ne.href = URL.createObjectURL(Te), ne.download = C?.kind || `artifact-${N}`, ne.click(), URL.revokeObjectURL(ne.href), w({ message: "Download started", variant: "success" });
|
|
1308
1308
|
} catch {
|
|
1309
|
-
|
|
1309
|
+
w({ message: "Download failed", variant: "error" });
|
|
1310
1310
|
}
|
|
1311
1311
|
};
|
|
1312
1312
|
return /* @__PURE__ */ e.jsxs(G, { children: [
|
|
1313
|
-
P && /* @__PURE__ */ e.jsxs("div", { className: "
|
|
1313
|
+
P && /* @__PURE__ */ e.jsxs("div", { className: "mb-4 px-4 py-3 bg-[#EFF6FF] border border-[#2563EB]/20 rounded-md text-[#2563EB] text-sm font-medium", children: [
|
|
1314
1314
|
'This run is the current baseline for project "',
|
|
1315
1315
|
i.project,
|
|
1316
1316
|
'"'
|
|
@@ -1321,21 +1321,21 @@ function Ds() {
|
|
|
1321
1321
|
/* @__PURE__ */ e.jsx("p", { className: "text-muted text-sm font-mono", children: i.run_id })
|
|
1322
1322
|
] }),
|
|
1323
1323
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
|
|
1324
|
-
!P && /* @__PURE__ */ e.jsxs(F, { variant: "secondary", size: "sm", onClick: Le, disabled:
|
|
1325
|
-
|
|
1324
|
+
!P && /* @__PURE__ */ e.jsxs(F, { variant: "secondary", size: "sm", onClick: Le, disabled: R, children: [
|
|
1325
|
+
R && /* @__PURE__ */ e.jsx(V, {}),
|
|
1326
1326
|
"Set as Baseline"
|
|
1327
1327
|
] }),
|
|
1328
|
-
/* @__PURE__ */ e.jsx(F, { variant: "ghost-danger", size: "sm", onClick: () =>
|
|
1328
|
+
/* @__PURE__ */ e.jsx(F, { variant: "ghost-danger", size: "sm", onClick: () => x(!0), children: "Delete" })
|
|
1329
1329
|
] })
|
|
1330
1330
|
] }),
|
|
1331
1331
|
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 mb-4", children: [
|
|
1332
|
-
/* @__PURE__ */ e.jsxs(
|
|
1332
|
+
/* @__PURE__ */ e.jsxs(b, { children: [
|
|
1333
1333
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(k, { children: "Overview" }) }),
|
|
1334
1334
|
/* @__PURE__ */ e.jsx(Je, { items: [
|
|
1335
1335
|
{ label: "Project", value: /* @__PURE__ */ e.jsx(q, { to: `/runs?project=${i.project}`, children: i.project }) },
|
|
1336
1336
|
{ label: "Name", value: i.run_name || "—" },
|
|
1337
1337
|
{ label: "Adapter", value: i.adapter || "N/A" },
|
|
1338
|
-
{ label: "Status", value: /* @__PURE__ */ e.jsx(
|
|
1338
|
+
{ label: "Status", value: /* @__PURE__ */ e.jsx(As, { status: i.status }) },
|
|
1339
1339
|
{ label: "Created", value: `${i.created_at} (${Fe(i.created_at)})` },
|
|
1340
1340
|
{ label: "Backend", value: le.name || "N/A" },
|
|
1341
1341
|
...i.group_id ? [{
|
|
@@ -1344,7 +1344,7 @@ function Ds() {
|
|
|
1344
1344
|
}] : []
|
|
1345
1345
|
] })
|
|
1346
1346
|
] }),
|
|
1347
|
-
/* @__PURE__ */ e.jsxs(
|
|
1347
|
+
/* @__PURE__ */ e.jsxs(b, { children: [
|
|
1348
1348
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(k, { children: "Fingerprints" }) }),
|
|
1349
1349
|
/* @__PURE__ */ e.jsx(Je, { items: [
|
|
1350
1350
|
{ label: "Run", value: /* @__PURE__ */ e.jsx("span", { className: "font-mono text-sm truncate", children: oe.run || "N/A" }) },
|
|
@@ -1353,36 +1353,36 @@ function Ds() {
|
|
|
1353
1353
|
] })
|
|
1354
1354
|
] }),
|
|
1355
1355
|
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-4 mb-4", children: [
|
|
1356
|
-
/* @__PURE__ */ e.jsxs(
|
|
1356
|
+
/* @__PURE__ */ e.jsxs(b, { children: [
|
|
1357
1357
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(k, { children: "Parameters" }) }),
|
|
1358
|
-
Object.keys(Z).length ? /* @__PURE__ */ e.jsx(
|
|
1359
|
-
/* @__PURE__ */ e.jsx(c, { children:
|
|
1358
|
+
Object.keys(Z).length ? /* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsx(L, { children: Object.entries(Z).map(([N, C]) => /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1359
|
+
/* @__PURE__ */ e.jsx(c, { children: N }),
|
|
1360
1360
|
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: String(C) })
|
|
1361
|
-
] },
|
|
1361
|
+
] }, N)) }) }) : /* @__PURE__ */ e.jsx("p", { className: "text-muted", children: "No parameters" })
|
|
1362
1362
|
] }),
|
|
1363
|
-
/* @__PURE__ */ e.jsxs(
|
|
1363
|
+
/* @__PURE__ */ e.jsxs(b, { children: [
|
|
1364
1364
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(k, { children: "Metrics" }) }),
|
|
1365
|
-
Object.keys(
|
|
1366
|
-
/* @__PURE__ */ e.jsx(c, { children:
|
|
1367
|
-
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: typeof C == "number" ?
|
|
1368
|
-
] },
|
|
1365
|
+
Object.keys(we).length ? /* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsx(L, { children: Object.entries(we).map(([N, C]) => /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1366
|
+
/* @__PURE__ */ e.jsx(c, { children: N }),
|
|
1367
|
+
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: typeof C == "number" ? _r(C) : String(C) })
|
|
1368
|
+
] }, N)) }) }) : /* @__PURE__ */ e.jsx("p", { className: "text-muted", children: "No metrics" })
|
|
1369
1369
|
] }),
|
|
1370
|
-
/* @__PURE__ */ e.jsxs(
|
|
1370
|
+
/* @__PURE__ */ e.jsxs(b, { children: [
|
|
1371
1371
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(k, { children: "Tags" }) }),
|
|
1372
|
-
Object.keys(
|
|
1373
|
-
|
|
1372
|
+
Object.keys(Re).length ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2", children: Object.entries(Re).map(([N, C]) => /* @__PURE__ */ e.jsxs(I, { variant: "gray", children: [
|
|
1373
|
+
N,
|
|
1374
1374
|
": ",
|
|
1375
1375
|
String(C)
|
|
1376
|
-
] },
|
|
1376
|
+
] }, N)) }) : /* @__PURE__ */ e.jsx("p", { className: "text-muted", children: "No tags" })
|
|
1377
1377
|
] })
|
|
1378
1378
|
] }),
|
|
1379
|
-
/* @__PURE__ */ e.jsxs(
|
|
1379
|
+
/* @__PURE__ */ e.jsxs(b, { className: "mb-4", children: [
|
|
1380
1380
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsxs(k, { children: [
|
|
1381
1381
|
"Artifacts (",
|
|
1382
1382
|
de.length,
|
|
1383
1383
|
")"
|
|
1384
1384
|
] }) }),
|
|
1385
|
-
de.length ? /* @__PURE__ */ e.jsxs(
|
|
1385
|
+
de.length ? /* @__PURE__ */ e.jsxs(B, { children: [
|
|
1386
1386
|
/* @__PURE__ */ e.jsx(ee, { children: /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1387
1387
|
/* @__PURE__ */ e.jsx(y, { children: "#" }),
|
|
1388
1388
|
/* @__PURE__ */ e.jsx(y, { children: "Kind" }),
|
|
@@ -1391,12 +1391,12 @@ function Ds() {
|
|
|
1391
1391
|
/* @__PURE__ */ e.jsx(y, { children: "Digest" }),
|
|
1392
1392
|
/* @__PURE__ */ e.jsx(y, { children: "Actions" })
|
|
1393
1393
|
] }) }),
|
|
1394
|
-
/* @__PURE__ */ e.jsx(
|
|
1394
|
+
/* @__PURE__ */ e.jsx(L, { children: de.map((N, C) => /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1395
1395
|
/* @__PURE__ */ e.jsx(c, { children: C }),
|
|
1396
|
-
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children:
|
|
1397
|
-
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(
|
|
1398
|
-
/* @__PURE__ */ e.jsx(c, { className: "text-muted text-sm", children:
|
|
1399
|
-
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children: Ke(
|
|
1396
|
+
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children: N.kind }),
|
|
1397
|
+
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(I, { variant: "gray", children: N.role }) }),
|
|
1398
|
+
/* @__PURE__ */ e.jsx(c, { className: "text-muted text-sm", children: N.media_type }),
|
|
1399
|
+
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children: Ke(N.digest) }),
|
|
1400
1400
|
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
|
|
1401
1401
|
/* @__PURE__ */ e.jsx(q, { to: `/runs/${i.run_id}/artifacts/${C}`, children: /* @__PURE__ */ e.jsx(F, { variant: "secondary", size: "sm", children: "View" }) }),
|
|
1402
1402
|
/* @__PURE__ */ e.jsx(F, { variant: "secondary", size: "sm", onClick: () => Ee(C), children: "Download" })
|
|
@@ -1404,23 +1404,23 @@ function Ds() {
|
|
|
1404
1404
|
] }, C)) })
|
|
1405
1405
|
] }) : /* @__PURE__ */ e.jsx("p", { className: "text-muted", children: "No artifacts" })
|
|
1406
1406
|
] }),
|
|
1407
|
-
me.length > 0 && /* @__PURE__ */ e.jsxs(
|
|
1407
|
+
me.length > 0 && /* @__PURE__ */ e.jsxs(b, { children: [
|
|
1408
1408
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(k, { className: "text-danger", children: "Errors" }) }),
|
|
1409
|
-
me.map((
|
|
1410
|
-
/* @__PURE__ */ e.jsx("strong", { children:
|
|
1409
|
+
me.map((N, C) => /* @__PURE__ */ e.jsxs("div", { className: "mb-2", children: [
|
|
1410
|
+
/* @__PURE__ */ e.jsx("strong", { children: N.type }),
|
|
1411
1411
|
": ",
|
|
1412
|
-
|
|
1413
|
-
|
|
1412
|
+
N.message,
|
|
1413
|
+
N.traceback && /* @__PURE__ */ e.jsx("pre", { className: "mt-2", children: N.traceback })
|
|
1414
1414
|
] }, C))
|
|
1415
1415
|
] }),
|
|
1416
1416
|
/* @__PURE__ */ e.jsxs(
|
|
1417
|
-
|
|
1417
|
+
Ds,
|
|
1418
1418
|
{
|
|
1419
|
-
open:
|
|
1420
|
-
onClose: () =>
|
|
1419
|
+
open: f,
|
|
1420
|
+
onClose: () => x(!1),
|
|
1421
1421
|
title: "Delete Run",
|
|
1422
1422
|
actions: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1423
|
-
/* @__PURE__ */ e.jsx(F, { variant: "secondary", onClick: () =>
|
|
1423
|
+
/* @__PURE__ */ e.jsx(F, { variant: "secondary", onClick: () => x(!1), children: "Cancel" }),
|
|
1424
1424
|
/* @__PURE__ */ e.jsxs(F, { variant: "danger", onClick: Ie, disabled: J, children: [
|
|
1425
1425
|
J && /* @__PURE__ */ e.jsx(V, {}),
|
|
1426
1426
|
"Delete"
|
|
@@ -1433,94 +1433,94 @@ function Ds() {
|
|
|
1433
1433
|
]
|
|
1434
1434
|
}
|
|
1435
1435
|
),
|
|
1436
|
-
|
|
1436
|
+
p && /* @__PURE__ */ e.jsx(
|
|
1437
1437
|
Be,
|
|
1438
1438
|
{
|
|
1439
|
-
message:
|
|
1440
|
-
variant:
|
|
1441
|
-
visible: !!
|
|
1442
|
-
onClose: () =>
|
|
1439
|
+
message: p.message,
|
|
1440
|
+
variant: p.variant,
|
|
1441
|
+
visible: !!p,
|
|
1442
|
+
onClose: () => w(null)
|
|
1443
1443
|
}
|
|
1444
1444
|
)
|
|
1445
1445
|
] });
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1448
|
-
const { currentWorkspace:
|
|
1447
|
+
function kr() {
|
|
1448
|
+
const { currentWorkspace: r } = W(), { data: n, loading: a } = $e();
|
|
1449
1449
|
return /* @__PURE__ */ e.jsxs(G, { children: [
|
|
1450
1450
|
/* @__PURE__ */ e.jsx(_e, { title: "Projects" }),
|
|
1451
|
-
/* @__PURE__ */ e.jsx(
|
|
1451
|
+
/* @__PURE__ */ e.jsx(b, { children: a ? /* @__PURE__ */ e.jsx("div", { className: "flex justify-center py-8", children: /* @__PURE__ */ e.jsx(V, {}) }) : /* @__PURE__ */ e.jsx(Pr, { projects: n ?? [], currentWorkspace: r }) })
|
|
1452
1452
|
] });
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1455
|
-
const [
|
|
1456
|
-
d(
|
|
1457
|
-
const
|
|
1458
|
-
|
|
1459
|
-
}, [
|
|
1454
|
+
function Ar() {
|
|
1455
|
+
const [r, n] = Oe(), { data: a } = $e(), [i, d] = O(r.get("project") || ""), { data: o, loading: m, refetch: t } = vr({ project: i || void 0 }), h = be((f) => {
|
|
1456
|
+
d(f);
|
|
1457
|
+
const x = new URLSearchParams(r);
|
|
1458
|
+
f ? x.set("project", f) : x.delete("project"), n(x, { replace: !0 });
|
|
1459
|
+
}, [r, n]);
|
|
1460
1460
|
return /* @__PURE__ */ e.jsxs(G, { children: [
|
|
1461
1461
|
/* @__PURE__ */ e.jsx(_e, { title: "Run Groups" }),
|
|
1462
|
-
/* @__PURE__ */ e.jsx(
|
|
1462
|
+
/* @__PURE__ */ e.jsx(b, { className: "mb-4", children: /* @__PURE__ */ e.jsxs(ks, { children: [
|
|
1463
1463
|
/* @__PURE__ */ e.jsxs(X, { children: [
|
|
1464
|
-
/* @__PURE__ */ e.jsx(
|
|
1464
|
+
/* @__PURE__ */ e.jsx(se, { htmlFor: "project", children: "Project" }),
|
|
1465
1465
|
/* @__PURE__ */ e.jsxs(
|
|
1466
1466
|
ae,
|
|
1467
1467
|
{
|
|
1468
1468
|
id: "project",
|
|
1469
1469
|
value: i,
|
|
1470
|
-
onChange: (
|
|
1470
|
+
onChange: (f) => h(f.target.value),
|
|
1471
1471
|
children: [
|
|
1472
1472
|
/* @__PURE__ */ e.jsx("option", { value: "", children: "All projects" }),
|
|
1473
|
-
|
|
1473
|
+
a?.map((f) => /* @__PURE__ */ e.jsx("option", { value: f.name, children: f.name }, f.name))
|
|
1474
1474
|
]
|
|
1475
1475
|
}
|
|
1476
1476
|
)
|
|
1477
1477
|
] }),
|
|
1478
1478
|
/* @__PURE__ */ e.jsxs(X, { className: "flex items-end gap-2", children: [
|
|
1479
|
-
/* @__PURE__ */ e.jsx(F, { variant: "primary", onClick: () =>
|
|
1479
|
+
/* @__PURE__ */ e.jsx(F, { variant: "primary", onClick: () => t(), children: "Filter" }),
|
|
1480
1480
|
m && /* @__PURE__ */ e.jsx(V, {})
|
|
1481
1481
|
] })
|
|
1482
1482
|
] }) }),
|
|
1483
|
-
/* @__PURE__ */ e.jsx(
|
|
1483
|
+
/* @__PURE__ */ e.jsx(b, { children: m && !o ? /* @__PURE__ */ e.jsx("div", { className: "flex justify-center py-8", children: /* @__PURE__ */ e.jsx(V, {}) }) : /* @__PURE__ */ e.jsx(Sr, { groups: o ?? [] }) })
|
|
1484
1484
|
] });
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1487
|
-
const { groupId:
|
|
1486
|
+
function Fr() {
|
|
1487
|
+
const { groupId: r } = Xe(), { api: n } = W(), { data: a, loading: i, error: d, refetch: o } = br(r), [m, t] = O(null), h = ye((x) => n.deleteRun(x));
|
|
1488
1488
|
xe(() => {
|
|
1489
1489
|
if (m) {
|
|
1490
|
-
const
|
|
1491
|
-
return () => clearTimeout(
|
|
1490
|
+
const x = setTimeout(() => t(null), 3e3);
|
|
1491
|
+
return () => clearTimeout(x);
|
|
1492
1492
|
}
|
|
1493
1493
|
}, [m]);
|
|
1494
|
-
const
|
|
1494
|
+
const f = async (x) => {
|
|
1495
1495
|
try {
|
|
1496
|
-
await
|
|
1496
|
+
await h.mutate(x), t({ message: "Run deleted", variant: "success" }), o();
|
|
1497
1497
|
} catch {
|
|
1498
|
-
|
|
1498
|
+
t({ message: "Failed to delete run", variant: "error" });
|
|
1499
1499
|
}
|
|
1500
1500
|
};
|
|
1501
|
-
return i ? /* @__PURE__ */ e.jsx(G, { children: /* @__PURE__ */ e.jsx("div", { className: "flex justify-center py-12", children: /* @__PURE__ */ e.jsx(V, {}) }) }) : d || !
|
|
1501
|
+
return i ? /* @__PURE__ */ e.jsx(G, { children: /* @__PURE__ */ e.jsx("div", { className: "flex justify-center py-12", children: /* @__PURE__ */ e.jsx(V, {}) }) }) : d || !a ? /* @__PURE__ */ e.jsx(G, { children: /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsx(ce, { message: "Group not found", hint: d?.message }) }) }) : /* @__PURE__ */ e.jsxs(G, { children: [
|
|
1502
1502
|
/* @__PURE__ */ e.jsx(
|
|
1503
1503
|
_e,
|
|
1504
1504
|
{
|
|
1505
1505
|
title: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1506
1506
|
"Group ",
|
|
1507
|
-
/* @__PURE__ */ e.jsx("span", { className: "font-mono", children: z(
|
|
1507
|
+
/* @__PURE__ */ e.jsx("span", { className: "font-mono", children: z(r) })
|
|
1508
1508
|
] }),
|
|
1509
|
-
subtitle: /* @__PURE__ */ e.jsx("span", { className: "font-mono text-muted", children:
|
|
1509
|
+
subtitle: /* @__PURE__ */ e.jsx("span", { className: "font-mono text-muted", children: r })
|
|
1510
1510
|
}
|
|
1511
1511
|
),
|
|
1512
|
-
/* @__PURE__ */ e.jsxs(
|
|
1512
|
+
/* @__PURE__ */ e.jsxs(b, { children: [
|
|
1513
1513
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsxs(k, { children: [
|
|
1514
1514
|
"Runs in Group (",
|
|
1515
|
-
|
|
1515
|
+
a.runs.length,
|
|
1516
1516
|
")"
|
|
1517
1517
|
] }) }),
|
|
1518
1518
|
/* @__PURE__ */ e.jsx(
|
|
1519
1519
|
Ze,
|
|
1520
1520
|
{
|
|
1521
|
-
runs:
|
|
1522
|
-
onDelete:
|
|
1523
|
-
loading:
|
|
1521
|
+
runs: a.runs,
|
|
1522
|
+
onDelete: f,
|
|
1523
|
+
loading: h.loading
|
|
1524
1524
|
}
|
|
1525
1525
|
)
|
|
1526
1526
|
] }),
|
|
@@ -1530,60 +1530,60 @@ function Fs() {
|
|
|
1530
1530
|
message: m.message,
|
|
1531
1531
|
variant: m.variant,
|
|
1532
1532
|
visible: !!m,
|
|
1533
|
-
onClose: () =>
|
|
1533
|
+
onClose: () => t(null)
|
|
1534
1534
|
}
|
|
1535
1535
|
)
|
|
1536
1536
|
] });
|
|
1537
1537
|
}
|
|
1538
|
-
function ve({ match:
|
|
1539
|
-
return /* @__PURE__ */ e.jsx("span", { className:
|
|
1538
|
+
function ve({ match: r, yesText: n = "✓ Match", noText: a = "✗ Different" }) {
|
|
1539
|
+
return /* @__PURE__ */ e.jsx("span", { className: r ? "diff-match" : "diff-mismatch", children: r ? n : a });
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1542
|
-
const [
|
|
1543
|
-
if (
|
|
1544
|
-
|
|
1541
|
+
function Or() {
|
|
1542
|
+
const [r, n] = Oe(), { data: a } = Cs({ limit: 100 }), i = a?.runs ?? [], [d, o] = O(r.get("a") || ""), [m, t] = O(r.get("b") || ""), [h, f] = O(""), x = (p) => {
|
|
1543
|
+
if (p.preventDefault(), !d || !m) {
|
|
1544
|
+
f("Please select both runs to compare");
|
|
1545
1545
|
return;
|
|
1546
1546
|
}
|
|
1547
|
-
|
|
1547
|
+
f(""), n({ a: d, b: m });
|
|
1548
1548
|
};
|
|
1549
1549
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1550
|
-
/* @__PURE__ */ e.jsx(
|
|
1550
|
+
/* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs("form", { onSubmit: x, children: [
|
|
1551
1551
|
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 mb-4", children: [
|
|
1552
1552
|
/* @__PURE__ */ e.jsxs(X, { children: [
|
|
1553
|
-
/* @__PURE__ */ e.jsx(
|
|
1554
|
-
/* @__PURE__ */ e.jsxs(ae, { id: "a", value: d, onChange: (
|
|
1555
|
-
o(
|
|
1553
|
+
/* @__PURE__ */ e.jsx(se, { htmlFor: "a", children: "Run A (Baseline)" }),
|
|
1554
|
+
/* @__PURE__ */ e.jsxs(ae, { id: "a", value: d, onChange: (p) => {
|
|
1555
|
+
o(p.target.value), f("");
|
|
1556
1556
|
}, children: [
|
|
1557
1557
|
/* @__PURE__ */ e.jsx("option", { value: "", children: "Select run..." }),
|
|
1558
|
-
i.map((
|
|
1559
|
-
|
|
1558
|
+
i.map((p) => /* @__PURE__ */ e.jsxs("option", { value: p.run_id, children: [
|
|
1559
|
+
p.run_name || "Unnamed",
|
|
1560
1560
|
" (",
|
|
1561
|
-
z(
|
|
1561
|
+
z(p.run_id),
|
|
1562
1562
|
") — ",
|
|
1563
|
-
|
|
1564
|
-
] },
|
|
1563
|
+
p.project
|
|
1564
|
+
] }, p.run_id))
|
|
1565
1565
|
] })
|
|
1566
1566
|
] }),
|
|
1567
1567
|
/* @__PURE__ */ e.jsxs(X, { children: [
|
|
1568
|
-
/* @__PURE__ */ e.jsx(
|
|
1569
|
-
/* @__PURE__ */ e.jsxs(ae, { id: "b", value: m, onChange: (
|
|
1570
|
-
|
|
1568
|
+
/* @__PURE__ */ e.jsx(se, { htmlFor: "b", children: "Run B (Candidate)" }),
|
|
1569
|
+
/* @__PURE__ */ e.jsxs(ae, { id: "b", value: m, onChange: (p) => {
|
|
1570
|
+
t(p.target.value), f("");
|
|
1571
1571
|
}, children: [
|
|
1572
1572
|
/* @__PURE__ */ e.jsx("option", { value: "", children: "Select run..." }),
|
|
1573
|
-
i.map((
|
|
1574
|
-
|
|
1573
|
+
i.map((p) => /* @__PURE__ */ e.jsxs("option", { value: p.run_id, children: [
|
|
1574
|
+
p.run_name || "Unnamed",
|
|
1575
1575
|
" (",
|
|
1576
|
-
z(
|
|
1576
|
+
z(p.run_id),
|
|
1577
1577
|
") — ",
|
|
1578
|
-
|
|
1579
|
-
] },
|
|
1578
|
+
p.project
|
|
1579
|
+
] }, p.run_id))
|
|
1580
1580
|
] })
|
|
1581
1581
|
] })
|
|
1582
1582
|
] }),
|
|
1583
|
-
|
|
1584
|
-
/* @__PURE__ */ e.jsx(
|
|
1583
|
+
h && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-[#DC4A4A] mb-3", children: h }),
|
|
1584
|
+
/* @__PURE__ */ e.jsx(F, { type: "submit", variant: "primary", children: "Compare" })
|
|
1585
1585
|
] }) }),
|
|
1586
|
-
/* @__PURE__ */ e.jsxs(
|
|
1586
|
+
/* @__PURE__ */ e.jsxs(b, { className: "mt-4", children: [
|
|
1587
1587
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(k, { children: "Tips" }) }),
|
|
1588
1588
|
/* @__PURE__ */ e.jsxs("ul", { className: "text-muted text-sm list-disc pl-6 space-y-1", children: [
|
|
1589
1589
|
/* @__PURE__ */ e.jsx("li", { children: "Select two runs to compare their parameters, metrics, and artifacts" }),
|
|
@@ -1593,17 +1593,27 @@ function Os() {
|
|
|
1593
1593
|
] })
|
|
1594
1594
|
] });
|
|
1595
1595
|
}
|
|
1596
|
-
function $
|
|
1597
|
-
const { data:
|
|
1598
|
-
if (i) return /* @__PURE__ */ e.jsx("div", { className: "flex justify-center py-12", children:
|
|
1599
|
-
|
|
1600
|
-
|
|
1596
|
+
function $r({ runIdA: r, runIdB: n }) {
|
|
1597
|
+
const { data: a, loading: i, error: d } = Nr(r, n);
|
|
1598
|
+
if (i) return /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center justify-center py-12 gap-3", children: [
|
|
1599
|
+
/* @__PURE__ */ e.jsx(V, {}),
|
|
1600
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-muted text-sm", children: "Comparing runs..." })
|
|
1601
|
+
] }) });
|
|
1602
|
+
if (d || !a) return /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsx(ce, { message: "Failed to load diff", hint: d?.message }) });
|
|
1603
|
+
const { run_a: o, run_b: m, report: t } = a, h = t.fingerprints.a === t.fingerprints.b;
|
|
1601
1604
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1602
|
-
|
|
1605
|
+
/* @__PURE__ */ e.jsx("div", { className: `rounded-lg p-4 mb-4 ${h ? "bg-success/10 border border-success/20" : "bg-warning/10 border border-warning/20"}`, children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
1606
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-2xl", children: h ? "✓" : "⚠" }),
|
|
1607
|
+
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1608
|
+
/* @__PURE__ */ e.jsx("p", { className: `font-semibold ${h ? "text-success" : "text-warning"}`, children: h ? "Runs Match" : "Runs Differ" }),
|
|
1609
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted", children: h ? "Fingerprints are identical — runs produced the same results." : "Fingerprints differ — see details below for what changed." })
|
|
1610
|
+
] })
|
|
1611
|
+
] }) }),
|
|
1612
|
+
t.warnings && t.warnings.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "alert alert-warning mb-4", children: [
|
|
1603
1613
|
/* @__PURE__ */ e.jsx("strong", { children: "Warnings:" }),
|
|
1604
|
-
/* @__PURE__ */ e.jsx("ul", { className: "list-disc pl-6 mt-1", children:
|
|
1614
|
+
/* @__PURE__ */ e.jsx("ul", { className: "list-disc pl-6 mt-1", children: t.warnings.map((f, x) => /* @__PURE__ */ e.jsx("li", { children: f }, x)) })
|
|
1605
1615
|
] }),
|
|
1606
|
-
/* @__PURE__ */ e.jsx(
|
|
1616
|
+
/* @__PURE__ */ e.jsx(b, { className: "mb-4", children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
1607
1617
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1608
1618
|
/* @__PURE__ */ e.jsx("h3", { className: "text-sm text-muted uppercase tracking-wider mb-1", children: "Run A (Baseline)" }),
|
|
1609
1619
|
/* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(q, { to: `/runs/${o.run_id}`, children: o.run_name || "Unnamed Run" }) }),
|
|
@@ -1626,135 +1636,135 @@ function $s({ runIdA: s, runIdB: n }) {
|
|
|
1626
1636
|
] })
|
|
1627
1637
|
] }) }),
|
|
1628
1638
|
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 mb-4", children: [
|
|
1629
|
-
/* @__PURE__ */ e.jsxs(
|
|
1639
|
+
/* @__PURE__ */ e.jsxs(b, { children: [
|
|
1630
1640
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(k, { children: "Metadata" }) }),
|
|
1631
|
-
/* @__PURE__ */ e.jsx(
|
|
1641
|
+
/* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsxs(L, { children: [
|
|
1632
1642
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1633
1643
|
/* @__PURE__ */ e.jsx(c, { children: "Project" }),
|
|
1634
|
-
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(ve, { match:
|
|
1644
|
+
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(ve, { match: t.metadata.project_match }) })
|
|
1635
1645
|
] }),
|
|
1636
1646
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1637
1647
|
/* @__PURE__ */ e.jsx(c, { children: "Backend" }),
|
|
1638
|
-
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(ve, { match:
|
|
1648
|
+
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(ve, { match: t.metadata.backend_match }) })
|
|
1639
1649
|
] }),
|
|
1640
|
-
!
|
|
1650
|
+
!t.metadata.project_match && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1641
1651
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1642
1652
|
/* @__PURE__ */ e.jsx(c, { className: "text-muted text-sm", children: "Project A" }),
|
|
1643
|
-
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children:
|
|
1653
|
+
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children: t.metadata.project_a || "N/A" })
|
|
1644
1654
|
] }),
|
|
1645
1655
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1646
1656
|
/* @__PURE__ */ e.jsx(c, { className: "text-muted text-sm", children: "Project B" }),
|
|
1647
|
-
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children:
|
|
1657
|
+
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children: t.metadata.project_b || "N/A" })
|
|
1648
1658
|
] })
|
|
1649
1659
|
] }),
|
|
1650
|
-
!
|
|
1660
|
+
!t.metadata.backend_match && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1651
1661
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1652
1662
|
/* @__PURE__ */ e.jsx(c, { className: "text-muted text-sm", children: "Backend A" }),
|
|
1653
|
-
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children:
|
|
1663
|
+
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children: t.metadata.backend_a || "N/A" })
|
|
1654
1664
|
] }),
|
|
1655
1665
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1656
1666
|
/* @__PURE__ */ e.jsx(c, { className: "text-muted text-sm", children: "Backend B" }),
|
|
1657
|
-
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children:
|
|
1667
|
+
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children: t.metadata.backend_b || "N/A" })
|
|
1658
1668
|
] })
|
|
1659
1669
|
] })
|
|
1660
1670
|
] }) })
|
|
1661
1671
|
] }),
|
|
1662
|
-
/* @__PURE__ */ e.jsxs(
|
|
1672
|
+
/* @__PURE__ */ e.jsxs(b, { children: [
|
|
1663
1673
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(k, { children: "Fingerprints" }) }),
|
|
1664
|
-
/* @__PURE__ */ e.jsx(
|
|
1674
|
+
/* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsxs(L, { children: [
|
|
1665
1675
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1666
1676
|
/* @__PURE__ */ e.jsx(c, { children: "Run A" }),
|
|
1667
|
-
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children: Ke(
|
|
1677
|
+
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children: Ke(t.fingerprints.a) })
|
|
1668
1678
|
] }),
|
|
1669
1679
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1670
1680
|
/* @__PURE__ */ e.jsx(c, { children: "Run B" }),
|
|
1671
|
-
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children: Ke(
|
|
1681
|
+
/* @__PURE__ */ e.jsx(c, { className: "font-mono text-sm", children: Ke(t.fingerprints.b) })
|
|
1672
1682
|
] }),
|
|
1673
1683
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1674
1684
|
/* @__PURE__ */ e.jsx(c, { children: "Match" }),
|
|
1675
|
-
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(ve, { match:
|
|
1685
|
+
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(ve, { match: t.fingerprints.a === t.fingerprints.b, yesText: "✓ Yes", noText: "✗ No" }) })
|
|
1676
1686
|
] })
|
|
1677
1687
|
] }) })
|
|
1678
1688
|
] })
|
|
1679
1689
|
] }),
|
|
1680
1690
|
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 mb-4", children: [
|
|
1681
|
-
/* @__PURE__ */ e.jsxs(
|
|
1691
|
+
/* @__PURE__ */ e.jsxs(b, { children: [
|
|
1682
1692
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsxs(k, { children: [
|
|
1683
1693
|
"Program",
|
|
1684
|
-
|
|
1694
|
+
t.program.exact_match ? /* @__PURE__ */ e.jsx(I, { variant: "success", children: "Exact Match" }) : t.program.structural_match ? /* @__PURE__ */ e.jsx(I, { variant: "info", children: "Structural Match" }) : /* @__PURE__ */ e.jsx(I, { variant: "warning", children: "Different" })
|
|
1685
1695
|
] }) }),
|
|
1686
|
-
/* @__PURE__ */ e.jsx(
|
|
1696
|
+
/* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsxs(L, { children: [
|
|
1687
1697
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1688
1698
|
/* @__PURE__ */ e.jsx(c, { children: "Exact Match" }),
|
|
1689
|
-
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(ve, { match:
|
|
1699
|
+
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(ve, { match: t.program.exact_match, yesText: "✓ Yes", noText: "✗ No" }) })
|
|
1690
1700
|
] }),
|
|
1691
1701
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1692
1702
|
/* @__PURE__ */ e.jsx(c, { children: "Structural Match" }),
|
|
1693
|
-
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(ve, { match:
|
|
1703
|
+
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(ve, { match: t.program.structural_match, yesText: "✓ Yes", noText: "✗ No" }) })
|
|
1694
1704
|
] })
|
|
1695
1705
|
] }) })
|
|
1696
1706
|
] }),
|
|
1697
|
-
/* @__PURE__ */ e.jsxs(
|
|
1707
|
+
/* @__PURE__ */ e.jsxs(b, { children: [
|
|
1698
1708
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsxs(k, { children: [
|
|
1699
1709
|
"Device Calibration",
|
|
1700
|
-
|
|
1710
|
+
t.device_drift?.significant_drift ? /* @__PURE__ */ e.jsx(I, { variant: "warning", children: "Drifted" }) : t.device_drift?.has_calibration_data ? /* @__PURE__ */ e.jsx(I, { variant: "success", children: "Stable" }) : /* @__PURE__ */ e.jsx(I, { variant: "gray", children: "N/A" })
|
|
1701
1711
|
] }) }),
|
|
1702
|
-
|
|
1712
|
+
t.device_drift?.significant_drift ? /* @__PURE__ */ e.jsx("p", { className: "text-sm text-warning", children: "⚠ Significant calibration drift detected" }) : t.device_drift?.has_calibration_data ? /* @__PURE__ */ e.jsx("p", { className: "text-muted", children: "Calibration within acceptable thresholds" }) : /* @__PURE__ */ e.jsx("p", { className: "text-muted", children: "No calibration data available" })
|
|
1703
1713
|
] })
|
|
1704
1714
|
] }),
|
|
1705
|
-
/* @__PURE__ */ e.jsxs(
|
|
1715
|
+
/* @__PURE__ */ e.jsxs(b, { className: "mb-4", children: [
|
|
1706
1716
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsxs(k, { children: [
|
|
1707
1717
|
"Parameters ",
|
|
1708
|
-
/* @__PURE__ */ e.jsx(
|
|
1718
|
+
/* @__PURE__ */ e.jsx(I, { variant: t.params.match ? "success" : "warning", children: t.params.match ? "Match" : "Different" })
|
|
1709
1719
|
] }) }),
|
|
1710
|
-
|
|
1720
|
+
t.params.match ? /* @__PURE__ */ e.jsx("p", { className: "text-muted", children: "All parameters match" }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: t.params.changed && Object.keys(t.params.changed).length > 0 && /* @__PURE__ */ e.jsxs(B, { children: [
|
|
1711
1721
|
/* @__PURE__ */ e.jsx(ee, { children: /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1712
1722
|
/* @__PURE__ */ e.jsx(y, { children: "Parameter" }),
|
|
1713
1723
|
/* @__PURE__ */ e.jsx(y, { children: "Run A" }),
|
|
1714
1724
|
/* @__PURE__ */ e.jsx(y, { children: "Run B" })
|
|
1715
1725
|
] }) }),
|
|
1716
|
-
/* @__PURE__ */ e.jsx(
|
|
1717
|
-
/* @__PURE__ */ e.jsx(c, { children:
|
|
1726
|
+
/* @__PURE__ */ e.jsx(L, { children: Object.entries(t.params.changed).map(([f, x]) => /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1727
|
+
/* @__PURE__ */ e.jsx(c, { children: f }),
|
|
1718
1728
|
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: String(x.a) }),
|
|
1719
1729
|
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: String(x.b) })
|
|
1720
|
-
] },
|
|
1730
|
+
] }, f)) })
|
|
1721
1731
|
] }) })
|
|
1722
1732
|
] }),
|
|
1723
|
-
/* @__PURE__ */ e.jsxs(
|
|
1733
|
+
/* @__PURE__ */ e.jsxs(b, { className: "mb-4", children: [
|
|
1724
1734
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsxs(k, { children: [
|
|
1725
1735
|
"Metrics ",
|
|
1726
|
-
/* @__PURE__ */ e.jsx(
|
|
1736
|
+
/* @__PURE__ */ e.jsx(I, { variant: t.metrics.match ? "success" : "warning", children: t.metrics.match ? "Match" : "Different" })
|
|
1727
1737
|
] }) }),
|
|
1728
|
-
|
|
1738
|
+
t.metrics.match ? /* @__PURE__ */ e.jsx("p", { className: "text-muted", children: "All metrics match" }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: t.metrics.changed && Object.keys(t.metrics.changed).length > 0 && /* @__PURE__ */ e.jsxs(B, { children: [
|
|
1729
1739
|
/* @__PURE__ */ e.jsx(ee, { children: /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1730
1740
|
/* @__PURE__ */ e.jsx(y, { children: "Metric" }),
|
|
1731
1741
|
/* @__PURE__ */ e.jsx(y, { children: "Run A" }),
|
|
1732
1742
|
/* @__PURE__ */ e.jsx(y, { children: "Run B" })
|
|
1733
1743
|
] }) }),
|
|
1734
|
-
/* @__PURE__ */ e.jsx(
|
|
1735
|
-
/* @__PURE__ */ e.jsx(c, { children:
|
|
1744
|
+
/* @__PURE__ */ e.jsx(L, { children: Object.entries(t.metrics.changed).map(([f, x]) => /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1745
|
+
/* @__PURE__ */ e.jsx(c, { children: f }),
|
|
1736
1746
|
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: x.a }),
|
|
1737
1747
|
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: x.b })
|
|
1738
|
-
] },
|
|
1748
|
+
] }, f)) })
|
|
1739
1749
|
] }) })
|
|
1740
1750
|
] }),
|
|
1741
|
-
|
|
1751
|
+
t.circuit_diff && /* @__PURE__ */ e.jsxs(b, { className: "mb-4", children: [
|
|
1742
1752
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsxs(k, { children: [
|
|
1743
1753
|
"Circuit",
|
|
1744
|
-
/* @__PURE__ */ e.jsx(
|
|
1754
|
+
/* @__PURE__ */ e.jsx(I, { variant: t.circuit_diff.match ? "success" : "warning", children: t.circuit_diff.match ? "Match" : "Different" })
|
|
1745
1755
|
] }) }),
|
|
1746
|
-
|
|
1747
|
-
|
|
1756
|
+
t.circuit_diff.match ? /* @__PURE__ */ e.jsx("p", { className: "text-muted", children: "Circuit structure matches" }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1757
|
+
t.circuit_diff.changed && Object.keys(t.circuit_diff.changed).length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1748
1758
|
/* @__PURE__ */ e.jsx("h4", { className: "text-sm text-muted mb-2", children: "Changed" }),
|
|
1749
|
-
/* @__PURE__ */ e.jsxs(
|
|
1759
|
+
/* @__PURE__ */ e.jsxs(B, { children: [
|
|
1750
1760
|
/* @__PURE__ */ e.jsx(ee, { children: /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1751
1761
|
/* @__PURE__ */ e.jsx(y, { children: "Property" }),
|
|
1752
1762
|
/* @__PURE__ */ e.jsx(y, { children: "Run A" }),
|
|
1753
1763
|
/* @__PURE__ */ e.jsx(y, { children: "Run B" }),
|
|
1754
1764
|
/* @__PURE__ */ e.jsx(y, { children: "Delta" })
|
|
1755
1765
|
] }) }),
|
|
1756
|
-
/* @__PURE__ */ e.jsx(
|
|
1757
|
-
/* @__PURE__ */ e.jsx(c, { children: x.label ||
|
|
1766
|
+
/* @__PURE__ */ e.jsx(L, { children: Object.entries(t.circuit_diff.changed).map(([f, x]) => /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1767
|
+
/* @__PURE__ */ e.jsx(c, { children: x.label || f }),
|
|
1758
1768
|
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: String(x.a) }),
|
|
1759
1769
|
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: String(x.b) }),
|
|
1760
1770
|
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: x.delta != null && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
@@ -1762,138 +1772,135 @@ function $s({ runIdA: s, runIdB: n }) {
|
|
|
1762
1772
|
x.delta,
|
|
1763
1773
|
x.pct != null && ` (${x.pct > 0 ? "+" : ""}${x.pct.toFixed(1)}%)`
|
|
1764
1774
|
] }) })
|
|
1765
|
-
] },
|
|
1775
|
+
] }, f)) })
|
|
1766
1776
|
] })
|
|
1767
1777
|
] }),
|
|
1768
|
-
|
|
1778
|
+
t.circuit_diff.is_clifford_changed && /* @__PURE__ */ e.jsxs("div", { className: "mt-4", children: [
|
|
1769
1779
|
/* @__PURE__ */ e.jsx("h4", { className: "text-sm text-muted mb-2", children: "Clifford Status" }),
|
|
1770
|
-
/* @__PURE__ */ e.jsx(
|
|
1780
|
+
/* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsxs(L, { children: [
|
|
1771
1781
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1772
1782
|
/* @__PURE__ */ e.jsx(c, { children: "Run A" }),
|
|
1773
|
-
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children:
|
|
1783
|
+
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: t.circuit_diff.is_clifford_a != null ? String(t.circuit_diff.is_clifford_a) : "unknown" })
|
|
1774
1784
|
] }),
|
|
1775
1785
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1776
1786
|
/* @__PURE__ */ e.jsx(c, { children: "Run B" }),
|
|
1777
|
-
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children:
|
|
1787
|
+
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: t.circuit_diff.is_clifford_b != null ? String(t.circuit_diff.is_clifford_b) : "unknown" })
|
|
1778
1788
|
] })
|
|
1779
1789
|
] }) })
|
|
1780
1790
|
] }),
|
|
1781
|
-
|
|
1791
|
+
t.circuit_diff.added_gates && t.circuit_diff.added_gates.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "mt-4", children: [
|
|
1782
1792
|
/* @__PURE__ */ e.jsx("h4", { className: "text-sm text-muted mb-2", children: "New Gate Types (in B)" }),
|
|
1783
|
-
/* @__PURE__ */ e.jsx("p", { className: "font-mono text-sm", children:
|
|
1793
|
+
/* @__PURE__ */ e.jsx("p", { className: "font-mono text-sm", children: t.circuit_diff.added_gates.join(", ") })
|
|
1784
1794
|
] }),
|
|
1785
|
-
|
|
1795
|
+
t.circuit_diff.removed_gates && t.circuit_diff.removed_gates.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "mt-4", children: [
|
|
1786
1796
|
/* @__PURE__ */ e.jsx("h4", { className: "text-sm text-muted mb-2", children: "Removed Gate Types (from A)" }),
|
|
1787
|
-
/* @__PURE__ */ e.jsx("p", { className: "font-mono text-sm", children:
|
|
1797
|
+
/* @__PURE__ */ e.jsx("p", { className: "font-mono text-sm", children: t.circuit_diff.removed_gates.join(", ") })
|
|
1788
1798
|
] })
|
|
1789
1799
|
] })
|
|
1790
1800
|
] }),
|
|
1791
|
-
|
|
1801
|
+
t.tvd != null && /* @__PURE__ */ e.jsxs(b, { className: "mb-4", children: [
|
|
1792
1802
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(k, { children: "Results" }) }),
|
|
1793
|
-
/* @__PURE__ */ e.jsx(
|
|
1803
|
+
/* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsxs(L, { children: [
|
|
1794
1804
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1795
1805
|
/* @__PURE__ */ e.jsx(c, { children: "Total Variation Distance (TVD)" }),
|
|
1796
|
-
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children:
|
|
1806
|
+
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: t.tvd.toFixed(6) })
|
|
1797
1807
|
] }),
|
|
1798
|
-
|
|
1808
|
+
t.shots && /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1799
1809
|
/* @__PURE__ */ e.jsx(c, { children: "Total Shots (A / B)" }),
|
|
1800
1810
|
/* @__PURE__ */ e.jsxs(c, { className: "font-mono", children: [
|
|
1801
|
-
|
|
1811
|
+
t.shots.a,
|
|
1802
1812
|
" / ",
|
|
1803
|
-
|
|
1813
|
+
t.shots.b
|
|
1804
1814
|
] })
|
|
1805
1815
|
] }),
|
|
1806
|
-
|
|
1816
|
+
t.noise_context?.noise_p95 && /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1807
1817
|
/* @__PURE__ */ e.jsx(c, { children: "Noise Threshold (p95)" }),
|
|
1808
|
-
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children:
|
|
1818
|
+
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: t.noise_context.noise_p95.toFixed(6) })
|
|
1809
1819
|
] }),
|
|
1810
|
-
|
|
1820
|
+
t.noise_context?.p_value != null && /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1811
1821
|
/* @__PURE__ */ e.jsx(c, { children: "p-value" }),
|
|
1812
|
-
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children:
|
|
1822
|
+
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: t.noise_context.p_value.toFixed(3) })
|
|
1813
1823
|
] })
|
|
1814
1824
|
] }) }),
|
|
1815
|
-
|
|
1825
|
+
t.tvd > 0 && t.noise_context && /* @__PURE__ */ e.jsx("p", { className: "text-sm mt-4", children: t.noise_context.p_value != null ? t.noise_context.p_value >= 0.1 ? /* @__PURE__ */ e.jsx("span", { className: "text-success", children: "✓ Consistent with sampling noise — difference is not statistically significant." }) : t.noise_context.p_value >= 0.05 ? /* @__PURE__ */ e.jsxs("span", { className: "text-warning", children: [
|
|
1816
1826
|
"⚠ Borderline (p=",
|
|
1817
|
-
|
|
1827
|
+
t.noise_context.p_value.toFixed(2),
|
|
1818
1828
|
"). Consider increasing shots."
|
|
1819
1829
|
] }) : /* @__PURE__ */ e.jsxs("span", { className: "text-danger", children: [
|
|
1820
1830
|
"✗ Statistically significant difference (p=",
|
|
1821
|
-
|
|
1831
|
+
t.noise_context.p_value.toFixed(2),
|
|
1822
1832
|
") — results show meaningful divergence."
|
|
1823
|
-
] }) :
|
|
1833
|
+
] }) : t.noise_context.noise_ratio != null ? t.noise_context.noise_ratio < 1.5 ? /* @__PURE__ */ e.jsx("span", { className: "text-success", children: "✓ TVD is within expected shot noise range." }) : t.noise_context.noise_ratio < 3 ? /* @__PURE__ */ e.jsxs("span", { className: "text-warning", children: [
|
|
1824
1834
|
"⚠ Ambiguous (",
|
|
1825
|
-
|
|
1835
|
+
t.noise_context.noise_ratio.toFixed(1),
|
|
1826
1836
|
"× expected noise). Consider increasing shots."
|
|
1827
1837
|
] }) : /* @__PURE__ */ e.jsxs("span", { className: "text-danger", children: [
|
|
1828
1838
|
"✗ TVD exceeds expected noise (",
|
|
1829
|
-
|
|
1839
|
+
t.noise_context.noise_ratio.toFixed(1),
|
|
1830
1840
|
"×) — results show meaningful differences."
|
|
1831
1841
|
] }) : null })
|
|
1832
1842
|
] })
|
|
1833
1843
|
] });
|
|
1834
1844
|
}
|
|
1835
|
-
function
|
|
1836
|
-
const [
|
|
1845
|
+
function Br() {
|
|
1846
|
+
const [r] = Oe(), n = r.get("a"), a = r.get("b"), i = n && a;
|
|
1837
1847
|
return /* @__PURE__ */ e.jsxs(G, { children: [
|
|
1838
1848
|
/* @__PURE__ */ e.jsx("div", { className: "page-header", children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1839
|
-
/* @__PURE__ */ e.
|
|
1840
|
-
"Compare Runs",
|
|
1841
|
-
i && /* @__PURE__ */ e.jsx(B, { variant: "info", children: "Comparing" })
|
|
1842
|
-
] }),
|
|
1849
|
+
/* @__PURE__ */ e.jsx("h1", { className: "page-title", children: "Compare Runs" }),
|
|
1843
1850
|
i && /* @__PURE__ */ e.jsx("p", { className: "text-muted text-sm", children: /* @__PURE__ */ e.jsx(q, { to: "/diff", children: "← Select different runs" }) })
|
|
1844
1851
|
] }) }),
|
|
1845
|
-
i ? /* @__PURE__ */ e.jsx($
|
|
1852
|
+
i ? /* @__PURE__ */ e.jsx($r, { runIdA: n, runIdB: a }) : /* @__PURE__ */ e.jsx(Or, {})
|
|
1846
1853
|
] });
|
|
1847
1854
|
}
|
|
1848
|
-
function
|
|
1849
|
-
const { api:
|
|
1850
|
-
const
|
|
1851
|
-
return d(
|
|
1852
|
-
}),
|
|
1853
|
-
if (
|
|
1854
|
-
|
|
1855
|
+
function Lr() {
|
|
1856
|
+
const { api: r } = W(), [n, a] = O(""), [i, d] = O(null), [o, m] = O(!1), [t, h] = O(""), { mutate: f, loading: x } = ye(async () => {
|
|
1857
|
+
const w = await r.listRuns({ q: n, limit: 100 });
|
|
1858
|
+
return d(w.runs), m(!0), w;
|
|
1859
|
+
}), p = (w) => {
|
|
1860
|
+
if (w.preventDefault(), !n.trim()) {
|
|
1861
|
+
h("Please enter a search query");
|
|
1855
1862
|
return;
|
|
1856
1863
|
}
|
|
1857
|
-
|
|
1864
|
+
h(""), f();
|
|
1858
1865
|
};
|
|
1859
1866
|
return /* @__PURE__ */ e.jsxs(G, { children: [
|
|
1860
1867
|
/* @__PURE__ */ e.jsx("div", { className: "page-header", children: /* @__PURE__ */ e.jsx("h1", { className: "page-title", children: "Search Runs" }) }),
|
|
1861
|
-
/* @__PURE__ */ e.jsx(
|
|
1868
|
+
/* @__PURE__ */ e.jsx(b, { className: "mb-4", children: /* @__PURE__ */ e.jsxs("form", { onSubmit: p, children: [
|
|
1862
1869
|
/* @__PURE__ */ e.jsxs(X, { children: [
|
|
1863
|
-
/* @__PURE__ */ e.jsx(
|
|
1870
|
+
/* @__PURE__ */ e.jsx(se, { htmlFor: "q", children: "Query" }),
|
|
1864
1871
|
/* @__PURE__ */ e.jsx(
|
|
1865
1872
|
Qe,
|
|
1866
1873
|
{
|
|
1867
1874
|
id: "q",
|
|
1868
1875
|
type: "text",
|
|
1869
1876
|
value: n,
|
|
1870
|
-
onChange: (
|
|
1871
|
-
|
|
1877
|
+
onChange: (w) => {
|
|
1878
|
+
a(w.target.value), h("");
|
|
1872
1879
|
},
|
|
1873
1880
|
placeholder: "metric.fidelity > 0.95 and params.shots = 1000",
|
|
1874
1881
|
className: "font-mono"
|
|
1875
1882
|
}
|
|
1876
1883
|
)
|
|
1877
1884
|
] }),
|
|
1878
|
-
|
|
1879
|
-
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-
|
|
1880
|
-
/* @__PURE__ */ e.jsxs(F, { type: "submit", variant: "primary", disabled:
|
|
1881
|
-
|
|
1885
|
+
t && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-[#DC4A4A] mb-3", children: t }),
|
|
1886
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
1887
|
+
/* @__PURE__ */ e.jsxs(F, { type: "submit", variant: "primary", disabled: x, children: [
|
|
1888
|
+
x && /* @__PURE__ */ e.jsx(V, {}),
|
|
1882
1889
|
"Search"
|
|
1883
1890
|
] }),
|
|
1884
|
-
|
|
1891
|
+
x && /* @__PURE__ */ e.jsx("span", { className: "text-muted text-sm", children: "Searching..." })
|
|
1885
1892
|
] })
|
|
1886
1893
|
] }) }),
|
|
1887
|
-
o && i && /* @__PURE__ */ e.jsx(
|
|
1894
|
+
o && i && /* @__PURE__ */ e.jsx(b, { className: "mb-4", children: i.length > 0 ? /* @__PURE__ */ e.jsx(Ze, { runs: i }) : /* @__PURE__ */ e.jsx("p", { className: "text-muted text-center py-8", children: "No runs match your query" }) }),
|
|
1888
1895
|
/* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
1889
|
-
/* @__PURE__ */ e.jsxs(
|
|
1896
|
+
/* @__PURE__ */ e.jsxs(b, { children: [
|
|
1890
1897
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(k, { children: "Query Syntax" }) }),
|
|
1891
|
-
/* @__PURE__ */ e.jsxs(
|
|
1898
|
+
/* @__PURE__ */ e.jsxs(B, { children: [
|
|
1892
1899
|
/* @__PURE__ */ e.jsx(ee, { children: /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1893
1900
|
/* @__PURE__ */ e.jsx(y, { children: "Field" }),
|
|
1894
1901
|
/* @__PURE__ */ e.jsx(y, { children: "Description" })
|
|
1895
1902
|
] }) }),
|
|
1896
|
-
/* @__PURE__ */ e.jsxs(
|
|
1903
|
+
/* @__PURE__ */ e.jsxs(L, { children: [
|
|
1897
1904
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1898
1905
|
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: "params.X" }),
|
|
1899
1906
|
/* @__PURE__ */ e.jsx(c, { children: "Parameter value" })
|
|
@@ -1921,14 +1928,14 @@ function Ls() {
|
|
|
1921
1928
|
] })
|
|
1922
1929
|
] })
|
|
1923
1930
|
] }),
|
|
1924
|
-
/* @__PURE__ */ e.jsxs(
|
|
1931
|
+
/* @__PURE__ */ e.jsxs(b, { children: [
|
|
1925
1932
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(k, { children: "Operators" }) }),
|
|
1926
|
-
/* @__PURE__ */ e.jsxs(
|
|
1933
|
+
/* @__PURE__ */ e.jsxs(B, { children: [
|
|
1927
1934
|
/* @__PURE__ */ e.jsx(ee, { children: /* @__PURE__ */ e.jsxs(j, { children: [
|
|
1928
1935
|
/* @__PURE__ */ e.jsx(y, { children: "Operator" }),
|
|
1929
1936
|
/* @__PURE__ */ e.jsx(y, { children: "Description" })
|
|
1930
1937
|
] }) }),
|
|
1931
|
-
/* @__PURE__ */ e.jsxs(
|
|
1938
|
+
/* @__PURE__ */ e.jsxs(L, { children: [
|
|
1932
1939
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1933
1940
|
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: "=" }),
|
|
1934
1941
|
/* @__PURE__ */ e.jsx(c, { children: "Equals" })
|
|
@@ -1965,9 +1972,9 @@ function Ls() {
|
|
|
1965
1972
|
] })
|
|
1966
1973
|
] })
|
|
1967
1974
|
] }),
|
|
1968
|
-
/* @__PURE__ */ e.jsxs(
|
|
1975
|
+
/* @__PURE__ */ e.jsxs(b, { className: "mt-4", children: [
|
|
1969
1976
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(k, { children: "Examples" }) }),
|
|
1970
|
-
/* @__PURE__ */ e.jsx(
|
|
1977
|
+
/* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsxs(L, { children: [
|
|
1971
1978
|
/* @__PURE__ */ e.jsxs(j, { children: [
|
|
1972
1979
|
/* @__PURE__ */ e.jsx(c, { className: "font-mono", children: "metric.fidelity > 0.95" }),
|
|
1973
1980
|
/* @__PURE__ */ e.jsx(c, { children: "High fidelity runs" })
|
|
@@ -1992,169 +1999,169 @@ function Ls() {
|
|
|
1992
1999
|
] })
|
|
1993
2000
|
] });
|
|
1994
2001
|
}
|
|
1995
|
-
function
|
|
1996
|
-
const { runId:
|
|
2002
|
+
function Ir() {
|
|
2003
|
+
const { runId: r, index: n } = Xe(), a = parseInt(n, 10), { api: i } = W(), { data: d } = Ps(r), { data: o, loading: m, error: t } = yr(r, a), [h, f] = O(null);
|
|
1997
2004
|
xe(() => {
|
|
1998
|
-
if (
|
|
1999
|
-
const P = setTimeout(() =>
|
|
2005
|
+
if (h) {
|
|
2006
|
+
const P = setTimeout(() => f(null), 3e3);
|
|
2000
2007
|
return () => clearTimeout(P);
|
|
2001
2008
|
}
|
|
2002
|
-
}, [
|
|
2003
|
-
const
|
|
2009
|
+
}, [h]);
|
|
2010
|
+
const x = async () => {
|
|
2004
2011
|
try {
|
|
2005
|
-
const P = i.getArtifactDownloadUrl(
|
|
2012
|
+
const P = i.getArtifactDownloadUrl(r, a), le = await fetch(P);
|
|
2006
2013
|
if (!le.ok) throw new Error("Download failed");
|
|
2007
2014
|
const oe = await le.blob(), Z = document.createElement("a");
|
|
2008
|
-
Z.href = URL.createObjectURL(oe), Z.download =
|
|
2015
|
+
Z.href = URL.createObjectURL(oe), Z.download = p?.kind || `artifact-${a}`, Z.click(), URL.revokeObjectURL(Z.href), f({ message: "Download started", variant: "success" });
|
|
2009
2016
|
} catch {
|
|
2010
|
-
|
|
2017
|
+
f({ message: "Download failed", variant: "error" });
|
|
2011
2018
|
}
|
|
2012
2019
|
};
|
|
2013
2020
|
if (m)
|
|
2014
2021
|
return /* @__PURE__ */ e.jsx(G, { children: /* @__PURE__ */ e.jsx("div", { className: "flex justify-center py-12", children: /* @__PURE__ */ e.jsx(V, {}) }) });
|
|
2015
|
-
if (
|
|
2016
|
-
return /* @__PURE__ */ e.jsx(G, { children: /* @__PURE__ */ e.jsx(
|
|
2017
|
-
const { artifact:
|
|
2022
|
+
if (t || !o)
|
|
2023
|
+
return /* @__PURE__ */ e.jsx(G, { children: /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsx(ce, { message: "Artifact not found", hint: t?.message }) }) });
|
|
2024
|
+
const { artifact: p, size: w, content: K, content_json: R, preview_available: Q, error: J } = o, H = 10 * 1024 * 1024;
|
|
2018
2025
|
return /* @__PURE__ */ e.jsxs(G, { children: [
|
|
2019
2026
|
/* @__PURE__ */ e.jsx(
|
|
2020
2027
|
_e,
|
|
2021
2028
|
{
|
|
2022
|
-
title:
|
|
2029
|
+
title: p.kind,
|
|
2023
2030
|
subtitle: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2024
2031
|
"← Back to run ",
|
|
2025
|
-
/* @__PURE__ */ e.jsxs(q, { to: `/runs/${
|
|
2026
|
-
z(
|
|
2032
|
+
/* @__PURE__ */ e.jsxs(q, { to: `/runs/${r}`, children: [
|
|
2033
|
+
z(r),
|
|
2027
2034
|
d?.run_name && ` — ${d.run_name}`
|
|
2028
2035
|
] })
|
|
2029
2036
|
] }),
|
|
2030
|
-
actions: /* @__PURE__ */ e.jsx(F, { variant: "primary", onClick:
|
|
2037
|
+
actions: /* @__PURE__ */ e.jsx(F, { variant: "primary", onClick: x, children: "Download" })
|
|
2031
2038
|
}
|
|
2032
2039
|
),
|
|
2033
|
-
/* @__PURE__ */ e.jsx(
|
|
2034
|
-
{ label: "Kind", value: /* @__PURE__ */ e.jsx("span", { className: "font-mono", children:
|
|
2035
|
-
{ label: "Role", value: /* @__PURE__ */ e.jsx(
|
|
2036
|
-
{ label: "Media Type", value:
|
|
2037
|
-
{ label: "Digest", value: /* @__PURE__ */ e.jsx("span", { className: "font-mono text-sm", children:
|
|
2038
|
-
{ label: "Size", value: Ae(
|
|
2040
|
+
/* @__PURE__ */ e.jsx(b, { className: "mb-4", children: /* @__PURE__ */ e.jsx(Je, { items: [
|
|
2041
|
+
{ label: "Kind", value: /* @__PURE__ */ e.jsx("span", { className: "font-mono", children: p.kind }) },
|
|
2042
|
+
{ label: "Role", value: /* @__PURE__ */ e.jsx(I, { variant: "gray", children: p.role }) },
|
|
2043
|
+
{ label: "Media Type", value: p.media_type },
|
|
2044
|
+
{ label: "Digest", value: /* @__PURE__ */ e.jsx("span", { className: "font-mono text-sm", children: p.digest }) },
|
|
2045
|
+
{ label: "Size", value: Ae(w) }
|
|
2039
2046
|
] }) }),
|
|
2040
|
-
/* @__PURE__ */ e.jsxs(
|
|
2047
|
+
/* @__PURE__ */ e.jsxs(b, { children: [
|
|
2041
2048
|
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(k, { children: "Content" }) }),
|
|
2042
2049
|
J ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2043
2050
|
/* @__PURE__ */ e.jsxs("p", { className: "text-sm text-danger", children: [
|
|
2044
2051
|
"Error loading artifact: ",
|
|
2045
2052
|
J
|
|
2046
2053
|
] }),
|
|
2047
|
-
/* @__PURE__ */ e.jsx("p", { className: "text-muted mt-2", children: /* @__PURE__ */ e.jsx(F, { variant: "primary", onClick:
|
|
2048
|
-
] }) : Q ?
|
|
2054
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-muted mt-2", children: /* @__PURE__ */ e.jsx(F, { variant: "primary", onClick: x, children: "Download to view" }) })
|
|
2055
|
+
] }) : Q ? R ? /* @__PURE__ */ e.jsx("pre", { children: wr(R) }) : K ? /* @__PURE__ */ e.jsx("pre", { children: K }) : /* @__PURE__ */ e.jsxs("p", { className: "text-muted", children: [
|
|
2049
2056
|
"Binary content (",
|
|
2050
|
-
Ae(
|
|
2057
|
+
Ae(w),
|
|
2051
2058
|
") — download to view"
|
|
2052
2059
|
] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2053
2060
|
/* @__PURE__ */ e.jsxs("p", { className: "text-muted", children: [
|
|
2054
2061
|
/* @__PURE__ */ e.jsx("strong", { children: "Artifact too large for preview" }),
|
|
2055
2062
|
" (",
|
|
2056
|
-
Ae(
|
|
2063
|
+
Ae(w),
|
|
2057
2064
|
" exceeds ",
|
|
2058
2065
|
Ae(H),
|
|
2059
2066
|
" limit)"
|
|
2060
2067
|
] }),
|
|
2061
2068
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-muted mt-2", children: "Download the artifact to view its contents." }),
|
|
2062
|
-
/* @__PURE__ */ e.jsx("p", { className: "mt-4", children: /* @__PURE__ */ e.jsx(F, { variant: "primary", onClick:
|
|
2069
|
+
/* @__PURE__ */ e.jsx("p", { className: "mt-4", children: /* @__PURE__ */ e.jsx(F, { variant: "primary", onClick: x, children: "Download" }) })
|
|
2063
2070
|
] })
|
|
2064
2071
|
] }),
|
|
2065
|
-
|
|
2072
|
+
h && /* @__PURE__ */ e.jsx(
|
|
2066
2073
|
Be,
|
|
2067
2074
|
{
|
|
2068
|
-
message:
|
|
2069
|
-
variant:
|
|
2070
|
-
visible: !!
|
|
2071
|
-
onClose: () =>
|
|
2075
|
+
message: h.message,
|
|
2076
|
+
variant: h.variant,
|
|
2077
|
+
visible: !!h,
|
|
2078
|
+
onClose: () => f(null)
|
|
2072
2079
|
}
|
|
2073
2080
|
)
|
|
2074
2081
|
] });
|
|
2075
2082
|
}
|
|
2076
|
-
const
|
|
2077
|
-
{ path: "/", element: /* @__PURE__ */ e.jsx(
|
|
2078
|
-
{ path: "/runs", element: /* @__PURE__ */ e.jsx(
|
|
2079
|
-
{ path: "/runs/:runId", element: /* @__PURE__ */ e.jsx(
|
|
2080
|
-
{ path: "/runs/:runId/artifacts/:index", element: /* @__PURE__ */ e.jsx(
|
|
2081
|
-
{ path: "/projects", element: /* @__PURE__ */ e.jsx(
|
|
2082
|
-
{ path: "/groups", element: /* @__PURE__ */ e.jsx(
|
|
2083
|
-
{ path: "/groups/:groupId", element: /* @__PURE__ */ e.jsx(
|
|
2084
|
-
{ path: "/diff", element: /* @__PURE__ */ e.jsx(
|
|
2085
|
-
{ path: "/search", element: /* @__PURE__ */ e.jsx(
|
|
2083
|
+
const Ur = [
|
|
2084
|
+
{ path: "/", element: /* @__PURE__ */ e.jsx(dr, { to: "/runs", replace: !0 }) },
|
|
2085
|
+
{ path: "/runs", element: /* @__PURE__ */ e.jsx(Cr, {}) },
|
|
2086
|
+
{ path: "/runs/:runId", element: /* @__PURE__ */ e.jsx(Dr, {}) },
|
|
2087
|
+
{ path: "/runs/:runId/artifacts/:index", element: /* @__PURE__ */ e.jsx(Ir, {}) },
|
|
2088
|
+
{ path: "/projects", element: /* @__PURE__ */ e.jsx(kr, {}) },
|
|
2089
|
+
{ path: "/groups", element: /* @__PURE__ */ e.jsx(Ar, {}) },
|
|
2090
|
+
{ path: "/groups/:groupId", element: /* @__PURE__ */ e.jsx(Fr, {}) },
|
|
2091
|
+
{ path: "/diff", element: /* @__PURE__ */ e.jsx(Br, {}) },
|
|
2092
|
+
{ path: "/search", element: /* @__PURE__ */ e.jsx(Lr, {}) }
|
|
2086
2093
|
];
|
|
2087
|
-
function
|
|
2088
|
-
return
|
|
2094
|
+
function Fs(r = []) {
|
|
2095
|
+
return ur([...Ur, ...r]);
|
|
2089
2096
|
}
|
|
2090
|
-
const
|
|
2091
|
-
function
|
|
2092
|
-
const
|
|
2093
|
-
return /* @__PURE__ */ e.jsx(
|
|
2097
|
+
const Mr = Fs();
|
|
2098
|
+
function zr({ additionalRoutes: r, ...n }) {
|
|
2099
|
+
const a = r?.length ? Fs(r) : Mr;
|
|
2100
|
+
return /* @__PURE__ */ e.jsx(gr, { ...n, children: /* @__PURE__ */ e.jsx(hr, { router: a }) });
|
|
2094
2101
|
}
|
|
2095
2102
|
export {
|
|
2096
|
-
|
|
2097
|
-
|
|
2103
|
+
Yr as Alert,
|
|
2104
|
+
jr as ApiClient,
|
|
2098
2105
|
Ne as ApiError,
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2106
|
+
zr as App,
|
|
2107
|
+
gr as AppProvider,
|
|
2108
|
+
Ir as ArtifactPage,
|
|
2109
|
+
I as Badge,
|
|
2103
2110
|
F as Button,
|
|
2104
|
-
|
|
2111
|
+
b as Card,
|
|
2105
2112
|
D as CardHeader,
|
|
2106
2113
|
k as CardTitle,
|
|
2107
|
-
|
|
2114
|
+
Br as DiffPage,
|
|
2108
2115
|
ce as EmptyState,
|
|
2109
2116
|
X as FormGroup,
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2117
|
+
ks as FormRow,
|
|
2118
|
+
Fr as GroupDetailPage,
|
|
2119
|
+
Ar as GroupsPage,
|
|
2120
|
+
Sr as GroupsTable,
|
|
2114
2121
|
Qe as Input,
|
|
2115
2122
|
Je as KVList,
|
|
2116
|
-
|
|
2123
|
+
se as Label,
|
|
2117
2124
|
G as Layout,
|
|
2118
|
-
|
|
2119
|
-
|
|
2125
|
+
Wr as LayoutConfigProvider,
|
|
2126
|
+
Ds as Modal,
|
|
2120
2127
|
_e as PageHeader,
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2128
|
+
kr as ProjectsPage,
|
|
2129
|
+
Pr as ProjectsTable,
|
|
2130
|
+
Dr as RunDetailPage,
|
|
2131
|
+
Cr as RunsPage,
|
|
2125
2132
|
Ze as RunsTable,
|
|
2126
|
-
|
|
2133
|
+
Lr as SearchPage,
|
|
2127
2134
|
ae as Select,
|
|
2128
2135
|
V as Spinner,
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2136
|
+
As as StatusBadge,
|
|
2137
|
+
B as Table,
|
|
2138
|
+
L as TableBody,
|
|
2132
2139
|
c as TableCell,
|
|
2133
2140
|
ee as TableHead,
|
|
2134
2141
|
y as TableHeader,
|
|
2135
2142
|
j as TableRow,
|
|
2136
2143
|
Be as Toast,
|
|
2137
|
-
|
|
2138
|
-
|
|
2144
|
+
pr as api,
|
|
2145
|
+
Vr as buildUrl,
|
|
2139
2146
|
$ as cn,
|
|
2140
|
-
|
|
2141
|
-
|
|
2147
|
+
Ur as coreRoutes,
|
|
2148
|
+
Fs as createRouter,
|
|
2142
2149
|
Ae as formatBytes,
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2150
|
+
_r as formatNumber,
|
|
2151
|
+
wr as jsonPretty,
|
|
2152
|
+
Mr as router,
|
|
2146
2153
|
Ke as shortDigest,
|
|
2147
2154
|
z as shortId,
|
|
2148
2155
|
Fe as timeAgo,
|
|
2149
|
-
|
|
2156
|
+
Rr as truncate,
|
|
2150
2157
|
W as useApp,
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2158
|
+
yr as useArtifact,
|
|
2159
|
+
Nr as useDiff,
|
|
2160
|
+
br as useGroup,
|
|
2161
|
+
vr as useGroups,
|
|
2162
|
+
Tr as useLayoutConfig,
|
|
2156
2163
|
ye as useMutation,
|
|
2157
2164
|
$e as useProjects,
|
|
2158
|
-
|
|
2159
|
-
|
|
2165
|
+
Ps as useRun,
|
|
2166
|
+
Cs as useRuns
|
|
2160
2167
|
};
|