@localstack/appinspector-ui 1.0.198 → 1.0.199

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
@@ -491,7 +491,7 @@ var require_parse = __commonJS({
491
491
  "node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js"(exports, module2) {
492
492
  "use strict";
493
493
  var SemVer = require_semver();
494
- var parse2 = (version, options, throwErrors = false) => {
494
+ var parse3 = (version, options, throwErrors = false) => {
495
495
  if (version instanceof SemVer) {
496
496
  return version;
497
497
  }
@@ -504,7 +504,7 @@ var require_parse = __commonJS({
504
504
  throw er;
505
505
  }
506
506
  };
507
- module2.exports = parse2;
507
+ module2.exports = parse3;
508
508
  }
509
509
  });
510
510
 
@@ -512,9 +512,9 @@ var require_parse = __commonJS({
512
512
  var require_valid = __commonJS({
513
513
  "node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js"(exports, module2) {
514
514
  "use strict";
515
- var parse2 = require_parse();
515
+ var parse3 = require_parse();
516
516
  var valid = (version, options) => {
517
- const v = parse2(version, options);
517
+ const v = parse3(version, options);
518
518
  return v ? v.version : null;
519
519
  };
520
520
  module2.exports = valid;
@@ -525,9 +525,9 @@ var require_valid = __commonJS({
525
525
  var require_clean = __commonJS({
526
526
  "node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js"(exports, module2) {
527
527
  "use strict";
528
- var parse2 = require_parse();
528
+ var parse3 = require_parse();
529
529
  var clean = (version, options) => {
530
- const s = parse2(version.trim().replace(/^[=v]+/, ""), options);
530
+ const s = parse3(version.trim().replace(/^[=v]+/, ""), options);
531
531
  return s ? s.version : null;
532
532
  };
533
533
  module2.exports = clean;
@@ -562,10 +562,10 @@ var require_inc = __commonJS({
562
562
  var require_diff = __commonJS({
563
563
  "node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js"(exports, module2) {
564
564
  "use strict";
565
- var parse2 = require_parse();
565
+ var parse3 = require_parse();
566
566
  var diff = (version1, version2) => {
567
- const v1 = parse2(version1, null, true);
568
- const v2 = parse2(version2, null, true);
567
+ const v1 = parse3(version1, null, true);
568
+ const v2 = parse3(version2, null, true);
569
569
  const comparison = v1.compare(v2);
570
570
  if (comparison === 0) {
571
571
  return null;
@@ -636,9 +636,9 @@ var require_patch = __commonJS({
636
636
  var require_prerelease = __commonJS({
637
637
  "node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js"(exports, module2) {
638
638
  "use strict";
639
- var parse2 = require_parse();
639
+ var parse3 = require_parse();
640
640
  var prerelease = (version, options) => {
641
- const parsed = parse2(version, options);
641
+ const parsed = parse3(version, options);
642
642
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
643
643
  };
644
644
  module2.exports = prerelease;
@@ -824,7 +824,7 @@ var require_coerce = __commonJS({
824
824
  "node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js"(exports, module2) {
825
825
  "use strict";
826
826
  var SemVer = require_semver();
827
- var parse2 = require_parse();
827
+ var parse3 = require_parse();
828
828
  var { safeRe: re, t } = require_re();
829
829
  var coerce = (version, options) => {
830
830
  if (version instanceof SemVer) {
@@ -859,7 +859,7 @@ var require_coerce = __commonJS({
859
859
  const patch = match[4] || "0";
860
860
  const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
861
861
  const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
862
- return parse2(`${major}.${minor}.${patch}${prerelease}${build}`, options);
862
+ return parse3(`${major}.${minor}.${patch}${prerelease}${build}`, options);
863
863
  };
864
864
  module2.exports = coerce;
865
865
  }
@@ -1876,7 +1876,7 @@ var require_semver2 = __commonJS({
1876
1876
  var constants = require_constants();
1877
1877
  var SemVer = require_semver();
1878
1878
  var identifiers = require_identifiers();
1879
- var parse2 = require_parse();
1879
+ var parse3 = require_parse();
1880
1880
  var valid = require_valid();
1881
1881
  var clean = require_clean();
1882
1882
  var inc = require_inc();
@@ -1914,7 +1914,7 @@ var require_semver2 = __commonJS({
1914
1914
  var simplifyRange = require_simplify();
1915
1915
  var subset = require_subset();
1916
1916
  module2.exports = {
1917
- parse: parse2,
1917
+ parse: parse3,
1918
1918
  valid,
1919
1919
  clean,
1920
1920
  inc,
@@ -2017,7 +2017,7 @@ var require_copy_to_clipboard = __commonJS({
2017
2017
  var copyKey = (/mac os x/i.test(navigator.userAgent) ? "\u2318" : "Ctrl") + "+C";
2018
2018
  return message.replace(/#{\s*key\s*}/g, copyKey);
2019
2019
  }
2020
- function copy(text2, options) {
2020
+ function copy(text3, options) {
2021
2021
  var debug2, message, reselectPrevious, range, selection, mark, success = false;
2022
2022
  if (!options) {
2023
2023
  options = {};
@@ -2028,7 +2028,7 @@ var require_copy_to_clipboard = __commonJS({
2028
2028
  range = document.createRange();
2029
2029
  selection = document.getSelection();
2030
2030
  mark = document.createElement("span");
2031
- mark.textContent = text2;
2031
+ mark.textContent = text3;
2032
2032
  mark.ariaHidden = "true";
2033
2033
  mark.style.all = "unset";
2034
2034
  mark.style.position = "fixed";
@@ -2048,10 +2048,10 @@ var require_copy_to_clipboard = __commonJS({
2048
2048
  debug2 && console.warn("trying IE specific stuff");
2049
2049
  window.clipboardData.clearData();
2050
2050
  var format3 = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"];
2051
- window.clipboardData.setData(format3, text2);
2051
+ window.clipboardData.setData(format3, text3);
2052
2052
  } else {
2053
2053
  e2.clipboardData.clearData();
2054
- e2.clipboardData.setData(options.format, text2);
2054
+ e2.clipboardData.setData(options.format, text3);
2055
2055
  }
2056
2056
  }
2057
2057
  if (options.onCopy) {
@@ -2071,14 +2071,14 @@ var require_copy_to_clipboard = __commonJS({
2071
2071
  debug2 && console.error("unable to copy using execCommand: ", err);
2072
2072
  debug2 && console.warn("trying IE specific stuff");
2073
2073
  try {
2074
- window.clipboardData.setData(options.format || "text", text2);
2074
+ window.clipboardData.setData(options.format || "text", text3);
2075
2075
  options.onCopy && options.onCopy(window.clipboardData);
2076
2076
  success = true;
2077
2077
  } catch (err2) {
2078
2078
  debug2 && console.error("unable to copy using clipboardData: ", err2);
2079
2079
  debug2 && console.error("falling back to prompt");
2080
2080
  message = format2("message" in options ? options.message : defaultMessage);
2081
- window.prompt(message, text2);
2081
+ window.prompt(message, text3);
2082
2082
  }
2083
2083
  } finally {
2084
2084
  if (selection) {
@@ -2425,7 +2425,7 @@ __export(index_exports, {
2425
2425
  module.exports = __toCommonJS(index_exports);
2426
2426
 
2427
2427
  // src/pages/spans-list-page.tsx
2428
- var import_material27 = require("@mui/material");
2428
+ var import_material28 = require("@mui/material");
2429
2429
  var import_react65 = require("react");
2430
2430
 
2431
2431
  // src/api/errors.ts
@@ -2495,8 +2495,10 @@ var EVENT_DETAILS_SERVICE_NAME_TEST_ID = "event-details-service-name";
2495
2495
  var EVENT_DETAILS_OPERATION_NAME_TEST_ID = "event-details-operation-name";
2496
2496
  var EVENT_DETAILS_CLOSE_BUTTON_TEST_ID = "event-details-close-button";
2497
2497
  var EVENT_DETAILS_HEADING_TEST_ID = "event-details-heading";
2498
- var EVENT_DETAILS_HEADING_DURATION_TEST_ID = "event-details-heading-duration";
2499
- var EVENT_DETAILS_STATUS_TEST_ID = "event-details-status";
2498
+ var EVENT_DETAILS_HEADING_STATUS_TEST_ID = "event-details-heading-status";
2499
+ var EVENT_DETAILS_HEADING_IAM_TEST_ID = "event-details-heading-iam";
2500
+ var EVENT_DETAILS_FUNCTION_ERROR_TEST_ID = "event-details-function-error";
2501
+ var EVENT_DETAILS_STACK_TRACE_TEST_ID = "event-details-stack-trace";
2500
2502
  var EVENT_DETAILS_RESOURCE_NAME_TEST_ID = "event-details-resource-name";
2501
2503
  var EVENT_DETAILS_RESOURCE_ARN_TEST_ID = "event-details-resource-arn";
2502
2504
  var EVENT_DETAILS_CFN_RESOURCE_TYPE_TEST_ID = "event-details-cfn-resource-type";
@@ -7148,12 +7150,12 @@ var isColorString = (type, testProp) => (v) => {
7148
7150
  var splitColor = (aName, bName, cName) => (v) => {
7149
7151
  if (!isString(v))
7150
7152
  return v;
7151
- const [a3, b3, c3, alpha6] = v.match(floatRegex);
7153
+ const [a3, b3, c3, alpha7] = v.match(floatRegex);
7152
7154
  return {
7153
7155
  [aName]: parseFloat(a3),
7154
7156
  [bName]: parseFloat(b3),
7155
7157
  [cName]: parseFloat(c3),
7156
- alpha: alpha6 !== void 0 ? parseFloat(alpha6) : 1
7158
+ alpha: alpha7 !== void 0 ? parseFloat(alpha7) : 1
7157
7159
  };
7158
7160
  };
7159
7161
 
@@ -8267,7 +8269,7 @@ function hueToRgb(p, q, t) {
8267
8269
  return p + (q - p) * (2 / 3 - t) * 6;
8268
8270
  return p;
8269
8271
  }
8270
- function hslaToRgba({ hue, saturation, lightness, alpha: alpha6 }) {
8272
+ function hslaToRgba({ hue, saturation, lightness, alpha: alpha7 }) {
8271
8273
  hue /= 360;
8272
8274
  saturation /= 100;
8273
8275
  lightness /= 100;
@@ -8287,7 +8289,7 @@ function hslaToRgba({ hue, saturation, lightness, alpha: alpha6 }) {
8287
8289
  red: Math.round(red * 255),
8288
8290
  green: Math.round(green * 255),
8289
8291
  blue: Math.round(blue * 255),
8290
- alpha: alpha6
8292
+ alpha: alpha7
8291
8293
  };
8292
8294
  }
8293
8295
 
@@ -13104,7 +13106,7 @@ var ResponsiveTimestampCell = (0, import_react31.memo)(({ date }) => {
13104
13106
 
13105
13107
  // src/dev-settings.tsx
13106
13108
  var React5 = __toESM(require("react"), 1);
13107
- var DEFAULT_DEV_SETTINGS = { requestTerms: "on", waterfallIssueBackgrounds: "on", waterfallLayout: "tree", waterfallStatusIcons: "first column" };
13109
+ var DEFAULT_DEV_SETTINGS = { operationStatus: "subtitle-chips", requestTerms: "on", waterfallIssueBackgrounds: "off", waterfallLayout: "tree", waterfallStatusIcons: "first column" };
13108
13110
  var DevSettingsContext = React5.createContext(DEFAULT_DEV_SETTINGS);
13109
13111
  var useDevSettings = () => React5.useContext(DevSettingsContext);
13110
13112
 
@@ -13240,7 +13242,7 @@ var DownstreamCell = ({ downstream }) => {
13240
13242
  pluralize(downstream.count, "op")
13241
13243
  ] }),
13242
13244
  downstream.errors > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(IssueChip, { color: "error", count: downstream.errors, icon: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons_material.Cancel, { sx: { fontSize: 12 } }) }),
13243
- downstream.warnings > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(IssueChip, { color: "warning", count: downstream.warnings, icon: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons_material.Error, { sx: { fontSize: 12 } }) })
13245
+ downstream.warnings > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(IssueChip, { color: "warning", count: downstream.warnings, icon: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons_material.GppMaybe, { sx: { fontSize: 12 } }) })
13244
13246
  ] }) });
13245
13247
  };
13246
13248
 
@@ -15526,7 +15528,7 @@ var StatusIconWithTooltip = ({ span }) => {
15526
15528
  if (!error && !warning2) return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_jsx_runtime125.Fragment, {});
15527
15529
  return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material5.Tooltip, { title: buildTooltipContent(span), children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material5.Box, { sx: { alignItems: "center", cursor: "default", display: "flex" }, children: [
15528
15530
  error && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material5.Box, { "aria-label": "Error", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_icons_material2.Cancel, { sx: { color: "error.main" } }) }),
15529
- warning2 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material5.Box, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_icons_material2.Error, { sx: { color: "warning.main" } }) })
15531
+ warning2 && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material5.Box, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_icons_material2.GppMaybe, { sx: { color: "warning.main" } }) })
15530
15532
  ] }) });
15531
15533
  };
15532
15534
 
@@ -15835,7 +15837,7 @@ var StatusFilter = ({ counts, onChange, value }) => {
15835
15837
  /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(StatusCount, { count: counts.error, "data-testid": ERROR_COUNT_TEST_ID })
15836
15838
  ] }),
15837
15839
  /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_material7.ToggleButton, { value: "warning", children: [
15838
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_icons_material4.Error, { sx: { color: "warning.main", fontSize: 16 } }),
15840
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_icons_material4.GppMaybe, { sx: { color: "warning.main", fontSize: 16 } }),
15839
15841
  "Warnings",
15840
15842
  /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(StatusCount, { count: counts.warning, "data-testid": WARNING_COUNT_TEST_ID })
15841
15843
  ] })
@@ -16718,14 +16720,14 @@ var getTraceBounds = (spans) => {
16718
16720
  };
16719
16721
 
16720
16722
  // src/components/trace-panel/trace-sidebar.tsx
16721
- var import_icons_material15 = require("@mui/icons-material");
16722
- var import_material25 = require("@mui/material");
16723
+ var import_icons_material16 = require("@mui/icons-material");
16724
+ var import_material26 = require("@mui/material");
16723
16725
  var import_react61 = require("@xyflow/react");
16724
16726
  var React125 = __toESM(require("react"), 1);
16725
16727
 
16726
16728
  // src/components/event-details/event-details.tsx
16727
- var import_icons_material11 = require("@mui/icons-material");
16728
- var import_material19 = require("@mui/material");
16729
+ var import_icons_material12 = require("@mui/icons-material");
16730
+ var import_material20 = require("@mui/material");
16729
16731
  var import_react51 = require("react");
16730
16732
 
16731
16733
  // src/utils/event-utils.ts
@@ -16835,6 +16837,37 @@ var getEventGroupsByType = (events) => {
16835
16837
  return groups;
16836
16838
  };
16837
16839
 
16840
+ // src/utils/lambda-function-error.ts
16841
+ var parse2 = (value) => {
16842
+ if (typeof value !== "string") return value;
16843
+ try {
16844
+ return JSON.parse(value);
16845
+ } catch {
16846
+ return value;
16847
+ }
16848
+ };
16849
+ var text2 = (value) => {
16850
+ if (value === void 0 || value === null || value === "") return void 0;
16851
+ return typeof value === "string" ? value : JSON.stringify(value);
16852
+ };
16853
+ var getLambdaFunctionError = (response) => {
16854
+ const parsed = parse2(response);
16855
+ if (!parsed || typeof parsed !== "object" || !("FunctionError" in parsed) || typeof parsed.FunctionError !== "string") {
16856
+ return void 0;
16857
+ }
16858
+ const payload = "Payload" in parsed ? parse2(parsed.Payload) : void 0;
16859
+ const error = payload && typeof payload === "object" ? payload : {};
16860
+ const stackTrace = Array.isArray(error.stackTrace) && error.stackTrace.length > 0 ? error.stackTrace.map((frame2) => String(frame2).replace(/\n$/, "")).join("\n") : void 0;
16861
+ return {
16862
+ // A runtime that returns a non-JSON payload: show it as the message.
16863
+ errorMessage: text2(error.errorMessage) ?? (typeof payload === "string" ? text2(payload) : void 0),
16864
+ errorType: text2(error.errorType),
16865
+ functionError: parsed.FunctionError,
16866
+ requestId: text2(error.requestId),
16867
+ stackTrace
16868
+ };
16869
+ };
16870
+
16838
16871
  // src/utils/time.ts
16839
16872
  function unixNanoToDate(unixNanoString) {
16840
16873
  const milliseconds = unixNanoToMilliseconds(unixNanoString);
@@ -16854,8 +16887,8 @@ var import_jsx_runtime131 = require("react/jsx-runtime");
16854
16887
  var CopyButton = ({ value }) => {
16855
16888
  const [copied, setCopied] = (0, import_react40.useState)(false);
16856
16889
  const handleCopy = (0, import_react40.useCallback)(() => {
16857
- const text2 = typeof value === "string" ? value : JSON.stringify(value, void 0, 2);
16858
- void navigator.clipboard.writeText(text2).then(() => {
16890
+ const text3 = typeof value === "string" ? value : JSON.stringify(value, void 0, 2);
16891
+ void navigator.clipboard.writeText(text3).then(() => {
16859
16892
  setCopied(true);
16860
16893
  setTimeout(() => {
16861
16894
  setCopied(false);
@@ -16893,7 +16926,7 @@ var StatusIcon = ({ errorLevel }) => {
16893
16926
  }
16894
16927
  case EventLevel.LevelPermission:
16895
16928
  case EventLevel.LevelWarning: {
16896
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_icons_material8.Error, { sx: { color: "orange" } });
16929
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_icons_material8.GppMaybe, { sx: { color: "orange" } });
16897
16930
  }
16898
16931
  default: {
16899
16932
  return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_icons_material8.CheckCircle, { sx: { color: "lightgray" } });
@@ -16918,7 +16951,7 @@ var PermissionIcon = ({ status }) => {
16918
16951
  return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_icons_material9.Error, { sx: { color: "error.main", fontSize: "1rem" } });
16919
16952
  }
16920
16953
  case "implicitly_denied": {
16921
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_icons_material9.Warning, { sx: { color: "warning.main", fontSize: "1rem" } });
16954
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_icons_material9.GppMaybe, { sx: { color: "warning.main", fontSize: "1rem" } });
16922
16955
  }
16923
16956
  }
16924
16957
  };
@@ -16985,12 +17018,7 @@ var IAMEventDetail = ({ event }) => {
16985
17018
  var import_material14 = require("@mui/material");
16986
17019
  var import_react41 = require("react");
16987
17020
  var import_jsx_runtime134 = require("react/jsx-runtime");
16988
- var getChipColor = (isAllowed, spanStatusCode) => {
16989
- if (isAllowed) return "success.main";
16990
- if (spanStatusCode === 2) return "error.main";
16991
- return "warning.main";
16992
- };
16993
- var IAMPermissionItem = ({ event, spanStatusCode }) => {
17021
+ var IAMPermissionItem = ({ event }) => {
16994
17022
  const parsedData = (0, import_react41.useMemo)(() => {
16995
17023
  const payloadString = event.attributes?.payload;
16996
17024
  if (!payloadString) return;
@@ -17002,36 +17030,31 @@ var IAMPermissionItem = ({ event, spanStatusCode }) => {
17002
17030
  return null;
17003
17031
  }
17004
17032
  const { parsedIAM } = parsedData;
17005
- const isAllowed = parsedIAM.permission === "explicitly_allowed";
17006
- const chipColors = { backgroundColor: getChipColor(isAllowed, spanStatusCode), color: "white" };
17007
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Box, { sx: { mb: 0.5 }, children: [
17008
- /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Box, { sx: { alignItems: "center", display: "flex", gap: 1, mb: 0.5 }, children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Chip, { label: formatPermissionStatus(parsedIAM.permission), size: "small", sx: { ...chipColors, fontWeight: 500 } }) }),
17009
- /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { spacing: 1, children: [
17010
- /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Box, { "data-testid": EVENT_DETAILS_IAM_PRINCIPAL_TEST_ID, children: [
17011
- /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Principal" }),
17012
- /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17013
- /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { wordBreak: "break-all" }, variant: "body2", children: parsedIAM.principal }),
17014
- /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(CopyButton, { value: parsedIAM.principal })
17015
- ] })
17016
- ] }),
17017
- parsedIAM.details.actions && parsedIAM.details.actions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Box, { "data-testid": EVENT_DETAILS_IAM_ACTIONS_TEST_ID, children: [
17018
- /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Actions" }),
17019
- parsedIAM.details.actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17020
- /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block" }, variant: "body2", children: action }),
17021
- /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(CopyButton, { value: action })
17022
- ] }, action))
17023
- ] }),
17024
- parsedIAM.details.resources && parsedIAM.details.resources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Box, { "data-testid": EVENT_DETAILS_IAM_RESOURCES_TEST_ID, children: [
17025
- /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Resources" }),
17026
- parsedIAM.details.resources.map((resource) => /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17027
- /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", wordBreak: "break-all" }, variant: "body2", children: resource }),
17028
- /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(CopyButton, { value: resource })
17029
- ] }, resource))
17033
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Box, { sx: { mb: 0.5 }, children: /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { spacing: 1, children: [
17034
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Box, { "data-testid": EVENT_DETAILS_IAM_PRINCIPAL_TEST_ID, children: [
17035
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Principal" }),
17036
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17037
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { wordBreak: "break-all" }, variant: "body2", children: parsedIAM.principal }),
17038
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(CopyButton, { value: parsedIAM.principal })
17030
17039
  ] })
17040
+ ] }),
17041
+ parsedIAM.details.actions && parsedIAM.details.actions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Box, { "data-testid": EVENT_DETAILS_IAM_ACTIONS_TEST_ID, children: [
17042
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Actions" }),
17043
+ parsedIAM.details.actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17044
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block" }, variant: "body2", children: action }),
17045
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(CopyButton, { value: action })
17046
+ ] }, action))
17047
+ ] }),
17048
+ parsedIAM.details.resources && parsedIAM.details.resources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Box, { "data-testid": EVENT_DETAILS_IAM_RESOURCES_TEST_ID, children: [
17049
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Resources" }),
17050
+ parsedIAM.details.resources.map((resource) => /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material14.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17051
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Typography, { sx: { display: "block", wordBreak: "break-all" }, variant: "body2", children: resource }),
17052
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(CopyButton, { value: resource })
17053
+ ] }, resource))
17031
17054
  ] })
17032
- ] });
17055
+ ] }) });
17033
17056
  };
