@localstack/appinspector-ui 1.0.183 → 1.0.184
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +20 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2490,6 +2490,8 @@ var EVENT_DETAILS_SECTION_BASIC_INFORMATION_TEST_ID = "event-details-section-bas
|
|
|
2490
2490
|
var EVENT_DETAILS_SERVICE_NAME_TEST_ID = "event-details-service-name";
|
|
2491
2491
|
var EVENT_DETAILS_OPERATION_NAME_TEST_ID = "event-details-operation-name";
|
|
2492
2492
|
var EVENT_DETAILS_CLOSE_BUTTON_TEST_ID = "event-details-close-button";
|
|
2493
|
+
var EVENT_DETAILS_HEADING_TEST_ID = "event-details-heading";
|
|
2494
|
+
var EVENT_DETAILS_HEADING_DURATION_TEST_ID = "event-details-heading-duration";
|
|
2493
2495
|
var EVENT_DETAILS_STATUS_TEST_ID = "event-details-status";
|
|
2494
2496
|
var EVENT_DETAILS_RESOURCE_NAME_TEST_ID = "event-details-resource-name";
|
|
2495
2497
|
var EVENT_DETAILS_RESOURCE_ARN_TEST_ID = "event-details-resource-arn";
|
|
@@ -2523,6 +2525,7 @@ var TRACE_SIDEBAR_TEST_ID = "trace-sidebar";
|
|
|
2523
2525
|
var TRACE_SIDEBAR_RESIZE_HANDLE_TEST_ID = "trace-sidebar-resize-handle";
|
|
2524
2526
|
var TRACE_SIDEBAR_WATERFALL_BUTTON_TEST_ID = "trace-sidebar-waterfall-button";
|
|
2525
2527
|
var TRACE_SIDEBAR_MAP_BUTTON_TEST_ID = "trace-sidebar-map-button";
|
|
2528
|
+
var TRACE_SIDEBAR_ROOT_HEADING_TEST_ID = "trace-sidebar-root-heading";
|
|
2526
2529
|
var WATERFALL_TEST_ID = "waterfall";
|
|
2527
2530
|
var WATERFALL_ROW_TEST_ID = "waterfall-row";
|
|
2528
2531
|
var WATERFALL_ROW_TOGGLE_TEST_ID = "waterfall-row-toggle";
|
|
@@ -31423,6 +31426,7 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
31423
31426
|
}
|
|
31424
31427
|
const exceptionPayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.exception"]);
|
|
31425
31428
|
const duration = selectedEvent.end_time_unix_nano ? ((BigInt(selectedEvent.end_time_unix_nano) - BigInt(selectedEvent.start_time_unix_nano)) / BigInt("1000000")).toString() : void 0;
|
|
31429
|
+
const resource = shortResourceName(selectedEvent.resource_name, selectedEvent.arn);
|
|
31426
31430
|
const showError = issues.error;
|
|
31427
31431
|
const showPermissions = selectedEvent.iam_errors_suppressed === true || eventGroups.permissions !== void 0;
|
|
31428
31432
|
const showLogs = isLambdaInvoke && requestId !== void 0;
|
|
@@ -31448,12 +31452,21 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
31448
31452
|
borderBottom: "1px solid",
|
|
31449
31453
|
borderColor: "divider",
|
|
31450
31454
|
display: "flex",
|
|
31451
|
-
|
|
31455
|
+
gap: 1.5,
|
|
31452
31456
|
px: 2,
|
|
31453
31457
|
py: 1
|
|
31454
31458
|
},
|
|
31455
31459
|
children: [
|
|
31456
|
-
/* @__PURE__ */
|
|
31460
|
+
/* @__PURE__ */ jsxs131(Box16, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
31461
|
+
/* @__PURE__ */ jsx142(Typography12, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: "Selected operation" }),
|
|
31462
|
+
/* @__PURE__ */ jsxs131(Box16, { "data-testid": EVENT_DETAILS_HEADING_TEST_ID, sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
|
|
31463
|
+
/* @__PURE__ */ jsx142(AwsServiceIcon, { hideTooltip: true, service: selectedEvent.service_name, size: "small" }),
|
|
31464
|
+
/* @__PURE__ */ jsx142(Typography12, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, title: selectedEvent.operation_name, variant: "subtitle1", children: selectedEvent.operation_name }),
|
|
31465
|
+
resource !== "" && resource !== "*" && /* @__PURE__ */ jsx142(Typography12, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: resource, variant: "body2", children: resource }),
|
|
31466
|
+
duration !== void 0 && // A fixed box, so a screenshot can mask the varying value without the mask edge moving.
|
|
31467
|
+
/* @__PURE__ */ jsx142(Typography12, { color: "text.secondary", "data-testid": EVENT_DETAILS_HEADING_DURATION_TEST_ID, sx: { flex: "none", ml: "auto", textAlign: "right", width: 64 }, variant: "body2", children: formatDuration(Number(duration)) })
|
|
31468
|
+
] })
|
|
31469
|
+
] }),
|
|
31457
31470
|
onClose && /* @__PURE__ */ jsx142(IconButton6, { "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ jsx142(Close3, {}) })
|
|
31458
31471
|
]
|
|
31459
31472
|
}
|
|
@@ -32719,6 +32732,7 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
|
|
|
32719
32732
|
}
|
|
32720
32733
|
};
|
|
32721
32734
|
}, [spans, selectedSpanId]);
|
|
32735
|
+
const rootResource = root2 ? shortResourceName(root2.resource_name, root2.arn) : "";
|
|
32722
32736
|
return /* @__PURE__ */ jsxs137(
|
|
32723
32737
|
Box20,
|
|
32724
32738
|
{
|
|
@@ -32772,9 +32786,11 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
|
|
|
32772
32786
|
),
|
|
32773
32787
|
/* @__PURE__ */ jsxs137(Box20, { sx: { alignItems: "center", borderBottom: 1, borderColor: "divider", display: "flex", gap: 1.5, px: 2, py: 1 }, children: [
|
|
32774
32788
|
/* @__PURE__ */ jsxs137(Box20, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
32775
|
-
|
|
32789
|
+
/* @__PURE__ */ jsx148(Typography15, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: "Trace root" }),
|
|
32790
|
+
root2 && /* @__PURE__ */ jsxs137(Box20, { "data-testid": TRACE_SIDEBAR_ROOT_HEADING_TEST_ID, sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
|
|
32776
32791
|
/* @__PURE__ */ jsx148(AwsServiceIcon, { hideTooltip: true, service: root2.service_name, size: "small" }),
|
|
32777
|
-
/* @__PURE__ */ jsx148(Typography15, { noWrap: true, sx: { fontWeight: 600 }, title: root2.operation_name, variant: "subtitle1", children: root2.operation_name })
|
|
32792
|
+
/* @__PURE__ */ jsx148(Typography15, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, title: root2.operation_name, variant: "subtitle1", children: root2.operation_name }),
|
|
32793
|
+
rootResource !== "" && rootResource !== "*" && /* @__PURE__ */ jsx148(Typography15, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: rootResource, variant: "body2", children: rootResource })
|
|
32778
32794
|
] }),
|
|
32779
32795
|
/* @__PURE__ */ jsx148(Typography15, { color: "text.secondary", variant: "caption", children: [
|
|
32780
32796
|
formatDuration(stats.durationMs),
|