@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.js CHANGED
@@ -2816,7 +2816,7 @@ var SpansDataGrid = ({
2816
2816
  // src/components/spans-list/spans-list.tsx
2817
2817
  import { jsx as jsx125, jsxs as jsxs121 } from "react/jsx-runtime";
2818
2818
  var SpansList = (props) => {
2819
- return /* @__PURE__ */ jsxs121(Box4, { "data-testid": "spans-data-grid", sx: { display: "flex", flexDirection: "column", flexGrow: 1, gap: 2 }, children: [
2819
+ return /* @__PURE__ */ jsxs121(Box4, { "data-testid": "spans-data-grid", sx: { display: "flex", flexDirection: "column", flexGrow: 1, gap: 2, width: "100%" }, children: [
2820
2820
  props.spans.error && /* @__PURE__ */ jsxs121(
2821
2821
  Alert,
2822
2822
  {
@@ -3354,7 +3354,6 @@ var useStatus = () => {
3354
3354
 
3355
3355
  // src/pages/spans-list-page.tsx
3356
3356
  import { jsx as jsx128 } from "react/jsx-runtime";
3357
- var MAX_WIDTH = 1400;
3358
3357
  var SpansListPage = () => {
3359
3358
  const api = useAppInspectorApi();
3360
3359
  const [spans, setSpans] = useState5();
@@ -3427,46 +3426,34 @@ var SpansListPage = () => {
3427
3426
  flexGrow: 1,
3428
3427
  width: "100%"
3429
3428
  },
3430
- children: /* @__PURE__ */ jsx128(
3431
- Box6,
3429
+ children: shouldShowStatusMessage ? /* @__PURE__ */ jsx128(
3430
+ StatusMessage,
3432
3431
  {
3433
- sx: {
3434
- display: "flex",
3435
- flexDirection: "column",
3436
- flexGrow: 1,
3437
- maxWidth: MAX_WIDTH,
3438
- width: "100%"
3432
+ error: statusError,
3433
+ onRetry: handleRetry,
3434
+ status
3435
+ }
3436
+ ) : /* @__PURE__ */ jsx128(
3437
+ SpansList,
3438
+ {
3439
+ filterWriteOperations,
3440
+ onClearSpans: () => {
3441
+ void clearSpans();
3439
3442
  },
3440
- children: shouldShowStatusMessage ? /* @__PURE__ */ jsx128(
3441
- StatusMessage,
3442
- {
3443
- error: statusError,
3444
- onRetry: handleRetry,
3445
- status
3446
- }
3447
- ) : /* @__PURE__ */ jsx128(
3448
- SpansList,
3449
- {
3450
- filterWriteOperations,
3451
- onClearSpans: () => {
3452
- void clearSpans();
3453
- },
3454
- onFilterWriteOperationsChange: (value) => {
3455
- setFilterWriteOperations(value);
3456
- },
3457
- onRefresh: () => {
3458
- fetchSpansSync();
3459
- },
3460
- onSpanClick: (span) => {
3461
- navigateToSpan(span);
3462
- },
3463
- spans: {
3464
- data: spans,
3465
- error: fetchError,
3466
- loading
3467
- }
3468
- }
3469
- )
3443
+ onFilterWriteOperationsChange: (value) => {
3444
+ setFilterWriteOperations(value);
3445
+ },
3446
+ onRefresh: () => {
3447
+ fetchSpansSync();
3448
+ },
3449
+ onSpanClick: (span) => {
3450
+ navigateToSpan(span);
3451
+ },
3452
+ spans: {
3453
+ data: spans,
3454
+ error: fetchError,
3455
+ loading
3456
+ }
3470
3457
  }
3471
3458
  )
3472
3459
  }
@@ -3557,12 +3544,12 @@ var ToggleSection = ({ children, headline, initialOpen = true }) => {
3557
3544
 
3558
3545
  // src/components/event-details/event-details.tsx
3559
3546
  import { Fragment as Fragment3, jsx as jsx131, jsxs as jsxs125 } from "react/jsx-runtime";
3560
- var EventDetails = ({ selectedEvent }) => {
3547
+ var EventDetails = ({ onClose, selectedEvent }) => {
3561
3548
  if (!selectedEvent) {
3562
3549
  return /* @__PURE__ */ jsx131(Box9, { sx: { p: 3, textAlign: "center" }, children: /* @__PURE__ */ jsx131(Typography6, { color: "text.secondary", variant: "body2", children: "Select an event to view details" }) });
3563
3550
  }
3564
3551
  return /* @__PURE__ */ jsxs125(Box9, { "data-testid": "event-details", sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
3565
- /* @__PURE__ */ jsx131(EventDetailsHeader, { event: selectedEvent }),
3552
+ /* @__PURE__ */ jsx131(EventDetailsHeader, { event: selectedEvent, onClose }),
3566
3553
  /* @__PURE__ */ jsx131(Box9, { sx: { flexGrow: 1, overflow: "auto", p: 2 }, children: /* @__PURE__ */ jsxs125(Stack, { spacing: 2, children: [
3567
3554
  /* @__PURE__ */ jsx131(ToggleSection, { headline: "Basic Information", children: /* @__PURE__ */ jsxs125(Stack, { spacing: 1, children: [
3568
3555
  /* @__PURE__ */ jsxs125(Box9, { children: [
@@ -4293,7 +4280,9 @@ var TraceGraphPage = () => {
4293
4280
  ) })
4294
4281
  }
4295
4282
  ) }),
4296
- /* @__PURE__ */ jsx136(StyledDrawer, { anchor: "right", open, variant: "persistent", children: /* @__PURE__ */ jsx136(EventDetails, { selectedEvent }) })
4283
+ /* @__PURE__ */ jsx136(StyledDrawer, { anchor: "right", open, variant: "persistent", children: /* @__PURE__ */ jsx136(EventDetails, { onClose: () => {
4284
+ setOpen(false);
4285
+ }, selectedEvent }) })
4297
4286
  ] })
4298
4287
  }
4299
4288
  )