@localstack/appinspector-ui 1.0.10 → 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
  {
@@ -2927,7 +2927,7 @@ var StatusMessage = ({
2927
2927
  fontSize: "0.875rem",
2928
2928
  p: 1
2929
2929
  },
2930
- children: "APPINSPECTOR=1"
2930
+ children: "LOCALSTACK_APPINSPECTOR_ENABLE=1"
2931
2931
  }
2932
2932
  ),
2933
2933
  /* @__PURE__ */ jsxs122(Typography3, { sx: { fontStyle: "italic", mb: 1, mt: 2 }, variant: "body2", children: [
@@ -2938,9 +2938,24 @@ var StatusMessage = ({
2938
2938
  "/status"
2939
2939
  ] }),
2940
2940
  ". For persistent default state across restarts, adjust the",
2941
- /* @__PURE__ */ jsx126("code", { children: "APPINSPECTOR" }),
2942
2941
  " ",
2943
- "environment variable."
2942
+ /* @__PURE__ */ jsx126("code", { children: "LOCALSTACK_APPINSPECTOR_ENABLE" }),
2943
+ " ",
2944
+ "environment variable in your",
2945
+ " ",
2946
+ /* @__PURE__ */ jsx126("code", { children: "~/.localstack" }),
2947
+ " ",
2948
+ "profile files.",
2949
+ " ",
2950
+ /* @__PURE__ */ jsx126(
2951
+ Link,
2952
+ {
2953
+ href: "https://docs.localstack.cloud/aws/capabilities/config/configuration/#profiles",
2954
+ rel: "noopener noreferrer",
2955
+ target: "_blank",
2956
+ children: "Learn more about LocalStack profiles"
2957
+ }
2958
+ )
2944
2959
  ] }),
2945
2960
  /* @__PURE__ */ jsx126(Typography3, { sx: { mb: 1, mt: 2 }, variant: "body2", children: /* @__PURE__ */ jsx126("strong", { children: "For more information:" }) }),
2946
2961
  /* @__PURE__ */ jsx126(
@@ -3339,7 +3354,6 @@ var useStatus = () => {
3339
3354
 
3340
3355
  // src/pages/spans-list-page.tsx
3341
3356
  import { jsx as jsx128 } from "react/jsx-runtime";
3342
- var MAX_WIDTH = 1400;
3343
3357
  var SpansListPage = () => {
3344
3358
  const api = useAppInspectorApi();
3345
3359
  const [spans, setSpans] = useState5();
@@ -3412,46 +3426,34 @@ var SpansListPage = () => {
3412
3426
  flexGrow: 1,
3413
3427
  width: "100%"
3414
3428
  },
3415
- children: /* @__PURE__ */ jsx128(
3416
- Box6,
3429
+ children: shouldShowStatusMessage ? /* @__PURE__ */ jsx128(
3430
+ StatusMessage,
3417
3431
  {
3418
- sx: {
3419
- display: "flex",
3420
- flexDirection: "column",
3421
- flexGrow: 1,
3422
- maxWidth: MAX_WIDTH,
3423
- width: "100%"
3432
+ error: statusError,
3433
+ onRetry: handleRetry,
3434
+ status
3435
+ }
3436
+ ) : /* @__PURE__ */ jsx128(
3437
+ SpansList,
3438
+ {
3439
+ filterWriteOperations,
3440
+ onClearSpans: () => {
3441
+ void clearSpans();
3424
3442
  },
3425
- children: shouldShowStatusMessage ? /* @__PURE__ */ jsx128(
3426
- StatusMessage,
3427
- {
3428
- error: statusError,
3429
- onRetry: handleRetry,
3430
- status
3431
- }
3432
- ) : /* @__PURE__ */ jsx128(
3433
- SpansList,
3434
- {
3435
- filterWriteOperations,
3436
- onClearSpans: () => {
3437
- void clearSpans();
3438
- },
3439
- onFilterWriteOperationsChange: (value) => {
3440
- setFilterWriteOperations(value);
3441
- },
3442
- onRefresh: () => {
3443
- fetchSpansSync();
3444
- },
3445
- onSpanClick: (span) => {
3446
- navigateToSpan(span);
3447
- },
3448
- spans: {
3449
- data: spans,
3450
- error: fetchError,
3451
- loading
3452
- }
3453
- }
3454
- )
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
+ }
3455
3457
  }
3456
3458
  )
3457
3459
  }
@@ -3542,12 +3544,12 @@ var ToggleSection = ({ children, headline, initialOpen = true }) => {
3542
3544
 
3543
3545
  // src/components/event-details/event-details.tsx
3544
3546
  import { Fragment as Fragment3, jsx as jsx131, jsxs as jsxs125 } from "react/jsx-runtime";
3545
- var EventDetails = ({ selectedEvent }) => {
3547
+ var EventDetails = ({ onClose, selectedEvent }) => {
3546
3548
  if (!selectedEvent) {
3547
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" }) });
3548
3550
  }
3549
3551
  return /* @__PURE__ */ jsxs125(Box9, { "data-testid": "event-details", sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
3550
- /* @__PURE__ */ jsx131(EventDetailsHeader, { event: selectedEvent }),
3552
+ /* @__PURE__ */ jsx131(EventDetailsHeader, { event: selectedEvent, onClose }),
3551
3553
  /* @__PURE__ */ jsx131(Box9, { sx: { flexGrow: 1, overflow: "auto", p: 2 }, children: /* @__PURE__ */ jsxs125(Stack, { spacing: 2, children: [
3552
3554
  /* @__PURE__ */ jsx131(ToggleSection, { headline: "Basic Information", children: /* @__PURE__ */ jsxs125(Stack, { spacing: 1, children: [
3553
3555
  /* @__PURE__ */ jsxs125(Box9, { children: [
@@ -4278,7 +4280,9 @@ var TraceGraphPage = () => {
4278
4280
  ) })
4279
4281
  }
4280
4282
  ) }),
4281
- /* @__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 }) })
4282
4286
  ] })
4283
4287
  }
4284
4288
  )