@workflow/web 5.3.3 → 5.4.0

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.
Files changed (32) hide show
  1. package/build/client/assets/app-Czi_mceE.css +1 -0
  2. package/build/client/assets/{arrow-up-right-AHTyWXU2.js → arrow-up-right-74VYxbbA.js} +1 -1
  3. package/build/client/assets/{highlighted-body-JLMTFACH-_kzpqYmW.js → highlighted-body-JLMTFACH-D51eQJbG.js} +1 -1
  4. package/build/client/assets/{home-DjUPTrY5.js → home-DLo3pUJ2.js} +16 -9
  5. package/build/client/assets/{manifest-9126df65.js → manifest-67b853ed.js} +1 -1
  6. package/build/client/assets/mermaid-WFAXDIZX-Bd_l_owX.css +1 -0
  7. package/build/client/assets/{mermaid-WFAXDIZX-CNo_0yWo.js → mermaid-WFAXDIZX-CCgeQ0jh.js} +833 -854
  8. package/build/client/assets/{root-Bh-E5He-.js → root-D8difEo9.js} +3 -4
  9. package/build/client/assets/root-d42YLYYg.css +1 -0
  10. package/build/client/assets/{run-detail-5dPVsaSm.js → run-detail-DcpR_rST.js} +119 -248
  11. package/build/client/assets/run-detail-DmVxTs86.css +1 -0
  12. package/build/client/assets/{run-usage-C_wyncgV.js → run-usage-0JrO5fG2.js} +4 -4
  13. package/build/client/assets/{run-usage-BEswHGKU.js → run-usage-CK_ia-7k.js} +24 -32
  14. package/build/client/assets/{skeleton-DE14mNQw.js → skeleton-B2Cf2UXN.js} +1 -1
  15. package/build/client/assets/{url-state-5GKQwo-f.js → url-state-n9DuWtVx.js} +52 -79
  16. package/build/client/assets/{zstd-browser-decoder-CbTMLAMd.js → zstd-browser-decoder-CqZHDp17.js} +1 -1
  17. package/build/server/assets/{app-C-e60j14.js → app-DLSid73Q.js} +1875 -1696
  18. package/build/server/assets/{highlighted-body-JLMTFACH-B7y0X_Kn.js → highlighted-body-JLMTFACH-CtQ_zvjG.js} +1 -1
  19. package/build/server/assets/{index-DRDsjR--.js → index-BI8sdTIq.js} +4 -4
  20. package/build/server/assets/{mermaid-WFAXDIZX-MsPxEM1Y.js → mermaid-WFAXDIZX-BlWV_MqD.js} +1 -1
  21. package/build/server/assets/{token-DXh0TnqB.js → token-BE7-D9Dt.js} +2 -2
  22. package/build/server/assets/{token-CKgyaeCJ.js → token-DOXFZxpM.js} +1 -1
  23. package/build/server/assets/{token-util-CCc0uYVy.js → token-util-DjnKfD7P.js} +2 -2
  24. package/build/server/assets/{token-util-DOHYMq7D.js → token-util-V29s95lj.js} +1 -1
  25. package/build/server/assets/{wrapper-BzLz38Oh.js → wrapper-DBwRVVUb.js} +2 -2
  26. package/build/server/assets/{zstd-browser-decoder-BSSEC3XP.js → zstd-browser-decoder-Crq3t_fM.js} +1 -1
  27. package/build/server/index.js +1 -1
  28. package/package.json +7 -7
  29. package/build/client/assets/app-CmaRLUwS.css +0 -1
  30. package/build/client/assets/mermaid-WFAXDIZX-F88p7PFX.css +0 -1
  31. package/build/client/assets/root-kJB77No4.css +0 -1
  32. package/build/client/assets/run-detail-CWoGxu_0.css +0 -1
@@ -0,0 +1 @@
1
+ ._hint_1dmsq_3{animation:_trace-shortcut-hint-fade_1dmsq_1 .15s ease-in-out}@keyframes _trace-shortcut-hint-fade_1dmsq_1{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){._hint_1dmsq_3{animation:none}}@keyframes _span-flash_bcyo3_1{0%,44%,to{background-color:var(--ds-gray-100)}12%,28%,58%,74%{background-color:var(--ds-amber-200)}}@media(prefers-reduced-motion:no-preference){._landing_bcyo3_16 [role=treeitem][aria-selected=true]{animation:_span-flash_bcyo3_1 .6s ease-in-out .15s backwards}}
@@ -1,9 +1,9 @@
1
1
  import { w as withComponentProps, u as useOutletContext, j as jsxRuntimeExports } from "./index-BUQuaV5X.js";