17034
- var IAMPermissionDetail = ({ events, spanStatusCode }) => /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Box, { children: events.map((event) => /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(IAMPermissionItem, { event, spanStatusCode }, `${event.span_id}-${event.event_id}`)) });
17057
+ var IAMPermissionDetail = ({ events }) => /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material14.Box, { children: events.map((event) => /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(IAMPermissionItem, { event }, `${event.span_id}-${event.event_id}`)) });
17035
17058
 
17036
17059
  // src/components/event-details/payload-viewer.tsx
17037
17060
  var import_material16 = require("@mui/material");
@@ -18972,11 +18995,10 @@ var getEventLevelFromGroup = (group3) => {
18972
18995
  var EventDetail = ({
18973
18996
  displayText,
18974
18997
  events,
18975
- spanStatusCode,
18976
18998
  type
18977
18999
  }) => {
18978
19000
  if (type === "permission") {
18979
- return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(IAMPermissionDetail, { events, spanStatusCode });
19001
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(IAMPermissionDetail, { events });
18980
19002
  }
18981
19003
  const eventLevel = getEventLevelFromGroup(type);
18982
19004
  return /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_material17.Box, { children: [
@@ -25997,7 +26019,7 @@ var ProtocolLib = class {
25997
26019
  if (output !== void 0 && queryErrorHeader != null) {
25998
26020
  const [Code, Type] = queryErrorHeader.split(";");
25999
26021
  const keys = Object.keys(output);
26000
- const Error4 = {
26022
+ const Error2 = {
26001
26023
  Code,
26002
26024
  Type
26003
26025
  };
@@ -26005,10 +26027,10 @@ var ProtocolLib = class {
26005
26027
  output.Type = Type;
26006
26028
  for (let i2 = 0; i2 < keys.length; i2++) {
26007
26029
  const k2 = keys[i2];
26008
- Error4[k2 === "message" ? "Message" : k2] = output[k2];
26030
+ Error2[k2 === "message" ? "Message" : k2] = output[k2];
26009
26031
  }
26010
- delete Error4.__type;
26011
- output.Error = Error4;
26032
+ delete Error2.__type;
26033
+ output.Error = Error2;
26012
26034
  }
26013
26035
  }
26014
26036
  queryCompatOutput(queryCompatErrorData, errorData) {
@@ -31097,10 +31119,10 @@ UAItem.prototype.parseCH = function() {
31097
31119
  break;
31098
31120
  case RESULT2:
31099
31121
  var data = this.data;
31100
- var parse2 = function(itemType) {
31122
+ var parse3 = function(itemType) {
31101
31123
  return data[itemType].getItem().setCH(uaCH).parseCH().get();
31102
31124
  };
31103
- this.set(BROWSER, parse2(BROWSER)).set(CPU, parse2(CPU)).set(DEVICE, parse2(DEVICE)).set(ENGINE, parse2(ENGINE)).set(OS, parse2(OS));
31125
+ this.set(BROWSER, parse3(BROWSER)).set(CPU, parse3(CPU)).set(DEVICE, parse3(DEVICE)).set(ENGINE, parse3(ENGINE)).set(OS, parse3(OS));
31104
31126
  }
31105
31127
  return this;
31106
31128
  };
@@ -31392,8 +31414,110 @@ var LambdaInvokeLogsSection = ({ endTimeNano, functionName: functionName2, regio
31392
31414
  return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material18.Box, { sx: { backgroundColor: (theme) => theme.palette.background.default, borderRadius: 1, p: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("pre", { style: { margin: 0, overflow: "auto" }, children: logs.map((log) => /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material18.Typography, { variant: "body2", children: `[${log.timestamp}] ${log.message}` }, log.ptr)) }) });
31393
31415
  };
31394
31416
 
31395
- // src/components/event-details/event-details.tsx
31417
+ // src/components/event-details/operation-status-badges.tsx
31418
+ var import_icons_material11 = require("@mui/icons-material");
31419
+ var import_material19 = require("@mui/material");
31396
31420
  var import_jsx_runtime142 = require("react/jsx-runtime");
31421
+ var IAM = {
31422
+ allowed: { color: "success", icon: import_icons_material11.GppGood, label: "IAM allowed", title: "IAM allowed the call" },
31423
+ denied: { color: "error", icon: import_icons_material11.GppBad, label: "IAM denied", title: "IAM denied and blocked the call" },
31424
+ suppressed: { color: "text", icon: import_icons_material11.HelpOutline, label: "IAM hidden", title: "IAM results are hidden: upgrade your license to view" },
31425
+ warning: { color: "warning", icon: import_icons_material11.GppMaybe, label: "IAM warning", title: "IAM denied the call, but enforcement is off, so it went through" }
31426
+ };
31427
+ var sentenceCase = (text3) => text3.charAt(0) + text3.slice(1).toLowerCase();
31428
+ var paletteColor = (color2) => color2 === "text" ? "text.secondary" : `${color2}.main`;
31429
+ var tint = (color2) => ({
31430
+ bgcolor: (theme) => color2 === "text" ? theme.palette.action.hover : (0, import_material19.alpha)(theme.palette[color2].main, 0.12),
31431
+ borderRadius: 1,
31432
+ color: (theme) => {
31433
+ if (color2 === "text") return theme.palette.text.primary;
31434
+ const main = theme.palette[color2].main;
31435
+ return theme.palette.mode === "dark" ? (0, import_material19.lighten)(main, 0.55) : (0, import_material19.darken)(main, 0.45);
31436
+ },
31437
+ px: 0.75,
31438
+ py: 0.25
31439
+ });
31440
+ var clickable = (onClick, isTinted) => onClick === void 0 ? {} : {
31441
+ component: import_material19.ButtonBase,
31442
+ onClick,
31443
+ sx: { "&:hover": isTinted ? { filter: "brightness(1.15)" } : { textDecoration: "underline" }, "borderRadius": 1, "cursor": "pointer", "font": "inherit" }
31444
+ };
31445
+ var OperationStatusBadges = ({ iam, iamPermission, onIamClick, onStatusClick, status, statusLabel, variant }) => {
31446
+ const isError = status === "error";
31447
+ const statusText = isError ? statusLabel ?? "Error" : "OK";
31448
+ const StatusIcon2 = isError ? import_icons_material11.Cancel : import_icons_material11.CheckCircle;
31449
+ const statusColor = isError ? "error" : "success";
31450
+ const iamStyle = iam === void 0 ? void 0 : IAM[iam];
31451
+ const iamPrefix = variant === "subtitle-chips" ? "" : "IAM \u2022 ";
31452
+ const iamLabel = iamPermission === void 0 || iam === "suppressed" ? iamStyle?.label : `${iamPrefix}${sentenceCase(formatPermissionStatus(iamPermission))}`;
31453
+ const showStatus = status !== "unset";
31454
+ if (variant === "chips") {
31455
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { sx: { display: "flex", flex: "none", gap: 0.5 }, children: [
31456
+ showStatus && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
31457
+ import_material19.Chip,
31458
+ {
31459
+ color: statusColor,
31460
+ "data-testid": EVENT_DETAILS_HEADING_STATUS_TEST_ID,
31461
+ icon: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(StatusIcon2, {}),
31462
+ label: statusText,
31463
+ size: "small",
31464
+ variant: "outlined"
31465
+ }
31466
+ ),
31467
+ iamStyle && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Tooltip, { title: iamStyle.title, children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
31468
+ import_material19.Chip,
31469
+ {
31470
+ color: iamStyle.color === "text" ? "default" : iamStyle.color,
31471
+ "data-testid": EVENT_DETAILS_HEADING_IAM_TEST_ID,
31472
+ icon: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(iamStyle.icon, {}),
31473
+ label: iamLabel,
31474
+ size: "small",
31475
+ variant: "outlined"
31476
+ }
31477
+ ) })
31478
+ ] });
31479
+ }
31480
+ if (variant === "icons") {
31481
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { sx: { alignItems: "center", display: "flex", flex: "none", gap: 0.25 }, children: [
31482
+ showStatus && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Tooltip, { title: isError ? `Failed: ${statusText}` : "Succeeded", children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(StatusIcon2, { color: statusColor, "data-testid": EVENT_DETAILS_HEADING_STATUS_TEST_ID, fontSize: "small" }) }),
31483
+ iamStyle && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Tooltip, { title: iamStyle.title, children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(iamStyle.icon, { "data-testid": EVENT_DETAILS_HEADING_IAM_TEST_ID, fontSize: "small", sx: { color: paletteColor(iamStyle.color) } }) })
31484
+ ] });
31485
+ }
31486
+ const isTinted = variant === "subtitle-chips";
31487
+ if (!showStatus && !iamStyle) {
31488
+ return null;
31489
+ }
31490
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
31491
+ showStatus && /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
31492
+ import_material19.Box,
31493
+ {
31494
+ "data-testid": EVENT_DETAILS_HEADING_STATUS_TEST_ID,
31495
+ ...clickable(onStatusClick, isTinted),
31496
+ sx: { alignItems: "center", color: `${statusColor}.main`, display: "flex", gap: 0.5, minWidth: 0, ...clickable(onStatusClick, isTinted).sx, ...isTinted ? tint(statusColor) : {} },
31497
+ children: [
31498
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(StatusIcon2, { sx: { color: isTinted ? `${statusColor}.main` : void 0, fontSize: 14 } }),
31499
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { color: isTinted ? "inherit" : void 0, noWrap: true, variant: "caption", children: isError ? `Failed \xB7 ${statusText}` : "Succeeded" })
31500
+ ]
31501
+ }
31502
+ ),
31503
+ showStatus && iamStyle && !isTinted && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { color: "text.disabled", variant: "caption", children: "|" }),
31504
+ iamStyle && /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
31505
+ import_material19.Box,
31506
+ {
31507
+ "data-testid": EVENT_DETAILS_HEADING_IAM_TEST_ID,
31508
+ ...clickable(onIamClick, isTinted),
31509
+ sx: { alignItems: "center", color: paletteColor(iamStyle.color), display: "flex", flex: "none", gap: 0.5, ...clickable(onIamClick, isTinted).sx, ...isTinted ? tint(iamStyle.color) : {} },
31510
+ children: [
31511
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(iamStyle.icon, { sx: { color: isTinted ? paletteColor(iamStyle.color) : void 0, fontSize: 14 } }),
31512
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { color: isTinted ? "inherit" : void 0, variant: "caption", children: iamLabel })
31513
+ ]
31514
+ }
31515
+ )
31516
+ ] });
31517
+ };
31518
+
31519
+ // src/components/event-details/event-details.tsx
31520
+ var import_jsx_runtime143 = require("react/jsx-runtime");
31397
31521
  var checkIsLambdaInvoke = (span) => {
31398
31522
  if (span.service_name !== "lambda") {
31399
31523
  return false;
@@ -31407,14 +31531,17 @@ var checkIsSqsSendMessage = (span) => {
31407
31531
  }
31408
31532
  return span.operation_name.startsWith("SendMessage");
31409
31533
  };
31410
- var Field = ({ children, copy, label, testId, testIdOn = "value" }) => /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { children: [
31411
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: label }),
31412
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Stack, { alignItems: "center", "data-testid": testIdOn === "row" ? testId : void 0, direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
31413
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { "data-testid": testIdOn === "value" ? testId : void 0, variant: "body2", children }),
31414
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(CopyButton, { value: copy ?? children })
31534
+ var PERMISSION_SEVERITY = ["explicitly_denied", "implicitly_denied", "explicitly_allowed"];
31535
+ var getWorstPermission = (events) => PERMISSION_SEVERITY.find((permission) => events.some((event) => event.permission === permission));
31536
+ var IAM_OUTCOME = { allowed: "allowed", error: "denied", none: void 0, warning: "warning" };
31537
+ var Field = ({ children, copy, label, testId, testIdOn = "value" }) => /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { children: [
31538
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: label }),
31539
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Stack, { alignItems: "center", "data-testid": testIdOn === "row" ? testId : void 0, direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
31540
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { "data-testid": testIdOn === "value" ? testId : void 0, variant: "body2", children }),
31541
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(CopyButton, { value: copy ?? children })
31415
31542
  ] })
