@localstack/appinspector-ui 1.0.70 → 1.0.71

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
@@ -373,7 +373,7 @@ import { useCallback as useCallback9, useState as useState14 } from "react";
373
373
  import { Alert, Box as Box4, Button as Button2 } from "@mui/material";
374
374
 
375
375
  // src/components/spans-list/spans-data-grid.tsx
376
- import { DeleteForeverOutlined, PauseOutlined, PlayArrowOutlined, SwapVertOutlined } from "@mui/icons-material";
376
+ import { DeleteForeverOutlined, PauseOutlined, PlayArrowOutlined } from "@mui/icons-material";
377
377
  import {
378
378
  Box as Box3,
379
379
  Button,
@@ -387,6 +387,7 @@ import {
387
387
  TableContainer,
388
388
  TableHead,
389
389
  TableRow,
390
+ TableSortLabel,
390
391
  Tooltip as Tooltip2,
391
392
  Typography as Typography2,
392
393
  useTheme as useTheme2
@@ -12646,7 +12647,17 @@ var SpansDataGrid = ({
12646
12647
  }),
12647
12648
  columnHelper.accessor("startTime", {
12648
12649
  cell: (props) => /* @__PURE__ */ jsx124(ResponsiveTimestampCell, { date: props.getValue() }),
12649
- header: "Time",
12650
+ header: () => /* @__PURE__ */ jsx124(
12651
+ TableSortLabel,
12652
+ {
12653
+ active: true,
12654
+ direction: order2 === "newest_first" ? "asc" : "desc",
12655
+ onClick: () => {
12656
+ onOrderChange(order2 === "newest_first" ? "oldest_first" : "newest_first");
12657
+ },
12658
+ children: "Time"
12659
+ }
12660
+ ),
12650
12661
  id: "startTime",
12651
12662
  size: 120
12652
12663
  }),
@@ -12703,7 +12714,7 @@ var SpansDataGrid = ({
12703
12714
  // The actions column doesn't need more space
12704
12715
  size: 96
12705
12716
  })
12706
- ], [onSpanClick]);
12717
+ ], [onSpanClick, onOrderChange, order2]);
12707
12718
  const table = useReactTable({
12708
12719
  columns,
12709
12720
  data: spans ?? [],
@@ -12730,23 +12741,6 @@ var SpansDataGrid = ({
12730
12741
  label: ""
12731
12742
  }
12732
12743
  ),
12733
- /* @__PURE__ */ jsx124(
12734
- FormControlLabel,
12735
- {
12736
- control: /* @__PURE__ */ jsx124(
12737
- Button,
12738
- {
12739
- onClick: () => {
12740
- onOrderChange(order2 === "newest_first" ? "oldest_first" : "newest_first");
12741
- },
12742
- startIcon: /* @__PURE__ */ jsx124(SwapVertOutlined, {}),
12743
- variant: "text",
12744
- children: order2 === "newest_first" ? "Newest First" : "Oldest First"
12745
- }
12746
- ),
12747
- label: ""
12748
- }
12749
- ),
12750
12744
  /* @__PURE__ */ jsx124(
12751
12745
  FormControlLabel,
12752
12746
  {