@localstack/appinspector-ui 1.0.202 → 1.0.204
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 +43 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +43 -30
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -13233,13 +13233,13 @@ function determinePermissionStatus(payload) {
|
|
|
13233
13233
|
function formatPermissionStatus(status) {
|
|
13234
13234
|
switch (status) {
|
|
13235
13235
|
case "explicitly_allowed": {
|
|
13236
|
-
return "
|
|
13236
|
+
return "Allowed";
|
|
13237
13237
|
}
|
|
13238
13238
|
case "explicitly_denied": {
|
|
13239
13239
|
return "Explicitly Denied";
|
|
13240
13240
|
}
|
|
13241
13241
|
case "implicitly_denied": {
|
|
13242
|
-
return "
|
|
13242
|
+
return "Not Allowed";
|
|
13243
13243
|
}
|
|
13244
13244
|
}
|
|
13245
13245
|
}
|
|
@@ -13440,25 +13440,29 @@ var TotalsTooltip = ({ children, ...props }) => {
|
|
|
13440
13440
|
}
|
|
13441
13441
|
);
|
|
13442
13442
|
};
|
|
13443
|
-
var
|
|
13444
|
-
const { count: count2
|
|
13445
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TotalsTooltip, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
13446
|
-
|
|
13447
|
-
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
|
|
13455
|
-
|
|
13456
|
-
|
|
13457
|
-
|
|
13458
|
-
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
|
|
13443
|
+
var RequestOpsCell = (props) => {
|
|
13444
|
+
const { count: count2 } = getTotals(props);
|
|
13445
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TotalsTooltip, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
13446
|
+
import_material2.Typography,
|
|
13447
|
+
{
|
|
13448
|
+
"data-testid": OPERATION_COUNT_CELL_TEST_ID,
|
|
13449
|
+
sx: { cursor: "default", whiteSpace: "nowrap" },
|
|
13450
|
+
variant: "body2",
|
|
13451
|
+
children: [
|
|
13452
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AnimatedCount, { value: count2 }),
|
|
13453
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material2.Box, { color: "text.secondary", component: "span", children: count2 === 1 ? " op" : " ops" })
|
|
13454
|
+
]
|
|
13455
|
+
}
|
|
13456
|
+
) });
|
|
13457
|
+
};
|
|
13458
|
+
var RequestIssuesCell = (props) => {
|
|
13459
|
+
const { errors, warnings } = getTotals(props);
|
|
13460
|
+
if (errors === 0 && warnings === 0) {
|
|
13461
|
+
return null;
|
|
13462
|
+
}
|
|
13463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TotalsTooltip, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material2.Box, { "data-testid": ISSUES_CELL_TEST_ID, sx: { alignItems: "center", cursor: "default", display: "inline-flex", gap: 0.5 }, children: [
|
|
13464
|
+
errors > 0 && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(IssueChip, { color: "error", count: errors, icon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_icons_material.Cancel, { sx: { fontSize: 12 } }), label: "Errors" }),
|
|
13465
|
+
warnings > 0 && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(IssueChip, { color: "warning", count: warnings, icon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_icons_material.GppMaybe, { sx: { fontSize: 12 } }), label: "Warnings" })
|
|
13462
13466
|
] }) });
|
|
13463
13467
|
};
|
|
13464
13468
|
|
|
@@ -15931,6 +15935,8 @@ var newSpanBackgroundColor = {
|
|
|
15931
15935
|
dark: { from: "rgba(255, 193, 7, 0.14)", to: "rgba(255, 193, 7, 0)" },
|
|
15932
15936
|
light: { from: "rgba(255, 213, 79, 0.45)", to: "rgba(255, 213, 79, 0)" }
|
|
15933
15937
|
};
|
|
15938
|
+
var REQUEST_OPS_COLUMN_ID = "requestOps";
|
|
15939
|
+
var REQUEST_ISSUES_COLUMN_ID = "requestIssues";
|
|
15934
15940
|
var LABEL_BEGINNING_OF_STREAM = "This is the beginning of the stream";
|
|
15935
15941
|
var LABEL_END_OF_STREAM = "This is the end of the stream";
|
|
15936
15942
|
var LABEL_NO_SPANS = "There are no operations";
|
|
@@ -16007,10 +16013,12 @@ var SpansDataGridRow = (0, import_react39.memo)(
|
|
|
16007
16013
|
return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
16008
16014
|
import_material7.TableCell,
|
|
16009
16015
|
{
|
|
16010
|
-
sx: {
|
|
16016
|
+
sx: cell.column.id === REQUEST_OPS_COLUMN_ID ? { height: 48, width: "1%" } : {
|
|
16011
16017
|
height: 48,
|
|
16012
16018
|
maxWidth: `${cell.column.getSize().toString()}px`,
|
|
16013
|
-
minWidth: `${cell.column.getSize().toString()}px
|
|
16019
|
+
minWidth: `${cell.column.getSize().toString()}px`,
|
|
16020
|
+
// The issues column has no header cell of its own to carry its width.
|
|
16021
|
+
width: `${cell.column.getSize().toString()}px`
|
|
16014
16022
|
},
|
|
16015
16023
|
children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
16016
16024
|
import_material7.Box,
|
|
@@ -16028,7 +16036,7 @@ var SpansDataGridRow = (0, import_react39.memo)(
|
|
|
16028
16036
|
},
|
|
16029
16037
|
"width": "100%"
|
|
16030
16038
|
},
|
|
16031
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_material7.Box, { sx: {
|
|
16039
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_material7.Box, { sx: { pl: cell.column.id === REQUEST_ISSUES_COLUMN_ID ? 0 : 1, pr: 1, width: "100%" }, children: flexRender(cell.column.columnDef.cell, cell.getContext()) })
|
|
16032
16040
|
}
|
|
16033
16041
|
)
|
|
16034
16042
|
},
|
|
@@ -16113,10 +16121,15 @@ var SpansDataGrid = ({
|
|
|
16113
16121
|
size: 120
|
|
16114
16122
|
}),
|
|
16115
16123
|
columnHelper.display({
|
|
16116
|
-
cell: (props) => /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
16124
|
+
cell: (props) => /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(RequestOpsCell, { downstream: props.table.options.meta?.downstreamOf(props.row.original.span_id), span: props.row.original }),
|
|
16117
16125
|
header: "Request Details",
|
|
16118
|
-
id:
|
|
16119
|
-
|
|
16126
|
+
id: REQUEST_OPS_COLUMN_ID
|
|
16127
|
+
}),
|
|
16128
|
+
columnHelper.display({
|
|
16129
|
+
cell: (props) => /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(RequestIssuesCell, { downstream: props.table.options.meta?.downstreamOf(props.row.original.span_id), span: props.row.original }),
|
|
16130
|
+
id: REQUEST_ISSUES_COLUMN_ID,
|
|
16131
|
+
// Wide enough that the two columns fit the header without widening the ops column.
|
|
16132
|
+
size: 96
|
|
16120
16133
|
}),
|
|
16121
16134
|
...SHOW_PRODUCER ? [columnHelper.display({
|
|
16122
16135
|
cell: (props) => {
|
|
@@ -16326,11 +16339,11 @@ var SpansDataGrid = ({
|
|
|
16326
16339
|
},
|
|
16327
16340
|
children: [
|
|
16328
16341
|
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_material7.TableHead, { children: table.getHeaderGroups().map((headerGroup) => {
|
|
16329
|
-
return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_material7.TableRow, { children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
16342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_material7.TableRow, { children: headerGroup.headers.filter((header) => header.column.id !== REQUEST_ISSUES_COLUMN_ID).map((header) => /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
16330
16343
|
import_material7.TableCell,
|
|
16331
16344
|
{
|
|
16332
|
-
colSpan: header.colSpan,
|
|
16333
|
-
sx: {
|
|
16345
|
+
colSpan: header.column.id === REQUEST_OPS_COLUMN_ID ? 2 : header.colSpan,
|
|
16346
|
+
sx: header.column.id === REQUEST_OPS_COLUMN_ID ? { px: 1, whiteSpace: "nowrap" } : {
|
|
16334
16347
|
maxWidth: `${header.getSize().toString()}px`,
|
|
16335
16348
|
minWidth: `${header.getSize().toString()}px`,
|
|
16336
16349
|
px: 1,
|