31416
31543
  ] });
31417
- var EmptyTab = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { color: "text.secondary", variant: "body2", children });
31544
+ var EmptyTab = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { color: "text.secondary", variant: "body2", children });
31418
31545
  var EventDetails = ({ onClose, selectedEvent }) => {
31419
31546
  const eventGroups = (0, import_react51.useMemo)(
31420
31547
  () => getEventGroupsByType(selectedEvent?.events ?? []),
@@ -31422,8 +31549,9 @@ var EventDetails = ({ onClose, selectedEvent }) => {
31422
31549
  );
31423
31550
  const [parseNestedJson, setParseNestedJson] = (0, import_react51.useState)(true);
31424
31551
  const [tab, setTab] = (0, import_react51.useState)("details");
31552
+ const { operationStatus: variant } = useDevSettings();
31425
31553
  if (!selectedEvent) {
31426
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Box, { sx: { p: 3, textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { color: "text.secondary", variant: "body2", children: "Select an operation to view graph" }) });
31554
+ return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Box, { sx: { p: 3, textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { color: "text.secondary", variant: "body2", children: "Select an operation to view graph" }) });
31427
31555
  }
31428
31556
  const isLambdaInvoke = checkIsLambdaInvoke(selectedEvent);
31429
31557
  const isSqsSendMessage = checkIsSqsSendMessage(selectedEvent);
@@ -31449,27 +31577,48 @@ var EventDetails = ({ onClose, selectedEvent }) => {
31449
31577
  }
31450
31578
  }
31451
31579
  const exceptionPayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.exception"]);
31580
+ const functionError = isLambdaInvoke ? getLambdaFunctionError(selectedEvent.attributes?.["localstack.aws.service.response"]) : void 0;
31581
+ const errorType = functionError?.errorType ?? issues.errorType;
31452
31582
  const duration = selectedEvent.end_time_unix_nano ? ((BigInt(selectedEvent.end_time_unix_nano) - BigInt(selectedEvent.start_time_unix_nano)) / BigInt("1000000")).toString() : void 0;
31453
31583
  const resource = shortResourceName(selectedEvent.resource_name, selectedEvent.arn);
31454
31584
  const showError = issues.error;
31455
31585
  const showPermissions = selectedEvent.iam_errors_suppressed === true || eventGroups.permissions !== void 0;
31456
31586
  const showLogs = isLambdaInvoke && requestId !== void 0;
31457
31587
  const activeTab = tab === "error" && !showError || tab === "permissions" && !showPermissions || tab === "logs" && !showLogs ? "details" : tab;
31458
- const errorMessages = [.../* @__PURE__ */ new Set([selectedEvent.status_message, ...(selectedEvent.errors ?? []).filter((item) => item.level === "error").map((item) => item.message)])].filter((message) => Boolean(message) && message !== issues.errorType);
31459
- const rawDataSwitch = /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
31460
- import_material19.FormControlLabel,
31588
+ const errorMessages = functionError?.errorMessage === void 0 ? [.../* @__PURE__ */ new Set([selectedEvent.status_message, ...(selectedEvent.errors ?? []).filter((item) => item.level === "error").map((item) => item.message)])].filter((message) => Boolean(message) && message !== errorType) : [functionError.errorMessage];
31589
+ const iamEvents = getIamEvents(selectedEvent);
31590
+ const iamPermission = getWorstPermission(iamEvents);
31591
+ const iamOutcome = selectedEvent.iam_errors_suppressed === true ? "suppressed" : IAM_OUTCOME[iam.level ?? (iamEvents.length > 0 ? "allowed" : "none")];
31592
+ const statusBadges = /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
31593
+ OperationStatusBadges,
31461
31594
  {
31462
- control: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Switch, { checked: !parseNestedJson, onChange: (event) => {
31595
+ iam: iamOutcome,
31596
+ iamPermission,
31597
+ onIamClick: showPermissions ? () => {
31598
+ setTab("permissions");
31599
+ } : void 0,
31600
+ onStatusClick: () => {
31601
+ setTab(showError ? "error" : "response");
31602
+ },
31603
+ status: issues.error ? "error" : selectedEvent.status_code === 1 ? "ok" : "unset",
31604
+ statusLabel: errorType,
31605
+ variant
31606
+ }
31607
+ );
31608
+ const rawDataSwitch = /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
31609
+ import_material20.FormControlLabel,
31610
+ {
31611
+ control: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Switch, { checked: !parseNestedJson, onChange: (event) => {
31463
31612
  setParseNestedJson(!event.target.checked);
31464
31613
  }, size: "small" }),
31465
- label: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { variant: "caption", children: "View raw data" }),
31614
+ label: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { variant: "caption", children: "View raw data" }),
31466
31615
  sx: { mb: 1, mr: 0 }
31467
31616
  }
31468
31617
  );
