@localstack/appinspector-ui 1.0.107 → 1.0.108

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
@@ -2484,7 +2484,8 @@ var EVENT_DETAILS_REQUEST_PAYLOAD = "event-details-request-payload";
2484
2484
  var EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID = "event-details-response-payload";
2485
2485
  var EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID = "event-details-exception-payload";
2486
2486
  var EVENT_DETAILS_IAM_ERRORS_SUPPRESSED_TEST_ID = "event-details-iam-errors-suppressed";
2487
- var IAM_ERROR_COUNT_TEST_ID = "iam-error-count";
2487
+ var ERROR_COUNT_TEST_ID = "error-count";
2488
+ var WARNING_COUNT_TEST_ID = "warning-count";
2488
2489
  var SERVICE_NODE_TEST_ID = "service-node";
2489
2490
  var SERVICE_NODE_SERVICE_NAME_TEST_ID = "service-node-service-name";
2490
2491
  var SERVICE_NODE_OPERATION_NAME_TEST_ID = "service-node-operation-name";
@@ -14932,11 +14933,11 @@ var SpansDataGridRow = (0, import_react42.memo)(
14932
14933
  );
14933
14934
  var SpansDataGrid = ({
14934
14935
  clearingSpans,
14936
+ errorCount,
14935
14937
  fetchingBackward,
14936
14938
  fetchingForward,
14937
14939
  hasMoreBackward,
14938
14940
  hasMoreForward,
14939
- iamErrorCount,
14940
14941
  licenseLimit,
14941
14942
  onClearSpans,
14942
14943
  onFetchBackward,
@@ -14948,7 +14949,8 @@ var SpansDataGrid = ({
14948
14949
  spans,
14949
14950
  streamPaused,
14950
14951
  systemLimit,
14951
- totalCount
14952
+ totalCount,
14953
+ warningCount
14952
14954
  }) => {
14953
14955
  const columns = (0, import_react42.useMemo)(() => [
14954
14956
  columnHelper.accessor("startTime", {
@@ -15055,20 +15057,30 @@ var SpansDataGrid = ({
15055
15057
  return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
15056
15058
  /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material6.Grid, { item: true, xs: 12, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_material6.Box, { sx: { alignItems: "center", display: "flex", gap: "0.5rem" }, children: [
15057
15059
  /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(SpanCountBadge, { licenseLimit, systemLimit, totalCount, visibleCount: spans?.length }),
15058
- iamErrorCount !== void 0 && iamErrorCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
15060
+ errorCount !== void 0 && errorCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
15059
15061
  /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material6.Typography, { color: "text.disabled", sx: { mr: 0.5 }, variant: "body2", children: "\u2014" }),
15060
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material6.Tooltip, { title: "Number of IAM permission errors detected across all operations", children: /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(
15062
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material6.Tooltip, { title: "Number of errors detected across all operations", children: /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(
15061
15063
  import_material6.Box,
15062
15064
  {
15063
- "data-testid": IAM_ERROR_COUNT_TEST_ID,
15065
+ "data-testid": ERROR_COUNT_TEST_ID,
15064
15066
  sx: { alignItems: "center", borderBottom: "1px dotted", borderColor: "error.main", cursor: "default", display: "flex", gap: 0.5, mb: "-1px" },
15065
15067
  children: [
15066
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material6.Typography, { color: "error", variant: "body2", children: iamErrorCount.toLocaleString() }),
15067
- /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_material6.Typography, { color: "error", variant: "caption", children: [
15068
- "IAM",
15069
- " ",
15070
- iamErrorCount === 1 ? "error" : "errors"
15071
- ] })
15068
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material6.Typography, { color: "error", variant: "body2", children: errorCount.toLocaleString() }),
15069
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material6.Typography, { color: "error", variant: "caption", children: errorCount === 1 ? "error" : "errors" })
15070
+ ]
15071
+ }
15072
+ ) })
15073
+ ] }),
15074
+ warningCount !== void 0 && warningCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
15075
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material6.Typography, { color: "text.disabled", sx: { mr: 0.5 }, variant: "body2", children: "\u2014" }),
15076
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material6.Tooltip, { title: "Number of warnings detected across all operations", children: /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(
15077
+ import_material6.Box,
15078
+ {
15079
+ "data-testid": WARNING_COUNT_TEST_ID,
15080
+ sx: { alignItems: "center", borderBottom: "1px dotted", borderColor: "warning.main", cursor: "default", display: "flex", gap: 0.5, mb: "-1px" },
15081
+ children: [
15082
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material6.Typography, { color: "warning.main", variant: "body2", children: warningCount.toLocaleString() }),
15083
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material6.Typography, { color: "warning.main", variant: "caption", children: warningCount === 1 ? "warning" : "warnings" })
15072
15084
  ]
15073
15085
  }
15074
15086
  ) })
@@ -15202,11 +15214,11 @@ var SpansList = (props) => {
15202
15214
  SpansDataGrid,
15203
15215
  {
15204
15216
  clearingSpans: props.clearingSpans,
15217
+ errorCount: props.errorCount,
15205
15218
  fetchingBackward: props.fetchingBackward,
15206
15219
  fetchingForward: props.fetchingForward,
15207
15220
  hasMoreBackward: props.hasMoreBackward,
15208
15221
  hasMoreForward: props.hasMoreForward,
15209
- iamErrorCount: props.iamErrorCount,
15210
15222
  licenseLimit: props.licenseLimit,
15211
15223
  onClearSpans: props.onClearSpans,
15212
15224
  onFetchBackward: props.onFetchBackward,
@@ -15218,7 +15230,8 @@ var SpansList = (props) => {
15218
15230
  spans: props.spans,
15219
15231
  streamPaused: props.streamPaused,
15220
15232
  systemLimit: props.systemLimit,
15221
- totalCount: props.totalCount
15233
+ totalCount: props.totalCount,
15234
+ warningCount: props.warningCount
15222
15235
  }
15223
15236
  )
15224
15237
  ] });