2
- import { R as RunUsagePage } from "./run-usage-BEswHGKU.js";
2
+ import { R as RunUsagePage } from "./run-usage-CK_ia-7k.js";
3
3
  import { D as DEFAULT_TITLE, a as DEFAULT_META_DESCRIPTION } from "./meta-9cjJ0pVb.js";
4
- import "./mermaid-WFAXDIZX-CNo_0yWo.js";
5
- import "./skeleton-DE14mNQw.js";
6
- import "./arrow-up-right-AHTyWXU2.js";
4
+ import "./mermaid-WFAXDIZX-CCgeQ0jh.js";
5
+ import "./skeleton-B2Cf2UXN.js";
6
+ import "./arrow-up-right-74VYxbbA.js";
7
7
  function meta({
8
8
  params
9
9
  }) {
@@ -1,7 +1,7 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports, L as Link } from "./index-BUQuaV5X.js";
2
- import { c as createLucideIcon, a as cn, u as useRowWindow, i as isSpanDimmedBySearch, b as ROW_HEIGHT_PX, T as Tooltip, d as TooltipTrigger, e as TooltipContent, g as getSpanDurationMs, f as isSpanErrored, h as isSpanCancelled, j as formatDurationPrecise, B as Button, C as ChevronRight } from "./mermaid-WFAXDIZX-CNo_0yWo.js";
3
- import { f as formatStepName, p as parseStepName, a as parseWorkflowName, C as Circle, b as CircleAlert, R as RotateCw, S as Skeleton } from "./skeleton-DE14mNQw.js";
4
- import { A as ArrowUpRight } from "./arrow-up-right-AHTyWXU2.js";
2
+ import { c as createLucideIcon, a as cn, u as useRowWindow, i as isSpanDimmedBySearch, b as ROW_HEIGHT_PX, g as getSpanColors, T as Tooltip, d as TOOLTIP_DELAY_MS, e as TooltipTrigger, f as TooltipContent, h as getSpanDurationMs, j as isSpanErrored, k as isSpanCancelled, l as formatDurationPrecise, B as Button, C as ChevronRight } from "./mermaid-WFAXDIZX-CCgeQ0jh.js";
3
+ import { f as formatStepName, p as parseStepName, a as parseWorkflowName, C as Circle, b as CircleAlert, R as RotateCw, S as Skeleton } from "./skeleton-B2Cf2UXN.js";
4
+ import { A as ArrowUpRight } from "./arrow-up-right-74VYxbbA.js";
5
5
  const __iconNode = [
6
6
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
7
7
  ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
@@ -561,7 +561,7 @@ function MiddleTruncate({ value, className, onCopy: onCopyProp, ...props }) {
561
561
  e.preventDefault();
562
562
  e.clipboardData.setData("text/plain", copyText);
563
563
  }, [onCopyProp, isTruncated, prefixText, suffixText, value]);
564
- return jsxRuntimeExports.jsxs("span", { title: isTruncated ? value : void 0, ...props, ref, className: cn("relative inline-grid min-w-0 max-w-full overflow-hidden whitespace-nowrap", className), onCopy: handleCopy, children: [isTruncated && jsxRuntimeExports.jsx("span", { className: "sr-only select-none", children: value }), jsxRuntimeExports.jsx("span", { "aria-hidden": "true", className: "pointer-events-none col-start-1 row-start-1 invisible select-none whitespace-nowrap", children: value }), jsxRuntimeExports.jsx("span", { "aria-hidden": isTruncated || void 0, className: "col-start-1 row-start-1 min-w-0 overflow-hidden", ref: visibleRef, children: isTruncated ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx("span", { children: prefixText }), jsxRuntimeExports.jsx("span", { children: ELLIPSIS }), jsxRuntimeExports.jsx("span", { children: suffixText })] }) : displayText }), jsxRuntimeExports.jsx("span", { "aria-hidden": "true", className: "pointer-events-none absolute left-0 top-0 inline-block invisible select-none whitespace-nowrap", ref: measureRef })] });
564
+ return jsxRuntimeExports.jsxs("span", { ...props, ref, className: cn("relative inline-grid min-w-0 max-w-full overflow-hidden whitespace-nowrap", className), onCopy: handleCopy, children: [isTruncated && jsxRuntimeExports.jsx("span", { className: "sr-only select-none", children: value }), jsxRuntimeExports.jsx("span", { "aria-hidden": "true", className: "pointer-events-none col-start-1 row-start-1 invisible select-none whitespace-nowrap", children: value }), jsxRuntimeExports.jsx("span", { "aria-hidden": isTruncated || void 0, className: "col-start-1 row-start-1 min-w-0 overflow-hidden", ref: visibleRef, children: isTruncated ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx("span", { children: prefixText }), jsxRuntimeExports.jsx("span", { children: ELLIPSIS }), jsxRuntimeExports.jsx("span", { children: suffixText })] }) : displayText }), jsxRuntimeExports.jsx("span", { "aria-hidden": "true", className: "pointer-events-none absolute left-0 top-0 inline-block invisible select-none whitespace-nowrap", ref: measureRef })] });
565
565
  }
