@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.
- package/build/client/assets/app-Czi_mceE.css +1 -0
- package/build/client/assets/{arrow-up-right-AHTyWXU2.js → arrow-up-right-74VYxbbA.js} +1 -1
- package/build/client/assets/{highlighted-body-JLMTFACH-_kzpqYmW.js → highlighted-body-JLMTFACH-D51eQJbG.js} +1 -1
- package/build/client/assets/{home-DjUPTrY5.js → home-DLo3pUJ2.js} +16 -9
- package/build/client/assets/{manifest-9126df65.js → manifest-67b853ed.js} +1 -1
- package/build/client/assets/mermaid-WFAXDIZX-Bd_l_owX.css +1 -0
- package/build/client/assets/{mermaid-WFAXDIZX-CNo_0yWo.js → mermaid-WFAXDIZX-CCgeQ0jh.js} +833 -854
- package/build/client/assets/{root-Bh-E5He-.js → root-D8difEo9.js} +3 -4
- package/build/client/assets/root-d42YLYYg.css +1 -0
- package/build/client/assets/{run-detail-5dPVsaSm.js → run-detail-DcpR_rST.js} +119 -248
- package/build/client/assets/run-detail-DmVxTs86.css +1 -0
- package/build/client/assets/{run-usage-C_wyncgV.js → run-usage-0JrO5fG2.js} +4 -4
- package/build/client/assets/{run-usage-BEswHGKU.js → run-usage-CK_ia-7k.js} +24 -32
- package/build/client/assets/{skeleton-DE14mNQw.js → skeleton-B2Cf2UXN.js} +1 -1
- package/build/client/assets/{url-state-5GKQwo-f.js → url-state-n9DuWtVx.js} +52 -79
- package/build/client/assets/{zstd-browser-decoder-CbTMLAMd.js → zstd-browser-decoder-CqZHDp17.js} +1 -1
- package/build/server/assets/{app-C-e60j14.js → app-DLSid73Q.js} +1875 -1696
- package/build/server/assets/{highlighted-body-JLMTFACH-B7y0X_Kn.js → highlighted-body-JLMTFACH-CtQ_zvjG.js} +1 -1
- package/build/server/assets/{index-DRDsjR--.js → index-BI8sdTIq.js} +4 -4
- package/build/server/assets/{mermaid-WFAXDIZX-MsPxEM1Y.js → mermaid-WFAXDIZX-BlWV_MqD.js} +1 -1
- package/build/server/assets/{token-DXh0TnqB.js → token-BE7-D9Dt.js} +2 -2
- package/build/server/assets/{token-CKgyaeCJ.js → token-DOXFZxpM.js} +1 -1
- package/build/server/assets/{token-util-CCc0uYVy.js → token-util-DjnKfD7P.js} +2 -2
- package/build/server/assets/{token-util-DOHYMq7D.js → token-util-V29s95lj.js} +1 -1
- package/build/server/assets/{wrapper-BzLz38Oh.js → wrapper-DBwRVVUb.js} +2 -2
- package/build/server/assets/{zstd-browser-decoder-BSSEC3XP.js → zstd-browser-decoder-Crq3t_fM.js} +1 -1
- package/build/server/index.js +1 -1
- package/package.json +7 -7
- package/build/client/assets/app-CmaRLUwS.css +0 -1
- package/build/client/assets/mermaid-WFAXDIZX-F88p7PFX.css +0 -1
- package/build/client/assets/root-kJB77No4.css +0 -1
- 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-
|
|
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-
|
|
5
|
-
import "./skeleton-
|
|
6
|
-
import "./arrow-up-right-
|
|
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
|
|
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-
|
|
4
|
-
import { A as ArrowUpRight } from "./arrow-up-right-
|
|
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", {
|
|
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
|
|
579
|
-
run: { icon: WorkflowIcon,
|
|
580
|
-
step: { icon: StepForwardIcon,
|
|
581
|
-
hook: { icon: WebhookIcon,
|
|
582
|
-
sleep: { icon: SleepIcon,
|
|
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,
|
|
600
|
-
|
|
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
|
-
|
|
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,
|
|
737
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs", "data-testid": testId, children });
|
|
749
738
|
}
|
|
750
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
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,
|
|
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-
|
|
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 || "
|
|
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
|
|
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
|
-
|
|
16899
|
+
DialogTrigger as $,
|
|
16924
16900
|
Alert as A,
|
|
16925
|
-
|
|
16901
|
+
DialogTitle as B,
|
|
16926
16902
|
CopyableText as C,
|
|
16927
|
-
|
|
16903
|
+
DropdownMenu as D,
|
|
16928
16904
|
Ellipsis as E,
|
|
16929
|
-
|
|
16930
|
-
|
|
16931
|
-
|
|
16932
|
-
|
|
16933
|
-
|
|
16934
|
-
|
|
16935
|
-
|
|
16936
|
-
|
|
16937
|
-
|
|
16938
|
-
|
|
16939
|
-
|
|
16940
|
-
|
|
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
|
-
|
|
16945
|
-
|
|
16920
|
+
ErrorCard as U,
|
|
16921
|
+
format as V,
|
|
16946
16922
|
WorkflowWebAPIError as W,
|
|
16947
16923
|
X,
|
|
16948
|
-
|
|
16924
|
+
useInfiniteList as Y,
|
|
16949
16925
|
Zap as Z,
|
|
16950
|
-
|
|
16926
|
+
createDialogScope as _,
|
|
16951
16927
|
RelativeTime as a,
|
|
16952
|
-
|
|
16953
|
-
|
|
16954
|
-
|
|
16955
|
-
|
|
16956
|
-
|
|
16957
|
-
|
|
16958
|
-
|
|
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
|
-
|
|
16964
|
-
|
|
16965
|
-
|
|
16936
|
+
AlertDescription as c,
|
|
16937
|
+
getErrorMessage as d,
|
|
16938
|
+
DropdownMenuTrigger as e,
|
|
16966
16939
|
fetchHookToken as f,
|
|
16967
|
-
|
|
16968
|
-
|
|
16969
|
-
|
|
16970
|
-
|
|
16971
|
-
|
|
16972
|
-
|
|
16973
|
-
|
|
16974
|
-
|
|
16975
|
-
|
|
16976
|
-
|
|
16977
|
-
|
|
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
|
-
|
|
16980
|
-
|
|
16952
|
+
reenqueueRun as s,
|
|
16953
|
+
StatusBadge as t,
|
|
16981
16954
|
unwrapOrThrow as u,
|
|
16982
|
-
|
|
16983
|
-
|
|
16984
|
-
|
|
16985
|
-
|
|
16986
|
-
|
|
16955
|
+
CircleX as v,
|
|
16956
|
+
RunActionsDropdownItems as w,
|
|
16957
|
+
Dialog as x,
|
|
16958
|
+
DialogContent as y,
|
|
16959
|
+
DialogClose as z
|
|
16987
16960
|
};
|