@localstack/appinspector-ui 1.0.91 → 1.0.92

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 CHANGED
@@ -10223,6 +10223,7 @@ var EVENT_DETAILS_REQUEST_PAYLOAD = "event-details-request-payload";
10223
10223
  var EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID = "event-details-response-payload";
10224
10224
  var EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID = "event-details-exception-payload";
10225
10225
  var EVENT_DETAILS_IAM_ERRORS_SUPPRESSED_TEST_ID = "event-details-iam-errors-suppressed";
10226
+ var IAM_ERROR_COUNT_TEST_ID = "iam-error-count";
10226
10227
  var SERVICE_NODE_TEST_ID = "service-node";
10227
10228
  var SERVICE_NODE_SERVICE_NAME_TEST_ID = "service-node-service-name";
10228
10229
  var SERVICE_NODE_OPERATION_NAME_TEST_ID = "service-node-operation-name";
@@ -12903,6 +12904,7 @@ var SpansDataGrid = ({
12903
12904
  fetchingForward,
12904
12905
  hasMoreBackward,
12905
12906
  hasMoreForward,
12907
+ iamErrorCount,
12906
12908
  licenseLimit,
12907
12909
  onClearSpans,
12908
12910
  onFetchBackward,
@@ -12999,6 +13001,24 @@ var SpansDataGrid = ({
12999
13001
  return /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_jsx_runtime126.Fragment, { children: [
13000
13002
  /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material5.Grid, { item: true, xs: 12, children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material5.Box, { sx: { alignItems: "center", display: "flex", gap: "0.5rem" }, children: [
13001
13003
  /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(SpanCountBadge, { licenseLimit, systemLimit, totalCount, visibleCount: spans?.length }),
13004
+ iamErrorCount !== void 0 && iamErrorCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_jsx_runtime126.Fragment, { children: [
13005
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material5.Typography, { color: "text.disabled", sx: { mr: 0.5 }, variant: "body2", children: "\u2014" }),
13006
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material5.Tooltip, { title: "Number of IAM permission errors detected across all operations", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(
13007
+ import_material5.Box,
13008
+ {
13009
+ "data-testid": IAM_ERROR_COUNT_TEST_ID,
13010
+ sx: { alignItems: "center", borderBottom: "1px dotted", borderColor: "error.main", cursor: "default", display: "flex", gap: 0.5, mb: "-1px" },
13011
+ children: [
13012
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material5.Typography, { color: "error", variant: "body2", children: iamErrorCount.toLocaleString() }),
13013
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material5.Typography, { color: "error", variant: "caption", children: [
13014
+ "IAM",
13015
+ " ",
13016
+ iamErrorCount === 1 ? "error" : "errors"
13017
+ ] })
13018
+ ]
13019
+ }
13020
+ ) })
13021
+ ] }),
13002
13022
  /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material5.Box, { sx: { flexGrow: 1 } }),
13003
13023
  /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
13004
13024
  import_material5.FormControlLabel,
@@ -13130,6 +13150,7 @@ var SpansList = (props) => {
13130
13150
  fetchingForward: props.fetchingForward,
13131
13151
  hasMoreBackward: props.hasMoreBackward,
13132
13152
  hasMoreForward: props.hasMoreForward,
13153
+ iamErrorCount: props.iamErrorCount,
13133
13154
  licenseLimit: props.licenseLimit,
13134
13155
  onClearSpans: props.onClearSpans,
13135
13156
  onFetchBackward: props.onFetchBackward,
@@ -14109,6 +14130,7 @@ var useSpans = () => {
14109
14130
  setTotalCount(response.pagination.total_count);
14110
14131
  setLicenseLimit(response.limits.span_count_limit_license);
14111
14132
  setSystemLimit(response.limits.span_count_limit_system);
14133
+ setIamErrorCount(response.iam_error_count);
14112
14134
  return {
14113
14135
  hasMoreBackward: response.pagination.has_prev,
14114
14136
  hasMoreForward: response.pagination.has_next,
@@ -14140,6 +14162,7 @@ var useSpans = () => {
14140
14162
  const [totalCount, setTotalCount] = (0, import_react50.useState)();
14141
14163
  const [licenseLimit, setLicenseLimit] = (0, import_react50.useState)();
14142
14164
  const [systemLimit, setSystemLimit] = (0, import_react50.useState)();
14165
+ const [iamErrorCount, setIamErrorCount] = (0, import_react50.useState)();
14143
14166
  const [hasMoreBackward, setHasMoreBackward] = (0, import_react50.useState)();
14144
14167
  const [hasMoreForward, setHasMoreForward] = (0, import_react50.useState)();
14145
14168
  const fetchForward = (0, import_react50.useCallback)(() => {
@@ -14204,6 +14227,7 @@ var useSpans = () => {
14204
14227
  fetchingForward,
14205
14228
  hasMoreBackward,
14206
14229
  hasMoreForward,
14230
+ iamErrorCount,
14207
14231
  licenseLimit,
14208
14232
  spans: throttledSpans.items,
14209
14233
  status,
@@ -27320,6 +27344,7 @@ var SpansListPage = () => {
27320
27344
  fetchingForward,
27321
27345
  hasMoreBackward,
27322
27346
  hasMoreForward,
27347
+ iamErrorCount,
27323
27348
  licenseLimit,
27324
27349
  spans,
27325
27350
  status,
@@ -27380,6 +27405,7 @@ var SpansListPage = () => {
27380
27405
  fetchingForward,
27381
27406
  hasMoreBackward,
27382
27407
  hasMoreForward,
27408
+ iamErrorCount,
27383
27409
  licenseLimit,
27384
27410
  onClearSpans: clearSpansSync,
27385
27411
  onFetchBackward: fetchBackward,