@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.js CHANGED
@@ -13246,13 +13246,13 @@ function determinePermissionStatus(payload) {
13246
13246
  function formatPermissionStatus(status) {
13247
13247
  switch (status) {
13248
13248
  case "explicitly_allowed": {
13249
- return "Explicitly Allowed";
13249
+ return "Allowed";
13250
13250
  }
13251
13251
  case "explicitly_denied": {
13252
13252
  return "Explicitly Denied";
13253
13253
  }
13254
13254
  case "implicitly_denied": {
13255
- return "Implicitly Denied";
13255
+ return "Not Allowed";
13256
13256
  }
13257
13257
  }
13258
13258
  }
@@ -13453,25 +13453,29 @@ var TotalsTooltip = ({ children, ...props }) => {
13453
13453
  }
13454
13454
  );
13455
13455
  };
13456
- var RequestCell = (props) => {
13457
- const { count: count2, errors, warnings } = getTotals(props);
13458
- return /* @__PURE__ */ jsx5(TotalsTooltip, { ...props, children: /* @__PURE__ */ jsxs(Box, { sx: { alignItems: "center", cursor: "default", display: "grid", gap: 0.5, gridTemplateColumns: "44px auto" }, children: [
13459
- /* @__PURE__ */ jsxs(
13460
- Typography,
13461
- {
13462
- "data-testid": OPERATION_COUNT_CELL_TEST_ID,
13463
- sx: { whiteSpace: "nowrap" },
13464
- variant: "body2",
13465
- children: [
13466
- /* @__PURE__ */ jsx5(AnimatedCount, { value: count2 }),
13467
- /* @__PURE__ */ jsx5(Box, { color: "text.secondary", component: "span", children: count2 === 1 ? " op" : " ops" })
13468
- ]
13469
- }
13470
- ),
13471
- (errors > 0 || warnings > 0) && /* @__PURE__ */ jsxs(Box, { "data-testid": ISSUES_CELL_TEST_ID, sx: { alignItems: "center", display: "inline-flex", gap: 0.5 }, children: [
13472
- errors > 0 && /* @__PURE__ */ jsx5(IssueChip, { color: "error", count: errors, icon: /* @__PURE__ */ jsx5(Cancel, { sx: { fontSize: 12 } }), label: "Errors" }),
13473
- warnings > 0 && /* @__PURE__ */ jsx5(IssueChip, { color: "warning", count: warnings, icon: /* @__PURE__ */ jsx5(GppMaybe, { sx: { fontSize: 12 } }), label: "Warnings" })
13474
- ] })
13456
+ var RequestOpsCell = (props) => {
13457
+ const { count: count2 } = getTotals(props);
13458
+ return /* @__PURE__ */ jsx5(TotalsTooltip, { ...props, children: /* @__PURE__ */ jsxs(
13459
+ Typography,
13460
+ {
13461
+ "data-testid": OPERATION_COUNT_CELL_TEST_ID,
13462
+ sx: { cursor: "default", whiteSpace: "nowrap" },
13463
+ variant: "body2",
13464
+ children: [
13465
+ /* @__PURE__ */ jsx5(AnimatedCount, { value: count2 }),
13466
+ /* @__PURE__ */ jsx5(Box, { color: "text.secondary", component: "span", children: count2 === 1 ? " op" : " ops" })
13467
+ ]
13468
+ }
13469
+ ) });
13470
+ };
13471
+ var RequestIssuesCell = (props) => {
13472
+ const { errors, warnings } = getTotals(props);
13473
+ if (errors === 0 && warnings === 0) {
13474
+ return null;
13475
+ }
13476
+ return /* @__PURE__ */ jsx5(TotalsTooltip, { ...props, children: /* @__PURE__ */ jsxs(Box, { "data-testid": ISSUES_CELL_TEST_ID, sx: { alignItems: "center", cursor: "default", display: "inline-flex", gap: 0.5 }, children: [
13477
+ errors > 0 && /* @__PURE__ */ jsx5(IssueChip, { color: "error", count: errors, icon: /* @__PURE__ */ jsx5(Cancel, { sx: { fontSize: 12 } }), label: "Errors" }),
13478
+ warnings > 0 && /* @__PURE__ */ jsx5(IssueChip, { color: "warning", count: warnings, icon: /* @__PURE__ */ jsx5(GppMaybe, { sx: { fontSize: 12 } }), label: "Warnings" })
13475
13479
  ] }) });
13476
13480
  };
13477
13481
 
@@ -15957,6 +15961,8 @@ var newSpanBackgroundColor = {
15957
15961
  dark: { from: "rgba(255, 193, 7, 0.14)", to: "rgba(255, 193, 7, 0)" },
15958
15962
  light: { from: "rgba(255, 213, 79, 0.45)", to: "rgba(255, 213, 79, 0)" }
15959
15963
  };
15964
+ var REQUEST_OPS_COLUMN_ID = "requestOps";
15965
+ var REQUEST_ISSUES_COLUMN_ID = "requestIssues";
15960
15966
  var LABEL_BEGINNING_OF_STREAM = "This is the beginning of the stream";
15961
15967
  var LABEL_END_OF_STREAM = "This is the end of the stream";
15962
15968
  var LABEL_NO_SPANS = "There are no operations";
@@ -16033,10 +16039,12 @@ var SpansDataGridRow = memo8(
16033
16039
  return /* @__PURE__ */ jsx128(
16034
16040
  TableCell,
16035
16041
  {
16036
- sx: {
16042
+ sx: cell.column.id === REQUEST_OPS_COLUMN_ID ? { height: 48, width: "1%" } : {
16037
16043
  height: 48,
16038
16044
  maxWidth: `${cell.column.getSize().toString()}px`,
16039
- minWidth: `${cell.column.getSize().toString()}px`
16045
+ minWidth: `${cell.column.getSize().toString()}px`,
16046
+ // The issues column has no header cell of its own to carry its width.
16047
+ width: `${cell.column.getSize().toString()}px`
16040
16048
  },
16041
16049
  children: /* @__PURE__ */ jsx128(
16042
16050
  Box5,
@@ -16054,7 +16062,7 @@ var SpansDataGridRow = memo8(
16054
16062
  },
16055
16063
  "width": "100%"
16056
16064
  },
16057
- children: /* @__PURE__ */ jsx128(Box5, { sx: { px: 1, width: "100%" }, children: flexRender(cell.column.columnDef.cell, cell.getContext()) })
16065
+ children: /* @__PURE__ */ jsx128(Box5, { sx: { pl: cell.column.id === REQUEST_ISSUES_COLUMN_ID ? 0 : 1, pr: 1, width: "100%" }, children: flexRender(cell.column.columnDef.cell, cell.getContext()) })
16058
16066
  }
16059
16067
  )
16060
16068
  },
@@ -16139,10 +16147,15 @@ var SpansDataGrid = ({
16139
16147
  size: 120
16140
16148
  }),
16141
16149
  columnHelper.display({
16142
- cell: (props) => /* @__PURE__ */ jsx128(RequestCell, { downstream: props.table.options.meta?.downstreamOf(props.row.original.span_id), span: props.row.original }),
16150
+ cell: (props) => /* @__PURE__ */ jsx128(RequestOpsCell, { downstream: props.table.options.meta?.downstreamOf(props.row.original.span_id), span: props.row.original }),
16143
16151
  header: "Request Details",
16144
- id: "request",
16145
- size: 128
16152
+ id: REQUEST_OPS_COLUMN_ID
16153
+ }),
16154
+ columnHelper.display({
16155
+ cell: (props) => /* @__PURE__ */ jsx128(RequestIssuesCell, { downstream: props.table.options.meta?.downstreamOf(props.row.original.span_id), span: props.row.original }),
16156
+ id: REQUEST_ISSUES_COLUMN_ID,
16157
+ // Wide enough that the two columns fit the header without widening the ops column.
16158
+ size: 96
16146
16159
  }),
16147
16160
  ...SHOW_PRODUCER ? [columnHelper.display({
16148
16161
  cell: (props) => {
@@ -16352,11 +16365,11 @@ var SpansDataGrid = ({
16352
16365
  },
16353
16366
  children: [
16354
16367
  /* @__PURE__ */ jsx128(TableHead, { children: table.getHeaderGroups().map((headerGroup) => {
16355
- return /* @__PURE__ */ jsx128(TableRow, { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx128(
16368
+ return /* @__PURE__ */ jsx128(TableRow, { children: headerGroup.headers.filter((header) => header.column.id !== REQUEST_ISSUES_COLUMN_ID).map((header) => /* @__PURE__ */ jsx128(
16356
16369
  TableCell,
16357
16370
  {
16358
- colSpan: header.colSpan,
16359
- sx: {
16371
+ colSpan: header.column.id === REQUEST_OPS_COLUMN_ID ? 2 : header.colSpan,
16372
+ sx: header.column.id === REQUEST_OPS_COLUMN_ID ? { px: 1, whiteSpace: "nowrap" } : {
16360
16373
  maxWidth: `${header.getSize().toString()}px`,
16361
16374
  minWidth: `${header.getSize().toString()}px`,
16362
16375
  px: 1,