@@ -18151,7 +18164,8 @@ var useSpans = () => {
18151
18164
  setTotalCount(response.pagination.total_count);
18152
18165
  setLicenseLimit(response.limits.span_count_limit_license);
18153
18166
  setSystemLimit(response.limits.span_count_limit_system);
18154
- setIamErrorCount(response.iam_error_count);
18167
+ setErrorCount(response.error_count);
18168
+ setWarningCount(response.warning_count);
18155
18169
  return {
18156
18170
  hasMoreBackward: response.pagination.has_prev,
18157
18171
  hasMoreForward: response.pagination.has_next,
@@ -18183,7 +18197,8 @@ var useSpans = () => {
18183
18197
  const [totalCount, setTotalCount] = (0, import_react52.useState)();
18184
18198
  const [licenseLimit, setLicenseLimit] = (0, import_react52.useState)();
18185
18199
  const [systemLimit, setSystemLimit] = (0, import_react52.useState)();
18186
- const [iamErrorCount, setIamErrorCount] = (0, import_react52.useState)();
18200
+ const [errorCount, setErrorCount] = (0, import_react52.useState)();
18201
+ const [warningCount, setWarningCount] = (0, import_react52.useState)();
18187
18202
  const [hasMoreBackward, setHasMoreBackward] = (0, import_react52.useState)();
18188
18203
  const [hasMoreForward, setHasMoreForward] = (0, import_react52.useState)();
18189
18204
  const fetchForward = (0, import_react52.useCallback)(() => {
@@ -18239,6 +18254,7 @@ var useSpans = () => {
18239
18254
  return {
18240
18255
  clearingSpans,
18241
18256
  clearSpans,
18257
+ errorCount,
18242
18258
  fetchBackward,
18243
18259
  fetchError,
18244
18260
  fetchForward,
@@ -18246,13 +18262,13 @@ var useSpans = () => {
18246
18262
  fetchingForward,
18247
18263
  hasMoreBackward,
18248
18264
  hasMoreForward,
18249
- iamErrorCount,
18250
18265
  licenseLimit,
18251
18266
  spans: throttledSpans.items,
18252
18267
  streamPaused,
18253
18268
  systemLimit,
18254
18269
  toggleStream,
18255
- totalCount
18270
+ totalCount,
18271
+ warningCount
18256
18272
  };
18257
18273
  };
18258
18274
 
@@ -31260,6 +31276,7 @@ var SpansListPage = () => {
31260
31276
  const {
31261
31277
  clearingSpans,
31262
31278
  clearSpans,
31279
+ errorCount,
31263
31280
  fetchBackward,
31264
31281
  fetchError,
31265
31282
  fetchForward,
@@ -31267,13 +31284,13 @@ var SpansListPage = () => {
31267
31284
  fetchingForward,
31268
31285
  hasMoreBackward,
31269
31286
  hasMoreForward,
31270
- iamErrorCount,
31271
31287
  licenseLimit,
31272
31288
  spans,
31273
31289
  streamPaused,
31274
31290
  systemLimit,
31275
31291
  toggleStream,
31276
- totalCount
31292
+ totalCount,
31293
+ warningCount
31277
31294
  } = useSpans();
31278
31295
  const { checking, checkStatus, status, statusError } = useAppInspectorStatus();
31279
31296
  const clearSpansSync = (0, import_react69.useCallback)(() => {
@@ -31338,12 +31355,12 @@ var SpansListPage = () => {
31338
31355
  SpansList,
31339
31356
  {
31340
31357
  clearingSpans,
31358
+ errorCount,
31341
31359
  fetchError,
31342
31360
  fetchingBackward,
31343
31361
  fetchingForward,
31344
31362
  hasMoreBackward,
31345
31363
  hasMoreForward,
31346
- iamErrorCount,
31347
31364
  licenseLimit,
31348
31365
  onClearSpans: clearSpansSync,
31349
31366
  onFetchBackward: fetchBackward,
@@ -31355,7 +31372,8 @@ var SpansListPage = () => {
31355
31372
  spans,
31356
31373
  streamPaused,
31357
31374
  systemLimit,
31358
- totalCount
31375
+ totalCount,
31376
+ warningCount
31359
31377
  }
31360
31378
  )
31361
31379
  ]