566
566
  const WorkflowIcon = () => {
567
567
  return jsxRuntimeExports.jsx("svg", { "aria-hidden": "true", "data-testid": "geist-icon", height: "16", strokeLinejoin: "round", viewBox: "0 0 16 16", width: "16", children: jsxRuntimeExports.jsx("path", { d: "M5.75 7L6.4209 7.33594L4.85254 10.4717C5.38789 10.771 5.75 11.3431 5.75 12V14C5.75 14.9665 4.96648 15.75 4 15.75H2C1.03352 15.75 0.25 14.9665 0.25 14V12C0.25 11.0335 1.03352 10.25 2 10.25H3.28711L5.0791 6.66504L5.75 7ZM14 10.25C14.9665 10.25 15.75 11.0335 15.75 12V14C15.75 14.9665 14.9665 15.75 14 15.75H12C11.1185 15.75 10.3909 15.098 10.2695 14.25H7V12.75H10.25V12C10.25 11.0335 11.0335 10.25 12 10.25H14ZM2 11.75C1.86192 11.75 1.75 11.8619 1.75 12V14C1.75 14.1381 1.86192 14.25 2 14.25H4C4.13808 14.25 4.25 14.1381 4.25 14V12C4.25 11.8619 4.13808 11.75 4 11.75H2ZM12 11.75C11.8619 11.75 11.75 11.8619 11.75 12V14C11.75 14.1381 11.8619 14.25 12 14.25H14C14.1381 14.25 14.25 14.1381 14.25 14V12C14.25 11.8619 14.1381 11.75 14 11.75H12ZM9 0.25C9.96649 0.25 10.75 1.03351 10.75 2V4C10.75 4.44642 10.5808 4.85197 10.3057 5.16113L12.2041 8.6416L10.8877 9.36035L8.91895 5.75H7C6.03351 5.75 5.25 4.96649 5.25 4V2C5.25 1.03351 6.03351 0.25 7 0.25H9ZM7 1.75C6.86193 1.75 6.75 1.86193 6.75 2V4C6.75 4.13807 6.86193 4.25 7 4.25H9C9.13807 4.25 9.25 4.13807 9.25 4V2C9.25 1.86193 9.13807 1.75 9 1.75H7Z", fill: "currentColor" }) });
@@ -575,29 +575,18 @@ const SleepIcon = () => {
575
575
  const StepForwardIcon = () => {
576
576
  return jsxRuntimeExports.jsx("svg", { "aria-hidden": "true", "data-testid": "geist-icon", height: "16", strokeLinejoin: "round", viewBox: "0 0 16 16", width: "16", children: jsxRuntimeExports.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.21969 12.5303L4.75002 13.0607L5.81068 12L5.28035 11.4697L1.81068 7.99999L5.28035 4.53032L5.81068 3.99999L4.75002 2.93933L4.21969 3.46966L0.39647 7.29289C0.00594562 7.68341 0.00594562 8.31658 0.39647 8.7071L4.21969 12.5303ZM11.7804 12.5303L11.25 13.0607L10.1894 12L10.7197 11.4697L14.1894 7.99999L10.7197 4.53032L10.1894 3.99999L11.25 2.93933L11.7804 3.46966L15.6036 7.29289C15.9941 7.68341 15.9941 8.31658 15.6036 8.7071L11.7804 12.5303Z", fill: "currentColor" }) });
577
577
  };
578
- const eventStyles = {
579
- run: { icon: WorkflowIcon, className: "text-blue-900", label: "Workflow" },
580
- step: { icon: StepForwardIcon, className: "text-green-900", label: "Step" },
581
- hook: { icon: WebhookIcon, className: "text-gray-900", label: "Hook" },
582
- sleep: { icon: SleepIcon, className: "text-gray-900", label: "Sleep" }
583
- };
584
- const defaultStyle = {
585
- icon: Circle,
586
- className: "text-gray-900",
587
- label: "Event"
578
+ const RESOURCE_ICONS = {
579
+ run: { icon: WorkflowIcon, label: "Workflow" },
580
+ step: { icon: StepForwardIcon, label: "Step" },
581
+ hook: { icon: WebhookIcon, label: "Hook" },
582
+ sleep: { icon: SleepIcon, label: "Sleep" }
588
583
  };
584
+ const DEFAULT_ICON = { icon: Circle, label: "Event" };
589
585
  const ROW_HEIGHT_CLASS = "h-10";
590
- function getEventStyle(resource, isErrored, isCancelled) {
591
- const style = eventStyles[resource] ?? defaultStyle;
592
- return {
593
- icon: style.icon,
594
- className: cn(isErrored ? "text-red-900" : isCancelled ? "text-gray-900" : style.className),
595
- label: style.label
596
- };
597
- }
598
586
  function ResourceIcon({ resource, isErrored = false, isCancelled = false }) {
599
- const { icon: Icon, className, label } = getEventStyle(resource, isErrored, isCancelled);
600
- return jsxRuntimeExports.jsxs(Tooltip, { delayDuration: 500, children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx("span", { className: cn("shrink-0", className), children: jsxRuntimeExports.jsx(Icon, { className: "w-4 h-4" }) }) }), jsxRuntimeExports.jsx(TooltipContent, { side: "top", children: label })] });
587
+ const { icon: Icon, label } = RESOURCE_ICONS[resource] ?? DEFAULT_ICON;
588
+ const { icon } = getSpanColors(resource, isErrored ? "failed" : isCancelled ? "cancelled" : void 0);
589
+ return jsxRuntimeExports.jsxs(Tooltip, { delayDuration: TOOLTIP_DELAY_MS, children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx("span", { className: cn("shrink-0", icon), children: jsxRuntimeExports.jsx(Icon, { className: "w-4 h-4" }) }) }), jsxRuntimeExports.jsx(TooltipContent, { side: "top", children: label })] });
601
590
  }