31469
- const permissionsIcon = iam.level === "error" ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_icons_material11.Cancel, { color: "error", fontSize: "small" }) : iam.level === "warning" ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_icons_material11.Error, { color: "warning", fontSize: "small" }) : void 0;
31470
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { "data-testid": EVENT_DETAILS_TEST_ID, sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
31471
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
31472
- import_material19.Box,
31618
+ const permissionsIcon = iam.level === "error" ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_icons_material12.GppBad, { color: "error", sx: { fontSize: 16 } }) : iam.level === "warning" ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_icons_material12.GppMaybe, { color: "warning", sx: { fontSize: 16 } }) : void 0;
31619
+ return /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { "data-testid": EVENT_DETAILS_TEST_ID, sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
31620
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
31621
+ import_material20.Box,
31473
31622
  {
31474
31623
  sx: {
31475
31624
  alignItems: "center",
@@ -31481,23 +31630,22 @@ var EventDetails = ({ onClose, selectedEvent }) => {
31481
31630
  py: 1
31482
31631
  },
31483
31632
  children: [
31484
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { sx: { flex: 1, minWidth: 0 }, children: [
31485
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: "Selected operation" }),
31486
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { "data-testid": EVENT_DETAILS_HEADING_TEST_ID, sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
31487
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(AwsServiceIcon, { hideTooltip: true, service: selectedEvent.service_name, size: "small" }),
31488
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, title: selectedEvent.operation_name, variant: "subtitle1", children: selectedEvent.operation_name }),
31489
- resource !== "" && resource !== "*" && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: resource, variant: "body2", children: resource }),
31490
- duration !== void 0 && // A fixed box, so a screenshot can mask the varying value without the mask edge moving.
31491
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { color: "text.secondary", "data-testid": EVENT_DETAILS_HEADING_DURATION_TEST_ID, sx: { flex: "none", ml: "auto", textAlign: "right", width: 64 }, variant: "body2", children: formatDuration(Number(duration)) })
31633
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: { containerType: "inline-size", flex: 1, minWidth: 0 }, children: [
31634
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: "Selected operation" }),
31635
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { "data-testid": EVENT_DETAILS_HEADING_TEST_ID, sx: { "@container (min-width: 560px)": { flexWrap: "nowrap" }, "alignItems": "center", "columnGap": 1, "display": "flex", "flexWrap": variant.startsWith("subtitle") ? "wrap" : "nowrap", "minWidth": 0 }, children: [
31636
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(AwsServiceIcon, { hideTooltip: true, service: selectedEvent.service_name, size: "small" }),
31637
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, title: selectedEvent.operation_name, variant: "subtitle1", children: selectedEvent.operation_name }),
31638
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Box, { sx: variant.startsWith("subtitle") ? { "@container (min-width: 560px)": { flexBasis: "auto", order: 0 }, "display": "flex", "flex": "none", "flexBasis": "100%", "order": 1 } : { display: "flex", flex: "none" }, children: statusBadges }),
31639
+ resource !== "" && resource !== "*" && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: resource, variant: "body2", children: resource })
31492
31640
  ] })
31493
31641
  ] }),
31494
- onClose && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.IconButton, { "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_icons_material11.Close, {}) })
31642
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.IconButton, { "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_icons_material12.Close, {}) })
31495
31643
  ]
31496
31644
  }
31497
31645
  ),
31498
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { sx: { flexGrow: 1, minHeight: 0, overflow: "auto" }, children: [
31499
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
31500
- import_material19.Tabs,
31646
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: { flexGrow: 1, minHeight: 0, overflow: "auto" }, children: [
31647
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
31648
+ import_material20.Tabs,
31501
31649
  {
31502
31650
  onChange: (_event, value) => {
31503
31651
  setTab(value);
@@ -31516,87 +31664,94 @@ var EventDetails = ({ onClose, selectedEvent }) => {
31516
31664
  value: activeTab,
31517
31665
  variant: "scrollable",
31518
31666
  children: [
31519
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Tab, { "data-testid": DETAIL_TAB_DETAILS_TEST_ID, label: "Details", value: "details" }),
31520
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Tab, { "data-testid": DETAIL_TAB_REQUEST_TEST_ID, label: "Payload", value: "request" }),
31521
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Tab, { "data-testid": DETAIL_TAB_RESPONSE_TEST_ID, label: "Response", value: "response" }),
31522
- showError && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Tab, { "data-testid": DETAIL_TAB_ERROR_TEST_ID, icon: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_icons_material11.Cancel, { color: "error", fontSize: "small" }), iconPosition: "end", label: "Error", value: "error" }),
31523
- showPermissions && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Tab, { "data-testid": DETAIL_TAB_PERMISSIONS_TEST_ID, icon: permissionsIcon, iconPosition: "end", label: "Permissions", value: "permissions" }),
31524
- showLogs && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Tab, { "data-testid": DETAIL_TAB_LOGS_TEST_ID, label: "Logs", value: "logs" })
31667
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Tab, { "data-testid": DETAIL_TAB_DETAILS_TEST_ID, label: "Details", value: "details" }),
31668
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Tab, { "data-testid": DETAIL_TAB_REQUEST_TEST_ID, label: "Payload", value: "request" }),
31669
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Tab, { "data-testid": DETAIL_TAB_RESPONSE_TEST_ID, label: "Response", value: "response" }),
31670
+ showError && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Tab, { "data-testid": DETAIL_TAB_ERROR_TEST_ID, icon: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_icons_material12.Cancel, { color: "error", sx: { fontSize: 16 } }), iconPosition: "end", label: "Error", value: "error" }),
31671
+ showPermissions && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Tab, { "data-testid": DETAIL_TAB_PERMISSIONS_TEST_ID, icon: permissionsIcon, iconPosition: "end", label: "Permissions", value: "permissions" }),
31672
+ showLogs && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Tab, { "data-testid": DETAIL_TAB_LOGS_TEST_ID, label: "Logs", value: "logs" })
31525
31673
  ]
31526
31674
  }
31527
31675
  ),
31528
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { sx: { p: 2 }, children: [
31529
- activeTab === "details" && /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Stack, { spacing: 2, children: [
31530
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Stack, { "data-testid": EVENT_DETAILS_SECTION_BASIC_INFORMATION_TEST_ID, spacing: 1, children: [
31531
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
31532
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Field, { copy: getServiceDisplayName(selectedEvent.service_name), label: "Service", testId: EVENT_DETAILS_SERVICE_NAME_TEST_ID, children: getServiceDisplayName(selectedEvent.service_name) }),
31533
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Field, { label: "Action", testId: EVENT_DETAILS_OPERATION_NAME_TEST_ID, children: selectedEvent.operation_name })
31676
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: { p: 2 }, children: [
31677
+ activeTab === "details" && /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Stack, { spacing: 2, children: [
31678
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Stack, { "data-testid": EVENT_DETAILS_SECTION_BASIC_INFORMATION_TEST_ID, spacing: 1, children: [
31679
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
31680
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { copy: getServiceDisplayName(selectedEvent.service_name), label: "Service", testId: EVENT_DETAILS_SERVICE_NAME_TEST_ID, children: getServiceDisplayName(selectedEvent.service_name) }),
31681
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Action", testId: EVENT_DETAILS_OPERATION_NAME_TEST_ID, children: selectedEvent.operation_name })
31534
31682
  ] }),
31535
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { sx: cfnResourceType ? { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" } : void 0, children: [
31536
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Field, { label: "Resource", testId: EVENT_DETAILS_RESOURCE_NAME_TEST_ID, testIdOn: "row", children: selectedEvent.resource_name }),
31537
- Boolean(cfnResourceType) && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Field, { label: "Resource Type", testId: EVENT_DETAILS_CFN_RESOURCE_TYPE_TEST_ID, children: cfnResourceType })
31683
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: cfnResourceType ? { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" } : void 0, children: [
31684
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Resource", testId: EVENT_DETAILS_RESOURCE_NAME_TEST_ID, testIdOn: "row", children: selectedEvent.resource_name }),
31685
+ Boolean(cfnResourceType) && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Resource Type", testId: EVENT_DETAILS_CFN_RESOURCE_TYPE_TEST_ID, children: cfnResourceType })
31538
31686
  ] }),
31539
- Boolean(resourceArn) && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Field, { label: "Resource ARN", testId: EVENT_DETAILS_RESOURCE_ARN_TEST_ID, testIdOn: "row", children: resourceArn }),
31540
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { sx: { display: "grid", gap: 1, gridTemplateColumns: "1.3fr 1fr" }, children: [
31541
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Field, { label: "Account", testId: EVENT_DETAILS_ACCOUNT_TEST_ID, children: selectedEvent.account_id }),
31542
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Field, { label: "Region", testId: EVENT_DETAILS_REGION_TEST_ID, children: selectedEvent.region })
31687
+ Boolean(resourceArn) && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Resource ARN", testId: EVENT_DETAILS_RESOURCE_ARN_TEST_ID, testIdOn: "row", children: resourceArn }),
31688
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: { display: "grid", gap: 1, gridTemplateColumns: "1.3fr 1fr" }, children: [
31689
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Account", testId: EVENT_DETAILS_ACCOUNT_TEST_ID, children: selectedEvent.account_id }),
31690
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Region", testId: EVENT_DETAILS_REGION_TEST_ID, children: selectedEvent.region })
31543
31691
  ] }),
31544
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { sx: { display: "grid", gap: 1, gridTemplateColumns: duration === void 0 ? "1fr" : "1.3fr 1fr" }, children: [
31545
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
31692
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: { display: "grid", gap: 1, gridTemplateColumns: duration === void 0 ? "1fr" : "1.3fr 1fr" }, children: [
31693
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
31546
31694
  Field,
31547
31695
  {
31548
31696
  copy: unixNanoToDate(selectedEvent.start_time_unix_nano)?.toISOString(),
31549
31697
  label: "Start Time",
31550
31698
  testId: EVENT_DETAILS_START_TIME_TEST_ID,
31551
31699
  testIdOn: "row",
31552
- children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(ResponsiveTimestampCell, { date: unixNanoToDate(selectedEvent.start_time_unix_nano) })
31700
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(ResponsiveTimestampCell, { date: unixNanoToDate(selectedEvent.start_time_unix_nano) })
31553
31701
  }
31554
31702
  ),
31555
- duration !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(Field, { copy: `${duration}ms`, label: "Duration", testId: EVENT_DETAILS_DURATION_TEST_ID, testIdOn: "row", children: [
31703
+ duration !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(Field, { copy: `${duration}ms`, label: "Duration", testId: EVENT_DETAILS_DURATION_TEST_ID, testIdOn: "row", children: [
31556
31704
  duration,
31557
31705
  "ms"
31558
31706
  ] })
31559
- ] }),
31560
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { children: [
31561
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Status" }),
31562
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Stack, { alignItems: "center", direction: "row", flexWrap: "wrap", gap: 1, sx: { mb: eventGroups.errors || eventGroups.warnings ? 1 : 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
31563
- import_material19.Chip,
31564
- {
31565
- color: selectedEvent.status_code === 2 ? "error" : selectedEvent.status_code === 1 ? "success" : "default",
31566
- "data-testid": EVENT_DETAILS_STATUS_TEST_ID,
31567
- label: selectedEvent.status_code === 2 ? "Error" : selectedEvent.status_code === 1 ? "OK" : "Unset",
31568
- size: "small"
31569
- }
31570
- ) })
31571
31707
  ] })
31572
31708
  ] }),
31573
- eventGroups.errors && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(EventDetail, { displayText: "Error", events: eventGroups.errors, type: "error" }),
31574
- eventGroups.warnings && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(EventDetail, { displayText: "Warning", events: eventGroups.warnings, type: "warning" }),
31575
- eventGroups.info && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(EventDetail, { displayText: "Info", events: eventGroups.info, type: "info" })
31709
+ eventGroups.errors && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(EventDetail, { displayText: "Error", events: eventGroups.errors, type: "error" }),
31710
+ eventGroups.warnings && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(EventDetail, { displayText: "Warning", events: eventGroups.warnings, type: "warning" }),
31711
+ eventGroups.info && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(EventDetail, { displayText: "Info", events: eventGroups.info, type: "info" })
31576
31712
  ] }),
