@localstack/appinspector-ui 1.0.221 → 1.0.222
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 +38 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +38 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -31775,8 +31775,8 @@ var OPTIONAL_TABS = ["logs", "permissions", "response"];
|
|
|
31775
31775
|
var getOptionalTabs = (span, eventGroups) => ({
|
|
31776
31776
|
logs: checkIsLambdaInvoke(span) && typeof span.attributes?.["localstack.request_id"] === "string",
|
|
31777
31777
|
permissions: span.iam_errors_suppressed === true || eventGroups.permissions !== void 0,
|
|
31778
|
-
// A failed call
|
|
31779
|
-
response: span.attributes?.["localstack.aws.service.response_suppressed"] === true || tryParseJson(span.attributes?.["localstack.aws.service.response"]) !== void 0
|
|
31778
|
+
// A failed call shows its error here, even with no response payload.
|
|
31779
|
+
response: getSpanIssues(span).error || span.attributes?.["localstack.aws.service.response_suppressed"] === true || tryParseJson(span.attributes?.["localstack.aws.service.response"]) !== void 0
|
|
31780
31780
|
});
|
|
31781
31781
|
var Field = ({ children, copy, label, testId, testIdOn = "value" }) => /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Box, { children: [
|
|
31782
31782
|
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: label }),
|
|
@@ -31915,9 +31915,9 @@ var EventDetails = ({ onClose, onOperationShown, requestedTab, selectedEvent })
|
|
|
31915
31915
|
value: activeTab,
|
|
31916
31916
|
variant: "scrollable",
|
|
31917
31917
|
children: [
|
|
31918
|
-
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Tab, { "data-testid": DETAIL_TAB_DETAILS_TEST_ID,
|
|
31918
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Tab, { "data-testid": DETAIL_TAB_DETAILS_TEST_ID, label: "Details", value: "details" }),
|
|
31919
31919
|
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Tab, { "data-testid": DETAIL_TAB_REQUEST_TEST_ID, label: "Payload", value: "payload" }),
|
|
31920
|
-
showResponse && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Tab, { "data-testid": DETAIL_TAB_RESPONSE_TEST_ID, label: "Response", value: "response" }),
|
|
31920
|
+
showResponse && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Tab, { "data-testid": DETAIL_TAB_RESPONSE_TEST_ID, icon: showError ? /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_icons_material11.Cancel, { color: "error", sx: { fontSize: 16 } }) : void 0, iconPosition: "end", label: "Response", value: "response" }),
|
|
31921
31921
|
showPermissions && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Tab, { "data-testid": DETAIL_TAB_PERMISSIONS_TEST_ID, icon: permissionsIcon, iconPosition: "end", label: "Permissions", value: "permissions" }),
|
|
31922
31922
|
showLogs && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Tab, { "data-testid": DETAIL_TAB_LOGS_TEST_ID, label: "Logs", value: "logs" }),
|
|
31923
31923
|
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Tab, { "data-testid": DETAIL_TAB_ADVANCED_TEST_ID, label: "Advanced", value: "advanced" })
|
|
@@ -31926,35 +31926,6 @@ var EventDetails = ({ onClose, onOperationShown, requestedTab, selectedEvent })
|
|
|
31926
31926
|
),
|
|
31927
31927
|
/* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Box, { sx: { p: 2 }, children: [
|
|
31928
31928
|
activeTab === "details" && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Stack, { spacing: 2, children: [
|
|
31929
|
-
showError && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Stack, { spacing: 2, sx: ERROR_BOX_SX, children: [
|
|
31930
|
-
/* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Stack, { spacing: 1, children: [
|
|
31931
|
-
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Field, { label: "Type", children: errorType }),
|
|
31932
|
-
errorMessages.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Field, { label: "Message", children: errorMessages.join(" \xB7 ") }),
|
|
31933
|
-
functionError && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Box, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
|
|
31934
|
-
functionError.requestId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Field, { label: "Request ID", children: functionError.requestId }),
|
|
31935
|
-
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Field, { label: "Function Error", testId: EVENT_DETAILS_FUNCTION_ERROR_TEST_ID, children: functionError.functionError })
|
|
31936
|
-
] })
|
|
31937
|
-
] }),
|
|
31938
|
-
functionError?.stackTrace !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Box, { children: [
|
|
31939
|
-
/* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
|
|
31940
|
-
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Stack Trace" }),
|
|
31941
|
-
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(CopyButton, { value: functionError.stackTrace })
|
|
31942
|
-
] }),
|
|
31943
|
-
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
|
|
31944
|
-
import_material21.Box,
|
|
31945
|
-
{
|
|
31946
|
-
component: "pre",
|
|
31947
|
-
"data-testid": EVENT_DETAILS_STACK_TRACE_TEST_ID,
|
|
31948
|
-
sx: { backgroundColor: "background.default", borderRadius: 1, fontFamily: "monospace", fontSize: 12, m: 0, overflow: "auto", p: 1 },
|
|
31949
|
-
children: functionError.stackTrace
|
|
31950
|
-
}
|
|
31951
|
-
)
|
|
31952
|
-
] }),
|
|
31953
|
-
exceptionPayload !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Box, { children: [
|
|
31954
|
-
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Typography, { sx: { fontWeight: 600, mb: 0.5 }, variant: "caption", children: "Exception" }),
|
|
31955
|
-
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(PayloadViewer, { testId: EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID, value: exceptionPayload })
|
|
31956
|
-
] })
|
|
31957
|
-
] }),
|
|
31958
31929
|
/* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Stack, { "data-testid": EVENT_DETAILS_SECTION_BASIC_INFORMATION_TEST_ID, spacing: 1, children: [
|
|
31959
31930
|
/* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Box, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
|
|
31960
31931
|
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Field, { copy: getServiceDisplayName(selectedEvent.service_name), label: "Service", testId: EVENT_DETAILS_SERVICE_NAME_TEST_ID, children: getServiceDisplayName(selectedEvent.service_name) }),
|
|
@@ -31994,9 +31965,40 @@ var EventDetails = ({ onClose, onOperationShown, requestedTab, selectedEvent })
|
|
|
31994
31965
|
rawDataSwitch,
|
|
31995
31966
|
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(PayloadViewer, { testId: EVENT_DETAILS_REQUEST_PAYLOAD, value: requestPayload })
|
|
31996
31967
|
] })),
|
|
31997
|
-
activeTab === "response" && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(
|
|
31998
|
-
|
|
31999
|
-
|
|
31968
|
+
activeTab === "response" && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Stack, { spacing: 2, children: [
|
|
31969
|
+
showError && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Stack, { spacing: 2, sx: ERROR_BOX_SX, children: [
|
|
31970
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Stack, { spacing: 1, children: [
|
|
31971
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Field, { label: "Type", children: errorType }),
|
|
31972
|
+
errorMessages.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Field, { label: "Message", children: errorMessages.join(" \xB7 ") }),
|
|
31973
|
+
functionError && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Box, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
|
|
31974
|
+
functionError.requestId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Field, { label: "Request ID", children: functionError.requestId }),
|
|
31975
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Field, { label: "Function Error", testId: EVENT_DETAILS_FUNCTION_ERROR_TEST_ID, children: functionError.functionError })
|
|
31976
|
+
] })
|
|
31977
|
+
] }),
|
|
31978
|
+
functionError?.stackTrace !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Box, { children: [
|
|
31979
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
|
|
31980
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Stack Trace" }),
|
|
31981
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(CopyButton, { value: functionError.stackTrace })
|
|
31982
|
+
] }),
|
|
31983
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
|
|
31984
|
+
import_material21.Box,
|
|
31985
|
+
{
|
|
31986
|
+
component: "pre",
|
|
31987
|
+
"data-testid": EVENT_DETAILS_STACK_TRACE_TEST_ID,
|
|
31988
|
+
sx: { backgroundColor: "background.default", borderRadius: 1, fontFamily: "monospace", fontSize: 12, m: 0, overflow: "auto", p: 1 },
|
|
31989
|
+
children: functionError.stackTrace
|
|
31990
|
+
}
|
|
31991
|
+
)
|
|
31992
|
+
] }),
|
|
31993
|
+
exceptionPayload !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Box, { children: [
|
|
31994
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Typography, { sx: { fontWeight: 600, mb: 0.5 }, variant: "caption", children: "Exception" }),
|
|
31995
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(PayloadViewer, { testId: EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID, value: exceptionPayload })
|
|
31996
|
+
] })
|
|
31997
|
+
] }),
|
|
31998
|
+
(isResponseSuppressed || responsePayload !== void 0) && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material21.Box, { children: [
|
|
31999
|
+
rawDataSwitch,
|
|
32000
|
+
isResponseSuppressed ? /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Alert, { severity: "warning", children: "Response payload is available \u2014 upgrade your license to view" }) : /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
|
|
32001
|
+
] })
|
|
32000
32002
|
] }),
|
|
32001
32003
|
activeTab === "permissions" && /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_jsx_runtime145.Fragment, { children: [
|
|
32002
32004
|
selectedEvent.iam_errors_suppressed && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material21.Alert, { "data-testid": EVENT_DETAILS_IAM_ERRORS_SUPPRESSED_TEST_ID, severity: "warning", sx: { mb: 1 }, children: "IAM errors are suppressed \u2014 upgrade your license to view" }),
|