@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.cjs +31 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +31 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -15547,9 +15547,12 @@ var fmtLimit = (value) => {
|
|
|
15547
15547
|
if (value === "unlimited") return "Unlimited";
|
|
15548
15548
|
return fmt(value);
|
|
15549
15549
|
};
|
|
15550
|
-
var StatRow = ({ label, value }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material6.Box, { sx: { alignItems: "baseline", display: "flex", justifyContent: "space-between", minWidth: 220 }, children: [
|
|
15550
|
+
var StatRow = ({ label, unit, value }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material6.Box, { sx: { alignItems: "baseline", display: "flex", justifyContent: "space-between", minWidth: 220 }, children: [
|
|
15551
15551
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", sx: { mr: 4 }, variant: "caption", children: label }),
|
|
15552
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.
|
|
15552
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material6.Box, { sx: { alignItems: "baseline", display: "flex", gap: 0.5 }, children: [
|
|
15553
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { fontWeight: 600, variant: "body2", children: fmtLimit(value) }),
|
|
15554
|
+
value !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", variant: "caption", children: value === 1 ? unit : `${unit}s` })
|
|
15555
|
+
] })
|
|
15553
15556
|
] });
|
|
15554
15557
|
var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) => {
|
|
15555
15558
|
const [anchorElement, setAnchorElement] = (0, import_react36.useState)();
|
|
@@ -15566,12 +15569,12 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
|
|
|
15566
15569
|
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Skeleton, { sx: { minWidth: 120 } }) : /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material6.Box, { sx: { alignItems: "baseline", display: "flex", gap: 0.5 }, children: [
|
|
15567
15570
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", variant: "caption", children: "Showing" }),
|
|
15568
15571
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { variant: "body2", children: visibleCount === void 0 ? "\u2014" : fmt(visibleCount) }),
|
|
15569
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", variant: "caption", children: "
|
|
15572
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", variant: "caption", children: visibleCount === 1 ? "request" : "requests" })
|
|
15570
15573
|
] }),
|
|
15571
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Tooltip, { title: "
|
|
15574
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Tooltip, { title: "Count details", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
15572
15575
|
import_material6.IconButton,
|
|
15573
15576
|
{
|
|
15574
|
-
"aria-describedby": isOpen ? "
|
|
15577
|
+
"aria-describedby": isOpen ? "count-popover" : void 0,
|
|
15575
15578
|
onClick: (event) => {
|
|
15576
15579
|
setAnchorElement(isOpen ? void 0 : event.currentTarget);
|
|
15577
15580
|
},
|
|
@@ -15585,7 +15588,7 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
|
|
|
15585
15588
|
{
|
|
15586
15589
|
anchorEl: anchorElement,
|
|
15587
15590
|
anchorOrigin: { horizontal: "right", vertical: "bottom" },
|
|
15588
|
-
id: "
|
|
15591
|
+
id: "count-popover",
|
|
15589
15592
|
onClose: () => {
|
|
15590
15593
|
setAnchorElement(void 0);
|
|
15591
15594
|
},
|
|
@@ -15593,14 +15596,25 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
|
|
|
15593
15596
|
transformOrigin: { horizontal: "right", vertical: "top" },
|
|
15594
15597
|
children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material6.Box, { sx: { minWidth: 240, p: 2 }, children: [
|
|
15595
15598
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { fontWeight: 700, variant: "body2", children: "Storage" }),
|
|
15596
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", sx: { mt: 0.25 }, variant: "caption", children: "
|
|
15597
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.
|
|
15598
|
-
|
|
15599
|
-
|
|
15600
|
-
|
|
15601
|
-
|
|
15602
|
-
|
|
15603
|
-
|
|
15599
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", sx: { mt: 0.25 }, variant: "caption", children: "Each request groups the operations it caused. Limits count operations." }),
|
|
15600
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material6.Box, { sx: { display: "flex", flexDirection: "column", gap: 0.75, mt: 1.5 }, children: [
|
|
15601
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
15602
|
+
StatRow,
|
|
15603
|
+
{
|
|
15604
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Tooltip, { placement: "left", title: "The number of requests currently listed.", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Box, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "Requests shown" }) }),
|
|
15605
|
+
unit: "request",
|
|
15606
|
+
value: visibleCount
|
|
15607
|
+
}
|
|
15608
|
+
),
|
|
15609
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
15610
|
+
StatRow,
|
|
15611
|
+
{
|
|
15612
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Tooltip, { placement: "left", title: "The number of operations stored, including the downstream operations of each request.", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Box, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "Operations stored" }) }),
|
|
15613
|
+
unit: "op",
|
|
15614
|
+
value: totalCount
|
|
15615
|
+
}
|
|
15616
|
+
)
|
|
15617
|
+
] }),
|
|
15604
15618
|
(systemLimitReached || licenseLimit !== void 0 && licenseLimit !== "unlimited") && /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_jsx_runtime126.Fragment, { children: [
|
|
15605
15619
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Divider, { sx: { my: 1.5 } }),
|
|
15606
15620
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { color: "text.secondary", fontWeight: 600, variant: "caption", children: "Limits" }),
|
|
@@ -15610,6 +15624,7 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
|
|
|
15610
15624
|
StatRow,
|
|
15611
15625
|
{
|
|
15612
15626
|
label: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Tooltip, { placement: "left", title: "The maximum number of operations allowed by your current license.", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Box, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "License limit" }) }),
|
|
15627
|
+
unit: "op",
|
|
15613
15628
|
value: licenseLimit
|
|
15614
15629
|
}
|
|
15615
15630
|
),
|
|
@@ -15617,6 +15632,7 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
|
|
|
15617
15632
|
StatRow,
|
|
15618
15633
|
{
|
|
15619
15634
|
label: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Tooltip, { placement: "left", title: "The maximum number of operations that can be stored in the system.", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Box, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "System limit" }) }),
|
|
15635
|
+
unit: "op",
|
|
15620
15636
|
value: systemLimit
|
|
15621
15637
|
}
|
|
15622
15638
|
)
|
|
@@ -16197,7 +16213,7 @@ var SpansDataGrid = ({
|
|
|
16197
16213
|
{
|
|
16198
16214
|
licenseLimit,
|
|
16199
16215
|
systemLimit,
|
|
16200
|
-
totalCount
|
|
16216
|
+
totalCount,
|
|
16201
16217
|
visibleCount: spans?.length
|
|
16202
16218
|
}
|
|
16203
16219
|
),
|