@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.cjs
CHANGED
|
@@ -2494,6 +2494,8 @@ var EVENT_DETAILS_SECTION_BASIC_INFORMATION_TEST_ID = "event-details-section-bas
|
|
|
2494
2494
|
var EVENT_DETAILS_SERVICE_NAME_TEST_ID = "event-details-service-name";
|
|
2495
2495
|
var EVENT_DETAILS_OPERATION_NAME_TEST_ID = "event-details-operation-name";
|
|
2496
2496
|
var EVENT_DETAILS_CLOSE_BUTTON_TEST_ID = "event-details-close-button";
|
|
2497
|
+
var EVENT_DETAILS_HEADING_TEST_ID = "event-details-heading";
|
|
2498
|
+
var EVENT_DETAILS_HEADING_DURATION_TEST_ID = "event-details-heading-duration";
|
|
2497
2499
|
var EVENT_DETAILS_STATUS_TEST_ID = "event-details-status";
|
|
2498
2500
|
var EVENT_DETAILS_RESOURCE_NAME_TEST_ID = "event-details-resource-name";
|
|
2499
2501
|
var EVENT_DETAILS_RESOURCE_ARN_TEST_ID = "event-details-resource-arn";
|
|
@@ -2527,6 +2529,7 @@ var TRACE_SIDEBAR_TEST_ID = "trace-sidebar";
|
|
|
2527
2529
|
var TRACE_SIDEBAR_RESIZE_HANDLE_TEST_ID = "trace-sidebar-resize-handle";
|
|
2528
2530
|
var TRACE_SIDEBAR_WATERFALL_BUTTON_TEST_ID = "trace-sidebar-waterfall-button";
|
|
2529
2531
|
var TRACE_SIDEBAR_MAP_BUTTON_TEST_ID = "trace-sidebar-map-button";
|
|
2532
|
+
var TRACE_SIDEBAR_ROOT_HEADING_TEST_ID = "trace-sidebar-root-heading";
|
|
2530
2533
|
var WATERFALL_TEST_ID = "waterfall";
|
|
2531
2534
|
var WATERFALL_ROW_TEST_ID = "waterfall-row";
|
|
2532
2535
|
var WATERFALL_ROW_TOGGLE_TEST_ID = "waterfall-row-toggle";
|
|
@@ -31397,6 +31400,7 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
31397
31400
|
}
|
|
31398
31401
|
const exceptionPayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.exception"]);
|
|
31399
31402
|
const duration = selectedEvent.end_time_unix_nano ? ((BigInt(selectedEvent.end_time_unix_nano) - BigInt(selectedEvent.start_time_unix_nano)) / BigInt("1000000")).toString() : void 0;
|
|
31403
|
+
const resource = shortResourceName(selectedEvent.resource_name, selectedEvent.arn);
|
|
31400
31404
|
const showError = issues.error;
|
|
31401
31405
|
const showPermissions = selectedEvent.iam_errors_suppressed === true || eventGroups.permissions !== void 0;
|
|
31402
31406
|
const showLogs = isLambdaInvoke && requestId !== void 0;
|
|
@@ -31422,12 +31426,21 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
31422
31426
|
borderBottom: "1px solid",
|
|
31423
31427
|
borderColor: "divider",
|
|
31424
31428
|
display: "flex",
|
|
31425
|
-
|
|
31429
|
+
gap: 1.5,
|
|
31426
31430
|
px: 2,
|
|
31427
31431
|
py: 1
|
|
31428
31432
|
},
|
|
31429
31433
|
children: [
|
|
31430
|
-
/* @__PURE__ */ (0, import_jsx_runtime142.
|
|
31434
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
31435
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: "Selected operation" }),
|
|
31436
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { "data-testid": EVENT_DETAILS_HEADING_TEST_ID, sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
|
|
31437
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(AwsServiceIcon, { hideTooltip: true, service: selectedEvent.service_name, size: "small" }),
|
|
31438
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, title: selectedEvent.operation_name, variant: "subtitle1", children: selectedEvent.operation_name }),
|
|
31439
|
+
resource !== "" && resource !== "*" && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: resource, variant: "body2", children: resource }),
|
|
31440
|
+
duration !== void 0 && // A fixed box, so a screenshot can mask the varying value without the mask edge moving.
|
|
31441
|
+
/* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { 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)) })
|
|
31442
|
+
] })
|
|
31443
|
+
] }),
|
|
31431
31444
|
onClose && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.IconButton, { "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_icons_material11.Close, {}) })
|
|
31432
31445
|
]
|
|
31433
31446
|
}
|
|
@@ -32693,6 +32706,7 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
|
|
|
32693
32706
|
}
|
|
32694
32707
|
};
|
|
32695
32708
|
}, [spans, selectedSpanId]);
|
|
32709
|
+
const rootResource = root2 ? shortResourceName(root2.resource_name, root2.arn) : "";
|
|
32696
32710
|
return /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(
|
|
32697
32711
|
import_material25.Box,
|
|
32698
32712
|
{
|
|
@@ -32746,9 +32760,11 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
|
|
|
32746
32760
|
),
|
|
32747
32761
|
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { sx: { alignItems: "center", borderBottom: 1, borderColor: "divider", display: "flex", gap: 1.5, px: 2, py: 1 }, children: [
|
|
32748
32762
|
/* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
32749
|
-
|
|
32763
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: "Trace root" }),
|
|
32764
|
+
root2 && /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { "data-testid": TRACE_SIDEBAR_ROOT_HEADING_TEST_ID, sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
|
|
32750
32765
|
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(AwsServiceIcon, { hideTooltip: true, service: root2.service_name, size: "small" }),
|
|
32751
|
-
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { noWrap: true, sx: { fontWeight: 600 }, title: root2.operation_name, variant: "subtitle1", children: root2.operation_name })
|
|
32766
|
+
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, title: root2.operation_name, variant: "subtitle1", children: root2.operation_name }),
|
|
32767
|
+
rootResource !== "" && rootResource !== "*" && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: rootResource, variant: "body2", children: rootResource })
|
|
32752
32768
|
] }),
|
|
32753
32769
|
/* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { color: "text.secondary", variant: "caption", children: [
|
|
32754
32770
|
formatDuration(stats.durationMs),
|