@localstack/appinspector-ui 1.0.20 → 1.0.22

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
@@ -23,7 +23,7 @@ import { Alert, Box as Box5, Button as Button2 } from "@mui/material";
23
23
 
24
24
  // src/components/spans-list/spans-data-grid.tsx
25
25
  import { Cached, DeleteForeverOutlined, Search } from "@mui/icons-material";
26
- import { Box as Box4, Button, FormControlLabel, Grid, Paper, Switch, TextField, Typography as Typography2 } from "@mui/material";
26
+ import { Box as Box4, Button, FormControlLabel, Grid, Paper, Switch, TextField, Tooltip as Tooltip3, Typography as Typography2 } from "@mui/material";
27
27
  import { DataGrid } from "@mui/x-data-grid";
28
28
  import { useCallback, useMemo as useMemo2, useState as useState2 } from "react";
29
29
 
@@ -2531,7 +2531,6 @@ var PillCell = ({
2531
2531
 
2532
2532
  // src/components/cells/service-cell.tsx
2533
2533
  import { Fragment as Fragment2, jsx as jsx124, jsxs as jsxs119 } from "react/jsx-runtime";
2534
- var truncateName = (inputString, truncateLength = 15) => inputString.length > truncateLength ? `${inputString.slice(0, truncateLength - 3)}...` : inputString;
2535
2534
  var ServiceCell = ({
2536
2535
  borderColor,
2537
2536
  borderWidth,
@@ -2539,7 +2538,6 @@ var ServiceCell = ({
2539
2538
  resource,
2540
2539
  service,
2541
2540
  showIcon = true,
2542
- truncateLength,
2543
2541
  width = "32px"
2544
2542
  }) => {
2545
2543
  return /* @__PURE__ */ jsx124(Box3, { sx: { width: "100%" }, children: /* @__PURE__ */ jsxs119(PillCell, { borderColor, borderWidth, height, children: [
@@ -2565,6 +2563,7 @@ var ServiceCell = ({
2565
2563
  Typography,
2566
2564
  {
2567
2565
  sx: {
2566
+ flexShrink: 0,
2568
2567
  fontWeight: "bold",
2569
2568
  overflow: "hidden",
2570
2569
  padding: "1px 8px",
@@ -2597,7 +2596,7 @@ var ServiceCell = ({
2597
2596
  whiteSpace: "nowrap"
2598
2597
  },
2599
2598
  variant: "body2",
2600
- children: truncateName(resource, truncateLength)
2599
+ children: resource
2601
2600
  }
2602
2601
  )
2603
2602
  ] }) : void 0
@@ -2690,16 +2689,28 @@ var columns = [
2690
2689
  field: "trace_id",
2691
2690
  headerName: "Trace",
2692
2691
  renderCell: (parameters) => {
2693
- return /* @__PURE__ */ jsx125("span", { children: parameters.value });
2692
+ return /* @__PURE__ */ jsx125(Tooltip3, { arrow: true, title: String(parameters.value), children: /* @__PURE__ */ jsx125(
2693
+ "span",
2694
+ {
2695
+ style: {
2696
+ maxWidth: "100%",
2697
+ overflow: "hidden",
2698
+ textOverflow: "ellipsis",
2699
+ whiteSpace: "nowrap"
2700
+ },
2701
+ children: parameters.value
2702
+ }
2703
+ ) });
2694
2704
  },
2695
- width: 300
2705
+ type: "string",
2706
+ width: 120
2696
2707
  },
2697
2708
  {
2698
2709
  field: "start_time_unix_nano",
2699
2710
  headerName: "Time",
2700
2711
  renderCell: (parameters) => /* @__PURE__ */ jsx125(ResponsiveTimestampCell, { value: parameters.value }),
2701
2712
  type: "string",
2702
- width: 200
2713
+ width: 180
2703
2714
  },
2704
2715
  {
2705
2716
  field: "producer",
@@ -2712,19 +2723,19 @@ var columns = [
2712
2723
  },
2713
2724
  sortable: true,
2714
2725
  sortComparator: resourceNameComparator,
2715
- width: 320
2726
+ width: 260
2716
2727
  },
2717
2728
  {
2718
2729
  field: "operation_name",
2719
2730
  headerName: "Action",
2720
2731
  type: "string",
2721
- width: 150
2732
+ width: 130
2722
2733
  },
2723
2734
  {
2724
2735
  field: "consumer",
2725
2736
  flex: 1,
2726
2737
  headerName: "Consumer",
2727
- minWidth: 280,
2738
+ maxWidth: 260,
2728
2739
  renderCell: (parameters) => {
2729
2740
  return /* @__PURE__ */ jsx125(ServiceCell, { resource: parameters.row.resource_name, service: parameters.row.service_name });
2730
2741
  },
@@ -4417,7 +4428,7 @@ import { memo, useCallback as useCallback6 } from "react";
4417
4428
 
4418
4429
  // src/components/trace-graph/problem-indicator.tsx
4419
4430
  import { Error as ErrorIcon2, Info as Info2, Warning as Warning2 } from "@mui/icons-material";
4420
- import { Box as Box16, Tooltip as Tooltip3 } from "@mui/material";
4431
+ import { Box as Box16, Tooltip as Tooltip4 } from "@mui/material";
4421
4432
  import { useMemo as useMemo8 } from "react";
4422
4433
  import { jsx as jsx138 } from "react/jsx-runtime";
4423
4434
  var ProblemIndicator = ({ error }) => {
@@ -4447,7 +4458,7 @@ var ProblemIndicator = ({ error }) => {
4447
4458
  }
4448
4459
  }
4449
4460
  }, [error.level]);
4450
- return /* @__PURE__ */ jsx138(Tooltip3, { arrow: true, title: error.message ?? "Issue detected", children: /* @__PURE__ */ jsx138(
4461
+ return /* @__PURE__ */ jsx138(Tooltip4, { arrow: true, title: error.message ?? "Issue detected", children: /* @__PURE__ */ jsx138(
4451
4462
  Box16,
4452
4463
  {
4453
4464
  sx: {