@localstack/appinspector-ui 1.0.11 → 1.0.12

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 CHANGED
@@ -2853,7 +2853,7 @@ var SpansDataGrid = ({
2853
2853
  // src/components/spans-list/spans-list.tsx
2854
2854
  var import_jsx_runtime125 = require("react/jsx-runtime");
2855
2855
  var SpansList = (props) => {
2856
- return /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material5.Box, { "data-testid": "spans-data-grid", sx: { display: "flex", flexDirection: "column", flexGrow: 1, gap: 2 }, children: [
2856
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material5.Box, { "data-testid": "spans-data-grid", sx: { display: "flex", flexDirection: "column", flexGrow: 1, gap: 2, width: "100%" }, children: [
2857
2857
  props.spans.error && /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
2858
2858
  import_material5.Alert,
2859
2859
  {
@@ -3391,7 +3391,6 @@ var useStatus = () => {
3391
3391
 
3392
3392
  // src/pages/spans-list-page.tsx
3393
3393
  var import_jsx_runtime128 = require("react/jsx-runtime");
3394
- var MAX_WIDTH = 1400;
3395
3394
  var SpansListPage = () => {
3396
3395
  const api = useAppInspectorApi();
3397
3396
  const [spans, setSpans] = (0, import_react8.useState)();
@@ -3464,46 +3463,34 @@ var SpansListPage = () => {
3464
3463
  flexGrow: 1,
3465
3464
  width: "100%"
3466
3465
  },
3467
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
3468
- import_material7.Box,
3466
+ children: shouldShowStatusMessage ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
3467
+ StatusMessage,
3469
3468
  {
3470
- sx: {
3471
- display: "flex",
3472
- flexDirection: "column",
3473
- flexGrow: 1,
3474
- maxWidth: MAX_WIDTH,
3475
- width: "100%"
3469
+ error: statusError,
3470
+ onRetry: handleRetry,
3471
+ status
3472
+ }
3473
+ ) : /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
3474
+ SpansList,
3475
+ {
3476
+ filterWriteOperations,
3477
+ onClearSpans: () => {
3478
+ void clearSpans();
3476
3479
  },
3477
- children: shouldShowStatusMessage ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
3478
- StatusMessage,
3479
- {
3480
- error: statusError,
3481
- onRetry: handleRetry,
3482
- status
3483
- }
3484
- ) : /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
3485
- SpansList,
3486
- {
3487
- filterWriteOperations,
3488
- onClearSpans: () => {
3489
- void clearSpans();
3490
- },
3491
- onFilterWriteOperationsChange: (value) => {
3492
- setFilterWriteOperations(value);
3493
- },
3494
- onRefresh: () => {
3495
- fetchSpansSync();
3496
- },
3497
- onSpanClick: (span) => {
3498
- navigateToSpan(span);
3499
- },
3500
- spans: {
3501
- data: spans,
3502
- error: fetchError,
3503
- loading
3504
- }
3505
- }
3506
- )
3480
+ onFilterWriteOperationsChange: (value) => {
3481
+ setFilterWriteOperations(value);
3482
+ },
3483
+ onRefresh: () => {
3484
+ fetchSpansSync();
3485
+ },
3486
+ onSpanClick: (span) => {
3487
+ navigateToSpan(span);
3488
+ },
3489
+ spans: {
3490
+ data: spans,
3491
+ error: fetchError,
3492
+ loading
3493
+ }
3507
3494
  }
3508
3495
  )
3509
3496
  }
@@ -3594,12 +3581,12 @@ var ToggleSection = ({ children, headline, initialOpen = true }) => {
3594
3581
 
3595
3582
  // src/components/event-details/event-details.tsx
3596
3583
  var import_jsx_runtime131 = require("react/jsx-runtime");
3597
- var EventDetails = ({ selectedEvent }) => {
3584
+ var EventDetails = ({ onClose, selectedEvent }) => {
3598
3585
  if (!selectedEvent) {
3599
3586
  return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_material10.Box, { sx: { p: 3, textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_material10.Typography, { color: "text.secondary", variant: "body2", children: "Select an event to view details" }) });
3600
3587
  }
3601
3588
  return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_material10.Box, { "data-testid": "event-details", sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
3602
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(EventDetailsHeader, { event: selectedEvent }),
3589
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(EventDetailsHeader, { event: selectedEvent, onClose }),
3603
3590
  /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_material10.Box, { sx: { flexGrow: 1, overflow: "auto", p: 2 }, children: /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_material10.Stack, { spacing: 2, children: [
3604
3591
  /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ToggleSection, { headline: "Basic Information", children: /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_material10.Stack, { spacing: 1, children: [
3605
3592
  /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_material10.Box, { children: [
@@ -4330,7 +4317,9 @@ var TraceGraphPage = () => {
4330
4317
  ) })
4331
4318
  }
4332
4319
  ) }),
4333
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(StyledDrawer, { anchor: "right", open, variant: "persistent", children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(EventDetails, { selectedEvent }) })
4320
+ /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(StyledDrawer, { anchor: "right", open, variant: "persistent", children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(EventDetails, { onClose: () => {
4321
+ setOpen(false);
4322
+ }, selectedEvent }) })
4334
4323
  ] })
4335
4324
  }
4336
4325
  )