31577
- activeTab === "request" && (requestPayload === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(EmptyTab, { children: "No request payload recorded." }) : /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, { children: [
31713
+ activeTab === "request" && (requestPayload === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(EmptyTab, { children: "No request payload recorded." }) : /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, { children: [
31578
31714
  rawDataSwitch,
31579
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(PayloadViewer, { testId: EVENT_DETAILS_REQUEST_PAYLOAD, value: requestPayload })
31715
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(PayloadViewer, { testId: EVENT_DETAILS_REQUEST_PAYLOAD, value: requestPayload })
31580
31716
  ] })),
31581
- activeTab === "response" && (responsePayload === void 0 && !isResponseSuppressed ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(EmptyTab, { children: issues.error ? "No response: the call failed. See the Error tab." : "No response payload recorded." }) : /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, { children: [
31717
+ activeTab === "response" && (responsePayload === void 0 && !isResponseSuppressed ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(EmptyTab, { children: issues.error ? "No response: the call failed. See the Error tab." : "No response payload recorded." }) : /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, { children: [
31582
31718
  rawDataSwitch,
31583
- isResponseSuppressed ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Alert, { severity: "warning", children: "Response payload is available \u2014 upgrade your license to view" }) : /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
31719
+ isResponseSuppressed ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Alert, { severity: "warning", children: "Response payload is available \u2014 upgrade your license to view" }) : /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
31584
31720
  ] })),
31585
- activeTab === "error" && /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Stack, { spacing: 2, children: [
31586
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Stack, { spacing: 1, children: [
31587
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Field, { label: "Type", children: issues.errorType }),
31588
- errorMessages.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Field, { label: "Message", children: errorMessages.join(" \xB7 ") })
31721
+ activeTab === "error" && /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Stack, { spacing: 2, children: [
31722
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Stack, { spacing: 1, children: [
31723
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Type", children: errorType }),
31724
+ errorMessages.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Message", children: errorMessages.join(" \xB7 ") }),
31725
+ functionError && /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
31726
+ functionError.requestId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Request ID", children: functionError.requestId }),
31727
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Field, { label: "Function Error", testId: EVENT_DETAILS_FUNCTION_ERROR_TEST_ID, children: functionError.functionError })
31728
+ ] })
31589
31729
  ] }),
31590
- exceptionPayload !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material19.Box, { children: [
31591
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Typography, { sx: { fontWeight: 600, mb: 0.5 }, variant: "caption", children: "Exception" }),
31592
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(PayloadViewer, { testId: EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID, value: exceptionPayload })
31730
+ functionError?.stackTrace !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { children: [
31731
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Stack, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
31732
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Stack Trace" }),
31733
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(CopyButton, { value: functionError.stackTrace })
31734
+ ] }),
31735
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
31736
+ import_material20.Box,
31737
+ {
31738
+ component: "pre",
31739
+ "data-testid": EVENT_DETAILS_STACK_TRACE_TEST_ID,
31740
+ sx: { backgroundColor: "background.default", borderRadius: 1, fontFamily: "monospace", fontSize: 12, m: 0, overflow: "auto", p: 1 },
31741
+ children: functionError.stackTrace
31742
+ }
31743
+ )
31744
+ ] }),
31745
+ exceptionPayload !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Box, { children: [
31746
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Typography, { sx: { fontWeight: 600, mb: 0.5 }, variant: "caption", children: "Exception" }),
31747
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(PayloadViewer, { testId: EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID, value: exceptionPayload })
31593
31748
  ] })
31594
31749
  ] }),
31595
- activeTab === "permissions" && /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, { children: [
31596
- selectedEvent.iam_errors_suppressed && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material19.Alert, { "data-testid": EVENT_DETAILS_IAM_ERRORS_SUPPRESSED_TEST_ID, severity: "warning", sx: { mb: 1 }, children: "IAM errors are suppressed \u2014 upgrade your license to view" }),
31597
- eventGroups.permissions && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(EventDetail, { displayText: "Permissions", events: eventGroups.permissions, spanStatusCode: selectedEvent.status_code, type: "permission" })
31750
+ activeTab === "permissions" && /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, { children: [
31751
+ selectedEvent.iam_errors_suppressed && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Alert, { "data-testid": EVENT_DETAILS_IAM_ERRORS_SUPPRESSED_TEST_ID, severity: "warning", sx: { mb: 1 }, children: "IAM errors are suppressed \u2014 upgrade your license to view" }),
31752
+ eventGroups.permissions && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(EventDetail, { displayText: "Permissions", events: eventGroups.permissions, type: "permission" })
31598
31753
  ] }),
31599
- activeTab === "logs" && requestId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
31754
+ activeTab === "logs" && requestId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
31600
31755
  LambdaInvokeLogsSection,
31601
31756
  {
31602
31757
  endTimeNano: selectedEvent.end_time_unix_nano ?? selectedEvent.start_time_unix_nano,
@@ -31613,39 +31768,39 @@ var EventDetails = ({ onClose, selectedEvent }) => {
31613
31768
 
31614
31769
  // src/components/trace-graph/trace-graph.tsx
31615
31770
  var import_base = require("@xyflow/react/dist/base.css");
31616
- var import_material23 = require("@mui/material");
31771
+ var import_material24 = require("@mui/material");
31617
31772
  var import_react58 = require("@xyflow/react");
31618
31773
  var import_react59 = require("react");
31619
31774
 
31620
31775
  // src/components/trace-graph/service-node.tsx
31621
- var import_icons_material12 = require("@mui/icons-material");
31622
- var import_material20 = require("@mui/material");
31776
+ var import_icons_material13 = require("@mui/icons-material");
31777
+ var import_material21 = require("@mui/material");
31623
31778
  var import_react52 = require("@xyflow/react");
31624
31779
  var import_style = require("@xyflow/react/dist/style.css");
31625
31780
  var React123 = require("react");
31626
31781
  var import_react53 = require("react");
31627
- var import_jsx_runtime143 = require("react/jsx-runtime");
31782
+ var import_jsx_runtime144 = require("react/jsx-runtime");
31628
31783
  var handleStyle = {
31629
31784
  backgroundColor: "white",
31630
31785
  borderColor: "lightgray",
31631
31786
  opacity: 0
31632
31787
  };
31633
31788
  var NodeContent = ({ event, expanded, issues }) => {
31634
- const theme = (0, import_material20.useTheme)();
31635
- return /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, { children: [
31636
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_react52.Handle, { position: import_react52.Position.Left, style: handleStyle, type: "target" }),
31637
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_react52.Handle, { position: import_react52.Position.Right, style: handleStyle, type: "source" }),
31638
- /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
31639
- import_material20.Stack,
31789
+ const theme = (0, import_material21.useTheme)();
31790
+ return /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(import_jsx_runtime144.Fragment, { children: [
31791
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_react52.Handle, { position: import_react52.Position.Left, style: handleStyle, type: "target" }),
31792
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_react52.Handle, { position: import_react52.Position.Right, style: handleStyle, type: "source" }),
31793
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
31794
+ import_material21.Stack,
31640
31795
  {
31641
31796
  alignItems: "center",
31642
31797
  direction: "row",
31643
31798
  sx: { gap: "8px", pb: "2px", pt: "6px", px: "8px" },
31644
31799
  children: [
31645
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Box, { sx: { borderRadius: "4px", flexShrink: 0, lineHeight: 0, overflow: "hidden" }, children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(AwsServiceIcon, { hideTooltip: true, service: event.service_name, size: "medium" }) }),
31646
- /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material20.Stack, { sx: expanded ? void 0 : { minWidth: 0 }, children: [
31647
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
31648
- import_material20.Typography,
31800
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material21.Box, { sx: { borderRadius: "4px", flexShrink: 0, lineHeight: 0, overflow: "hidden" }, children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(AwsServiceIcon, { hideTooltip: true, service: event.service_name, size: "medium" }) }),
31801
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(import_material21.Stack, { sx: expanded ? void 0 : { minWidth: 0 }, children: [
31802
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
31803
+ import_material21.Typography,
31649
31804
  {
31650
31805
  noWrap: !expanded,
31651
31806
  sx: { fontWeight: 700, lineHeight: 1.25, ...expanded && { whiteSpace: "nowrap" } },
@@ -31653,8 +31808,8 @@ var NodeContent = ({ event, expanded, issues }) => {
31653
31808
  children: getServiceDisplayName(event.service_name)
31654
31809
  }
31655
31810
  ),
31656
- event.resource_name != "" && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
31657
- import_material20.Typography,
31811
+ event.resource_name != "" && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
31812
+ import_material21.Typography,
31658
31813
  {
31659
31814
  color: "text.secondary",
31660
31815
  noWrap: !expanded,
@@ -31667,16 +31822,16 @@ var NodeContent = ({ event, expanded, issues }) => {
31667
31822
  ]
31668
31823
  }
31669
31824
  ),
31670
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Divider, { sx: { ml: "38px", mr: "8px", my: "5px" } }),
31671
- /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
31672
- import_material20.Stack,
31825
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material21.Divider, { sx: { ml: "38px", mr: "8px", my: "5px" } }),
31826
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
31827
+ import_material21.Stack,
31673
31828
  {
31674
31829
  alignItems: "center",
31675
31830
  direction: "row",
31676
31831
  sx: expanded ? { pb: "5px", pr: "8px", pt: "1px" } : { minWidth: 0, pb: "5px", pr: "8px", pt: "1px" },
31677
31832
  children: [
31678
- /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
31679
- import_material20.Box,
31833
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
31834
+ import_material21.Box,
31680
31835
  {
31681
31836
  sx: {
31682
31837
  alignItems: "center",
@@ -31686,13 +31841,13 @@ var NodeContent = ({ event, expanded, issues }) => {
31686
31841
  width: "38px"
31687
31842
  },
31688
31843
  children: [
31689
- issues.error && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Tooltip, { arrow: true, title: issues.errorType, children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Box, { "aria-label": "Error", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_icons_material12.Cancel, { sx: { color: theme.palette.error.main, fontSize: "16px" } }) }) }),
31690
- issues.warning && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Tooltip, { arrow: true, title: issues.warningType, children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material20.Box, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_icons_material12.Error, { sx: { color: theme.palette.warning.main, fontSize: "16px" } }) }) })
31844
+ issues.error && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material21.Tooltip, { arrow: true, title: issues.errorType, children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material21.Box, { "aria-label": "Error", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_icons_material13.Cancel, { sx: { color: theme.palette.error.main, fontSize: "16px" } }) }) }),
31845
+ issues.warning && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material21.Tooltip, { arrow: true, title: issues.warningType, children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material21.Box, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_icons_material13.GppMaybe, { sx: { color: theme.palette.warning.main, fontSize: "16px" } }) }) })
31691
31846
  ]
31692
31847
  }
31693
31848
  ),
31694
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
31695
- import_material20.Typography,
31849
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
31850
+ import_material21.Typography,
31696
31851
  {
31697
31852
  "data-testid": SERVICE_NODE_OPERATION_NAME_TEST_ID,
31698
31853
  noWrap: !expanded,
@@ -31707,7 +31862,7 @@ var NodeContent = ({ event, expanded, issues }) => {
31707
31862
  ] });
31708
31863
  };
