@mastra/playground-ui 5.1.20-alpha.0 → 5.1.20
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.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -13213,7 +13213,7 @@ const TracesTableError = ({ error, colsCount }) => {
|
|
|
13213
13213
|
};
|
|
13214
13214
|
const TraceRow = ({ trace, index, isActive }) => {
|
|
13215
13215
|
const { openTrace } = useOpenTrace();
|
|
13216
|
-
const hasFailure = trace.trace.some((span) => span.status.code
|
|
13216
|
+
const hasFailure = trace.trace.some((span) => span.status.code === 2);
|
|
13217
13217
|
return /* @__PURE__ */ jsxs(Row, { className: isActive ? "bg-surface4" : "", onClick: () => openTrace(trace.trace, index), children: [
|
|
13218
13218
|
/* @__PURE__ */ jsx(DateTimeCell, { dateTime: new Date(trace.started / 1e3) }),
|
|
13219
13219
|
/* @__PURE__ */ jsxs(TxtCell, { title: trace.traceId, children: [
|
|
@@ -13584,7 +13584,7 @@ function TraceDetails() {
|
|
|
13584
13584
|
const { trace, currentTraceIndex, prevTrace, nextTrace, traces } = useContext(TraceContext);
|
|
13585
13585
|
const actualTrace = traces[currentTraceIndex];
|
|
13586
13586
|
if (!actualTrace || !trace) return null;
|
|
13587
|
-
const hasFailure = trace.some((span) => span.status.code
|
|
13587
|
+
const hasFailure = trace.some((span) => span.status.code === 2);
|
|
13588
13588
|
return /* @__PURE__ */ jsxs("aside", { children: [
|
|
13589
13589
|
/* @__PURE__ */ jsxs(Header, { children: [
|
|
13590
13590
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
@@ -13706,11 +13706,11 @@ function SpanDetail() {
|
|
|
13706
13706
|
/* @__PURE__ */ jsx(Icon, { size: "lg", className: "bg-surface4 p-1 rounded-md", children: /* @__PURE__ */ jsx(SpanIcon, { className: variantClass }) }),
|
|
13707
13707
|
span.name
|
|
13708
13708
|
] }),
|
|
13709
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-row gap-2 items-center", children: span.status.code ===
|
|
13709
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-row gap-2 items-center", children: span.status.code === 2 ? /* @__PURE__ */ jsxs(Badge$1, { variant: "error", icon: /* @__PURE__ */ jsx(X, {}), children: [
|
|
13710
|
+
"Failed in ",
|
|
13710
13711
|
toSigFigs(span.duration, 3),
|
|
13711
13712
|
"ms"
|
|
13712
|
-
] }) : /* @__PURE__ */ jsxs(Badge$1, {
|
|
13713
|
-
"Failed in ",
|
|
13713
|
+
] }) : /* @__PURE__ */ jsxs(Badge$1, { icon: /* @__PURE__ */ jsx(LatencyIcon, {}), variant: "success", children: [
|
|
13714
13714
|
toSigFigs(span.duration, 3),
|
|
13715
13715
|
"ms"
|
|
13716
13716
|
] }) }),
|