@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 CHANGED
@@ -13246,7 +13246,7 @@ const TracesTableError = ({ error, colsCount }) => {
13246
13246
  };
13247
13247
  const TraceRow = ({ trace, index, isActive }) => {
13248
13248
  const { openTrace } = useOpenTrace();
13249
- const hasFailure = trace.trace.some((span) => span.status.code !== 0);
13249
+ const hasFailure = trace.trace.some((span) => span.status.code === 2);
13250
13250
  return /* @__PURE__ */ jsxRuntime.jsxs(Row, { className: isActive ? "bg-surface4" : "", onClick: () => openTrace(trace.trace, index), children: [
13251
13251
  /* @__PURE__ */ jsxRuntime.jsx(DateTimeCell, { dateTime: new Date(trace.started / 1e3) }),
13252
13252
  /* @__PURE__ */ jsxRuntime.jsxs(TxtCell, { title: trace.traceId, children: [
@@ -13617,7 +13617,7 @@ function TraceDetails() {
13617
13617
  const { trace, currentTraceIndex, prevTrace, nextTrace, traces } = React.useContext(TraceContext);
13618
13618
  const actualTrace = traces[currentTraceIndex];
13619
13619
  if (!actualTrace || !trace) return null;
13620
- const hasFailure = trace.some((span) => span.status.code !== 0);
13620
+ const hasFailure = trace.some((span) => span.status.code === 2);
13621
13621
  return /* @__PURE__ */ jsxRuntime.jsxs("aside", { children: [
13622
13622
  /* @__PURE__ */ jsxRuntime.jsxs(Header, { children: [
13623
13623
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
@@ -13739,11 +13739,11 @@ function SpanDetail() {
13739
13739
  /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "lg", className: "bg-surface4 p-1 rounded-md", children: /* @__PURE__ */ jsxRuntime.jsx(SpanIcon, { className: variantClass }) }),
13740
13740
  span.name
13741
13741
  ] }),
13742
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-row gap-2 items-center", children: span.status.code === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(Badge$1, { icon: /* @__PURE__ */ jsxRuntime.jsx(LatencyIcon, {}), variant: "success", children: [
13742
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-row gap-2 items-center", children: span.status.code === 2 ? /* @__PURE__ */ jsxRuntime.jsxs(Badge$1, { variant: "error", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, {}), children: [
13743
+ "Failed in ",
13743
13744
  toSigFigs(span.duration, 3),
13744
13745
  "ms"
13745
- ] }) : /* @__PURE__ */ jsxRuntime.jsxs(Badge$1, { variant: "error", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, {}), children: [
13746
- "Failed in ",
13746
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs(Badge$1, { icon: /* @__PURE__ */ jsxRuntime.jsx(LatencyIcon, {}), variant: "success", children: [
13747
13747
  toSigFigs(span.duration, 3),
13748
13748
  "ms"
13749
13749
  ] }) }),