31709
31864
  var ServiceNode = (0, import_react53.memo)(({ data, selected }) => {
31710
- const theme = (0, import_material20.useTheme)();
31865
+ const theme = (0, import_material21.useTheme)();
31711
31866
  const [isHovered, setIsHovered] = (0, import_react53.useState)(false);
31712
31867
  const nodeRef = (0, import_react53.useRef)(null);
31713
31868
  const issues = getSpanIssues(data.event);
@@ -31737,8 +31892,8 @@ var ServiceNode = (0, import_react53.memo)(({ data, selected }) => {
31737
31892
  const xyNode = nodeRef.current?.closest(".react-flow__node");
31738
31893
  if (xyNode) xyNode.style.zIndex = "";
31739
31894
  };
31740
- return /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
31741
- import_material20.Box,
31895
+ return /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
31896
+ import_material21.Box,
31742
31897
  {
31743
31898
  "data-testid": SERVICE_NODE_TEST_ID,
31744
31899
  onMouseEnter: handleMouseEnter,
@@ -31748,8 +31903,8 @@ var ServiceNode = (0, import_react53.memo)(({ data, selected }) => {
31748
31903
  sx: { display: "inline-block", position: "relative" },
31749
31904
  tabIndex: 0,
31750
31905
  children: [
31751
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
31752
- import_material20.Box,
31906
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
31907
+ import_material21.Box,
31753
31908
  {
31754
31909
  sx: {
31755
31910
  ...sharedBoxSx,
@@ -31757,11 +31912,11 @@ var ServiceNode = (0, import_react53.memo)(({ data, selected }) => {
31757
31912
  maxWidth: 220,
31758
31913
  overflow: "hidden"
31759
31914
  },
31760
- children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(NodeContent, { ...contentProps, expanded: false })
31915
+ children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(NodeContent, { ...contentProps, expanded: false })
31761
31916
  }
31762
31917
  ),
31763
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
31764
- import_material20.Box,
31918
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
31919
+ import_material21.Box,
31765
31920
  {
31766
31921
  onMouseLeave: handleMouseLeave,
31767
31922
  sx: {
@@ -31775,7 +31930,7 @@ var ServiceNode = (0, import_react53.memo)(({ data, selected }) => {
31775
31930
  width: "max-content",
31776
31931
  zIndex: 10
31777
31932
  },
31778
- children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(NodeContent, { ...contentProps, expanded: true })
31933
+ children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(NodeContent, { ...contentProps, expanded: true })
31779
31934
  }
31780
31935
  )
31781
31936
  ]
@@ -31869,12 +32024,12 @@ var getLayoutedNodesAndEdges = (inputNodes, inputEdges) => {
31869
32024
  };
31870
32025
 
31871
32026
  // src/components/trace-graph/xyflow/controls.tsx
31872
- var import_icons_material13 = require("@mui/icons-material");
31873
- var import_material21 = require("@mui/material");
32027
+ var import_icons_material14 = require("@mui/icons-material");
32028
+ var import_material22 = require("@mui/material");
31874
32029
  var import_react54 = require("@xyflow/react");
31875
32030
  var import_react55 = require("react");
31876
32031
  var import_shallow = require("zustand/shallow");
31877
- var import_jsx_runtime144 = require("react/jsx-runtime");
32032
+ var import_jsx_runtime145 = require("react/jsx-runtime");
31878
32033
  var selector = (s) => ({
31879
32034
  isInteractive: s.nodesDraggable || s.nodesConnectable || s.elementsSelectable,
31880
32035
  maxZoomReached: s.transform[2] >= s.maxZoom,
@@ -31892,8 +32047,8 @@ var Controls = (0, import_react55.memo)(() => {
31892
32047
  const onFitViewHandler = () => {
31893
32048
  void fitView();
31894
32049
  };
31895
- return /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
31896
- import_material21.Box,
32050
+ return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(
32051
+ import_material22.Box,
31897
32052
  {
31898
32053
  sx: {
31899
32054
  bottom: 0,
@@ -31906,33 +32061,33 @@ var Controls = (0, import_react55.memo)(() => {
31906
32061
  zIndex: 5
31907
32062
  },
31908
32063
  children: [
31909
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
31910
- import_material21.IconButton,
32064
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
32065
+ import_material22.IconButton,
31911
32066
  {
31912
32067
  className: "react-flow__controls-zoomin",
31913
32068
  disabled: maxZoomReached,
31914
32069
  onClick: onZoomInHandler,
31915
32070
  size: "small",
31916
- children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_icons_material13.Add, {})
32071
+ children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_icons_material14.Add, {})
31917
32072
  }
31918
32073
  ),
31919
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
31920
- import_material21.IconButton,
32074
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
32075
+ import_material22.IconButton,
31921
32076
  {
31922
32077
  className: "react-flow__controls-zoomout",
31923
32078
  disabled: minZoomReached,
31924
32079
  onClick: onZoomOutHandler,
31925
32080
  size: "small",
31926
- children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_icons_material13.Remove, {})
32081
+ children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_icons_material14.Remove, {})
31927
32082
  }
31928
32083
  ),
31929
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
31930
- import_material21.IconButton,
32084
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
32085
+ import_material22.IconButton,
31931
32086
  {
31932
32087
  className: "react-flow__controls-fitview",
31933
32088
  onClick: onFitViewHandler,
31934
32089
  size: "small",
31935
- children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_icons_material13.FitScreen, {})
32090
+ children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_icons_material14.FitScreen, {})
31936
32091
  }
31937
32092
  )
31938
32093
  ]
@@ -31941,10 +32096,10 @@ var Controls = (0, import_react55.memo)(() => {
31941
32096
  });
31942
32097
 
31943
32098
  // src/components/trace-graph/xyflow/minimap-node.tsx
31944
- var import_material22 = require("@mui/material");
32099
+ var import_material23 = require("@mui/material");
31945
32100
  var import_react56 = require("@xyflow/react");
31946
32101
  var import_react57 = require("react");
31947
- var import_jsx_runtime145 = require("react/jsx-runtime");
32102
+ var import_jsx_runtime146 = require("react/jsx-runtime");
31948
32103
  var ICON_FRACTION = 0.35;
31949
32104
  var PADDING_FRACTION = 0.18;
31950
32105
  var ICON_NATIVE_SIZE = 80;
@@ -31957,7 +32112,7 @@ var MinimapServiceNode = (0, import_react57.memo)(({
31957
32112
  x,
31958
32113
  y
31959
32114
  }) => {
31960
- const theme = (0, import_material22.useTheme)();
32115
+ const theme = (0, import_material23.useTheme)();
31961
32116
  const node = (0, import_react56.useStore)((s) => s.nodeLookup.get(id2));
31962
32117
  const event = node?.data.event;
31963
32118
  const serviceName = event?.service_name;
@@ -31973,10 +32128,10 @@ var MinimapServiceNode = (0, import_react57.memo)(({
31973
32128
  const dotY = y + height - padding - dotRadius;
31974
32129
  const outlineColor = selected ? isError ? errorColor : "#1a73e8" : "#cccccc";
31975
32130
  const outlineWidth = selected ? 2 : 1;
31976
- return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("g", { onClick: onClick ? (event2) => {
32131
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)("g", { onClick: onClick ? (event2) => {
31977
32132
  onClick(event2, id2);
31978
32133
  } : void 0, children: [
31979
- /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
32134
+ /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
31980
32135
  "rect",
31981
32136
  {
31982
32137
  fill: theme.palette.background.paper,
@@ -31990,7 +32145,7 @@ var MinimapServiceNode = (0, import_react57.memo)(({
31990
32145
  y
31991
32146
  }
31992
32147
  ),
31993
- isError && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
32148
+ isError && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
31994
32149
  "rect",
31995
32150
  {
31996
32151
  fill: errorColor,
@@ -32002,8 +32157,8 @@ var MinimapServiceNode = (0, import_react57.memo)(({
32002
32157
  y: y + 3
32003
32158
  }
32004
32159
  ),
32005
- Icon && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("g", { transform: `translate(${String(x + padding)}, ${String(y + padding)}) scale(${String(scale2)})`, children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Icon, { height: ICON_NATIVE_SIZE, width: ICON_NATIVE_SIZE }) }),
32006
- isError && Icon && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
32160
+ Icon && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("g", { transform: `translate(${String(x + padding)}, ${String(y + padding)}) scale(${String(scale2)})`, children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Icon, { height: ICON_NATIVE_SIZE, width: ICON_NATIVE_SIZE }) }),
32161
+ isError && Icon && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
32007
32162
  "circle",
32008
32163
  {
32009
32164
  cx: dotX,
@@ -32016,7 +32171,7 @@ var MinimapServiceNode = (0, import_react57.memo)(({
32016
32171
  });
32017
32172
 
32018
32173
  // src/components/trace-graph/trace-graph.tsx
32019
- var import_jsx_runtime146 = require("react/jsx-runtime");
32174
+ var import_jsx_runtime147 = require("react/jsx-runtime");
32020
32175
  var nodeTypes = {
32021
32176
  service: ServiceNode
32022
32177
  };
@@ -32127,12 +32282,12 @@ var TraceGraph = ({
32127
32282
  updateExtent();
32128
32283
  }
32129
32284
  }, [spans.data, initialFocusEventId, setNodes, setEdges, updateExtent]);
32130
- const theme = (0, import_material23.useTheme)();
32131
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, { children: [
32132
- spans.error && /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(
32133
- import_material23.Alert,
32285
+ const theme = (0, import_material24.useTheme)();
32286
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_jsx_runtime147.Fragment, { children: [
32287
+ spans.error && /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
32288
+ import_material24.Alert,
32134
32289
  {
32135
- action: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_material23.Button, { onClick: () => {
32290
+ action: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material24.Button, { onClick: () => {
32136
32291
  onRefresh();
32137
32292
  }, children: "Retry" }),
32138
32293
  severity: "error",
@@ -32144,7 +32299,7 @@ var TraceGraph = ({
32144
32299
  ]
32145
32300
  }
32146
32301
  ),
32147
- /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(
32302
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
32148
32303
  import_react58.ReactFlow,
32149
32304
  {
32150
32305
  colorMode: theme.palette.mode,
@@ -32164,9 +32319,9 @@ var TraceGraph = ({
32164
32319
  selectNodesOnDrag: false,
32165
32320
  translateExtent,
32166
32321
  children: [
32167
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(ExtentUpdater, { onUpdate: updateExtent, viewportRef }),
32168
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(Controls, {}),
32169
- !hideMiniMap && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
32322
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(ExtentUpdater, { onUpdate: updateExtent, viewportRef }),
32323
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Controls, {}),
32324
+ !hideMiniMap && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
32170
32325
  import_react58.MiniMap,
32171
32326
  {
32172
32327
  nodeComponent: MinimapServiceNode,
@@ -32174,7 +32329,7 @@ var TraceGraph = ({
32174
32329
  zoomable: true
32175
32330
  }
32176
32331
  ),
32177
- /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
32332
+ /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
32178
32333
  import_react58.Background,
32179
32334
  {
32180
32335
  bgColor: theme.palette.background.default,
@@ -32233,8 +32388,8 @@ function useLocalStorage(key, initialValue) {
32233
32388
  }
32234
32389
 
32235
32390
  // src/components/trace-panel/waterfall.tsx
32236
- var import_icons_material14 = require("@mui/icons-material");
32237
- var import_material24 = require("@mui/material");
32391
+ var import_icons_material15 = require("@mui/icons-material");
32392
+ var import_material25 = require("@mui/material");
32238
32393
  var import_styles4 = require("@mui/material/styles");
32239
32394
  var React124 = __toESM(require("react"), 1);
32240
32395
 
@@ -32251,7 +32406,7 @@ var getAxisTicks = (durationMs, maxIntervals) => {
32251
32406
  var MIN_TICK_SPACING_PX = 56;
32252
32407
  var LABEL_GAP_PX = 8;
32253
32408
  var CHAR_WIDTH_PX = 6;
32254
- var estimateWidth = (text2) => text2.length * CHAR_WIDTH_PX;
32409
+ var estimateWidth = (text3) => text3.length * CHAR_WIDTH_PX;
32255
32410
  var layoutAxis = (durationMs, width) => {
32256
32411
  if (width <= 0) return { labels: [], marks: [] };
32257
32412
  const start = { align: "start", text: formatDuration(0), x: 0 };
@@ -32266,10 +32421,10 @@ var layoutAxis = (durationMs, width) => {
32266
32421
  if (tick <= 0 || tick >= durationMs) continue;
32267
32422
  const x = tick / durationMs * width;
32268
32423
  marks.push(x);
32269
- const text2 = formatDuration(tick);
32270
- const half = estimateWidth(text2) / 2;
32424
+ const text3 = formatDuration(tick);
32425
+ const half = estimateWidth(text3) / 2;
32271
32426
  if (x - half >= previousRight + LABEL_GAP_PX && x + half <= endLeft) {
32272
- labels.push({ align: "center", text: text2, x });
32427
+ labels.push({ align: "center", text: text3, x });
32273
32428
  previousRight = x + half;
32274
32429
  }
32275
32430
  }
@@ -32277,7 +32432,7 @@ var layoutAxis = (durationMs, width) => {
32277
32432
  };
32278
32433
 
32279
32434
  // src/components/trace-panel/waterfall.tsx
32280
- var import_jsx_runtime147 = require("react/jsx-runtime");
32435
+ var import_jsx_runtime148 = require("react/jsx-runtime");
32281
32436
  var SERVICE_COLORS = {
32282
32437
  apigateway: "#7048E8",
32283
32438
  dynamodb: "#3B5BDB",
@@ -32315,12 +32470,12 @@ var flatten = (nodes2, collapsed, depth = 0, branches = [], parent) => nodes2.fl
32315
32470
  ];
32316
32471
  });
32317
32472
  var flattenAll = (nodes2) => flatten(nodes2, /* @__PURE__ */ new Set()).map((row) => ({ ...row, branches: [], depth: 0, last: true })).toSorted((left, right) => compareNano(left.node.span.start_time_unix_nano, right.node.span.start_time_unix_nano));
32318
- var StatusIcons = ({ error, warning: warning2 }) => /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_jsx_runtime147.Fragment, { children: [
32319
- error && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_icons_material14.Cancel, { sx: { color: "error.main", fontSize: 14 } }),
32320
- warning2 && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_icons_material14.Error, { sx: { color: "warning.main", fontSize: 14 } })
32473
+ var StatusIcons = ({ error, warning: warning2 }) => /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_jsx_runtime148.Fragment, { children: [
32474
+ error && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_icons_material15.Cancel, { sx: { color: "error.main", fontSize: 14 } }),
32475
+ warning2 && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_icons_material15.GppMaybe, { sx: { color: "warning.main", fontSize: 14 } })
32321
32476
  ] });
32322
- var Line = ({ height, left, top = 0, width = 1 }) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
32323
- import_material24.Box,
32477
+ var Line = ({ height, left, top = 0, width = 1 }) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
32478
+ import_material25.Box,
32324
32479
  {
32325
32480
  "aria-hidden": "true",
32326
32481
  sx: { backgroundColor: "divider", height: height === void 0 ? `calc(100% - ${String(top)}px)` : `${String(height)}px`, left: `${String(left)}px`, pointerEvents: "none", position: "absolute", top: `${String(top)}px`, width: `${String(width)}px` }
@@ -32348,8 +32503,8 @@ var WaterfallAxis = ({ durationMs, flat, gridColumns: gridColumns2, onFlatChange
32348
32503
  const trackRef = React124.useRef(null);
32349
32504
  const width = useWidth(trackRef);
32350
32505
  const { labels, marks } = layoutAxis(durationMs, width);
32351
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
32352
- import_material24.Box,
32506
+ return /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(
32507
+ import_material25.Box,
32353
32508
  {
32354
32509
  "data-testid": WATERFALL_AXIS_TEST_ID,
32355
32510
  sx: {
@@ -32364,8 +32519,8 @@ var WaterfallAxis = ({ durationMs, flat, gridColumns: gridColumns2, onFlatChange
32364
32519
  zIndex: 1
32365
32520
  },
32366
32521
  children: [
32367
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material24.Box, { sx: { alignItems: "center", borderRight: 1, borderRightColor: "divider", display: "flex", gridColumn: "1 / 3", pl: "5px" }, children: onFlatChange && /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
32368
- import_material24.ToggleButtonGroup,
32522
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { alignItems: "center", borderRight: 1, borderRightColor: "divider", display: "flex", gridColumn: "1 / 3", pl: "5px" }, children: onFlatChange && /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(
32523
+ import_material25.ToggleButtonGroup,
32369
32524
  {
32370
32525
  "aria-label": "Operations layout",
32371
32526
  exclusive: true,
@@ -32376,21 +32531,21 @@ var WaterfallAxis = ({ durationMs, flat, gridColumns: gridColumns2, onFlatChange
32376
32531
  sx: { "& .MuiToggleButton-root": { fontSize: 11, gap: "3px", height: 18, lineHeight: 1, px: "6px", py: 0, textTransform: "none" } },
32377
32532
  value: flat ? "list" : "tree",
32378
32533
  children: [
32379
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material24.ToggleButton, { "data-testid": WATERFALL_TREE_VIEW_BUTTON_TEST_ID, value: "tree", children: [
32380
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_icons_material14.AccountTreeOutlined, { sx: { fontSize: 13 } }),
32534
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.ToggleButton, { "data-testid": WATERFALL_TREE_VIEW_BUTTON_TEST_ID, value: "tree", children: [
32535
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_icons_material15.AccountTreeOutlined, { sx: { fontSize: 13 } }),
32381
32536
  "Tree"
32382
32537
  ] }),
32383
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material24.ToggleButton, { "data-testid": WATERFALL_LIST_VIEW_BUTTON_TEST_ID, value: "list", children: [
32384
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_icons_material14.FormatListBulleted, { sx: { fontSize: 13 } }),
32538
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.ToggleButton, { "data-testid": WATERFALL_LIST_VIEW_BUTTON_TEST_ID, value: "list", children: [
32539
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_icons_material15.FormatListBulleted, { sx: { fontSize: 13 } }),
32385
32540
  "List"
32386
32541
  ] })
32387
32542
  ]
32388
32543
  }
32389
32544
  ) }),
32390
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material24.Box, { "aria-hidden": "true", ref: trackRef, sx: { mx: TRACK_INSET, position: "relative" }, children: [
32391
- marks.map((x) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material24.Box, { sx: { backgroundColor: "divider", bottom: 0, height: "4px", left: `${String(x)}px`, position: "absolute", width: "1px" } }, x)),
32392
- labels.map((label) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
32393
- import_material24.Typography,
32545
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { "aria-hidden": "true", ref: trackRef, sx: { mx: TRACK_INSET, position: "relative" }, children: [
32546
+ marks.map((x) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { backgroundColor: "divider", bottom: 0, height: "4px", left: `${String(x)}px`, position: "absolute", width: "1px" } }, x)),
32547
+ labels.map((label) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
32548
+ import_material25.Typography,
32394
32549
  {
32395
32550
  color: "text.secondary",
32396
32551
  component: "span",
@@ -32455,11 +32610,11 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32455
32610
  else if (event.key === "ArrowLeft" && !flat && node.children.length > 0) setExpanded(spanId, false);
32456
32611
  };
32457
32612
  if (spans.length === 0) {
32458
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material24.Typography, { color: "text.secondary", sx: { p: 2 }, variant: "body2", children: "No operations in this trace." });
32613
+ return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { color: "text.secondary", sx: { p: 2 }, variant: "body2", children: "No operations in this trace." });
32459
32614
  }
32460
32615
  const percentAt = (nano) => bounds.durationMs > 0 ? Number(BigInt(nano) - bounds.startNano) / 1e6 / bounds.durationMs * 100 : 0;
32461
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material24.Box, { "aria-label": "Operations waterfall", "data-testid": WATERFALL_TEST_ID, ref: containerRef, role: "tree", sx: { fontSize: 13, minWidth: 0 }, children: [
32462
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(WaterfallAxis, { durationMs: bounds.durationMs, flat, gridColumns: gridColumns(statusIconsFirst), onFlatChange: waterfallLayout === "toggle" ? setToggledFlat : void 0 }),
32616
+ return /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { "aria-label": "Operations waterfall", "data-testid": WATERFALL_TEST_ID, ref: containerRef, role: "tree", sx: { fontSize: 13, minWidth: 0 }, children: [
32617
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(WaterfallAxis, { durationMs: bounds.durationMs, flat, gridColumns: gridColumns(statusIconsFirst), onFlatChange: waterfallLayout === "toggle" ? setToggledFlat : void 0 }),
32463
32618
  rows.map(({ branches, depth, last, node, parent }) => {
32464
32619
  const { span } = node;
32465
32620
  const issues = getSpanIssues(span);
@@ -32477,8 +32632,8 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32477
32632
  const label = formatDuration(durationMs);
32478
32633
  const resource = shortResourceName(span.resource_name, span.arn);
32479
32634
  const serviceColor = getServiceColor(span.service_name);
32480
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
32481
- import_material24.Box,
32635
+ return /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(
32636
+ import_material25.Box,
32482
32637
  {
32483
32638
  "aria-expanded": hasChildren ? !isCollapsed : void 0,
32484
32639
  "aria-level": depth + 1,
@@ -32516,10 +32671,10 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32516
32671
  "scrollMarginTop": AXIS_HEIGHT
32517
32672
  }),
32518
32673
  children: [
32519
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material24.Box, { sx: { alignItems: "center", display: "flex", minWidth: 0, pr: 1 }, children: [
32520
- statusIconsFirst && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material24.Box, { sx: { display: "inline-flex", flex: "none", gap: "2px", pl: 1, width: STATUS_ICONS_WIDTH }, children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(StatusIcons, { error: issues.error, warning: issues.warning }) }),
32521
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
32522
- import_material24.Typography,
32674
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { sx: { alignItems: "center", display: "flex", minWidth: 0, pr: 1 }, children: [
32675
+ statusIconsFirst && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { display: "inline-flex", flex: "none", gap: "2px", pl: 1, width: STATUS_ICONS_WIDTH }, children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(StatusIcons, { error: issues.error, warning: issues.warning }) }),
32676
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(
32677
+ import_material25.Typography,
32523
32678
  {
32524
32679
  color: "text.secondary",
32525
32680
  component: "span",
@@ -32528,21 +32683,21 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32528
32683
  sx: { display: "flex", flex: 1, fontSize: 11, fontVariantNumeric: "tabular-nums", lineHeight: `${String(ROW_HEIGHT)}px` },
32529
32684
  title: "Since the first operation of the trace",
32530
32685
  children: [
32531
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material24.Box, { component: "span", sx: { flex: 1, textAlign: "right" }, children: offsetMs > 0 ? `+${offset.value}` : offset.value }),
32532
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material24.Box, { component: "span", sx: { flex: "none", pl: "3px", width: OFFSET_UNIT_WIDTH }, children: offset.unit })
32686
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { component: "span", sx: { flex: 1, textAlign: "right" }, children: offsetMs > 0 ? `+${offset.value}` : offset.value }),
32687
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { component: "span", sx: { flex: "none", pl: "3px", width: OFFSET_UNIT_WIDTH }, children: offset.unit })
32533
32688
  ]
32534
32689
  }
32535
32690
  )
32536
32691
  ] }),
32537
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material24.Box, { sx: { alignItems: "center", borderRight: 1, borderRightColor: "divider", display: "flex", gap: "5px", minWidth: 0, overflow: "hidden", pl: `${String(8 + depth * INDENT)}px`, position: "relative", pr: 1 }, children: [
32538
- branches.map((runs, level) => runs && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Line, { left: lineX(level) }, level)),
32539
- depth > 0 && /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_jsx_runtime147.Fragment, { children: [
32540
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Line, { height: last ? 12 : void 0, left: lineX(depth - 1) }),
32541
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Line, { height: 1, left: lineX(depth - 1), top: 12, width: hasChildren ? 8 : 20 })
32692
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { sx: { alignItems: "center", borderRight: 1, borderRightColor: "divider", display: "flex", gap: "5px", minWidth: 0, overflow: "hidden", pl: `${String(8 + depth * INDENT)}px`, position: "relative", pr: 1 }, children: [
32693
+ branches.map((runs, level) => runs && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(Line, { left: lineX(level) }, level)),
32694
+ depth > 0 && /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_jsx_runtime148.Fragment, { children: [
32695
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(Line, { height: last ? 12 : void 0, left: lineX(depth - 1) }),
32696
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(Line, { height: 1, left: lineX(depth - 1), top: 12, width: hasChildren ? 8 : 20 })
32542
32697
  ] }),
32543
- hasChildren && !isCollapsed && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(Line, { left: lineX(depth), top: 19 }),
32544
- hasChildren ? /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
32545
- import_material24.ButtonBase,
32698
+ hasChildren && !isCollapsed && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(Line, { left: lineX(depth), top: 19 }),
32699
+ hasChildren ? /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
32700
+ import_material25.ButtonBase,
32546
32701
  {
32547
32702
  "aria-label": isCollapsed ? "Expand" : "Collapse",
32548
32703
  "data-testid": WATERFALL_ROW_TOGGLE_TEST_ID,
@@ -32561,18 +32716,18 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32561
32716
  "width": 14
32562
32717
  }),
32563
32718
  tabIndex: -1,
32564
- children: isCollapsed ? /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_icons_material14.KeyboardArrowRight, { sx: { fontSize: 16 } }) : /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_icons_material14.KeyboardArrowDown, { sx: { fontSize: 16 } })
32719
+ children: isCollapsed ? /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_icons_material15.KeyboardArrowRight, { sx: { fontSize: 16 } }) : /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_icons_material15.KeyboardArrowDown, { sx: { fontSize: 16 } })
32565
32720
  }
32566
- ) : !flat && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material24.Box, { sx: { flex: "none", width: 14 } }),
32567
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material24.Box, { sx: { display: "flex", flex: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(AwsServiceIcon, { hideTooltip: true, service: span.service_name, size: "small" }) }),
32568
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material24.Typography, { component: "span", noWrap: true, sx: { flex: "0 1 auto", fontSize: "inherit", fontWeight: 600, minWidth: 0 }, title: span.operation_name, children: span.operation_name }),
32569
- resource !== "" && resource !== "*" && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material24.Typography, { color: "text.secondary", component: "span", noWrap: true, sx: { flex: "1 1 0", fontSize: 11, minWidth: 0 }, title: resource, children: resource }),
32570
- !statusIconsFirst && (issues.error || issues.warning) && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material24.Box, { sx: { display: "inline-flex", flex: "none", ml: "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(StatusIcons, { error: issues.error, warning: issues.warning }) })
32721
+ ) : !flat && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { flex: "none", width: 14 } }),
32722
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { display: "flex", flex: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(AwsServiceIcon, { hideTooltip: true, service: span.service_name, size: "small" }) }),
32723
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { component: "span", noWrap: true, sx: { flex: "0 1 auto", fontSize: "inherit", fontWeight: 600, minWidth: 0 }, title: span.operation_name, children: span.operation_name }),
32724
+ resource !== "" && resource !== "*" && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { color: "text.secondary", component: "span", noWrap: true, sx: { flex: "1 1 0", fontSize: 11, minWidth: 0 }, title: resource, children: resource }),
32725
+ !statusIconsFirst && (issues.error || issues.warning) && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { display: "inline-flex", flex: "none", ml: "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(StatusIcons, { error: issues.error, warning: issues.warning }) })
32571
32726
  ] }),
32572
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material24.Box, { sx: { mx: TRACK_INSET, position: "relative" }, children: [
32573
- parentStartPercent !== void 0 && startPercent > parentStartPercent && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material24.Box, { sx: { backgroundColor: serviceColor, height: "1px", left: `${String(parentStartPercent)}%`, opacity: 0.35, position: "absolute", top: 11.5, width: `${String(startPercent - parentStartPercent)}%` } }),
32574
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
32575
- import_material24.Box,
32727
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { sx: { mx: TRACK_INSET, position: "relative" }, children: [
32728
+ parentStartPercent !== void 0 && startPercent > parentStartPercent && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { backgroundColor: serviceColor, height: "1px", left: `${String(parentStartPercent)}%`, opacity: 0.35, position: "absolute", top: 11.5, width: `${String(startPercent - parentStartPercent)}%` } }),
32729
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
32730
+ import_material25.Box,
32576
32731
  {
32577
32732
  sx: (theme) => ({
32578
32733
  background: issues.error ? `repeating-linear-gradient(135deg, ${theme.palette.error.main} 0 4px, ${(0, import_styles4.alpha)(theme.palette.error.main, 0.7)} 4px 8px)` : serviceColor,
@@ -32586,8 +32741,8 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32586
32741
  })
32587
32742
  }
32588
32743
  ),
32589
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
32590
- import_material24.Typography,
32744
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
32745
+ import_material25.Typography,
32591
32746
  {
32592
32747
  color: placement === "inside" ? "#fff" : "text.secondary",
32593
32748
  component: "span",
@@ -32616,7 +32771,7 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32616
32771
  };
32617
32772
 
32618
32773
  // src/components/trace-panel/trace-sidebar.tsx
32619
- var import_jsx_runtime148 = require("react/jsx-runtime");
32774
+ var import_jsx_runtime149 = require("react/jsx-runtime");
32620
32775
  var DEFAULT_WIDTH = 560;
32621
32776
  var MIN_WIDTH = 360;
32622
32777
  var MAX_WIDTH_SHARE = 0.8;
@@ -32685,8 +32840,8 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
32685
32840
  };
32686
32841
  }, [spans, selectedSpanId]);
32687
32842
  const rootResource = root2 ? shortResourceName(root2.resource_name, root2.arn) : "";
32688
- return /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(
32689
- import_material25.Box,
32843
+ return /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(
32844
+ import_material26.Box,
32690
32845
  {
32691
32846
  "data-testid": TRACE_SIDEBAR_TEST_ID,
32692
32847
  ref: sidebarRef,
@@ -32708,8 +32863,8 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
32708
32863
  width: storedWidth
32709
32864
  },
32710
32865
  children: [
32711
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
32712
- import_material25.Box,
32866
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
32867
+ import_material26.Box,
32713
32868
  {
32714
32869
  "aria-label": "Resize the sidebar",
32715
32870
  "aria-orientation": "vertical",
@@ -32736,23 +32891,23 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
32736
32891
  tabIndex: 0
32737
32892
  }
32738
32893
  ),
32739
- /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { sx: { alignItems: "center", borderBottom: 1, borderColor: "divider", display: "flex", gap: 1.5, px: 2, py: 1 }, children: [
32740
- /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { sx: { flex: 1, minWidth: 0 }, children: [
32741
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: requestTerms === "on" ? "Request" : "Trace root" }),
32742
- root2 && /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_material25.Box, { "data-testid": TRACE_SIDEBAR_ROOT_HEADING_TEST_ID, sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
32743
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(AwsServiceIcon, { hideTooltip: true, service: root2.service_name, size: "small" }),
32744
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, title: root2.operation_name, variant: "subtitle1", children: root2.operation_name }),
32745
- rootResource !== "" && rootResource !== "*" && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: rootResource, variant: "body2", children: rootResource })
32894
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material26.Box, { sx: { alignItems: "center", borderBottom: 1, borderColor: "divider", display: "flex", gap: 1.5, px: 2, py: 1 }, children: [
32895
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material26.Box, { sx: { flex: 1, minWidth: 0 }, children: [
32896
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Typography, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: requestTerms === "on" ? "Request" : "Trace root" }),
32897
+ root2 && /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material26.Box, { "data-testid": TRACE_SIDEBAR_ROOT_HEADING_TEST_ID, sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
32898
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(AwsServiceIcon, { hideTooltip: true, service: root2.service_name, size: "small" }),
32899
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Typography, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, title: root2.operation_name, variant: "subtitle1", children: root2.operation_name }),
32900
+ rootResource !== "" && rootResource !== "*" && /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Typography, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: rootResource, variant: "body2", children: rootResource })
32746
32901
  ] }),
32747
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { color: "text.secondary", variant: "caption", children: [
32902
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Typography, { color: "text.secondary", variant: "caption", children: [
32748
32903
  formatDuration(stats.durationMs),
32749
32904
  pluralize(spans.length, "op"),
32750
32905
  ...stats.errors > 0 ? [pluralize(stats.errors, "error")] : [],
32751
32906
  ...stats.warnings > 0 ? [pluralize(stats.warnings, "warning")] : []
32752
32907
  ].join(" \xB7 ") })
32753
32908
  ] }),
32754
- /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(
32755
- import_material25.ToggleButtonGroup,
32909
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(
32910
+ import_material26.ToggleButtonGroup,
32756
32911
  {
32757
32912
  "aria-label": "Trace view",
32758
32913
  exclusive: true,
@@ -32762,14 +32917,14 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
32762
32917
  size: "small",
32763
32918
  value: view,
32764
32919
  children: [
32765
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.ToggleButton, { "data-testid": TRACE_SIDEBAR_WATERFALL_BUTTON_TEST_ID, sx: { px: 1.5, py: 0.25, textTransform: "none" }, value: "waterfall", children: "Operations" }),
32766
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.ToggleButton, { "data-testid": TRACE_SIDEBAR_MAP_BUTTON_TEST_ID, sx: { px: 1.5, py: 0.25, textTransform: "none" }, value: "map", children: "Flow" })
32920
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.ToggleButton, { "data-testid": TRACE_SIDEBAR_WATERFALL_BUTTON_TEST_ID, sx: { px: 1.5, py: 0.25, textTransform: "none" }, value: "waterfall", children: "Operations" }),
32921
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.ToggleButton, { "data-testid": TRACE_SIDEBAR_MAP_BUTTON_TEST_ID, sx: { px: 1.5, py: 0.25, textTransform: "none" }, value: "map", children: "Flow" })
32767
32922
  ]
32768
32923
  }
32769
32924
  ),
32770
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.IconButton, { "aria-label": "Close", "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_icons_material15.Close, {}) })
32925
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.IconButton, { "aria-label": "Close", "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_icons_material16.Close, {}) })
32771
32926
  ] }),
32772
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { ref: traceViewRef, sx: { borderBottom: 1, borderColor: "divider", display: "flex", flex: `0 0 ${String(storedSplit * 100)}%`, flexDirection: "column", minHeight: 0, overflow: "auto", position: "relative" }, children: view === "waterfall" ? /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(Waterfall, { onSelectSpan, selectedSpanId, spanMatches, spans }) : /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_react61.ReactFlowProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
32927
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Box, { ref: traceViewRef, sx: { borderBottom: 1, borderColor: "divider", display: "flex", flex: `0 0 ${String(storedSplit * 100)}%`, flexDirection: "column", minHeight: 0, overflow: "auto", position: "relative" }, children: view === "waterfall" ? /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Waterfall, { onSelectSpan, selectedSpanId, spanMatches, spans }) : /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Box, { sx: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_react61.ReactFlowProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
32773
32928
  TraceGraph,
32774
32929
  {
32775
32930
  hideMiniMap: true,
@@ -32779,8 +32934,8 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
32779
32934
  spans: { data: spans, error: void 0, loading: false }
32780
32935
  }
32781
32936
  ) }) }) }),
32782
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { flexShrink: 0, position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
32783
- import_material25.Box,
32937
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Box, { sx: { flexShrink: 0, position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
32938
+ import_material26.Box,
32784
32939
  {
32785
32940
  "aria-label": "Resize the operation details",
32786
32941
  "aria-orientation": "horizontal",
@@ -32808,18 +32963,18 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
32808
32963
  tabIndex: 0
32809
32964
  }
32810
32965
  ) }),
32811
- /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Box, { sx: { flex: 1, minHeight: 0 }, children: selectedSpan ? /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(EventDetails, { selectedEvent: selectedSpan }) : /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_material25.Typography, { color: "text.secondary", sx: { p: 3, textAlign: "center" }, variant: "body2", children: "The selected operation is not part of this trace." }) })
32966
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Box, { sx: { flex: 1, minHeight: 0 }, children: selectedSpan ? /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(EventDetails, { selectedEvent: selectedSpan }) : /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Typography, { color: "text.secondary", sx: { p: 3, textAlign: "center" }, variant: "body2", children: "The selected operation is not part of this trace." }) })
32812
32967
  ]
32813
32968
  }
32814
32969
  );
