@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.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
  {
@@ -2964,7 +2964,7 @@ var StatusMessage = ({
2964
2964
  fontSize: "0.875rem",
2965
2965
  p: 1
2966
2966
  },
2967
- children: "APPINSPECTOR=1"
2967
+ children: "LOCALSTACK_APPINSPECTOR_ENABLE=1"
2968
2968
  }
2969
2969
  ),
2970
2970
  /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_material6.Typography, { sx: { fontStyle: "italic", mb: 1, mt: 2 }, variant: "body2", children: [
@@ -2975,9 +2975,24 @@ var StatusMessage = ({
2975
2975
  "/status"
2976
2976
  ] }),
2977
2977
  ". For persistent default state across restarts, adjust the",
2978
- /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("code", { children: "APPINSPECTOR" }),
2979
2978
  " ",
2980
- "environment variable."
2979
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("code", { children: "LOCALSTACK_APPINSPECTOR_ENABLE" }),
2980
+ " ",
2981
+ "environment variable in your",
2982
+ " ",
2983
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("code", { children: "~/.localstack" }),
2984
+ " ",
2985
+ "profile files.",
2986
+ " ",
2987
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
2988
+ import_material6.Link,
2989
+ {
2990
+ href: "https://docs.localstack.cloud/aws/capabilities/config/configuration/#profiles",
2991
+ rel: "noopener noreferrer",
2992
+ target: "_blank",
2993
+ children: "Learn more about LocalStack profiles"
2994
+ }
2995
+ )
2981
2996
  ] }),
2982
2997
  /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material6.Typography, { sx: { mb: 1, mt: 2 }, variant: "body2", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("strong", { children: "For more information:" }) }),
2983
2998
  /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
@@ -3376,7 +3391,6 @@ var useStatus = () => {
3376
3391
 
3377
3392
  // src/pages/spans-list-page.tsx
3378
3393
  var import_jsx_runtime128 = require("react/jsx-runtime");
3379
- var MAX_WIDTH = 1400;
3380
3394
  var SpansListPage = () => {
3381
3395
  const api = useAppInspectorApi();
3382
3396
  const [spans, setSpans] = (0, import_react8.useState)();
@@ -3449,46 +3463,34 @@ var SpansListPage = () => {
3449
3463
  flexGrow: 1,
3450
3464
  width: "100%"
3451
3465
  },
3452
- children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
3453
- import_material7.Box,
3466
+ children: shouldShowStatusMessage ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
3467
+ StatusMessage,
3454
3468
  {
3455
- sx: {
3456
- display: "flex",
3457
- flexDirection: "column",
3458
- flexGrow: 1,
3459
- maxWidth: MAX_WIDTH,
3460
- 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();
3461
3479
  },
3462
- children: shouldShowStatusMessage ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
3463
- StatusMessage,
3464
- {
3465
- error: statusError,
3466
- onRetry: handleRetry,
3467
- status
3468
- }
3469
- ) : /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
3470
- SpansList,
3471
- {
3472
- filterWriteOperations,
3473
- onClearSpans: () => {
3474
- void clearSpans();
3475
- },
3476
- onFilterWriteOperationsChange: (value) => {
3477
- setFilterWriteOperations(value);
3478
- },
3479
- onRefresh: () => {
3480
- fetchSpansSync();
3481
- },
3482
- onSpanClick: (span) => {
3483
- navigateToSpan(span);
3484
- },
3485
- spans: {
3486
- data: spans,
3487
- error: fetchError,
3488
- loading
3489
- }
3490
- }
3491
- )
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
+ }
3492
3494
  }
3493
3495
  )
3494
3496
  }
@@ -3579,12 +3581,12 @@ var ToggleSection = ({ children, headline, initialOpen = true }) => {
3579
3581
 
3580
3582
  // src/components/event-details/event-details.tsx
3581
3583
  var import_jsx_runtime131 = require("react/jsx-runtime");
3582
- var EventDetails = ({ selectedEvent }) => {
3584
+ var EventDetails = ({ onClose, selectedEvent }) => {
3583
3585
  if (!selectedEvent) {
3584
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" }) });
3585
3587
  }
3586
3588
  return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_material10.Box, { "data-testid": "event-details", sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
3587
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(EventDetailsHeader, { event: selectedEvent }),
3589
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(EventDetailsHeader, { event: selectedEvent, onClose }),
3588
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: [
3589
3591
  /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(ToggleSection, { headline: "Basic Information", children: /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_material10.Stack, { spacing: 1, children: [
3590
3592
  /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_material10.Box, { children: [
@@ -4315,7 +4317,9 @@ var TraceGraphPage = () => {
4315
4317
  ) })
4316
4318
  }
4317
4319
  ) }),
4318
- /* @__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 }) })
4319
4323
  ] })
4320
4324
  }
4321
4325
  )