602
591
  const EventRow = ({ span, isSelected, isDimmed, onSelectSpan }) => {
603
592
  const durationMs = getSpanDurationMs(span);
@@ -740,24 +729,28 @@ function HeaderFigure({
740
729
  to,
741
730
  onUsagePage,
742
731
  label,
743
- title,
732
+ tooltip,
744
733
  testId,
745
734
  children
746
735
  }) {
747
736
  if (onUsagePage) {
748
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs", "data-testid": testId, title, children });
737
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs", "data-testid": testId, children });
749
738
  }
750
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
739
+ const link = /* @__PURE__ */ jsxRuntimeExports.jsx(
751
740
  Link,
752
741
  {
753
742
  to,
754
743
  className: "-my-1 inline-block min-w-6 rounded-sm py-1 text-left text-xs underline decoration-dotted underline-offset-2 text-gray-1000 hover:text-blue-900 focus-visible:outline-none focus-visible:shadow-[var(--ds-focus-ring)]",
755
744
  "aria-label": label,
756
- title,
757
745
  "data-testid": testId,
758
746
  children
759
747
  }
760
748
  );
749
+ if (!tooltip) return link;
750
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip, { children: [
751
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: link }),
752
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { children: tooltip })
753
+ ] });
761
754
  }
762
755
  function RunUsageHeaderStats({
763
756
  runId,
@@ -767,7 +760,7 @@ function RunUsageHeaderStats({
767
760
  onUsagePage = false
768
761
  }) {
769
762
  const failed = !usage && error !== null;
770
- const failedTitle = failed ? failedMessage(error) : void 0;
763
+ const failedTooltip = failed ? failedMessage(error) : void 0;
771
764
  const localNote = usage ? formatLocalDataWrittenNote(usage) : null;
772
765
  const to = runUsagePath(runId);
773
766
  const label = dataWrittenLabel(usage, isLocalBackend);
@@ -782,7 +775,7 @@ function RunUsageHeaderStats({
782
775
  to,
783
776
  onUsagePage,
784
777
  label: usage ? `${formatCount(usage.events, "event", "events")}, open usage` : "Events unavailable, open usage",
785
- title: failedTitle,
778
+ tooltip: failedTooltip,
786
779
  testId: "run-usage-events",
787
780
  children: events
788
781
  }
@@ -818,7 +811,7 @@ function RunUsageHeaderStats({
818
811
  to,
819
812
  onUsagePage,
820
813
  label: usage ? `${bytes} ${label.toLowerCase()}, open usage` : `${label} unavailable, open usage`,
821
- title: failedTitle,
814
+ tooltip: failedTooltip,
822
815
  testId: "run-usage-data-written",
823
816
  children: bytes
824
817
  }
@@ -993,7 +986,6 @@ function UsageGroup({
993
986
  "span",
994
987
  {
995
988
  className: "min-w-0 font-mono text-gray-1000",
996
- title: child.label,
997
989
  "data-testid": "run-usage-child-label",
998
990
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(BreakableLabel, { label: child.label })
999
991
  }
@@ -1,4 +1,4 @@
1
- import { c as createLucideIcon, a as cn } from "./mermaid-WFAXDIZX-CNo_0yWo.js";
1
+ import { c as createLucideIcon, a as cn } from "./mermaid-WFAXDIZX-CCgeQ0jh.js";
2
2
  import { j as jsxRuntimeExports } from "./index-BUQuaV5X.js";
3
3
  function parseName(tag, name) {
4
4
  if (typeof name !== "string") {
@@ -6,9 +6,9 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
6
6
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
7
7
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
8
8
  var _keys, _a;
9
- import { c as createLucideIcon, L as ChevronDown, a as cn, a3 as isRunCreationEvent, b1 as startHookId, a0 as isHookLifecycleEventType, O as cva, p as useComposedRefs, y as createContextScope, K as createSlot, q as useLayoutEffect2, v as useId, P as Primitive, A as composeEventHandlers, s as useControllableState, J as useCallbackRef$1, x as createPopperScope, w as Popper, z as PopperAnchor, E as Presence, D as Portal, b2 as dispatchDiscreteCustomEvent, b3 as useFocusScopeBranch, b4 as useFocusScopeBranchRegistry, b5 as FocusScopeBranchProvider, F as FocusScope, G as DismissableLayer, H as PopperContent, C as ChevronRight, n as Check, b6 as VERCEL_403_ERROR_MESSAGE, T as Tooltip, d as TooltipTrigger, a4 as CopyButton, e as TooltipContent, b7 as formatDuration, B as Button, t as toast, b8 as useDismissableLayerSurface } from "./mermaid-WFAXDIZX-CNo_0yWo.js";
9
+ import { c as createLucideIcon, N as ChevronDown, a as cn, a6 as isRunCreationEvent, b4 as startHookId, a3 as isHookLifecycleEventType, X as cva, s as useComposedRefs, A as createContextScope, M as createSlot, v as useLayoutEffect2, x as useId, P as Primitive, E as composeEventHandlers, w as useControllableState, L as useCallbackRef$1, z as createPopperScope, y as Popper, D as PopperAnchor, G as Presence, F as Portal, b5 as dispatchDiscreteCustomEvent, b6 as useFocusScopeBranch, b7 as useFocusScopeBranchRegistry, b8 as FocusScopeBranchProvider, H as FocusScope, J as DismissableLayer, K as PopperContent, C as ChevronRight, p as Check, b9 as VERCEL_403_ERROR_MESSAGE, T as Tooltip, e as TooltipTrigger, a7 as CopyButton, f as TooltipContent, U as STATUS_DOT, ba as formatDuration, B as Button, t as toast, bb as useDismissableLayerSurface } from "./mermaid-WFAXDIZX-CCgeQ0jh.js";
10
10
  import { r as reactExports, j as jsxRuntimeExports, H as React2, a as requireReact, R as ReactExports, I as getDefaultExportFromCjs, g as reactDomExports, C as useSearchParams, B as useNavigate } from "./index-BUQuaV5X.js";
11
- import { b as CircleAlert, C as Circle, R as RotateCw } from "./skeleton-DE14mNQw.js";
11
+ import { b as CircleAlert, C as Circle, R as RotateCw } from "./skeleton-B2Cf2UXN.js";
12
12
  import { m as fetchRuns, n as bulkCancelRuns$1, o as reenqueueRun$1, w as wakeUpRun$1, p as resumeHook$1, q as fetchHookToken$1, s as cancelRun$1, t as recreateRun$1 } from "./rpc-client-DL_nSX36.js";
13
13
  const __iconNode$d = [
14
14
  ["path", { d: "M6.87 6.87a8 8 0 1 0 11.26 11.26", key: "3on8tj" }],
@@ -145,7 +145,7 @@ class ErrorBoundary extends reactExports.Component {
145
145
  const errorDetails = err?.stack ? `${err.message}
146
146
 
147
147
  ${err.stack}` : err?.message ?? "Unknown error";
148
- return jsxRuntimeExports.jsx(ErrorCard, { title: this.props.title || "An error occurred", details: errorDetails });
148
+ return jsxRuntimeExports.jsx(ErrorCard, { title: this.props.title || "Failed to load this section", details: errorDetails });
149
149
  }
150
150
  return this.props.children;
151
151
  }
@@ -238,7 +238,7 @@ function ResolveHookModal({ isOpen, onClose, onSubmit, isSubmitting = false }) {
238
238
  return jsxRuntimeExports.jsxs("div", { className: "fixed inset-0 z-50 flex items-center justify-center", role: "dialog", "aria-modal": "true", "aria-labelledby": "resolve-hook-modal-title", children: [jsxRuntimeExports.jsx("div", { className: "absolute inset-0 bg-black/70", onClick: isSubmitting ? void 0 : onClose }), jsxRuntimeExports.jsxs("div", { className: "relative z-10 w-[480px] max-w-[calc(100%_-_32px)] overflow-hidden !border-none bg-background-100 text-gray-1000 material-menu", children: [jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [jsxRuntimeExports.jsx("h2", { id: "resolve-hook-modal-title", className: "m-0 font-semibold text-base text-gray-1000", children: "Resolve Hook" }), jsxRuntimeExports.jsx("button", { type: "button", onClick: onClose, disabled: isSubmitting, "aria-label": "Close modal", className: "flex cursor-pointer items-center justify-center rounded-md !border-none !bg-transparent p-1 text-gray-900 transition-colors hover:!bg-gray-alpha-200 disabled:cursor-not-allowed disabled:opacity-50", children: jsxRuntimeExports.jsx(X, { className: "size-4" }) })] }), jsxRuntimeExports.jsxs("form", { onSubmit: handleSubmit, children: [jsxRuntimeExports.jsxs("div", { className: "px-6 pb-4", children: [jsxRuntimeExports.jsx("label", { htmlFor: "json-payload", className: "mb-1.5 block font-medium text-gray-1000 text-sm", children: "JSON Payload" }), jsxRuntimeExports.jsxs("p", { className: "mt-0 mb-3 text-[13px] text-gray-900 leading-[1.5]", children: ["Enter a JSON value to send to the hook. Leave empty to send", " ", jsxRuntimeExports.jsx("code", { className: "rounded bg-gray-alpha-200 px-1.5 py-0.5 font-mono text-gray-1000 text-xs", children: "null" }), "."] }), jsxRuntimeExports.jsx("textarea", { ref: textareaRef, id: "json-payload", value: jsonInput, onChange: (e) => {
239
239
  setJsonInput(e.target.value);
240
240
  setParseError(null);
241
- }, onKeyDown: handleKeyDown, disabled: isSubmitting, placeholder: '{"key": "value"}', className: cn("box-border h-40 w-full resize-none rounded-lg border bg-background-100 px-3 py-2 font-mono text-[13px] text-gray-1000 leading-[1.5] outline-none disabled:cursor-not-allowed disabled:opacity-50", parseError ? "border-red-700" : "border-gray-alpha-400") }), parseError && jsxRuntimeExports.jsx("p", { className: "mt-2 mb-0 text-[13px] text-red-900", children: parseError }), jsxRuntimeExports.jsxs("p", { className: "mt-2 mb-0 text-gray-800 text-xs", children: ["Press", " ", jsxRuntimeExports.jsxs("kbd", { className: "rounded border border-gray-alpha-400 bg-gray-alpha-200 px-[5px] py-0.5 font-mono text-[11px]", children: [isMacPlatform ? "⌘" : "Ctrl", "+Enter"] }), " ", "to submit"] })] }), jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-end gap-2 border-gray-alpha-400 border-t px-6 py-3", children: [jsxRuntimeExports.jsx("button", { type: "button", onClick: onClose, disabled: isSubmitting, className: "cursor-pointer rounded-lg border border-gray-alpha-400 bg-background-100 px-4 py-2 font-medium text-gray-1000 text-sm transition-colors hover:bg-gray-alpha-100 disabled:cursor-not-allowed disabled:opacity-50", children: "Cancel" }), jsxRuntimeExports.jsxs("button", { type: "button", onClick: () => void submitPayload(), disabled: isSubmitting, className: "flex cursor-pointer items-center gap-1.5 rounded-lg !border-none bg-gray-1000 px-4 py-2 font-medium text-background-100 text-sm transition-opacity hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:opacity-50", children: [jsxRuntimeExports.jsx(Send, { className: "size-3.5" }), isSubmitting ? "Sending..." : "Send Payload"] })] })] })] })] });
241
+ }, onKeyDown: handleKeyDown, disabled: isSubmitting, placeholder: '{"key": "value"}', className: cn("box-border h-40 w-full resize-none rounded-lg border bg-background-100 px-3 py-2 font-mono text-[13px] text-gray-1000 leading-[1.5] outline-none disabled:cursor-not-allowed disabled:opacity-50", parseError ? "border-red-700" : "border-gray-alpha-400") }), parseError && jsxRuntimeExports.jsx("p", { className: "mt-2 mb-0 text-[13px] text-red-900", children: parseError }), jsxRuntimeExports.jsxs("p", { className: "mt-2 mb-0 text-gray-800 text-xs", children: ["Press", " ", jsxRuntimeExports.jsxs("kbd", { className: "rounded border border-gray-alpha-400 bg-gray-alpha-200 px-[5px] py-0.5 font-mono text-[11px]", children: [isMacPlatform ? "⌘" : "Ctrl", "+Enter"] }), " ", "to submit"] })] }), jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-end gap-2 border-gray-alpha-400 border-t px-6 py-3", children: [jsxRuntimeExports.jsx("button", { type: "button", onClick: onClose, disabled: isSubmitting, className: "cursor-pointer rounded-lg border border-gray-alpha-400 bg-background-100 px-4 py-2 font-medium text-gray-1000 text-sm transition-colors hover:bg-gray-alpha-100 disabled:cursor-not-allowed disabled:opacity-50", children: "Cancel" }), jsxRuntimeExports.jsxs("button", { type: "button", onClick: () => void submitPayload(), disabled: isSubmitting, className: "flex cursor-pointer items-center gap-1.5 rounded-lg !border-none bg-gray-1000 px-4 py-2 font-medium text-background-100 text-sm transition-opacity hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:opacity-50", children: [jsxRuntimeExports.jsx(Send, { className: "size-3.5" }), isSubmitting ? "Sending…" : "Send Payload"] })] })] })] })] });
242
242
  }
243
243
  const millisecondsInWeek = 6048e5;
244
244
  const millisecondsInDay = 864e5;
@@ -6292,14 +6292,6 @@ function useWorkflowRunsInfinite(env, params) {
6292
6292
  const getItemKey = reactExports.useCallback((run) => run.runId, []);
6293
6293
  return useInfiniteList(cacheKey, fetchFn, getItemKey);
6294
6294
  }
6295
- const DEFAULT_PAGE_SIZE = 10;
6296
- const LIVE_UPDATE_INTERVAL_MS = 5e3;
6297
- function getPaginationDisplay(currentPage, totalPages, hasMore) {
6298
- if (hasMore) {
6299
- return `Page ${currentPage} of ${totalPages}+`;
6300
- }
6301
- return `Page ${currentPage} of ${totalPages}`;
6302
- }
6303
6295
  async function cancelRun(env, runId) {
6304
6296
  await unwrapOrThrow(cancelRun$1(env, runId));
6305
6297
  }
@@ -6390,18 +6382,6 @@ function RelativeTime({
6390
6382
  /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: absoluteTime }) })
6391
6383
  ] });
6392
6384
  }
6393
- function getStatusColorClass(status) {
6394
- switch (status) {
6395
- case "running":
6396
- return "bg-geist-warning";
6397
- case "completed":
6398
- return "bg-geist-cyan";
6399
- case "failed":
6400
- return "bg-geist-error";
6401
- default:
6402
- return "bg-gray-500";
6403
- }
6404
- }
6405
6385
  function getErrorCode(error) {
6406
6386
  if (error !== null && typeof error === "object" && "code" in error && typeof error.code === "string") {
6407
6387
  return error.code;
@@ -6419,10 +6399,7 @@ function StatusBadge({
6419
6399
  /* @__PURE__ */ jsxRuntimeExports.jsx(
6420
6400
  "span",
6421
6401
  {
6422
- className: cn(
6423
- "size-2 rounded-full shrink-0",
6424
- getStatusColorClass(status)
6425
- )
6402
+ className: cn("size-2 rounded-full shrink-0", STATUS_DOT[status])
6426
6403
  }
6427
6404
  ),
6428
6405
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-muted-foreground text-xs font-medium capitalize", children: status })
@@ -15944,7 +15921,6 @@ function DiamondNodeComponent({ data, selected: selected2 }) {
15944
15921
  padding: size * 0.25
15945
15922
  // Keep text within the diamond's inscribed area
15946
15923
  },
15947
- title: typeof nodeData.label === "string" ? nodeData.label : void 0,
15948
15924
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-center line-clamp-3 overflow-hidden", children: nodeData.label })
15949
15925
  }
15950
15926
  ),
@@ -16920,68 +16896,65 @@ function useOptimisticSearchParams() {
16920
16896
  return [optimisticParams, updateSearchParams];
16921
16897
  }
16922
16898
  export {
16923
- useInfiniteList as $,
16899
+ DialogTrigger as $,
16924
16900
  Alert as A,
16925
- DialogContent as B,
16901
+ DialogTitle as B,
16926
16902
  CopyableText as C,
16927
- DEFAULT_PAGE_SIZE as D,
16903
+ DropdownMenu as D,
16928
16904
  Ellipsis as E,
16929
- DialogClose as F,
16930
- DialogTitle as G,
16931
- DialogDescription as H,
16932
- DialogPortal as I,
16933
- DialogOverlay as J,
16934
- unwrapServerActionResult as K,
16935
- WorkflowGraphViewer as L,
16936
- useOptimisticSearchParams as M,
16937
- TabsList as N,
16938
- TabsTrigger as O,
16939
- TabsContent as P,
16940
- ErrorBoundary as Q,
16905
+ DialogDescription as F,
16906
+ DialogPortal as G,
16907
+ DialogOverlay as H,
16908
+ unwrapServerActionResult as I,
16909
+ WorkflowGraphViewer as J,
16910
+ useOptimisticSearchParams as K,
16911
+ TabsList as L,
16912
+ TabsTrigger as M,
16913
+ TabsContent as N,
16914
+ ErrorBoundary as O,
16915
+ findStartHookCreation as P,
16916
+ Wrench as Q,
16941
16917
  ResolveHookModal as R,
16942
16918
  Send as S,
16943
16919
  Tabs as T,
16944
- findStartHookCreation as U,
16945
- Wrench as V,
16920
+ ErrorCard as U,
16921
+ format as V,
16946
16922
  WorkflowWebAPIError as W,
16947
16923
  X,
16948
- ErrorCard as Y,
16924
+ useInfiniteList as Y,
16949
16925
  Zap as Z,
16950
- format as _,
16926
+ createDialogScope as _,
16951
16927
  RelativeTime as a,
16952
- createDialogScope as a0,
16953
- DialogTrigger as a1,
16954
- LIVE_UPDATE_INTERVAL_MS as a2,
16955
- LAYOUT as a3,
16956
- tabsListClassName as a4,
16957
- tabsTriggerClassName as a5,
16958
- wakeUpRun as a6,
16959
- RunActionsButtons as a7,
16960
- cancelRun as a8,
16961
- recreateRun as a9,
16928
+ LAYOUT as a0,
16929
+ tabsListClassName as a1,
16930
+ tabsTriggerClassName as a2,
16931
+ wakeUpRun as a3,
16932
+ RunActionsButtons as a4,
16933
+ cancelRun as a5,
16934
+ recreateRun as a6,
16962
16935
  AlertTitle as b,
16963
- getErrorTitle as c,
16964
- AlertDescription as d,
16965
- getErrorMessage as e,
16936
+ AlertDescription as c,
16937
+ getErrorMessage as d,
16938
+ DropdownMenuTrigger as e,
16966
16939
  fetchHookToken as f,
16967
- getPaginationDisplay as g,
16968
- DropdownMenu as h,
16969
- DropdownMenuTrigger as i,
16970
- DropdownMenuContent as j,
16971
- DropdownMenuItem as k,
16972
- useDirection as l,
16973
- createCollection as m,
16974
- hideOthers as n,
16975
- useFocusGuards as o,
16976
- ReactRemoveScroll as p,
16977
- ChevronUp as q,
16940
+ getErrorTitle as g,
16941
+ DropdownMenuContent as h,
16942
+ DropdownMenuItem as i,
16943
+ useDirection as j,
16944
+ createCollection as k,
16945
+ hideOthers as l,
16946
+ useFocusGuards as m,
16947
+ ReactRemoveScroll as n,
16948
+ ChevronUp as o,
16949
+ useWorkflowRunsInfinite as p,
16950
+ bulkCancelRuns as q,
16978
16951
  resumeHook as r,
16979
- useWorkflowRunsInfinite as s,
16980
- bulkCancelRuns as t,
16952
+ reenqueueRun as s,
16953
+ StatusBadge as t,
16981
16954
  unwrapOrThrow as u,
16982
- reenqueueRun as v,
16983
- StatusBadge as w,
16984
- CircleX as x,
16985
- RunActionsDropdownItems as y,
16986
- Dialog as z
16955
+ CircleX as v,
16956
+ RunActionsDropdownItems as w,
16957
+ Dialog as x,
16958
+ DialogContent as y,
16959
+ DialogClose as z
16987
16960
  };
@@ -1,4 +1,4 @@
1
- import { r as registerZstdDecoder, _ as __vitePreload } from "./mermaid-WFAXDIZX-CNo_0yWo.js";
1
+ import { r as registerZstdDecoder, _ as __vitePreload } from "./mermaid-WFAXDIZX-CCgeQ0jh.js";
2
2
  import "./index-BUQuaV5X.js";
3
3
  let registered = false;
4
4
  let modulePromise;