32815
32970
  };
32816
32971
 
32817
32972
  // src/components/worker-error-message/worker-error-message.tsx
32818
- var import_icons_material16 = require("@mui/icons-material");
32819
- var import_material26 = require("@mui/material");
32820
- var import_jsx_runtime149 = require("react/jsx-runtime");
32821
- var WorkerErrorMessage = ({ error, onRetry }) => /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
32822
- import_material26.Box,
32973
+ var import_icons_material17 = require("@mui/icons-material");
32974
+ var import_material27 = require("@mui/material");
32975
+ var import_jsx_runtime150 = require("react/jsx-runtime");
32976
+ var WorkerErrorMessage = ({ error, onRetry }) => /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
32977
+ import_material27.Box,
32823
32978
  {
32824
32979
  sx: {
32825
32980
  alignItems: "center",
@@ -32829,18 +32984,18 @@ var WorkerErrorMessage = ({ error, onRetry }) => /* @__PURE__ */ (0, import_jsx_
32829
32984
  justifyContent: "center",
32830
32985
  p: 4
32831
32986
  },
32832
- children: /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(
32833
- import_material26.Alert,
32987
+ children: /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
32988
+ import_material27.Alert,
32834
32989
  {
32835
- icon: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_icons_material16.ErrorOutline, { fontSize: "large" }),
32990
+ icon: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_icons_material17.ErrorOutline, { fontSize: "large" }),
32836
32991
  severity: "error",
32837
32992
  sx: { maxWidth: 600, width: "100%" },
32838
32993
  children: [
32839
- /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.AlertTitle, { sx: { fontWeight: "bold" }, children: "Unable to Start Span Filtering" }),
32840
- /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Typography, { sx: { mb: 2 }, variant: "body2", children: "App Inspector couldn't start the background worker that filters and sorts operations. This is usually caused by a Content-Security-Policy blocking Web Workers in this environment." }),
32841
- /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Typography, { sx: { fontFamily: "monospace", mb: 2 }, variant: "caption", children: error.message }),
32842
- onRetry && /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material26.Box, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
32843
- import_material26.Button,
32994
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_material27.AlertTitle, { sx: { fontWeight: "bold" }, children: "Unable to Start Span Filtering" }),
32995
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_material27.Typography, { sx: { mb: 2 }, variant: "body2", children: "App Inspector couldn't start the background worker that filters and sorts operations. This is usually caused by a Content-Security-Policy blocking Web Workers in this environment." }),
32996
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_material27.Typography, { sx: { fontFamily: "monospace", mb: 2 }, variant: "caption", children: error.message }),
32997
+ onRetry && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_material27.Box, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
32998
+ import_material27.Button,
32844
32999
  {
32845
33000
  "aria-label": "Retry starting the spans filter worker",
32846
33001
  onClick: onRetry,
@@ -33557,7 +33712,7 @@ var useSpans = () => {
33557
33712
  };
33558
33713
 
33559
33714
  // src/pages/spans-list-page.tsx
33560
- var import_jsx_runtime150 = require("react/jsx-runtime");
33715
+ var import_jsx_runtime151 = require("react/jsx-runtime");
33561
33716
  var SpansListPage = () => {
33562
33717
  const api = useAppInspectorApi();
33563
33718
  const {
@@ -33643,10 +33798,10 @@ var SpansListPage = () => {
33643
33798
  switch (phase) {
33644
33799
  case "CHECKING_STATUS":
33645
33800
  case "CONNECTING_WS": {
33646
- return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(StatusMessage, { phase });
33801
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(StatusMessage, { phase });
33647
33802
  }
33648
33803
  case "DISABLED": {
33649
- return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
33804
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
33650
33805
  StatusMessage,
33651
33806
  {
33652
33807
  onEnable: handleEnable,
@@ -33655,7 +33810,7 @@ var SpansListPage = () => {
33655
33810
  );
33656
33811
  }
33657
33812
  case "INCOMPATIBLE": {
33658
- return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
33813
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
33659
33814
  StatusMessage,
33660
33815
  {
33661
33816
  localstackVersion,
@@ -33666,12 +33821,12 @@ var SpansListPage = () => {
33666
33821
  }
33667
33822
  case "LIVE": {
33668
33823
  if (workerError) {
33669
- return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(WorkerErrorMessage, { error: workerError, onRetry: retryWorker });
33824
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(WorkerErrorMessage, { error: workerError, onRetry: retryWorker });
33670
33825
  }
33671
33826
  break;
33672
33827
  }
33673
33828
  case "UNREACHABLE": {
33674
- return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
33829
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
33675
33830
  StatusMessage,
33676
33831
  {
33677
33832
  onRetry: handleRetry,
@@ -33680,9 +33835,9 @@ var SpansListPage = () => {
33680
33835
  );
33681
33836
  }
33682
33837
  }
33683
- return /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(import_material27.Paper, { square: true, sx: { ...NATIVE_SCROLLBARS, display: "flex", flexDirection: "row", flexGrow: 1, minHeight: 0, overflow: "hidden" }, children: [
33684
- /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
33685
- import_material27.Box,
33838
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)(import_material28.Paper, { square: true, sx: { ...NATIVE_SCROLLBARS, display: "flex", flexDirection: "row", flexGrow: 1, minHeight: 0, overflow: "hidden" }, children: [
33839
+ /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)(
33840
+ import_material28.Box,
33686
33841
  {
33687
33842
  "data-testid": SPANS_LIST_PAGE_TEST_ID,
33688
33843
  sx: {
@@ -33693,7 +33848,7 @@ var SpansListPage = () => {
33693
33848
  minWidth: 0
33694
33849
  },
33695
33850
  children: [
33696
- /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
33851
+ /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
33697
33852
  EmulatorVersionBanner,
33698
33853
  {
33699
33854
  compatibility: bannerDismissed && versionCompatibility === "warning" ? "ok" : versionCompatibility,
@@ -33703,7 +33858,7 @@ var SpansListPage = () => {
33703
33858
  } : void 0
33704
33859
  }
33705
33860
  ),
33706
- /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
33861
+ /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
33707
33862
  SpansList,
33708
33863
  {
33709
33864
  clearingSpans,
@@ -33730,7 +33885,7 @@ var SpansListPage = () => {
33730
33885
  ]
33731
33886
  }
33732
33887
  ),
33733
- selectedSpanId !== void 0 && rootSpanId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
33888
+ selectedSpanId !== void 0 && rootSpanId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
33734
33889
  TraceSidebar,
33735
33890
  {
33736
33891
  onClose: closeSidebar,