@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
|
@@ -1,39 +1,23 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports, r as reactExports, L as Link, B as useNavigate, E as useOutlet, w as withComponentProps, G as useParams, C as useSearchParams } from "./index-BUQuaV5X.js";
|
|
2
|
-
import {
|
|
3
|
-
import { c as createLucideIcon,
|
|
4
|
-
import { p as parseStepName, a as parseWorkflowName, b as CircleAlert, S as Skeleton$1 } from "./skeleton-
|
|
5
|
-
import { M as MiddleTruncate, a as ResourceIcon, E as EventList, r as runUsagePath, b as runPath, c as RunUsageHeaderStats, C as CircleQuestionMark, u as usageVisible } from "./run-usage-
|
|
6
|
-
import { A as ArrowUpRight } from "./arrow-up-right-
|
|
2
|
+
import { P as findStartHookCreation, o as ChevronUp, X, v as CircleX, Q as Wrench, U as ErrorCard, V as format, R as ResolveHookModal, O as ErrorBoundary, u as unwrapOrThrow, W as WorkflowWebAPIError, I as unwrapServerActionResult, Y as useInfiniteList, d as getErrorMessage, A as Alert, b as AlertTitle, c as AlertDescription, G as DialogPortal, H as DialogOverlay, _ as createDialogScope, x as Dialog, $ as DialogTrigger, y as DialogContent, B as DialogTitle, F as DialogDescription, z as DialogClose, a0 as LAYOUT, a1 as tabsListClassName, a2 as tabsTriggerClassName, K as useOptimisticSearchParams, a3 as wakeUpRun, r as resumeHook, g as getErrorTitle, a4 as RunActionsButtons, t as StatusBadge, C as CopyableText, a as RelativeTime, T as Tabs, L as TabsList, M as TabsTrigger, N as TabsContent, a5 as cancelRun, a6 as recreateRun } from "./url-state-n9DuWtVx.js";
|
|
3
|
+
import { c as createLucideIcon, Y as isSlotEventId, Z as classifyEntityEvent, $ as TERMINAL_EVENT_CLASSES, a0 as isSealedNoopEvent$1, l as formatDurationPrecise, a1 as isStepEventType, a2 as isWaitEventType, a3 as isHookLifecycleEventType, a4 as isEncryptedMarker, a5 as isTerminalStepEventType, a6 as isRunCreationEvent, a as cn, a7 as CopyButton, a8 as CopyableDataBlock, a9 as CollapsibleRoot, aa as CollapsibleTrigger, ab as CollapsibleContent, X as cva, ac as RESERVED_ATTRIBUTE_KEY_PREFIX, T as Tooltip, e as TooltipTrigger, ad as IconButton, f as TooltipContent, N as ChevronDown, B as Button, ae as Lock, af as getEventDataRefFields, ag as Collapsible, ah as Skeleton, U as STATUS_DOT, ai as DecryptClickContext, aj as DataInspector, ak as serializeForClipboard, al as TooltipProvider, am as TimestampTooltip, an as ContextCardProvider, ao as es, ap as Ui, p as Check, aq as RunClickContext, ar as StreamClickContext, as as isExpiredMarker, at as isDoStreamStep, au as extractConversation, av as EncryptedDataBlock, S as Spinner, aw as hasEncryptedFields, o as useToast, ax as useSidebarDataOptional, ay as isTerminalWorkflowRunStatus, az as useActiveSpan, aA as useSidebarData, aB as ActiveSpanProvider, aC as useReducedMotion, aD as searchSpans, aE as computeRootBounds, aF as computeTimeMarkers, aG as clampViewportToRoot, aH as getHighResInMs, aI as scrollRowIntoView, aJ as TIMELINE_PADDING_PX, b as ROW_HEIGHT_PX, aK as Minimap, aL as Timeline, aM as TimelineHeader, aN as wheelZoomScaleFactor, aO as wheelDeltaToPixels, aP as SidebarDataProvider, aQ as hydrateResourceIOAsync, aR as createStateResolver, aS as deriveRunPayloadKeys, aT as decodePayloadWithKey, aU as stateSourceId, aV as getWebRevivers, aW as hydrateResourceIO, A as createContextScope, s as useComposedRefs, E as composeEventHandlers, aX as buttonVariants, aY as Slot, C as ChevronRight, aZ as isEncryptedData, a_ as hydrateData, a$ as decrypt, b0 as getStreamImageType, b1 as SerializationFormat, t as toast, b2 as StreamViewerSkeleton, b3 as StreamViewer } from "./mermaid-WFAXDIZX-CCgeQ0jh.js";
|
|
4
|
+
import { p as parseStepName, a as parseWorkflowName, b as CircleAlert, S as Skeleton$1 } from "./skeleton-B2Cf2UXN.js";
|
|
5
|
+
import { M as MiddleTruncate, a as ResourceIcon, E as EventList, r as runUsagePath, b as runPath, c as RunUsageHeaderStats, C as CircleQuestionMark, u as usageVisible } from "./run-usage-CK_ia-7k.js";
|
|
6
|
+
import { A as ArrowUpRight } from "./arrow-up-right-74VYxbbA.js";
|
|
7
7
|
import { d as fetchHook, a as fetchEvents, b as fetchRun, e as fetchStep, g as fetchStreams, h as apiBase, i as fetchEvent, j as fetchEventsByCorrelationId, k as fetchRunUsage, u as useServerConfig, l as getEncryptionKeyForRun } from "./rpc-client-DL_nSX36.js";
|
|
8
|
-
const __iconNode$
|
|
9
|
-
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
10
|
-
["path", { d: "M18 17V9", key: "2bz60n" }],
|
|
11
|
-
["path", { d: "M13 17V5", key: "1frdt8" }],
|
|
12
|
-
["path", { d: "M8 17v-3", key: "17ska0" }]
|
|
13
|
-
];
|
|
14
|
-
const ChartColumn = createLucideIcon("chart-column", __iconNode$9);
|
|
15
|
-
const __iconNode$8 = [
|
|
8
|
+
const __iconNode$7 = [
|
|
16
9
|
["path", { d: "M10 6h8", key: "zvc2xc" }],
|
|
17
10
|
["path", { d: "M12 16h6", key: "yi5mkt" }],
|
|
18
11
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
19
12
|
["path", { d: "M8 11h7", key: "wz2hg0" }]
|
|
20
13
|
];
|
|
21
|
-
const ChartGantt = createLucideIcon("chart-gantt", __iconNode$
|
|
22
|
-
const __iconNode$
|
|
14
|
+
const ChartGantt = createLucideIcon("chart-gantt", __iconNode$7);
|
|
15
|
+
const __iconNode$6 = [
|
|
23
16
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
24
17
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
25
18
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
26
19
|
];
|
|
27
|
-
const Info = createLucideIcon("info", __iconNode$
|
|
28
|
-
const __iconNode$6 = [
|
|
29
|
-
["path", { d: "M3 5h.01", key: "18ugdj" }],
|
|
30
|
-
["path", { d: "M3 12h.01", key: "nlz23k" }],
|
|
31
|
-
["path", { d: "M3 19h.01", key: "noohij" }],
|
|
32
|
-
["path", { d: "M8 5h13", key: "1pao27" }],
|
|
33
|
-
["path", { d: "M8 12h13", key: "1za7za" }],
|
|
34
|
-
["path", { d: "M8 19h13", key: "m83p4d" }]
|
|
35
|
-
];
|
|
36
|
-
const List = createLucideIcon("list", __iconNode$6);
|
|
20
|
+
const Info = createLucideIcon("info", __iconNode$6);
|
|
37
21
|
const __iconNode$5 = [
|
|
38
22
|
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
39
23
|
["path", { d: "M7 11V7a5 5 0 0 1 9.9-1", key: "1mm8w8" }]
|
|
@@ -166,7 +150,7 @@ function formatClock(value) {
|
|
|
166
150
|
const date = parseEventDate(value);
|
|
167
151
|
return date ? formatTimestampParts(date).clock : null;
|
|
168
152
|
}
|
|
169
|
-
function
|
|
153
|
+
function formatElapsed(ms) {
|
|
170
154
|
return ms <= 0 ? "0ms" : `+${formatDurationPrecise(ms)}`;
|
|
171
155
|
}
|
|
172
156
|
function sortEventsByTime(events, order) {
|
|
@@ -382,23 +366,10 @@ function getEventMessage(event, queuedMs) {
|
|
|
382
366
|
return "";
|
|
383
367
|
}
|
|
384
368
|
}
|
|
385
|
-
function getRunStartMs(events, run) {
|
|
386
|
-
const created = parseEventDate(run?.createdAt);
|
|
387
|
-
if (created)
|
|
388
|
-
return created.getTime();
|
|
389
|
-
let min;
|
|
390
|
-
for (const event of events) {
|
|
391
|
-
const t = getEffectiveEventTime(event);
|
|
392
|
-
if (min === void 0 || t < min)
|
|
393
|
-
min = t;
|
|
394
|
-
}
|
|
395
|
-
return min;
|
|
396
|
-
}
|
|
397
369
|
function buildEventLookups(events, run, duplicateEventIds) {
|
|
398
370
|
return {
|
|
399
371
|
names: buildNameMaps(events, run),
|
|
400
372
|
timing: buildEventTiming(events, duplicateEventIds),
|
|
401
|
-
runStartMs: getRunStartMs(events, run),
|
|
402
373
|
duplicateEventIds
|
|
403
374
|
};
|
|
404
375
|
}
|
|
@@ -421,8 +392,7 @@ function buildEventRow(event, lookups) {
|
|
|
421
392
|
message: ignored?.message ?? getEventMessage(event, segments.find((segment) => segment.kind === "queued")?.ms),
|
|
422
393
|
notice: ignored?.notice,
|
|
423
394
|
segments,
|
|
424
|
-
durationMs: lookups.timing.eventDurations.get(event.eventId)
|
|
425
|
-
sinceStartMs: lookups.runStartMs === void 0 ? void 0 : getEffectiveEventTime(event) - lookups.runStartMs
|
|
395
|
+
durationMs: lookups.timing.eventDurations.get(event.eventId)
|
|
426
396
|
};
|
|
427
397
|
}
|
|
428
398
|
const IDLE_GAP_MS = 3e4;
|
|
@@ -437,6 +407,8 @@ function describeGap(later, hookNameMap) {
|
|
|
437
407
|
}
|
|
438
408
|
function buildListItems(rows, options) {
|
|
439
409
|
const items = [];
|
|
410
|
+
const isNewestFirst = rows.length > 1 && getEffectiveEventTime(rows[0].event) > getEffectiveEventTime(rows[rows.length - 1].event);
|
|
411
|
+
const previousOffset = isNewestFirst ? 1 : -1;
|
|
440
412
|
rows.forEach((row, index) => {
|
|
441
413
|
if (options.showGaps && index > 0) {
|
|
442
414
|
const prev = rows[index - 1].event;
|
|
@@ -454,7 +426,13 @@ function buildListItems(rows, options) {
|
|
|
454
426
|
});
|
|
455
427
|
}
|
|
456
428
|
}
|
|
457
|
-
|
|
429
|
+
const previous = rows[index + previousOffset];
|
|
430
|
+
items.push({
|
|
431
|
+
kind: "event",
|
|
432
|
+
row,
|
|
433
|
+
index,
|
|
434
|
+
sincePreviousMs: previous ? getEffectiveEventTime(row.event) - getEffectiveEventTime(previous.event) : void 0
|
|
435
|
+
});
|
|
458
436
|
});
|
|
459
437
|
return items;
|
|
460
438
|
}
|
|
@@ -503,12 +481,6 @@ function getFooterLabel(search, counts) {
|
|
|
503
481
|
return `${countEvents(total)}${hasMoreEvents ? " loaded" : ""}`;
|
|
504
482
|
}
|
|
505
483
|
}
|
|
506
|
-
function shouldShowVerticalLine(eventType) {
|
|
507
|
-
if (isHookLifecycleEventType(eventType)) {
|
|
508
|
-
return true;
|
|
509
|
-
}
|
|
510
|
-
return false;
|
|
511
|
-
}
|
|
512
484
|
function dateToOtelTime(date) {
|
|
513
485
|
if (typeof date === "string") {
|
|
514
486
|
date = new Date(date);
|
|
@@ -575,7 +547,7 @@ function convertEventsToSpanEvents(events, filterTypes = true, options = {}) {
|
|
|
575
547
|
eventData: "eventData" in event ? event.eventData : void 0
|
|
576
548
|
},
|
|
577
549
|
// Control whether to show vertical line in timeline
|
|
578
|
-
showVerticalLine:
|
|
550
|
+
showVerticalLine: isHookLifecycleEventType(event.eventType)
|
|
579
551
|
}));
|
|
580
552
|
}
|
|
581
553
|
const waitEventsToWaitEntity = (events) => {
|
|
@@ -942,22 +914,22 @@ function buildTrace(run, events, now, { isCompleteHistory = false, getStepAttrib
|
|
|
942
914
|
function isReservedAttributeKey(key) {
|
|
943
915
|
return key.startsWith(RESERVED_ATTRIBUTE_KEY_PREFIX);
|
|
944
916
|
}
|
|
945
|
-
const rowValueVariants = cva("min-w-0 flex-1 truncate text-right text-
|
|
917
|
+
const rowValueVariants = cva("min-w-0 flex-1 truncate text-right text-gray-1000", {
|
|
946
918
|
variants: {
|
|
947
919
|
variant: {
|
|
948
|
-
default: "",
|
|
949
|
-
mono: "
|
|
920
|
+
default: "text-copy-13",
|
|
921
|
+
mono: "text-copy-13-mono"
|
|
950
922
|
}
|
|
951
923
|
},
|
|
952
924
|
defaultVariants: {
|
|
953
925
|
variant: "default"
|
|
954
926
|
}
|
|
955
927
|
});
|
|
956
|
-
const rowCopyValueVariants = cva("flex min-w-0 flex-1 items-center justify-end gap-1 overflow-hidden text-
|
|
928
|
+
const rowCopyValueVariants = cva("flex min-w-0 flex-1 items-center justify-end gap-1 overflow-hidden text-gray-1000", {
|
|
957
929
|
variants: {
|
|
958
930
|
variant: {
|
|
959
|
-
default: "",
|
|
960
|
-
mono: "
|
|
931
|
+
default: "text-copy-13",
|
|
932
|
+
mono: "text-copy-13-mono"
|
|
961
933
|
}
|
|
962
934
|
},
|
|
963
935
|
defaultVariants: {
|
|
@@ -965,8 +937,7 @@ const rowCopyValueVariants = cva("flex min-w-0 flex-1 items-center justify-end g
|
|
|
965
937
|
}
|
|
966
938
|
});
|
|
967
939
|
function DetailKeyValueRowBase({ label, value, copyText, href, removed = false, variant }) {
|
|
968
|
-
|
|
969
|
-
return jsxRuntimeExports.jsxs("div", { className: "px-1.5 hover:bg-gray-100 flex justify-between gap-3 -mx-1.5 py-0.5 rounded items-center", children: [jsxRuntimeExports.jsx("span", { className: "flex min-w-0 items-center gap-1.5 truncate text-label-13 text-gray-900", children: label }), removed ? jsxRuntimeExports.jsx("span", { className: "shrink-0 text-copy-13 italic text-gray-700", children: "removed" }) : copyText ? jsxRuntimeExports.jsxs("div", { className: cn(rowCopyValueVariants({ variant })), title: copyText, children: [href ? jsxRuntimeExports.jsxs("a", { href, target: "_blank", rel: "noreferrer", className: cn(rowValueVariants({ variant }), "flex min-w-0 items-center gap-0.5 hover:underline"), children: [jsxRuntimeExports.jsx(MiddleTruncate, { value: copyText, className: "min-w-0 grid-cols-[minmax(0,1fr)] text-right" }), jsxRuntimeExports.jsx(ArrowUpRight, { "aria-hidden": true, className: "h-3 w-3 shrink-0" })] }) : jsxRuntimeExports.jsx(MiddleTruncate, { value: copyText, className: cn(rowValueVariants({ variant, className: "text-right" }), "grid-cols-[minmax(0,1fr)]") }), jsxRuntimeExports.jsx(CopyButton, { textToCopy: copyText, "aria-label": `Copy ${label}`, size: "small", className: "-my-0.5 -mr-1" })] }) : jsxRuntimeExports.jsx("span", { className: cn(rowValueVariants({ variant })), title: stringValue, children: href ? jsxRuntimeExports.jsx("a", { href, target: "_blank", rel: "noreferrer", className: "hover:underline", children: value }) : value })] });
|
|
940
|
+
return jsxRuntimeExports.jsxs("div", { className: "px-1.5 hover:bg-gray-100 flex justify-between gap-3 -mx-1.5 py-0.5 rounded items-center", children: [jsxRuntimeExports.jsx("span", { className: "flex min-w-0 items-center gap-1.5 truncate text-label-13 text-gray-900", children: label }), removed ? jsxRuntimeExports.jsx("span", { className: "shrink-0 text-copy-13 italic text-gray-700", children: "removed" }) : copyText ? jsxRuntimeExports.jsxs("div", { className: cn(rowCopyValueVariants({ variant })), children: [href ? jsxRuntimeExports.jsxs("a", { href, target: "_blank", rel: "noreferrer", className: cn(rowValueVariants({ variant }), "flex min-w-0 items-center gap-0.5 hover:underline"), children: [jsxRuntimeExports.jsx(MiddleTruncate, { value: copyText, className: "min-w-0 grid-cols-[minmax(0,1fr)] text-right" }), jsxRuntimeExports.jsx(ArrowUpRight, { "aria-hidden": true, className: "h-3 w-3 shrink-0" })] }) : jsxRuntimeExports.jsx(MiddleTruncate, { value: copyText, className: cn(rowValueVariants({ variant, className: "text-right" }), "grid-cols-[minmax(0,1fr)]") }), jsxRuntimeExports.jsx(CopyButton, { textToCopy: copyText, "aria-label": `Copy ${label}`, size: "small", className: "-my-0.5 -mr-1" })] }) : jsxRuntimeExports.jsx("span", { className: cn(rowValueVariants({ variant })), children: href ? jsxRuntimeExports.jsx("a", { href, target: "_blank", rel: "noreferrer", className: "hover:underline", children: value }) : value })] });
|
|
970
941
|
}
|
|
971
942
|
function DetailKeyValueRow(props) {
|
|
972
943
|
return jsxRuntimeExports.jsx(DetailKeyValueRowBase, { ...props });
|
|
@@ -1046,13 +1017,13 @@ function AttrSetEventBlock({ data }) {
|
|
|
1046
1017
|
const kbdVariants = cva("inline-flex items-center justify-center rounded px-1 text-center font-sans", {
|
|
1047
1018
|
variants: {
|
|
1048
1019
|
variant: {
|
|
1049
|
-
subtle: "bg-
|
|
1050
|
-
outline: "
|
|
1020
|
+
subtle: "bg-gray-400",
|
|
1021
|
+
outline: "bg-background-100 font-medium text-gray-900 shadow-[0_0_0_1px_var(--ds-gray-alpha-400)]"
|
|
1051
1022
|
},
|
|
1052
1023
|
size: {
|
|
1053
1024
|
default: "h-5 min-w-5 text-label-12 leading-none",
|
|
1054
|
-
compact: "h-
|
|
1055
|
-
search: "h-5 min-h-5 min-w-5 text-label-
|
|
1025
|
+
compact: "h-5 min-h-5 min-w-5 text-label-12",
|
|
1026
|
+
search: "h-5 min-h-5 min-w-5 text-label-12"
|
|
1056
1027
|
}
|
|
1057
1028
|
},
|
|
1058
1029
|
defaultVariants: {
|
|
@@ -1271,19 +1242,18 @@ function DetailPanelShell({ id, width, title, itemLabel, actions, onPrev, onNext
|
|
|
1271
1242
|
return jsxRuntimeExports.jsxs("aside", { ref: asideRef, id, className: "relative flex flex-col h-full max-h-full shrink-0 bg-background-100 border-l border-gray-alpha-400", style: { width: width.width }, children: [jsxRuntimeExports.jsx(DraggableBorder, { element: asideRef, position: "left", onWidthChange: width.resize, onReset: () => width.resize(PANEL_DEFAULT_WIDTH), "aria-label": `Resize ${itemLabel} details panel`, "aria-controls": id, "aria-valuemin": PANEL_MIN_WIDTH, "aria-valuemax": width.maxWidth, "aria-valuenow": Math.min(Math.max(Math.round(width.width), PANEL_MIN_WIDTH), width.maxWidth) }), jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between gap-2 shrink-0 px-4 py-[7.5px]", children: [jsxRuntimeExports.jsx("div", { className: "flex min-w-0 items-center gap-2 text-label-14 font-medium text-gray-1000", children: title }), jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-0.5 shrink-0", children: [actions, jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx(IconButton, { "aria-label": "Navigate up", "aria-keyshortcuts": "K", onClick: onPrev, disabled: !onPrev, children: jsxRuntimeExports.jsx(ChevronUp, { className: "w-4 h-4" }) }) }), onPrev ? jsxRuntimeExports.jsxs(TooltipContent, { children: ["Navigate up", jsxRuntimeExports.jsx(Kbd, { children: "K" })] }) : null] }), jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx(IconButton, { "aria-label": "Navigate down", "aria-keyshortcuts": "J", onClick: onNext, disabled: !onNext, children: jsxRuntimeExports.jsx(ChevronDown, { className: "w-4 h-4" }) }) }), onNext ? jsxRuntimeExports.jsxs(TooltipContent, { children: ["Navigate down", jsxRuntimeExports.jsx(Kbd, { children: "J" })] }) : null] }), jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "w-px h-4 bg-gray-alpha-400 mx-1" }), jsxRuntimeExports.jsx(IconButton, { "aria-label": `Close ${itemLabel} details`, "aria-keyshortcuts": "Escape", onClick: onClose, children: jsxRuntimeExports.jsx(X, { className: "w-4 h-4" }) })] })] }), jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto", children })] });
|
|
1272
1243
|
}
|
|
1273
1244
|
function DecryptButton({ decrypted = false, loading = false, disabled = false, disabledReason, onClick }) {
|
|
1274
|
-
return jsxRuntimeExports.jsx(Button, {
|
|
1245
|
+
return jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx("span", { children: jsxRuntimeExports.jsx(Button, {
|
|
1275
1246
|
variant: "secondary",
|
|
1276
1247
|
size: "small",
|
|
1277
1248
|
onClick: decrypted ? void 0 : onClick,
|
|
1278
1249
|
loading,
|
|
1279
1250
|
disabled: decrypted || disabled,
|
|
1280
|
-
title: disabled ? disabledReason : void 0,
|
|
1281
1251
|
prefix: decrypted ? jsxRuntimeExports.jsx(LockOpen, {}) : jsxRuntimeExports.jsx(Lock, {}),
|
|
1282
1252
|
// Decrypted is a success state rather than an unavailable one, so it
|
|
1283
1253
|
// keeps the green fill instead of the disabled gray.
|
|
1284
1254
|
className: decrypted ? "disabled:cursor-default disabled:bg-green-100 disabled:text-green-900 disabled:[--themed-border:_var(--ds-green-400)] disabled:hover:bg-green-100" : void 0,
|
|
1285
1255
|
children: decrypted ? "Decrypted" : "Decrypt"
|
|
1286
|
-
});
|
|
1256
|
+
}) }) }), disabled && disabledReason ? jsxRuntimeExports.jsx(TooltipContent, { children: disabledReason }) : null] });
|
|
1287
1257
|
}
|
|
1288
1258
|
function isStructuredError(value) {
|
|
1289
1259
|
return value != null && typeof value === "object" && (typeof value.message === "string" || typeof value.stack === "string");
|
|
@@ -1306,15 +1276,7 @@ ${stack}` : body;
|
|
|
1306
1276
|
}, children: [jsxRuntimeExports.jsx(CopyButton, { textToCopy: copyText, "aria-label": "Copy error", className: "absolute right-2 top-2 border border-red-400 text-red-900 enabled:hover:bg-red-200 enabled:hover:text-red-900 focus-visible:text-red-900" }), title && jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2 px-3 py-2.5 pr-10", style: {
|
|
1307
1277
|
color: "var(--ds-red-900)",
|
|
1308
1278
|
borderBottom: "1px solid var(--ds-red-400)"
|
|
1309
|
-
}, children: [jsxRuntimeExports.jsx(CircleAlert, { className: "h-4 w-4 shrink-0" }), jsxRuntimeExports.jsx("p", {
|
|
1310
|
-
className: "text-label-12 font-semibold m-0 truncate",
|
|
1311
|
-
// The full message or stack is in the body below; the header
|
|
1312
|
-
// shows the first line, single-line, with overflow
|
|
1313
|
-
// ellipsised so a long title doesn't push the copy button or
|
|
1314
|
-
// wrap into the framed hint/docs lines.
|
|
1315
|
-
title: message,
|
|
1316
|
-
children: title
|
|
1317
|
-
})] }), body && jsxRuntimeExports.jsx("pre", { className: "px-3 py-2.5 text-label-12-mono whitespace-pre-wrap break-words overflow-auto m-0", style: {
|
|
1279
|
+
}, children: [jsxRuntimeExports.jsx(CircleAlert, { className: "h-4 w-4 shrink-0" }), jsxRuntimeExports.jsx("p", { className: "text-label-12 font-semibold m-0 truncate", children: title })] }), body && jsxRuntimeExports.jsx("pre", { className: "px-3 py-2.5 text-label-12-mono whitespace-pre-wrap break-words overflow-auto m-0", style: {
|
|
1318
1280
|
color: "var(--ds-red-900)",
|
|
1319
1281
|
background: "var(--ds-red-200)"
|
|
1320
1282
|
}, children: body })] });
|
|
@@ -1364,10 +1326,10 @@ function extractStructuredError(data, eventType) {
|
|
|
1364
1326
|
return null;
|
|
1365
1327
|
}
|
|
1366
1328
|
const SEGMENT_COLOR = {
|
|
1367
|
-
queued:
|
|
1368
|
-
failed:
|
|
1369
|
-
backoff:
|
|
1370
|
-
ok:
|
|
1329
|
+
queued: STATUS_DOT.queued,
|
|
1330
|
+
failed: STATUS_DOT.failed,
|
|
1331
|
+
backoff: STATUS_DOT.retrying,
|
|
1332
|
+
ok: STATUS_DOT.succeeded
|
|
1371
1333
|
};
|
|
1372
1334
|
function PayloadView({ data, eventType, encrypted }) {
|
|
1373
1335
|
const decrypt2 = reactExports.useContext(DecryptClickContext);
|
|
@@ -1485,15 +1447,14 @@ function EventListToolbar({ query, hint: hint2, onQueryChange }) {
|
|
|
1485
1447
|
function EventNoticeTooltip({ notice, children }) {
|
|
1486
1448
|
if (!notice)
|
|
1487
1449
|
return children;
|
|
1488
|
-
return jsxRuntimeExports.jsx(TooltipProvider, {
|
|
1450
|
+
return jsxRuntimeExports.jsx(TooltipProvider, { children: jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children }), jsxRuntimeExports.jsx(TooltipContent, { collisionPadding: 8, side: "top", children: notice })] }) });
|
|
1489
1451
|
}
|
|
1490
1452
|
const COL = {
|
|
1491
1453
|
level: "w-6 justify-center",
|
|
1492
1454
|
time: "w-[172px]",
|
|
1493
|
-
since: "w-[100px]",
|
|
1455
|
+
since: "w-[100px] justify-end pr-4",
|
|
1494
1456
|
event: "w-[136px]",
|
|
1495
|
-
name: "w-[280px]"
|
|
1496
|
-
duration: "w-[96px] justify-end"
|
|
1457
|
+
name: "w-[280px]"
|
|
1497
1458
|
};
|
|
1498
1459
|
const CELL = "flex h-full shrink-0 items-center overflow-hidden px-1.5";
|
|
1499
1460
|
const LEVEL_ROW_CLASS = {
|
|
@@ -1532,12 +1493,12 @@ function SortIndicator({ order }) {
|
|
|
1532
1493
|
}
|
|
1533
1494
|
function EventListHeader({ showOccurred, sortOrder, onSortOrderChange }) {
|
|
1534
1495
|
const sortButton = (label) => jsxRuntimeExports.jsxs("button", { type: "button", "aria-label": `${label}, ${sortOrder === "asc" ? "oldest" : "newest"} first`, onClick: () => onSortOrderChange(sortOrder === "asc" ? "desc" : "asc"), className: cn(CELL, COL.time, "cursor-pointer gap-1.5 border-0 bg-transparent text-left font-sans text-label-14 text-gray-900 hover:text-gray-1000"), children: [label, jsxRuntimeExports.jsx(SortIndicator, { order: sortOrder })] });
|
|
1535
|
-
return jsxRuntimeExports.jsxs("div", { role: "row", className: "flex h-10 shrink-0 items-center border-b border-gray-alpha-400 px-1 font-sans text-label-14 text-gray-900", children: [jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.level) }), showOccurred ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [sortButton("Occurred"), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.time), children: "Created" })] }) : sortButton("Time"), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.since) }), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.name), children: "Name" }), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.event), children: "Event" }), jsxRuntimeExports.jsx("div", { className: cn(CELL, "min-w-0 flex-1 h-3.5 border-l border-gray-400"), children: "Message" })
|
|
1496
|
+
return jsxRuntimeExports.jsxs("div", { role: "row", className: "flex h-10 shrink-0 items-center border-b border-gray-alpha-400 px-1 font-sans text-label-14 text-gray-900", children: [jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.level) }), showOccurred ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [sortButton("Occurred"), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.time), children: "Created" })] }) : sortButton("Time"), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.since), children: jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx("span", { children: "Delta" }) }), jsxRuntimeExports.jsx(TooltipContent, { side: "top", children: "Time since the previous event" })] }) }), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.name), children: "Name" }), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.event), children: "Event" }), jsxRuntimeExports.jsx("div", { className: cn(CELL, "min-w-0 flex-1 h-3.5 border-l border-gray-400"), children: "Message" })] });
|
|
1536
1497
|
}
|
|
1537
1498
|
function IdleGapRow({ ms, reason }) {
|
|
1538
1499
|
return jsxRuntimeExports.jsxs("div", { className: "mx-1 mt-px flex h-6 items-center gap-2.5 pl-[30px] pr-2 font-mono text-label-12-mono text-gray-700", children: [jsxRuntimeExports.jsx("span", { className: "h-px w-3 shrink-0 bg-gray-400" }), jsxRuntimeExports.jsxs("span", { className: "shrink-0", children: [formatDurationPrecise(ms), " idle", reason ? ` · ${reason}` : ""] }), jsxRuntimeExports.jsx("span", { className: "h-px flex-1 bg-gray-400" })] });
|
|
1539
1500
|
}
|
|
1540
|
-
function EventRow({ row, index, isSelected, isTabStop, relation, onSelect, showSeparateEventOccurrenceTimestamps = false }) {
|
|
1501
|
+
function EventRow({ row, index, sincePreviousMs, isSelected, isTabStop, relation, onSelect, showSeparateEventOccurrenceTimestamps = false }) {
|
|
1541
1502
|
const { event, level, name, message, notice } = row;
|
|
1542
1503
|
const occurredAt = parseEventDate(event.occurredAt);
|
|
1543
1504
|
const displayedAt = showSeparateEventOccurrenceTimestamps ? new Date(event.createdAt) : getEffectiveEventDate$1(event);
|
|
@@ -1550,13 +1511,13 @@ function EventRow({ row, index, isSelected, isTabStop, relation, onSelect, showS
|
|
|
1550
1511
|
e.preventDefault();
|
|
1551
1512
|
onSelect(event);
|
|
1552
1513
|
}
|
|
1553
|
-
}, className: cn("mx-1 mt-px flex h-6 cursor-pointer items-center rounded-md font-mono text-[13px] leading-5 outline-none focus-visible:relative focus-visible:z-10 focus-visible:shadow-[0_0_0_2px_var(--ds-focus-color)]", LEVEL_ROW_CLASS[level], !isTinted && !relation && index % 2 === 1 && "bg-background-200", isRelated && !isTinted && "bg-blue-300/50 hover:bg-blue-300/75", isMuted && "text-gray-700 [&_svg]:text-gray-700", isSelected && LEVEL_SELECTED_CLASS[level]), children: [jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.level), children: jsxRuntimeExports.jsx(LevelIcon, { level }) }), showSeparateEventOccurrenceTimestamps && (occurredAt ? jsxRuntimeExports.jsx(TimestampCell, { date: occurredAt, secondaryClass }) : jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.time, secondaryClass), children: "—" })), jsxRuntimeExports.jsx(TimestampCell, { date: displayedAt, secondaryClass }), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.since, "tabular-nums", secondaryClass), children:
|
|
1514
|
+
}, className: cn("mx-1 mt-px flex h-6 cursor-pointer items-center rounded-md font-mono text-[13px] leading-5 outline-none focus-visible:relative focus-visible:z-10 focus-visible:shadow-[0_0_0_2px_var(--ds-focus-color)]", LEVEL_ROW_CLASS[level], !isTinted && !relation && index % 2 === 1 && "bg-background-200", isRelated && !isTinted && "bg-blue-300/50 hover:bg-blue-300/75", isMuted && "text-gray-700 [&_svg]:text-gray-700", isSelected && LEVEL_SELECTED_CLASS[level]), children: [jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.level), children: jsxRuntimeExports.jsx(LevelIcon, { level }) }), showSeparateEventOccurrenceTimestamps && (occurredAt ? jsxRuntimeExports.jsx(TimestampCell, { date: occurredAt, secondaryClass }) : jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.time, secondaryClass), children: "—" })), jsxRuntimeExports.jsx(TimestampCell, { date: displayedAt, secondaryClass }), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.since, "tabular-nums", secondaryClass), children: sincePreviousMs !== void 0 ? formatElapsed(sincePreviousMs) : "" }), jsxRuntimeExports.jsxs("div", { className: cn(CELL, COL.name, "gap-2"), children: [jsxRuntimeExports.jsx(ResourceIcon, { resource: row.resource, isErrored: level === "error", isCancelled: event.eventType === "run_cancelled" }), name ? jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx("span", { className: cn("-mx-1 truncate rounded px-1", isRelated && "text-blue-900", isRelated && isTinted && "bg-blue-100"), children: name }) }), jsxRuntimeExports.jsx(TooltipContent, { children: name })] }) : null] }), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.event), children: jsxRuntimeExports.jsx(EventNoticeTooltip, { notice, children: jsxRuntimeExports.jsx("span", { className: cn("truncate", notice && "line-through"), children: event.eventType }) }) }), jsxRuntimeExports.jsx("div", { className: cn(CELL, "min-w-0 flex-1 h-3.5 border-l", LEVEL_SEPARATOR_CLASS[level]), children: jsxRuntimeExports.jsx("span", { className: "truncate", children: message }) })] });
|
|
1554
1515
|
}
|
|
1555
1516
|
const SKELETON_MESSAGE_WIDTHS = ["40%", "0%", "25%", "55%", "0%", "30%"];
|
|
1556
1517
|
function EventRowsSkeleton() {
|
|
1557
1518
|
return jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-hidden pt-px", children: Array.from({ length: 18 }, (_, i) => jsxRuntimeExports.jsxs("div", { className: cn("mx-1 mt-px flex h-6 items-center rounded-md", i % 2 === 1 && "bg-background-200"), children: [jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.level) }), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.time), children: jsxRuntimeExports.jsx(Skeleton, { className: "h-3 w-[136px]" }) }), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.since), children: jsxRuntimeExports.jsx(Skeleton, { className: "h-3 w-12" }) }), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.name), children: jsxRuntimeExports.jsx(Skeleton, { className: "h-3 w-24" }) }), jsxRuntimeExports.jsx("div", { className: cn(CELL, COL.event), children: jsxRuntimeExports.jsx(Skeleton, { className: "h-3 w-[104px]" }) }), jsxRuntimeExports.jsx("div", { className: cn(CELL, "min-w-0 flex-1"), children: jsxRuntimeExports.jsx(Skeleton, { className: "h-3", style: {
|
|
1558
1519
|
width: SKELETON_MESSAGE_WIDTHS[i % SKELETON_MESSAGE_WIDTHS.length]
|
|
1559
|
-
} }) })
|
|
1520
|
+
} }) })] }, i)) });
|
|
1560
1521
|
}
|
|
1561
1522
|
const WORKFLOW_ULID_BODY = "[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}";
|
|
1562
1523
|
const STEP_ID_PATTERN = new RegExp(`^step_(${WORKFLOW_ULID_BODY})$`, "i");
|
|
@@ -1767,7 +1728,7 @@ function EventListViewInner({ events, run, onLoadEventData, hasMoreEvents = fals
|
|
|
1767
1728
|
}
|
|
1768
1729
|
const { row } = item;
|
|
1769
1730
|
const isSelected = selectedEventId === row.event.eventId;
|
|
1770
|
-
return jsxRuntimeExports.jsx(EventRow, { row, index: item.index, isSelected, isTabStop: selectedIndex === -1 ? item.index === 0 : isSelected, relation: relatedKey === null ? void 0 : row.entity.key === relatedKey ? "related" : "unrelated", onSelect: toggleSelectedEvent, showSeparateEventOccurrenceTimestamps });
|
|
1731
|
+
return jsxRuntimeExports.jsx(EventRow, { row, index: item.index, sincePreviousMs: item.sincePreviousMs, isSelected, isTabStop: selectedIndex === -1 ? item.index === 0 : isSelected, relation: relatedKey === null ? void 0 : row.entity.key === relatedKey ? "related" : "unrelated", onSelect: toggleSelectedEvent, showSeparateEventOccurrenceTimestamps });
|
|
1771
1732
|
}, style: { flex: 1, minHeight: 0 } }), relatedAbove.length > 0 && jsxRuntimeExports.jsx(RelatedHint, { direction: "above", count: relatedAbove.length, onClick: () => scrollToItem(relatedAbove.at(-1) ?? 0) }), relatedBelow.length > 0 && jsxRuntimeExports.jsx(RelatedHint, { direction: "below", count: relatedBelow.length, onClick: () => scrollToItem(relatedBelow[0]) })] }), jsxRuntimeExports.jsxs("div", { className: "relative flex h-10 shrink-0 items-center border-t border-gray-alpha-400 px-4 text-label-13 text-gray-900", children: [jsxRuntimeExports.jsx("span", { children: getFooterLabel(search, {
|
|
1772
1733
|
total: sortedEvents.length,
|
|
1773
1734
|
hasMoreEvents
|
|
@@ -1779,7 +1740,7 @@ function RelatedHint({ direction, count, onClick }) {
|
|
|
1779
1740
|
return jsxRuntimeExports.jsxs("button", { type: "button", "aria-label": `${label} ${direction}`, onClick, className: cn("group absolute inset-x-0 z-10 flex h-10 cursor-pointer justify-end px-3 py-2 outline-none transition-opacity duration-200 ease-[cubic-bezier(0.23,1,0.32,1)] focus-visible:shadow-[inset_0_0_0_2px_var(--ds-focus-color)] starting:opacity-0", direction === "above" ? "top-0 items-start" : "bottom-0 items-end"), children: [jsxRuntimeExports.jsx("span", { "aria-hidden": true, className: cn(layer, "bg-[linear-gradient(to_top,color-mix(in_oklab,var(--ds-background-100)_70%,transparent),30%,transparent)]") }), jsxRuntimeExports.jsx("span", { "aria-hidden": true, className: cn(layer, "bg-[linear-gradient(to_top,color-mix(in_oklab,var(--ds-blue-500)_60%,transparent),30%,transparent)] opacity-45 transition-opacity duration-300 ease-[ease] group-hover:opacity-100 group-hover:duration-150 group-focus-visible:opacity-100 group-active:opacity-75 group-active:duration-75") }), jsxRuntimeExports.jsx("span", { className: "relative font-medium text-label-12 text-blue-900", children: label })] });
|
|
1780
1741
|
}
|
|
1781
1742
|
function EventListView(props) {
|
|
1782
|
-
return jsxRuntimeExports.jsx(TooltipProvider, {
|
|
1743
|
+
return jsxRuntimeExports.jsx(TooltipProvider, { children: jsxRuntimeExports.jsx(ContextCardProvider, { children: jsxRuntimeExports.jsx(EventListViewInner, { ...props }) }) });
|
|
1783
1744
|
}
|
|
1784
1745
|
const ROWS = [
|
|
1785
1746
|
{
|
|
@@ -1842,7 +1803,7 @@ const ROWS = [
|
|
|
1842
1803
|
const HEADER_MARKERS = ["m0", "m1", "m2", "m3"];
|
|
1843
1804
|
const HeaderDivider = () => jsxRuntimeExports.jsx("div", { className: "flex justify-center", children: jsxRuntimeExports.jsx("span", { "aria-hidden": true, className: "h-full w-px bg-gray-alpha-400" }) });
|
|
1844
1805
|
function TraceViewerSkeleton() {
|
|
1845
|
-
return jsxRuntimeExports.jsxs("output", { "aria-busy": "true", "aria-label": "Loading trace", className: "flex flex-col w-full h-full min-h-0 bg-background-100", children: [jsxRuntimeExports.jsx("span", { className: "sr-only", children: "Loading trace…" }), jsxRuntimeExports.jsx("div", { className: "relative h-10 min-h-10 shrink-0 border-b border-gray-alpha-400", children: jsxRuntimeExports.jsx("div", { className: "absolute inset-x-4 top-
|
|
1806
|
+
return jsxRuntimeExports.jsxs("output", { "aria-busy": "true", "aria-label": "Loading trace", className: "flex flex-col w-full h-full min-h-0 bg-background-100", children: [jsxRuntimeExports.jsx("span", { className: "sr-only", children: "Loading trace…" }), jsxRuntimeExports.jsx("div", { className: "relative h-10 min-h-10 shrink-0 border-b border-gray-alpha-400", children: jsxRuntimeExports.jsx("div", { className: "absolute inset-x-4 top-1.5", children: ROWS.map((row) => jsxRuntimeExports.jsx(Skeleton, { className: `absolute h-[3px] rounded-full ${row.offsetClassName} ${row.barClassName} ${row.topClassName}` }, row.id)) }) }), jsxRuntimeExports.jsxs("div", { className: "grid shrink-0 grid-cols-[340px_1px_minmax(50px,1fr)]", children: [jsxRuntimeExports.jsxs("div", { className: "h-10 min-h-10 flex items-center border-b border-gray-alpha-400 pl-4 pr-2 gap-1.5", children: [jsxRuntimeExports.jsx(Skeleton, { className: "w-3.5 h-3.5 shrink-0 rounded-sm" }), jsxRuntimeExports.jsx(Skeleton, { className: "h-3.5 w-40" })] }), jsxRuntimeExports.jsx(HeaderDivider, {}), jsxRuntimeExports.jsx("div", { className: "h-10 min-h-10 flex items-end border-b border-gray-alpha-400 px-4 pb-1 gap-2", children: jsxRuntimeExports.jsx("div", { className: "relative flex-1 flex items-end justify-between", children: HEADER_MARKERS.map((id) => jsxRuntimeExports.jsx(Skeleton, { className: "h-3.5 w-9" }, id)) }) })] }), jsxRuntimeExports.jsxs("div", { className: "grid min-h-0 flex-1 grid-cols-[340px_1px_minmax(50px,1fr)] overflow-hidden", children: [jsxRuntimeExports.jsx("div", { className: "block overflow-visible", children: jsxRuntimeExports.jsx("ul", { className: "block divide-y divide-gray-alpha-400 border-b border-gray-alpha-400", children: ROWS.map((row) => jsxRuntimeExports.jsxs("li", { className: "h-10 flex items-center pl-4 pr-2", children: [jsxRuntimeExports.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [jsxRuntimeExports.jsx(Skeleton, { className: "w-4 h-4 shrink-0 rounded-sm" }), jsxRuntimeExports.jsx(Skeleton, { className: `h-3.5 ${row.nameClassName}` })] }), jsxRuntimeExports.jsx(Skeleton, { className: "ml-2 h-3.5 w-10 shrink-0" })] }, row.id)) }) }), jsxRuntimeExports.jsx("span", { "aria-hidden": true, className: "h-full w-px bg-gray-alpha-400" }), jsxRuntimeExports.jsx("div", { className: "relative min-h-0", children: ROWS.map((row) => jsxRuntimeExports.jsx("div", { className: "relative h-10", children: jsxRuntimeExports.jsx("div", { className: "absolute inset-x-4 inset-y-0", children: jsxRuntimeExports.jsx(Skeleton, { className: `absolute top-1/2 h-6 -translate-y-1/2 rounded-sm ${row.offsetClassName} ${row.barClassName}` }) }) }, row.id)) })] })] });
|
|
1846
1807
|
}
|
|
1847
1808
|
function useIntersectionObserver(elementRef, { threshold = 0, rootRef, rootMargin = "0%", freezeOnceVisible = false } = {}) {
|
|
1848
1809
|
const [entry, setEntry] = reactExports.useState();
|
|
@@ -1969,20 +1930,7 @@ function parseContent(content) {
|
|
|
1969
1930
|
return [];
|
|
1970
1931
|
}
|
|
1971
1932
|
function TabButton({ active, onClick, children }) {
|
|
1972
|
-
return jsxRuntimeExports.jsx("button", { type: "button", role: "tab", "aria-selected": active, tabIndex: active ? 0 : -1, onClick, className: "px-3 py-1.5 text-[11px] font-medium transition-colors -mb-px",
|
|
1973
|
-
// Explicit styles to prevent app-level button overrides when web-shared
|
|
1974
|
-
// is embedded in a self-hosted app.
|
|
1975
|
-
backgroundColor: "transparent",
|
|
1976
|
-
borderTop: "none",
|
|
1977
|
-
borderLeft: "none",
|
|
1978
|
-
borderRight: "none",
|
|
1979
|
-
borderBottom: `2px solid ${active ? "var(--ds-blue-600)" : "transparent"}`,
|
|
1980
|
-
borderRadius: 0,
|
|
1981
|
-
outline: "none",
|
|
1982
|
-
boxShadow: "none",
|
|
1983
|
-
cursor: "pointer",
|
|
1984
|
-
color: active ? "var(--ds-gray-1000)" : "var(--ds-gray-600)"
|
|
1985
|
-
}, children });
|
|
1933
|
+
return jsxRuntimeExports.jsx("button", { type: "button", role: "tab", "aria-selected": active, tabIndex: active ? 0 : -1, onClick, className: cn("px-3 py-1.5 text-[11px] font-medium transition-colors -mb-px cursor-pointer rounded-none border-0 border-b-2 bg-transparent shadow-none outline-none", active ? "border-blue-600 text-gray-1000" : "border-transparent text-gray-600"), children });
|
|
1986
1934
|
}
|
|
1987
1935
|
function TabbedContainer({ tabs, activeTab, onTabChange, ariaLabel, children }) {
|
|
1988
1936
|
const handleKeyDown = reactExports.useCallback((event) => {
|
|
@@ -1993,13 +1941,7 @@ function TabbedContainer({ tabs, activeTab, onTabChange, ariaLabel, children })
|
|
|
1993
1941
|
const nextIndex = event.key === "ArrowRight" ? (currentIndex + 1) % tabs.length : (currentIndex - 1 + tabs.length) % tabs.length;
|
|
1994
1942
|
onTabChange(tabs[nextIndex].id);
|
|
1995
1943
|
}, [tabs, activeTab, onTabChange]);
|
|
1996
|
-
return jsxRuntimeExports.jsxs("div", { className: "rounded-md border",
|
|
1997
|
-
borderColor: "var(--ds-gray-300)",
|
|
1998
|
-
backgroundColor: "transparent"
|
|
1999
|
-
}, children: [jsxRuntimeExports.jsx("div", { className: "flex gap-1 border-b", role: "tablist", "aria-label": ariaLabel, onKeyDown: handleKeyDown, style: {
|
|
2000
|
-
borderColor: "var(--ds-gray-300)",
|
|
2001
|
-
backgroundColor: "transparent"
|
|
2002
|
-
}, children: tabs.map((tab) => jsxRuntimeExports.jsx(TabButton, { active: activeTab === tab.id, onClick: () => onTabChange(tab.id), children: tab.label }, tab.id)) }), jsxRuntimeExports.jsx("div", { role: "tabpanel", children })] });
|
|
1944
|
+
return jsxRuntimeExports.jsxs("div", { className: "rounded-md border border-gray-300", children: [jsxRuntimeExports.jsx("div", { className: "flex gap-1 border-b border-gray-300", role: "tablist", "aria-label": ariaLabel, onKeyDown: handleKeyDown, children: tabs.map((tab) => jsxRuntimeExports.jsx(TabButton, { active: activeTab === tab.id, onClick: () => onTabChange(tab.id), children: tab.label }, tab.id)) }), jsxRuntimeExports.jsx("div", { role: "tabpanel", children })] });
|
|
2003
1945
|
}
|
|
2004
1946
|
const conversationTabs = [
|
|
2005
1947
|
{ id: "conversation", label: "Conversation" },
|
|
@@ -2013,11 +1955,7 @@ function EncryptedFieldBlock() {
|
|
|
2013
1955
|
return jsxRuntimeExports.jsx(EncryptedDataBlock, {});
|
|
2014
1956
|
}
|
|
2015
1957
|
function ExpiredFieldBlock() {
|
|
2016
|
-
return jsxRuntimeExports.jsx("div", { className: "flex items-center gap-1.5 rounded-md border px-3 py-2 text-label-12",
|
|
2017
|
-
borderColor: "var(--ds-gray-300)",
|
|
2018
|
-
backgroundColor: "var(--ds-gray-100)",
|
|
2019
|
-
color: "var(--ds-gray-700)"
|
|
2020
|
-
}, children: jsxRuntimeExports.jsx("span", { className: "font-medium", children: "Data expired" }) });
|
|
1958
|
+
return jsxRuntimeExports.jsx("div", { className: "flex items-center gap-1.5 rounded-md border border-gray-300 bg-gray-100 px-3 py-2 text-label-12 text-gray-700", children: jsxRuntimeExports.jsx("span", { className: "font-medium", children: "Data expired" }) });
|
|
2021
1959
|
}
|
|
2022
1960
|
function JsonBlock(value) {
|
|
2023
1961
|
return jsxRuntimeExports.jsx(CopyableDataBlock, { data: value });
|
|
@@ -2350,11 +2288,7 @@ const selfHeaderedAttributes = /* @__PURE__ */ new Set([
|
|
|
2350
2288
|
"eventData",
|
|
2351
2289
|
"dynamicWorkflowCode"
|
|
2352
2290
|
]);
|
|
2353
|
-
const ExpiredDataMessage = () => jsxRuntimeExports.jsx("div", { className: "text-label-12 rounded-md border p-4 my-2",
|
|
2354
|
-
borderColor: "var(--ds-gray-300)",
|
|
2355
|
-
backgroundColor: "var(--ds-gray-100)",
|
|
2356
|
-
color: "var(--ds-gray-700)"
|
|
2357
|
-
}, children: jsxRuntimeExports.jsx("span", { children: "The data for this run has expired and is no longer available." }) });
|
|
2291
|
+
const ExpiredDataMessage = () => jsxRuntimeExports.jsx("div", { className: "text-label-12 rounded-md border border-gray-300 bg-gray-100 p-4 my-2 text-gray-700", children: jsxRuntimeExports.jsx("span", { children: "The data for this run has expired and is no longer available." }) });
|
|
2358
2292
|
const copyableBasicAttributes = /* @__PURE__ */ new Set([
|
|
2359
2293
|
"stepId",
|
|
2360
2294
|
"hookId",
|
|
@@ -2397,12 +2331,12 @@ const AttributeBlock = ({ attribute, value, isLoading, inline = false, context }
|
|
|
2397
2331
|
return null;
|
|
2398
2332
|
}
|
|
2399
2333
|
if (inline) {
|
|
2400
|
-
return jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-1.5", children: [jsxRuntimeExports.jsx("span", { className: "text-[11px] font-medium
|
|
2334
|
+
return jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-1.5", children: [jsxRuntimeExports.jsx("span", { className: "text-[11px] font-medium text-gray-700", children: attribute }), jsxRuntimeExports.jsx("span", { className: "text-[11px] text-gray-1000", children: displayValue })] });
|
|
2401
2335
|
}
|
|
2402
2336
|
if (selfHeaderedAttributes.has(attribute)) {
|
|
2403
2337
|
return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: displayValue });
|
|
2404
2338
|
}
|
|
2405
|
-
return jsxRuntimeExports.jsxs("div", { className: "relative", children: [typeof isLoading === "boolean" && isLoading && jsxRuntimeExports.jsx("div", { className: "absolute top-9 right-4", children: jsxRuntimeExports.jsx(Spinner, { size: "md" }) }), jsxRuntimeExports.jsxs("div", { className: "my-2 flex flex-col gap-0", children: [jsxRuntimeExports.jsx("span", { className: "text-label-14 text-gray-1000 font-medium first-letter:uppercase", children: attribute }), jsxRuntimeExports.jsx("span", { className: "text-label-12
|
|
2339
|
+
return jsxRuntimeExports.jsxs("div", { className: "relative", children: [typeof isLoading === "boolean" && isLoading && jsxRuntimeExports.jsx("div", { className: "absolute top-9 right-4", children: jsxRuntimeExports.jsx(Spinner, { size: "md" }) }), jsxRuntimeExports.jsxs("div", { className: "my-2 flex flex-col gap-0", children: [jsxRuntimeExports.jsx("span", { className: "text-label-14 text-gray-1000 font-medium first-letter:uppercase", children: attribute }), jsxRuntimeExports.jsx("span", { className: "text-label-12 text-gray-1000", children: displayValue })] }, attribute)] });
|
|
2406
2340
|
};
|
|
2407
2341
|
const AttributePanel = ({ data, moduleSpecifier, moduleSourceUrl, isLoading, error, expiredAt, onStreamClick, onRunClick, onDecrypt, isDecrypting = false, isDecryptDisabled = false, decryptDisabledReason, resource }) => {
|
|
2408
2342
|
const displayData = reactExports.useMemo(() => {
|
|
@@ -2553,7 +2487,7 @@ function EventItem({ event, onLoadEventData, encryptionKey, showSeparateEventOcc
|
|
|
2553
2487
|
return jsxRuntimeExports.jsxs(CollapsibleRoot, { variant: "card", onOpenChange: canHaveData ? (open) => {
|
|
2554
2488
|
if (open)
|
|
2555
2489
|
handleExpand();
|
|
2556
|
-
} : void 0, children: [jsxRuntimeExports.jsx(CollapsibleTrigger, { className: "px-3 py-2", children: jsxRuntimeExports.jsxs("div", { className: "flex w-full items-center justify-between gap-3", children: [jsxRuntimeExports.jsx(EventNoticeTooltip, { notice: rowNotice, children: jsxRuntimeExports.jsx("span", { className: `text-label-12
|
|
2490
|
+
} : void 0, children: [jsxRuntimeExports.jsx(CollapsibleTrigger, { className: "px-3 py-2", children: jsxRuntimeExports.jsxs("div", { className: "flex w-full items-center justify-between gap-3", children: [jsxRuntimeExports.jsx(EventNoticeTooltip, { notice: rowNotice, children: jsxRuntimeExports.jsx("span", { className: `text-label-12-mono ${rowNotice ? "text-gray-700" : "text-gray-1000"}`, children: event.eventType }) }), jsxRuntimeExports.jsx("span", { className: "shrink-0 text-label-13 text-gray-900", children: displayedCreatedAtTime })] }) }), jsxRuntimeExports.jsxs(CollapsibleContent, { children: [jsxRuntimeExports.jsxs("div", { className: "flex flex-col bg-background-200 [&:has(+_*)]:border-b [&:has(+_*)]:border-gray-alpha-400", children: [showSeparateEventOccurrenceTimestamps && occurredAt && jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between gap-2 py-2 px-3", children: [jsxRuntimeExports.jsx("span", { className: "text-label-12 text-gray-900", children: "Occurred" }), jsxRuntimeExports.jsx(TimestampTooltip, { date: occurredAt, children: jsxRuntimeExports.jsx("span", { className: "max-w-[70%] truncate text-right text-label-12-mono", children: formatEventTimestamp(occurredAt) }) })] }), jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between gap-2 py-2 px-3", children: [jsxRuntimeExports.jsx("span", { className: "text-label-12 text-gray-900", children: "Event ID" }), jsxRuntimeExports.jsx("span", { className: "max-w-[70%] truncate text-right text-label-12-mono", children: event.eventId })] }), event.correlationId && jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between gap-2 py-2 px-3", children: [jsxRuntimeExports.jsx("span", { className: "text-label-12 text-gray-900", children: "Correlation ID" }), jsxRuntimeExports.jsx("span", { className: "max-w-[70%] truncate text-right text-label-12-mono", children: event.correlationId })] })] }), isLoading && jsxRuntimeExports.jsxs("div", { className: "p-3", children: [jsxRuntimeExports.jsx(Skeleton, { className: "h-4 w-[35%]" }), jsxRuntimeExports.jsx(Skeleton, { className: "mt-2 h-4 w-[90%]" }), jsxRuntimeExports.jsx(Skeleton, { className: "mt-2 h-4 w-3/4" })] }), loadError && jsxRuntimeExports.jsx(ErrorCard, { title: "Failed to load event data", details: loadError, className: "mt-2" }), displayPayload != null && event.eventType !== "run_cancelled" && jsxRuntimeExports.jsx("div", { className: "[&>div]:border-none [&>div]:rounded-none", children: jsxRuntimeExports.jsx(EventDataBlock, { eventType: event.eventType, data: displayPayload }) })] })] });
|
|
2557
2491
|
}
|
|
2558
2492
|
function hasOnlyExpiredFields(data, eventType) {
|
|
2559
2493
|
if (data === null || typeof data !== "object" || Array.isArray(data)) {
|
|
@@ -2566,11 +2500,7 @@ function hasOnlyExpiredFields(data, eventType) {
|
|
|
2566
2500
|
}
|
|
2567
2501
|
function EventDataBlock({ eventType, data }) {
|
|
2568
2502
|
if (isExpiredMarker(data) || hasOnlyExpiredFields(data, eventType)) {
|
|
2569
|
-
return jsxRuntimeExports.jsx("div", { className: "flex items-center gap-1.5 rounded-md border px-3 py-2 text-label-12",
|
|
2570
|
-
borderColor: "var(--ds-gray-300)",
|
|
2571
|
-
backgroundColor: "var(--ds-gray-100)",
|
|
2572
|
-
color: "var(--ds-gray-700)"
|
|
2573
|
-
}, children: jsxRuntimeExports.jsx("span", { className: "font-medium", children: "Data expired" }) });
|
|
2503
|
+
return jsxRuntimeExports.jsx("div", { className: "flex items-center gap-1.5 rounded-md border border-gray-300 bg-gray-100 px-3 py-2 text-label-12 text-gray-700", children: jsxRuntimeExports.jsx("span", { className: "font-medium", children: "Data expired" }) });
|
|
2574
2504
|
}
|
|
2575
2505
|
if (hasEncryptedFields({ eventType, eventData: data })) {
|
|
2576
2506
|
return jsxRuntimeExports.jsx(EncryptedDataBlock, {});
|
|
@@ -2813,7 +2743,7 @@ function EntityDetailPanel({ run, onStreamClick, onRunClick, fetchSpanDetail, on
|
|
|
2813
2743
|
if (stoppingSleep || !resourceId)
|
|
2814
2744
|
return;
|
|
2815
2745
|
if (!onWakeUpSleep) {
|
|
2816
|
-
toast2.error("
|
|
2746
|
+
toast2.error("Failed to wake up run", {
|
|
2817
2747
|
description: "No wake-up handler provided."
|
|
2818
2748
|
});
|
|
2819
2749
|
return;
|
|
@@ -2833,7 +2763,7 @@ function EntityDetailPanel({ run, onStreamClick, onRunClick, fetchSpanDetail, on
|
|
|
2833
2763
|
} catch (err) {
|
|
2834
2764
|
console.error("Failed to wake up run:", err);
|
|
2835
2765
|
toast2.error("Failed to wake up run", {
|
|
2836
|
-
description: err instanceof Error ? err.message : "
|
|
2766
|
+
description: err instanceof Error ? err.message : "Try again."
|
|
2837
2767
|
});
|
|
2838
2768
|
} finally {
|
|
2839
2769
|
setStoppingSleep(false);
|
|
@@ -2843,14 +2773,14 @@ function EntityDetailPanel({ run, onStreamClick, onRunClick, fetchSpanDetail, on
|
|
|
2843
2773
|
if (resolvingHook)
|
|
2844
2774
|
return;
|
|
2845
2775
|
if (!onResolveHook) {
|
|
2846
|
-
toast2.error("
|
|
2776
|
+
toast2.error("Failed to resolve hook", {
|
|
2847
2777
|
description: "No resolve handler provided."
|
|
2848
2778
|
});
|
|
2849
2779
|
return;
|
|
2850
2780
|
}
|
|
2851
2781
|
if (!hookToken) {
|
|
2852
|
-
toast2.error("
|
|
2853
|
-
description: "
|
|
2782
|
+
toast2.error("Failed to resolve hook", {
|
|
2783
|
+
description: "The hook token is missing. Reload the page, then try again."
|
|
2854
2784
|
});
|
|
2855
2785
|
return;
|
|
2856
2786
|
}
|
|
@@ -2869,7 +2799,7 @@ function EntityDetailPanel({ run, onStreamClick, onRunClick, fetchSpanDetail, on
|
|
|
2869
2799
|
} catch (err) {
|
|
2870
2800
|
console.error("Failed to resolve hook:", err);
|
|
2871
2801
|
toast2.error("Failed to resolve hook", {
|
|
2872
|
-
description: err instanceof Error ? err.message : "
|
|
2802
|
+
description: err instanceof Error ? err.message : "Try again."
|
|
2873
2803
|
});
|
|
2874
2804
|
} finally {
|
|
2875
2805
|
setResolvingHook(false);
|
|
@@ -2969,7 +2899,7 @@ function TraceDetailPanel({ containerRef, onNavigateToSpan, onClose }) {
|
|
|
2969
2899
|
}, [selectedSpan?.data, selectedSpan?.resource]);
|
|
2970
2900
|
if (!activeSpan)
|
|
2971
2901
|
return null;
|
|
2972
|
-
return jsxRuntimeExports.jsx(DetailPanelShell, { id: DETAIL_PANEL_ID, width: panelWidth, title: jsxRuntimeExports.jsx("span", { className: "truncate block", children: selectedSpanName }), itemLabel: "span", onPrev: prevSpanId ? handleSelectPrev : void 0, onNext: nextSpanId ? handleSelectNext : void 0, onClose, children: jsxRuntimeExports.jsx(ErrorBoundary, { children: jsxRuntimeExports.jsx(EntityDetailPanel, { run: sidebar.run, onStreamClick: sidebar.onStreamClick, onRunClick: sidebar.onRunClick, fetchSpanDetail: sidebar.fetchSpanDetail, onWakeUpSleep: sidebar.onWakeUpSleep, onLoadEventData: sidebar.onLoadEventData, onResolveHook: sidebar.onResolveHook, encryptionKey: sidebar.encryptionKey, onDecrypt: sidebar.onDecrypt, isDecrypting: sidebar.isDecrypting, isDecryptDisabled: sidebar.isDecryptDisabled, decryptDisabledReason: sidebar.decryptDisabledReason, selectedSpan, showSeparateEventOccurrenceTimestamps: sidebar.showSeparateEventOccurrenceTimestamps, getModuleSourceUrl: sidebar.getModuleSourceUrl }) }) });
|
|
2902
|
+
return jsxRuntimeExports.jsx(DetailPanelShell, { id: DETAIL_PANEL_ID, width: panelWidth, title: jsxRuntimeExports.jsx("span", { className: "truncate block", children: selectedSpanName }), itemLabel: "span", onPrev: prevSpanId ? handleSelectPrev : void 0, onNext: nextSpanId ? handleSelectNext : void 0, onClose, children: jsxRuntimeExports.jsx(ErrorBoundary, { title: "Failed to load span details", children: jsxRuntimeExports.jsx(EntityDetailPanel, { run: sidebar.run, onStreamClick: sidebar.onStreamClick, onRunClick: sidebar.onRunClick, fetchSpanDetail: sidebar.fetchSpanDetail, onWakeUpSleep: sidebar.onWakeUpSleep, onLoadEventData: sidebar.onLoadEventData, onResolveHook: sidebar.onResolveHook, encryptionKey: sidebar.encryptionKey, onDecrypt: sidebar.onDecrypt, isDecrypting: sidebar.isDecrypting, isDecryptDisabled: sidebar.isDecryptDisabled, decryptDisabledReason: sidebar.decryptDisabledReason, selectedSpan, showSeparateEventOccurrenceTimestamps: sidebar.showSeparateEventOccurrenceTimestamps, getModuleSourceUrl: sidebar.getModuleSourceUrl }) }) });
|
|
2973
2903
|
}
|
|
2974
2904
|
const GUTTER_PX = 1;
|
|
2975
2905
|
const MIN_PX = 50;
|
|
@@ -3009,7 +2939,7 @@ function SplitPane({ children, className, startHeader, endHeader, scrollContaine
|
|
|
3009
2939
|
return jsxRuntimeExports.jsxs("div", { className: cn("relative flex flex-col h-full min-h-0", className), children: [jsxRuntimeExports.jsxs("div", { className: "shrink-0 grid", style: { gridTemplateColumns: colTemplate }, children: [jsxRuntimeExports.jsx("div", { children: startHeader }), jsxRuntimeExports.jsx("div", { className: "flex justify-center", children: jsxRuntimeExports.jsx("span", { className: "h-full w-px bg-gray-alpha-400", "aria-hidden": true }) }), jsxRuntimeExports.jsx("div", { children: endHeader })] }), jsxRuntimeExports.jsxs("div", { ref: setContainerRef, className: "grid flex-1 min-h-0 overflow-x-hidden overflow-y-auto", style: { gridTemplateColumns: colTemplate }, children: [jsxRuntimeExports.jsx("div", { ref: startRef, id: SPLIT_PANE_START_ID, className: "min-w-0", children: start }), jsxRuntimeExports.jsxs("div", { className: "relative z-20 isolate flex shrink-0 justify-center", children: [jsxRuntimeExports.jsx("span", { className: "pointer-events-none relative z-10 h-full w-px shrink-0 bg-gray-alpha-400", "aria-hidden": true }), jsxRuntimeExports.jsx(DraggableBorder, { element: startRef, position: "right", onWidthChange: handleWidthChange, onReset: handleReset, "aria-label": "Resize event list", "aria-controls": SPLIT_PANE_START_ID, "aria-valuemin": MIN_PX, "aria-valuemax": maxStartPx, "aria-valuenow": Math.min(Math.max(Math.round(effectiveStartPx), MIN_PX), maxStartPx) })] }), end] }), jsxRuntimeExports.jsxs("div", { className: "pointer-events-none absolute inset-x-0 bottom-3 z-[5] grid", style: { gridTemplateColumns: colTemplate }, children: [jsxRuntimeExports.jsx("div", {}), jsxRuntimeExports.jsx("div", {}), jsxRuntimeExports.jsx("div", { className: "flex min-w-0 items-center justify-between gap-3 pl-4 pr-3", children: endOverlay })] })] });
|
|
3010
2940
|
}
|
|
3011
2941
|
const hint = "_hint_1dmsq_3";
|
|
3012
|
-
const styles = {
|
|
2942
|
+
const styles$1 = {
|
|
3013
2943
|
hint
|
|
3014
2944
|
};
|
|
3015
2945
|
const DISMISSALS_KEY = "workflow-step-shortcut-helper-dismissals";
|
|
@@ -3057,8 +2987,12 @@ function TraceShortcutHelper({ hasMultipleSpans, reducedMotion }) {
|
|
|
3057
2987
|
}
|
|
3058
2988
|
setVisible(false);
|
|
3059
2989
|
};
|
|
3060
|
-
return jsxRuntimeExports.jsxs("div", { className: "group pointer-events-auto hidden h-8 w-fit items-center gap-1 text-label-12 leading-none text-gray-900 @min-[480px]:flex", children: [jsxRuntimeExports.jsx("span", { "aria-live": "polite", "aria-atomic": "true", className: "inline-flex items-center whitespace-nowrap", children: reducedMotion ? jsxRuntimeExports.jsx(AltHint, {}) : jsxRuntimeExports.jsx("span", { className: `inline-flex items-center ${styles.hint}`, children: index === 0 ? jsxRuntimeExports.jsx(AltHint, {}) : jsxRuntimeExports.jsx(NavHint, {}) }, index) }), jsxRuntimeExports.jsx("button", { type: "button", className: "inline-flex h-5 w-5 items-center justify-center rounded text-
|
|
2990
|
+
return jsxRuntimeExports.jsxs("div", { className: "group pointer-events-auto hidden h-8 w-fit items-center gap-1 text-label-12 leading-none text-gray-900 @min-[480px]:flex", children: [jsxRuntimeExports.jsx("span", { "aria-live": "polite", "aria-atomic": "true", className: "inline-flex items-center whitespace-nowrap", children: reducedMotion ? jsxRuntimeExports.jsx(AltHint, {}) : jsxRuntimeExports.jsx("span", { className: `inline-flex items-center ${styles$1.hint}`, children: index === 0 ? jsxRuntimeExports.jsx(AltHint, {}) : jsxRuntimeExports.jsx(NavHint, {}) }, index) }), jsxRuntimeExports.jsx("button", { type: "button", className: "inline-flex h-5 w-5 items-center justify-center rounded text-gray-900 opacity-0 transition-opacity hover:bg-gray-alpha-100 hover:text-gray-1000 group-hover:opacity-100 focus-visible:opacity-100 motion-reduce:transition-none", onClick: dismiss, "aria-label": "Dismiss trace shortcuts helper", children: jsxRuntimeExports.jsx(X, { className: "h-3 w-3" }) })] });
|
|
3061
2991
|
}
|
|
2992
|
+
const landing = "_landing_bcyo3_16";
|
|
2993
|
+
const styles = {
|
|
2994
|
+
landing
|
|
2995
|
+
};
|
|
3062
2996
|
const MIN_VIEWPORT_MS = 1e-3;
|
|
3063
2997
|
const ZOOM_DEBOUNCE_MS = 150;
|
|
3064
2998
|
function useAnimatedViewport(initial) {
|
|
@@ -3114,7 +3048,7 @@ function useAnimatedViewport(initial) {
|
|
|
3114
3048
|
return { viewport, setViewport, animateTo };
|
|
3115
3049
|
}
|
|
3116
3050
|
function TraceViewer$1({ trace, onLoadMore, hasMore, isLoadingMore, initialSelectedSpanId }) {
|
|
3117
|
-
return jsxRuntimeExports.jsx(TooltipProvider, {
|
|
3051
|
+
return jsxRuntimeExports.jsx(TooltipProvider, { children: jsxRuntimeExports.jsx(ActiveSpanProvider, { spans: trace.spans, initialSelectedSpanId, children: jsxRuntimeExports.jsx(TraceViewerContent, { trace, onLoadMore, hasMore, isLoadingMore }) }) });
|
|
3118
3052
|
}
|
|
3119
3053
|
function TraceViewerContent({ trace, onLoadMore, hasMore, isLoadingMore }) {
|
|
3120
3054
|
const { activeSpanId, setActiveSpan, clearActiveSpan } = useActiveSpan();
|
|
@@ -3329,7 +3263,7 @@ function TraceViewerContent({ trace, onLoadMore, hasMore, isLoadingMore }) {
|
|
|
3329
3263
|
el.addEventListener("wheel", onWheel, { passive: false });
|
|
3330
3264
|
return () => el.removeEventListener("wheel", onWheel);
|
|
3331
3265
|
}, [root.duration, setViewport, clampToRoot]);
|
|
3332
|
-
return jsxRuntimeExports.jsxs("div", { ref: paneRootRef, "data-pane": "pane-root", className: "relative flex w-full h-full max-h-full", children: [jsxRuntimeExports.jsxs("div", { id: "trace-parent",
|
|
3266
|
+
return jsxRuntimeExports.jsxs("div", { ref: paneRootRef, "data-pane": "pane-root", className: "relative flex w-full h-full max-h-full", children: [jsxRuntimeExports.jsxs("div", { id: "trace-parent", className: cn("@container flex-1 min-w-0 grid grid-rows-[auto_1fr] h-full min-h-0 overflow-hidden relative bg-background-100", isLanding && styles.landing), children: [jsxRuntimeExports.jsx(Minimap, { spans: trace.spans, root, viewport, minViewportMs: MIN_VIEWPORT_MS, onViewportChange: setViewport, onAnimateTo: animateTo }), jsxRuntimeExports.jsxs(SplitPane, { scrollContainerRef, startHeader: jsxRuntimeExports.jsx(SearchInput, { id: "trace-viewer-search", name: "trace-viewer-search", label: "Search spans", placeholder: "Search spans…", value: searchQuery, onValueChange: setSearchQuery, className: "pl-4" }), endHeader: jsxRuntimeExports.jsx(TimelineHeader, { markers: timeMarkers, hoverInfo }), children: [jsxRuntimeExports.jsxs("div", { className: "block overflow-visible", children: [jsxRuntimeExports.jsx(EventList, { spans: trace.spans, activeSpanId, searchResult, onSelectSpan: handleSelectSpan }), jsxRuntimeExports.jsx("div", { ref: loadMoreSentinelRef, className: "flex justify-center", children: isLoadingMore ? jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-center gap-2 py-3 text-label-14 text-gray-800", children: [jsxRuntimeExports.jsx(Spinner, { size: "md" }), jsxRuntimeExports.jsx("span", { children: "Loading spans…" })] }) : null })] }), jsxRuntimeExports.jsx("div", { ref: timelineRef, id: "trace-timeline", className: "@container block min-h-0 overflow-visible relative", onDoubleClick: resetZoom, onMouseMove: handleTimelineMouseMove, onMouseLeave: handleTimelineMouseLeave, children: jsxRuntimeExports.jsx(Timeline, { spans: trace.spans, viewStart: viewport.start, viewEnd: viewport.end, markers: timeMarkers, selectedId: activeSpanId, searchResult, onSelect: handleSelectSpan, onRevealTime: handleRevealTime, hover, altHeld }) }), jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(TraceShortcutHelper, { hasMultipleSpans: trace.spans.length > 1, reducedMotion }), jsxRuntimeExports.jsxs("div", { className: "pointer-events-auto flex items-center border border-gray-alpha-400 rounded-md bg-background-100 shadow-sm overflow-hidden divide-x divide-gray-alpha-400", children: [jsxRuntimeExports.jsx(IconButton, { size: "small", onClick: zoomOut, disabled: isAtMinZoom, "aria-label": "Zoom out", children: jsxRuntimeExports.jsx(ZoomOut, { className: "w-4 h-4" }) }), jsxRuntimeExports.jsx(IconButton, { size: "small", onClick: resetZoom, "aria-label": "Reset zoom", children: jsxRuntimeExports.jsx(RotateCcw, { className: "w-3.5 h-3.5" }) }), jsxRuntimeExports.jsx(IconButton, { size: "small", onClick: zoomIn, disabled: isAtMaxZoom, "aria-label": "Zoom in", children: jsxRuntimeExports.jsx(ZoomIn, { className: "w-4 h-4" }) })] })] })] })] }), jsxRuntimeExports.jsx(TraceDetailPanel, { containerRef: paneRootRef, onNavigateToSpan: navigateToSpan, onClose: handleClearActiveSpan })] });
|
|
3333
3267
|
}
|
|
3334
3268
|
const TraceViewer = ({ run, events, sidebarData, onLoadMore, hasMore, isLoadingMore, loading = false, getStepAttributes, initialSelectedSpanId }) => {
|
|
3335
3269
|
const trace = reactExports.useMemo(() => {
|
|
@@ -4795,26 +4729,6 @@ function useStreamReader(env, streamId, runId, encryptionKey, runStatus) {
|
|
|
4795
4729
|
}, [runStatus]);
|
|
4796
4730
|
return { chunks, isLive, isInitialLoading, error };
|
|
4797
4731
|
}
|
|
4798
|
-
function LiveStatus({ hasError, errorMessage }) {
|
|
4799
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip, { children: [
|
|
4800
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
4801
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4802
|
-
"div",
|
|
4803
|
-
{
|
|
4804
|
-
className: `w-2 h-2 rounded-full ${hasError ? "bg-red-500" : "bg-green-500 animate-pulse"}`
|
|
4805
|
-
}
|
|
4806
|
-
),
|
|
4807
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4808
|
-
"span",
|
|
4809
|
-
{
|
|
4810
|
-
className: `text-xs ${hasError ? "text-red-600" : "text-muted-foreground"}`,
|
|
4811
|
-
children: hasError ? "Error" : "Live"
|
|
4812
|
-
}
|
|
4813
|
-
)
|
|
4814
|
-
] }) }),
|
|
4815
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: hasError ? `Error updating data: ${errorMessage}` : `Content updates every ${LIVE_UPDATE_INTERVAL_MS$1 / 1e3} seconds` }) })
|
|
4816
|
-
] }) });
|
|
4817
|
-
}
|
|
4818
4732
|
({
|
|
4819
4733
|
...LAYOUT
|
|
4820
4734
|
});
|
|
@@ -4839,25 +4753,22 @@ function UsageNavLink({
|
|
|
4839
4753
|
current = false,
|
|
4840
4754
|
onNavigate
|
|
4841
4755
|
}) {
|
|
4842
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
4756
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4843
4757
|
Link,
|
|
4844
4758
|
{
|
|
4845
4759
|
to: runUsagePath(runId),
|
|
4846
|
-
className:
|
|
4760
|
+
className: tabsTriggerClassName,
|
|
4847
4761
|
"aria-current": current ? "page" : void 0,
|
|
4848
4762
|
"data-testid": "run-usage-nav-link",
|
|
4849
4763
|
"data-run-view-item": "usage",
|
|
4850
4764
|
onClick: () => onNavigate?.("usage"),
|
|
4851
|
-
children:
|
|
4852
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ChartColumn, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
4853
|
-
"Usage"
|
|
4854
|
-
]
|
|
4765
|
+
children: "Usage"
|
|
4855
4766
|
}
|
|
4856
4767
|
);
|
|
4857
4768
|
}
|
|
4858
4769
|
const RUN_VIEW_ROW_CLASS = cn(
|
|
4859
4770
|
tabsListClassName,
|
|
4860
|
-
"mb-4 max-w-full flex-none
|
|
4771
|
+
"mb-4 max-w-full flex-none"
|
|
4861
4772
|
);
|
|
4862
4773
|
function RunViewNav({
|
|
4863
4774
|
runId,
|
|
@@ -4865,17 +4776,14 @@ function RunViewNav({
|
|
|
4865
4776
|
onNavigate
|
|
4866
4777
|
}) {
|
|
4867
4778
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { "aria-label": "Run views", className: RUN_VIEW_ROW_CLASS, children: [
|
|
4868
|
-
RUN_TABS.map((tab) => /* @__PURE__ */ jsxRuntimeExports.
|
|
4779
|
+
RUN_TABS.map((tab) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4869
4780
|
Link,
|
|
4870
4781
|
{
|
|
4871
4782
|
to: runTabPath(runId, tab.value),
|
|
4872
|
-
className:
|
|
4783
|
+
className: tabsTriggerClassName,
|
|
4873
4784
|
"data-run-view-item": tab.value,
|
|
4874
4785
|
onClick: () => onNavigate?.(tab.value),
|
|
4875
|
-
children:
|
|
4876
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(List, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
4877
|
-
tab.label
|
|
4878
|
-
]
|
|
4786
|
+
children: tab.label
|
|
4879
4787
|
},
|
|
4880
4788
|
tab.value
|
|
4881
4789
|
)),
|
|
@@ -5118,8 +5026,6 @@ function RunDetailView({
|
|
|
5118
5026
|
] });
|
|
5119
5027
|
}
|
|
5120
5028
|
const workflowName = parseWorkflowName(run.workflowName)?.shortName;
|
|
5121
|
-
const hasError = false;
|
|
5122
|
-
const errorMessage = "";
|
|
5123
5029
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
5124
5030
|
/* @__PURE__ */ jsxRuntimeExports.jsx(AlertDialog, { open: showCancelDialog, onOpenChange: setShowCancelDialog, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogContent, { children: [
|
|
5125
5031
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDialogHeader, { children: [
|
|
@@ -5167,27 +5073,24 @@ function RunDetailView({
|
|
|
5167
5073
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-4 p-6 border rounded-lg", children: [
|
|
5168
5074
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-wrap items-start justify-between gap-x-4 gap-y-2", children: [
|
|
5169
5075
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mb-4", children: /* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: "text-xl font-semibold", children: workflowName ? workflowName : /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, { className: "w-[260px] h-[28px]" }) }) }),
|
|
5170
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
}
|
|
5186
|
-
)
|
|
5187
|
-
] })
|
|
5076
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center justify-between gap-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5077
|
+
RunActionsButtons,
|
|
5078
|
+
{
|
|
5079
|
+
env,
|
|
5080
|
+
runId,
|
|
5081
|
+
runStatus: run.status,
|
|
5082
|
+
events: allEvents,
|
|
5083
|
+
eventsLoading: loading,
|
|
5084
|
+
loading,
|
|
5085
|
+
replayDisabledReason: isDynamicRun ? "Dynamic runs cannot be replayed as a new run." : void 0,
|
|
5086
|
+
onRerunClick: handleRerunClick,
|
|
5087
|
+
onCancelClick: handleCancelClick,
|
|
5088
|
+
callbacks: { onSuccess: update }
|
|
5089
|
+
}
|
|
5090
|
+
) })
|
|
5188
5091
|
] }),
|
|
5189
5092
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-wrap items-start gap-x-8 gap-y-4", children: [
|
|
5190
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
5093
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-1 min-w-[76px]", children: [
|
|
5191
5094
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-muted-foreground", children: "Status" }),
|
|
5192
5095
|
run.status ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5193
5096
|
StatusBadge,
|
|
@@ -5195,7 +5098,7 @@ function RunDetailView({
|
|
|
5195
5098
|
status: run.status,
|
|
5196
5099
|
context: { error: run.error, cancelReason }
|
|
5197
5100
|
}
|
|
5198
|
-
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, { className: "
|
|
5101
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, { className: "h-4" })
|
|
5199
5102
|
] }),
|
|
5200
5103
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
5201
5104
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-muted-foreground", children: "Duration" }),
|
|
@@ -5211,23 +5114,23 @@ function RunDetailView({
|
|
|
5211
5114
|
const hours = Math.floor(minutes / 60);
|
|
5212
5115
|
const remainingMinutes = minutes % 60;
|
|
5213
5116
|
return remainingMinutes > 0 ? `${hours}h ${remainingMinutes}m` : `${hours}h`;
|
|
5214
|
-
})() : "-" : /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, { className: "
|
|
5117
|
+
})() : "-" : /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, { className: "h-4" }) })
|
|
5215
5118
|
] }),
|
|
5216
5119
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
5217
5120
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-muted-foreground", children: "Run ID" }),
|
|
5218
|
-
|
|
5121
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CopyableText, { text: runId, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs mt-0.5 font-mono", children: runId }) })
|
|
5219
5122
|
] }),
|
|
5220
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
5123
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-1 min-w-[104px]", children: [
|
|
5221
5124
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-muted-foreground", children: "Queued" }),
|
|
5222
|
-
run.createdAt ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs", children: /* @__PURE__ */ jsxRuntimeExports.jsx(RelativeTime, { date: run.createdAt }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, { className: "
|
|
5125
|
+
run.createdAt ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs", children: /* @__PURE__ */ jsxRuntimeExports.jsx(RelativeTime, { date: run.createdAt }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, { className: "h-4" })
|
|
5223
5126
|
] }),
|
|
5224
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
5127
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-1 min-w-[104px]", children: [
|
|
5225
5128
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-muted-foreground", children: "Started" }),
|
|
5226
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs", children: run.runId ? run.startedAt ? /* @__PURE__ */ jsxRuntimeExports.jsx(RelativeTime, { date: run.startedAt }) : "-" : /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, { className: "
|
|
5129
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs", children: run.runId ? run.startedAt ? /* @__PURE__ */ jsxRuntimeExports.jsx(RelativeTime, { date: run.startedAt }) : "-" : /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, { className: "h-4" }) })
|
|
5227
5130
|
] }),
|
|
5228
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
5131
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-1 min-w-[104px]", children: [
|
|
5229
5132
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs text-muted-foreground", children: "Completed" }),
|
|
5230
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs", children: run.runId ? run.completedAt ? /* @__PURE__ */ jsxRuntimeExports.jsx(RelativeTime, { date: run.completedAt }) : "-" : /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, { className: "
|
|
5133
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs", children: run.runId ? run.completedAt ? /* @__PURE__ */ jsxRuntimeExports.jsx(RelativeTime, { date: run.completedAt }) : "-" : /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, { className: "h-4" }) })
|
|
5231
5134
|
] }),
|
|
5232
5135
|
showUsage && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5233
5136
|
RunUsageHeaderStats,
|
|
@@ -5272,43 +5175,10 @@ function RunDetailView({
|
|
|
5272
5175
|
children: [
|
|
5273
5176
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: RUN_VIEW_ROW_CLASS, children: [
|
|
5274
5177
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(TabsList, { className: "h-auto border-0 bg-transparent p-0", children: [
|
|
5275
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
5276
|
-
TabsTrigger,
|
|
5277
|
-
{
|
|
5278
|
-
value: "trace",
|
|
5279
|
-
className: "gap-2",
|
|
5280
|
-
"data-run-view-item": "trace",
|
|
5281
|
-
children: [
|
|
5282
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(List, { className: "h-4 w-4" }),
|
|
5283
|
-
"Trace"
|
|
5284
|
-
]
|
|
5285
|
-
}
|
|
5286
|
-
),
|
|
5178
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TabsTrigger, { value: "trace", "data-run-view-item": "trace", children: "Trace" }),
|
|
5287
5179
|
false,
|
|
5288
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
5289
|
-
|
|
5290
|
-
{
|
|
5291
|
-
value: "events",
|
|
5292
|
-
className: "gap-2",
|
|
5293
|
-
"data-run-view-item": "events",
|
|
5294
|
-
children: [
|
|
5295
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(List, { className: "h-4 w-4" }),
|
|
5296
|
-
"Events"
|
|
5297
|
-
]
|
|
5298
|
-
}
|
|
5299
|
-
),
|
|
5300
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
5301
|
-
TabsTrigger,
|
|
5302
|
-
{
|
|
5303
|
-
value: "streams",
|
|
5304
|
-
className: "gap-2",
|
|
5305
|
-
"data-run-view-item": "streams",
|
|
5306
|
-
children: [
|
|
5307
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(List, { className: "h-4 w-4" }),
|
|
5308
|
-
"Streams"
|
|
5309
|
-
]
|
|
5310
|
-
}
|
|
5311
|
-
)
|
|
5180
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TabsTrigger, { value: "events", "data-run-view-item": "events", children: "Events" }),
|
|
5181
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TabsTrigger, { value: "streams", "data-run-view-item": "streams", children: "Streams" })
|
|
5312
5182
|
] }),
|
|
5313
5183
|
showUsage && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5314
5184
|
UsageNavLink,
|
|
@@ -5359,17 +5229,18 @@ function RunDetailView({
|
|
|
5359
5229
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex h-10 min-h-10 items-center pl-4 pr-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, { className: "h-3.5 w-24" }) }),
|
|
5360
5230
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex h-10 min-h-10 items-center pl-4 pr-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, { className: "h-3.5 w-32" }) }),
|
|
5361
5231
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex h-10 min-h-10 items-center pl-4 pr-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton$1, { className: "h-3.5 w-20" }) })
|
|
5362
|
-
] }) : streamsError ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-4 py-2 text-label-12 text-red-900", children: streamsError.message }) : streams.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex h-10 min-h-10 items-center px-4 text-label-12 text-gray-900", children: "No streams found for this run" }) : streams.map((streamId) => /* @__PURE__ */ jsxRuntimeExports.
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5232
|
+
] }) : streamsError ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "px-4 py-2 text-label-12 text-red-900", children: streamsError.message }) : streams.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex h-10 min-h-10 items-center px-4 text-label-12 text-gray-900", children: "No streams found for this run" }) : streams.map((streamId) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Tooltip, { children: [
|
|
5233
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5234
|
+
"button",
|
|
5235
|
+
{
|
|
5236
|
+
type: "button",
|
|
5237
|
+
onClick: () => setSelectedStreamId(streamId),
|
|
5238
|
+
className: `flex h-10 min-h-10 w-full min-w-0 items-center truncate pl-4 pr-2 text-left text-label-14 transition-colors ${selectedStreamId === streamId ? "bg-gray-100 text-gray-1000 hover:bg-gray-200 active:bg-gray-200" : "bg-transparent text-gray-900 hover:bg-gray-100 hover:text-gray-1000 focus-visible:bg-gray-100 focus-visible:text-gray-1000"}`,
|
|
5239
|
+
children: streamId
|
|
5240
|
+
}
|
|
5241
|
+
) }),
|
|
5242
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TooltipContent, { children: streamId })
|
|
5243
|
+
] }, streamId)) })
|
|
5373
5244
|
] }),
|
|
5374
5245
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex min-w-0 flex-1 flex-col overflow-hidden bg-background-100", children: streamsLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(StreamViewerSkeleton, {}) }) : selectedStreamId ? streamError?.includes("encrypted") && !encryptionKey ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex h-full items-center justify-center p-4", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
5375
5246
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Lock, { className: "h-8 w-8 text-gray-700" }),
|