@localstack/appinspector-ui 1.0.197 → 1.0.198

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.js CHANGED
@@ -15560,9 +15560,12 @@ var fmtLimit = (value) => {
15560
15560
  if (value === "unlimited") return "Unlimited";
15561
15561
  return fmt(value);
15562
15562
  };
15563
- var StatRow = ({ label, value }) => /* @__PURE__ */ jsxs121(Box4, { sx: { alignItems: "baseline", display: "flex", justifyContent: "space-between", minWidth: 220 }, children: [
15563
+ var StatRow = ({ label, unit, value }) => /* @__PURE__ */ jsxs121(Box4, { sx: { alignItems: "baseline", display: "flex", justifyContent: "space-between", minWidth: 220 }, children: [
15564
15564
  /* @__PURE__ */ jsx126(Typography4, { color: "text.secondary", sx: { mr: 4 }, variant: "caption", children: label }),
15565
- /* @__PURE__ */ jsx126(Typography4, { fontWeight: 600, variant: "body2", children: fmtLimit(value) })
15565
+ /* @__PURE__ */ jsxs121(Box4, { sx: { alignItems: "baseline", display: "flex", gap: 0.5 }, children: [
15566
+ /* @__PURE__ */ jsx126(Typography4, { fontWeight: 600, variant: "body2", children: fmtLimit(value) }),
15567
+ value !== void 0 && /* @__PURE__ */ jsx126(Typography4, { color: "text.secondary", variant: "caption", children: value === 1 ? unit : `${unit}s` })
15568
+ ] })
15566
15569
  ] });
15567
15570
  var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) => {
15568
15571
  const [anchorElement, setAnchorElement] = useState4();
@@ -15579,12 +15582,12 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
15579
15582
  isLoading ? /* @__PURE__ */ jsx126(Skeleton, { sx: { minWidth: 120 } }) : /* @__PURE__ */ jsxs121(Box4, { sx: { alignItems: "baseline", display: "flex", gap: 0.5 }, children: [
15580
15583
  /* @__PURE__ */ jsx126(Typography4, { color: "text.secondary", variant: "caption", children: "Showing" }),
15581
15584
  /* @__PURE__ */ jsx126(Typography4, { variant: "body2", children: visibleCount === void 0 ? "\u2014" : fmt(visibleCount) }),
15582
- /* @__PURE__ */ jsx126(Typography4, { color: "text.secondary", variant: "caption", children: "operations" })
15585
+ /* @__PURE__ */ jsx126(Typography4, { color: "text.secondary", variant: "caption", children: visibleCount === 1 ? "request" : "requests" })
15583
15586
  ] }),
15584
- /* @__PURE__ */ jsx126(Tooltip4, { title: "Operation count details", children: /* @__PURE__ */ jsx126(
15587
+ /* @__PURE__ */ jsx126(Tooltip4, { title: "Count details", children: /* @__PURE__ */ jsx126(
15585
15588
  IconButton,
15586
15589
  {
15587
- "aria-describedby": isOpen ? "operation-count-popover" : void 0,
15590
+ "aria-describedby": isOpen ? "count-popover" : void 0,
15588
15591
  onClick: (event) => {
15589
15592
  setAnchorElement(isOpen ? void 0 : event.currentTarget);
15590
15593
  },
@@ -15598,7 +15601,7 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
15598
15601
  {
15599
15602
  anchorEl: anchorElement,
15600
15603
  anchorOrigin: { horizontal: "right", vertical: "bottom" },
15601
- id: "operation-count-popover",
15604
+ id: "count-popover",
15602
15605
  onClose: () => {
15603
15606
  setAnchorElement(void 0);
15604
15607
  },
@@ -15606,14 +15609,25 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
15606
15609
  transformOrigin: { horizontal: "right", vertical: "top" },
15607
15610
  children: /* @__PURE__ */ jsxs121(Box4, { sx: { minWidth: 240, p: 2 }, children: [
15608
15611
  /* @__PURE__ */ jsx126(Typography4, { fontWeight: 700, variant: "body2", children: "Storage" }),
15609
- /* @__PURE__ */ jsx126(Typography4, { color: "text.secondary", sx: { mt: 0.25 }, variant: "caption", children: "How many operations are currently stored." }),
15610
- /* @__PURE__ */ jsx126(Box4, { sx: { display: "flex", flexDirection: "column", gap: 0.75, mt: 1.5 }, children: /* @__PURE__ */ jsx126(
15611
- StatRow,
15612
- {
15613
- label: /* @__PURE__ */ jsx126(Tooltip4, { placement: "left", title: "The number of operations currently loaded in the UI.", children: /* @__PURE__ */ jsx126(Box4, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "Currently visible" }) }),
15614
- value: visibleCount
15615
- }
15616
- ) }),
15612
+ /* @__PURE__ */ jsx126(Typography4, { color: "text.secondary", sx: { mt: 0.25 }, variant: "caption", children: "Each request groups the operations it caused. Limits count operations." }),
15613
+ /* @__PURE__ */ jsxs121(Box4, { sx: { display: "flex", flexDirection: "column", gap: 0.75, mt: 1.5 }, children: [
15614
+ /* @__PURE__ */ jsx126(
15615
+ StatRow,
15616
+ {
15617
+ label: /* @__PURE__ */ jsx126(Tooltip4, { placement: "left", title: "The number of requests currently listed.", children: /* @__PURE__ */ jsx126(Box4, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "Requests shown" }) }),
15618
+ unit: "request",
15619
+ value: visibleCount
15620
+ }
15621
+ ),
15622
+ /* @__PURE__ */ jsx126(
15623
+ StatRow,
15624
+ {
15625
+ label: /* @__PURE__ */ jsx126(Tooltip4, { placement: "left", title: "The number of operations stored, including the downstream operations of each request.", children: /* @__PURE__ */ jsx126(Box4, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "Operations stored" }) }),
15626
+ unit: "op",
15627
+ value: totalCount
15628
+ }
15629
+ )
15630
+ ] }),
15617
15631
  (systemLimitReached || licenseLimit !== void 0 && licenseLimit !== "unlimited") && /* @__PURE__ */ jsxs121(Fragment3, { children: [
15618
15632
  /* @__PURE__ */ jsx126(Divider2, { sx: { my: 1.5 } }),
15619
15633
  /* @__PURE__ */ jsx126(Typography4, { color: "text.secondary", fontWeight: 600, variant: "caption", children: "Limits" }),
@@ -15623,6 +15637,7 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
15623
15637
  StatRow,
15624
15638
  {
15625
15639
  label: /* @__PURE__ */ jsx126(Tooltip4, { placement: "left", title: "The maximum number of operations allowed by your current license.", children: /* @__PURE__ */ jsx126(Box4, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "License limit" }) }),
15640
+ unit: "op",
15626
15641
  value: licenseLimit
15627
15642
  }
15628
15643
  ),
@@ -15630,6 +15645,7 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
15630
15645
  StatRow,
15631
15646
  {
15632
15647
  label: /* @__PURE__ */ jsx126(Tooltip4, { placement: "left", title: "The maximum number of operations that can be stored in the system.", children: /* @__PURE__ */ jsx126(Box4, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "System limit" }) }),
15648
+ unit: "op",
15633
15649
  value: systemLimit
15634
15650
  }
15635
15651
  )
@@ -16223,7 +16239,7 @@ var SpansDataGrid = ({
16223
16239
  {
16224
16240
  licenseLimit,
16225
16241
  systemLimit,
16226
- totalCount: compute.queryActive ? spans?.length : totalCount,
16242
+ totalCount,
16227
16243
  visibleCount: spans?.length
16228
16244
  }
16229
16245
  ),