@localstack/appinspector-ui 1.0.118 → 1.0.120

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
@@ -15336,7 +15336,7 @@ var SpansDataGrid = ({
15336
15336
  size: "small",
15337
15337
  sx: { px: 1 },
15338
15338
  variant: "text",
15339
- children: "View Details"
15339
+ children: "View Graph"
15340
15340
  }
15341
15341
  )
15342
15342
  ] });
@@ -30687,7 +30687,7 @@ var EventDetails = ({ onClose, selectedEvent }) => {
30687
30687
  );
30688
30688
  const [parseNestedJson, setParseNestedJson] = (0, import_react59.useState)(true);
30689
30689
  if (!selectedEvent) {
30690
- return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material18.Box, { sx: { p: 3, textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material18.Typography, { color: "text.secondary", variant: "body2", children: "Select an event to view details" }) });
30690
+ return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material18.Box, { sx: { p: 3, textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material18.Typography, { color: "text.secondary", variant: "body2", children: "Select an operation to view graph" }) });
30691
30691
  }
30692
30692
  const isLambdaInvoke = checkIsLambdaInvoke(selectedEvent);
30693
30693
  const isSqsSendMessage = checkIsSqsSendMessage(selectedEvent);
@@ -31506,6 +31506,27 @@ var SpansListPage = () => {
31506
31506
  clearFetchError();
31507
31507
  void checkStatus();
31508
31508
  }, [api, checkStatus, clearFetchError]);
31509
+ const isDelayedRefetchRef = (0, import_react68.useRef)(false);
31510
+ const delayedRefetchTimerRef = (0, import_react68.useRef)();
31511
+ const prevFetchingForwardRef = (0, import_react68.useRef)(false);
31512
+ (0, import_react68.useEffect)(() => {
31513
+ const wasFetching = prevFetchingForwardRef.current;
31514
+ prevFetchingForwardRef.current = fetchingForward;
31515
+ if (wasFetching && !fetchingForward) {
31516
+ if (isDelayedRefetchRef.current) {
31517
+ isDelayedRefetchRef.current = false;
31518
+ } else {
31519
+ clearTimeout(delayedRefetchTimerRef.current);
31520
+ delayedRefetchTimerRef.current = setTimeout(() => {
31521
+ isDelayedRefetchRef.current = true;
31522
+ fetchForward();
31523
+ }, 2e3);
31524
+ }
31525
+ }
31526
+ return () => {
31527
+ clearTimeout(delayedRefetchTimerRef.current);
31528
+ };
31529
+ }, [fetchingForward, fetchForward]);
31509
31530
  const shouldShowStatusMessage = Boolean(statusError) || status?.status === "DISABLED";
31510
31531
  return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, { children: [
31511
31532
  /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(